/* Iteration 1 - "Night Shift". Navy ground, paper ink, gold as the single accent.
   Dense index layout: the work reads like a studio ledger, not a card grid. */

:root {
  --bg: var(--navy);
  --bg-2: var(--navy-2);
  --bg-3: var(--navy-3);
  --ink: var(--paper);
  --muted: var(--muted-on-navy);
  --line: var(--line-on-navy);
  --line-strong: var(--line-on-navy-strong);
  --nav-h: 68px;
  --anchor-offset: 84;
}
html { background: var(--bg); color: var(--ink); color-scheme: dark; }
body { font-family: var(--f-sans); font-size: 17px; line-height: 1.55; background: var(--bg); color: var(--ink); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.35 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .n { color: var(--gold); }
.display { font-weight: 600; font-size: clamp(46px, 7.4vw, 118px); line-height: .96; letter-spacing: -.05em; }
.h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.04em; }
.h3 { font-weight: 600; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -.025em; }
.it { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.08em; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.plate { background: var(--gold); color: var(--navy); border-radius: 6px; padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.split-line { padding-block: .04em; margin-block: -.04em; }

/* ---------- buttons: gold face over a structural paper plate (no blur, no glow) ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--radius); font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  white-space: nowrap; transition: transform .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.btn-primary { color: var(--navy); margin: 0 5px 5px 0; }
.btn-primary::before, .btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; transition: transform .22s var(--ease); }
.btn-primary::before { background: var(--paper); transform: translate(5px, 5px); }
.btn-primary::after { background: var(--gold); }
.btn-primary:hover { transform: translate(3px, 3px); }
.btn-primary:hover::before { transform: translate(2px, 2px); }
.btn-primary:hover .icon { transform: translate(2px, -2px); }
.btn-primary:active { transform: translate(5px, 5px); }
.btn-primary:active::before { transform: translate(0, 0); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--ink); }
.btn-ghost:hover .icon { transform: translateY(2px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.link:hover { border-color: var(--gold); color: var(--gold); }
.link .icon { width: 15px; height: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; white-space: nowrap; }
.brand small { font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.clock { font: 500 12px/1 var(--f-mono); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.clock::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 2px; }
.menu-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.menu-btn .icon { width: 18px; height: 18px; }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55; background: var(--bg); padding: 12px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transform: translateY(-104%); transition: transform .5s var(--ease); overflow-y: auto; border-top: 1px solid var(--line); visibility: hidden; }
.menu.is-open { transform: none; visibility: visible; }
.menu-link { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 34px; letter-spacing: -.04em; line-height: 1.1; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-link .icon { width: 22px; height: 22px; color: var(--muted); }
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
@media (max-width: 1040px) {
  .nav-links, .nav-right .clock, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1041px) { .menu { display: none; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(88px, 11vw, 150px); border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px 48px; align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .eyebrow { padding-top: .6em; }
.sec-head .lead { max-width: 50ch; margin-top: 20px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } .sec-head .eyebrow { padding-top: 0; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 104px) 0; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.hero h1 { max-width: 15.5ch; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: end; margin-top: clamp(28px, 4vw, 52px); }
.hero-foot .lead { max-width: 54ch; color: var(--ink); opacity: .86; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; }
@media (max-width: 900px) { .hero-foot { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 104px); }
.fact { padding: 24px 20px 28px 0; border-right: 1px solid var(--line); min-width: 0; }
.fact + .fact { padding-left: 20px; }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-weight: 600; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact b small { font-size: .42em; letter-spacing: -.01em; margin-left: .3em; color: var(--muted); font-weight: 500; }
.fact > span { display: block; margin-top: 12px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .03em; color: var(--muted); text-transform: uppercase; max-width: 26ch; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- featured builds ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-media { position: relative; }
.frame { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--f-mono); color: var(--muted); }
.frame-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar a { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; flex: none; transition: color .2s var(--ease); }
.frame-bar a:hover { color: var(--gold); }
.frame-bar .icon { width: 14px; height: 14px; }
.frame-img { overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: absolute; right: -16px; bottom: -32px; width: 21%; min-width: 112px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.feature-meta .eyebrow { margin-bottom: 16px; }
.feature-meta p { margin-top: 16px; color: var(--muted); }
.feature-meta dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.feature-meta dt { font: 500 12px/1.65 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.feature-meta dd { font-size: 15px; line-height: 1.55; }
.feature-meta .actions { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .phone { right: 10px; bottom: -24px; width: 24%; }
  .feature-meta { margin-top: 12px; }
}

/* ---------- work index ---------- */
.index { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 220px) 64px 24px; gap: 20px; align-items: center;
  padding: 24px 14px; border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }
.row:hover, .row:focus-visible { background: var(--bg-2); }
.row-no { font: 500 13px/1 var(--f-mono); color: var(--muted); }
.row-main { min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.035em; line-height: 1.05; transition: transform .35s var(--ease); }
.row:hover .row-title { transform: translateX(10px); }
.row-desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 8px; max-width: 62ch; }
.row-type, .row-year { font: 500 12px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.row-year { text-align: right; }
.row-arrow { width: 22px; height: 22px; color: var(--muted); transition: transform .35s var(--ease), color .25s var(--ease); }
.row:hover .row-arrow { transform: translate(3px, -3px); color: var(--gold); }
.row-thumb { display: none; }
@media (max-width: 820px) {
  .row { grid-template-columns: 30px minmax(0, 1fr) 22px; padding: 22px 0; gap: 14px 12px; }
  .row-type, .row-year { display: none; }
  .row:hover { background: transparent; }
  .row:hover .row-title { transform: none; }
  .row-thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line); }
}
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: min(440px, 32vw); aspect-ratio: 16 / 10; pointer-events: none; opacity: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); will-change: transform, opacity; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: none), (pointer: coarse), (max-width: 820px) { .preview { display: none; } }

/* ---------- template mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .25s var(--ease); min-width: 0; }
.tile:hover { border-color: var(--gold); }
.tile-img { overflow: hidden; aspect-ratio: 16 / 10; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; font: 500 11px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); }
.tile figcaption b { color: var(--ink); font-weight: 500; }
.tile figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 28px 20px 8px 0; min-width: 0; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step .n { font: 500 12px/1 var(--f-mono); color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.step h3 { margin-top: 44px; font-weight: 600; font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 24px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step .n { grid-row: span 2; padding-top: 7px; }
  .step h3 { margin-top: 0; }
  .step p { margin-top: 0; }
}
@media (max-width: 560px) {
  .step, .step + .step { grid-template-columns: 1fr; }
  .step .n { grid-row: auto; padding-top: 0; margin-bottom: 8px; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; min-width: 0; }
.plan--partner { background: var(--bg-2); border-color: var(--line); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan-name { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.plan-price { margin-top: 28px; font-weight: 600; font-size: clamp(46px, 5vw, 70px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.plan-pitch { margin-top: 14px; color: var(--muted); max-width: 38ch; }
.plan ul { margin-top: 28px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.plan li .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.plan .btn { margin-top: 32px; align-self: flex-start; }
.audit { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 22px clamp(20px, 3vw, 40px); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.audit p b { font-weight: 600; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- about + receipts ---------- */
.about { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.photo { position: sticky; top: calc(var(--nav-h) + 32px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); max-width: 440px; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font: 500 11px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-2); }
.about-copy .h2 { margin-top: 18px; }
.about-copy .lead { margin-top: 28px; color: var(--ink); opacity: .88; }
.about-copy p + p { margin-top: 18px; }
.about-copy > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.pull { margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.22; letter-spacing: -.01em; }
.pull cite { display: block; margin-top: 12px; font: normal 500 12px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.receipts { margin-top: 48px; }
.receipts > .eyebrow { margin-bottom: 14px; }
.receipt { display: grid; grid-template-columns: 96px minmax(0, 1fr) 18px; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15.5px; transition: color .2s var(--ease); }
.receipt:last-child { border-bottom: 1px solid var(--line); }
.receipt .k { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.receipt .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease), color .2s var(--ease); }
.receipt:hover .icon { color: var(--gold); transform: translate(2px, -2px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 36px; }
.logos li { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.logos img { height: 22px; width: auto; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .photo { position: relative; top: 0; max-width: 340px; }
}
@media (max-width: 560px) { .receipt { grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 12px; } .receipt .k { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left;
  font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.3; }
.faq-q .icon { width: 22px; height: 22px; transition: transform .35s var(--ease), color .25s var(--ease); color: var(--muted); }
.faq-q:hover .icon { color: var(--gold); }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); color: var(--gold); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 26px; color: var(--muted); max-width: 66ch; }

/* ---------- contact + footer ---------- */
.contact { padding-block: clamp(96px, 12vw, 176px); border-top: 1px solid var(--line); }
.h-contact { margin-top: 24px; font-weight: 600; font-size: clamp(44px, 7.6vw, 124px); line-height: .95; letter-spacing: -.05em; max-width: 13.5ch; }
.contact .lead { margin-top: 28px; max-width: 54ch; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 44px; }
.copy-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 500 14px/1 var(--f-mono); transition: border-color .2s var(--ease), background-color .2s var(--ease); max-width: 100%; }
.copy-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn:hover { border-color: var(--ink); background: var(--bg-3); }
.copy-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.socials a { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); transition: color .2s var(--ease); font-size: 15px; }
.socials a:hover { color: var(--ink); }
.socials .icon { width: 18px; height: 18px; }
.footer { border-top: 1px solid var(--line); padding-block: 28px; font: 500 12px/1.6 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer a { border-bottom: 1px solid var(--line-strong); }
.footer a:hover { color: var(--ink); }
