/* Hanspal & Josan landing page
   Palette: warm ink, cream, brushed brass. Type: Cormorant Garamond + Montserrat. */
:root {
  --ink: #16130F;
  --ink-2: #211D18;
  --ink-3: #2C2620;
  --cream: #F6F1E9;
  --sand: #ECE4D7;
  --stone: #CFC4B3;
  --text: #2A251F;
  --muted: #6E6457;
  --muted-d: #B3A897;
  --brass: #B8925A;
  --brass-l: #E2C690;
  --gold: linear-gradient(100deg, #F0D9A8 0%, #C9A46A 45%, #9A7440 100%);
  --gold-d: linear-gradient(100deg, #A87D3E 0%, #8A6530 50%, #6B4C22 100%);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 300 16px/1.75 var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .callout, address, .hero-facts b, .steps span, .quote, .statement p { font-feature-settings: "lnum"; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.6rem; }
em {
  font-style: italic;
  background: var(--gold-d);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.hero em, .detail em, .process em, .estimate em { background-image: var(--gold); }
p { margin: 0 0 1.1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow {
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .32em; text-transform: uppercase;
  color: #8E6A35; margin-bottom: 1.4em;
}
.hero .eyebrow, .process .eyebrow, .estimate .eyebrow { color: var(--brass-l); }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.lead { font-size: 1.08rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(184, 146, 90, .7); }
.btn.line { border-color: currentColor; color: inherit; background: transparent; }
.btn.line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.small { min-height: 42px; padding: 0 20px; }
.link {
  font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 6px; color: var(--text);
}
.link:hover { color: var(--brass); }

/* Header */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gut);
  color: var(--cream);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.bar.scrolled { background: rgba(22, 19, 15, .97); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 rgba(226, 198, 144, .15); }
.brand img { width: 96px; height: auto; transition: width .4s var(--ease); }
.bar.scrolled .brand img { width: 78px; }
#nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
#nav a:not(.btn) {
  font: 400 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; opacity: .85; position: relative; padding: 6px 0;
}
#nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass-l); transition: right .35s var(--ease); }
#nav a:not(.btn):hover { opacity: 1; }
#nav a:not(.btn):hover::after { right: 0; }
#nav .btn { border-color: var(--brass-l); color: var(--brass-l); }
#nav .btn:hover { background: var(--brass-l); color: var(--ink); }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: var(--cream); }
.menu i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu i:first-of-type { top: 18px; }
.menu i:last-of-type { top: 26px; }
.menu[aria-expanded="true"] i:first-of-type { top: 22px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:last-of-type { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 20%, #3A3128 0%, var(--ink-2) 45%, var(--ink) 100%);
  color: var(--cream);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(130px, 16vh, 180px) var(--gut) clamp(70px, 10vh, 110px);
  min-height: min(100vh, 980px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(226, 198, 144, .035) 0 1px, transparent 1px 120px);
}
.hero-copy { position: relative; max-width: 620px; justify-self: end; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6.2rem); font-weight: 400; line-height: 1; margin-bottom: .35em; }
.hero-lead { font-size: 1.08rem; color: var(--muted-d); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }
.hero .btn.line { color: var(--cream); border-color: rgba(246, 241, 233, .45); }
.hero .btn.line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero-facts { list-style: none; margin: 0; padding: 26px 0 0; display: flex; gap: clamp(24px, 4vw, 56px); border-top: 1px solid rgba(226, 198, 144, .22); }
.hero-facts b { display: block; font: 500 2rem/1 var(--serif); color: var(--brass-l); margin-bottom: 8px; }
.hero-facts span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-d); }
.hero-media { position: relative; margin: 0; max-width: 600px; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 1px solid rgba(226, 198, 144, .5);
}
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 18s var(--ease) infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-2%, -1%); } }
.hero-media figcaption, .tag {
  position: absolute; left: 16px; bottom: 16px;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(22, 19, 15, .65); color: var(--cream); padding: 6px 10px; backdrop-filter: blur(4px);
}

/* Ticker */
.ticker { background: var(--ink); color: var(--brass-l); overflow: hidden; border-top: 1px solid rgba(226, 198, 144, .14); }
.ticker-track { display: flex; width: max-content; animation: tick 50s linear infinite; }
.ticker span { font: italic 400 1.35rem/1 var(--serif); padding: 20px 34px; white-space: nowrap; position: relative; }
.ticker span::after { content: "◆"; font-style: normal; font-size: .5rem; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); color: var(--brass); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Statement */
.statement { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(60px, 9vw, 110px); }
.statement p { font: 400 clamp(1.8rem, 3.6vw, 3rem)/1.25 var(--serif); max-width: 980px; margin: 0 auto; text-align: center; }

/* Collections */
.collections { padding-bottom: clamp(80px, 11vw, 140px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.tile { position: relative; margin: 0; }
.tile figure { margin: 0 0 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-lg { grid-column: span 2; grid-row: span 2; }
.tile-lg figure { aspect-ratio: auto; height: calc(100% - 150px); min-height: 420px; }
.num { font: 500 .7rem/1 var(--sans); letter-spacing: .3em; color: var(--brass); display: block; margin-bottom: 10px; }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 34em; }

/* Detail band */
.detail { position: relative; min-height: clamp(460px, 70vh, 720px); display: grid; align-items: end; overflow: hidden; color: var(--cream); }
.detail > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 19, 15, .1) 20%, rgba(22, 19, 15, .85) 100%); }
.detail-copy { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; width: 100%; padding: 0 var(--gut) clamp(44px, 7vw, 90px); }
.detail .eyebrow { color: var(--brass-l); }
.quote { font: 400 clamp(1.8rem, 3.6vw, 3rem)/1.2 var(--serif); max-width: 820px; margin: 0; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--stone); z-index: -1; }
.split-copy p { color: var(--muted); }
.split-copy .link { display: inline-block; margin-top: 10px; }
.reverse .split-media { order: 2; }
.reverse .split-media::after { inset: -18px -18px 18px 18px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--stone); padding: 9px 14px; color: var(--text); }

/* Process */
.process { background: var(--ink); color: var(--cream); padding: clamp(80px, 11vw, 140px) 0; }
.process .head h2 { color: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(226, 198, 144, .2); }
.steps li { padding: 36px 28px 10px 0; border-right: 1px solid rgba(226, 198, 144, .12); padding-left: 28px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps span { font: 400 3.4rem/1 var(--serif); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 22px; }
.steps h3 { color: var(--cream); }
.steps p { color: var(--muted-d); font-size: .95rem; }

/* Proof */
.proof { background: var(--sand); padding: clamp(70px, 9vw, 120px) 0; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.proof-card { background: var(--cream); padding: clamp(32px, 4vw, 56px); border: 1px solid rgba(184, 146, 90, .25); }
.proof-card h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.proof-card p { color: var(--muted); }
.proof-card .btn { margin-top: 8px; }

/* Showroom */
.showroom { text-align: center; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(40px, 6vw, 70px); max-width: 860px; }
.showroom p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* FAQ */
.faq { padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(80px, 11vw, 140px); display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.qa details { border-bottom: 1px solid var(--stone); }
.qa details:first-child { border-top: 1px solid var(--stone); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 500 1.35rem/1.3 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 var(--sans); color: var(--brass); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details p { color: var(--muted); padding-right: 40px; }

/* Estimate */
.estimate { background: var(--ink-2); color: var(--cream); padding: clamp(80px, 11vw, 140px) 0; }
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.estimate .lead { color: var(--muted-d); }
.callout { font: 400 1.5rem/1.3 var(--serif); }
.callout a { color: var(--brass-l); text-decoration: none; border-bottom: 1px solid currentColor; }
#form { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 8px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d); }
label b { color: var(--brass-l); font-weight: 500; }
input, select, textarea {
  font: 400 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid rgba(226, 198, 144, .35); border-radius: 0;
  padding: 10px 0 12px; width: 100%;
  transition: border-color .3s var(--ease);
}
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E2C690' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; cursor: pointer; }
select option { color: var(--text); background: var(--cream); }
textarea { resize: vertical; border: 1px solid rgba(226, 198, 144, .35); padding: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass-l); }
[aria-invalid="true"] { border-color: #E0866B; }
.error { color: #F0A58C; font-size: .9rem; margin: 0; }
#form .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.estimate .btn.line { color: var(--cream); border-color: rgba(246, 241, 233, .45); }
.estimate .btn.line:hover { background: var(--cream); color: var(--ink); }
.fine { font-size: .82rem; color: var(--muted); }
.estimate .fine { color: var(--muted-d); }

/* Contact */
.contact { padding: clamp(80px, 11vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 6vw, 90px); align-items: stretch; }
address { font: normal 400 1.6rem/1.35 var(--serif); margin-bottom: 10px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 28px 0; font-size: .95rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.reach { display: grid; gap: 6px; margin-bottom: 30px; }
.reach a { text-decoration: none; font-size: 1.02rem; }
.reach a:hover { color: var(--brass); }
.map { position: relative; min-height: 440px; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.25) contrast(1.05); }

/* Footer */
.foot { background: var(--ink); color: var(--muted-d); padding: 70px 0 110px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; align-items: start; }
.foot-logo { width: 120px; margin-bottom: 18px; }
.foot nav { display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brass-l); }
.social { display: flex; gap: 20px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.foot .fine { color: #8D8374; }
.legal { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(226, 198, 144, .12); }

/* Mobile dock */
.dock { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame img, .ticker-track { animation: none; }
}

/* Tablet */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { justify-self: start; }
  .hero-media { max-width: 520px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .tile-lg { grid-column: span 2; grid-row: auto; }
  .tile-lg figure { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-right: 0; padding-left: 0; border-bottom: 1px solid rgba(226, 198, 144, .12); }
  .faq, .two, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .menu { display: block; }
  #nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  #nav.open { opacity: 1; visibility: visible; }
  #nav a:not(.btn) { font-size: .9rem; }
  .brand img { width: 78px; }
  .hero { padding-top: 120px; }
  .hero-media::before { inset: 14px -14px -14px 14px; }
  .hero-facts { gap: 20px; }
  .hero-facts b { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  .tile-lg { grid-column: auto; }
  .tile-lg figure { aspect-ratio: 4 / 5; }
  .split { grid-template-columns: 1fr; }
  .reverse .split-media { order: 0; }
  .split-media::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
  .foot-grid { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(22, 19, 15, .96); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(226, 198, 144, .25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { text-align: center; padding: 16px 0; color: var(--cream); text-decoration: none; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
  .dock a + a { border-left: 1px solid rgba(226, 198, 144, .15); }
  .dock a:last-child { color: var(--ink); background: var(--gold); }
}
