/* ============================================================
   MAD PLAID MEDIA GROUP — v2
   Hero: cipher.tv-style clickable image cluster (dark stage)
   Body: noth.in-style editorial layout (bright cream paper)
   Brand: burgundy + cream, Fraunces (display) + Archivo (UI)
   ============================================================ */

:root {
  --burgundy:        #7c2233;
  --burgundy-deep:   #5c1523;
  --burgundy-bright: #a83049;
  --gold:            #b98a4b;
  --cream:           #f5eedf;

  /* Dark stage */
  --bg:      #140f0e;
  --bg-2:    #1e1614;
  --bg-3:    #281d1a;
  --d-hi:    #f5eedf;
  --d-mid:   #cdbcac;
  --d-low:   #93826f;
  --d-line:  rgba(245,238,223,0.14);

  /* Paper (body) */
  --paper:   #f4ecdb;
  --paper-2: #ece0c9;
  --ink:     #201613;
  --ink-2:   #6a574c;
  --ink-3:   #97887a;
  --p-line:  rgba(32,22,19,0.16);
  --p-line-2:rgba(32,22,19,0.28);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--burgundy-bright); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Tiny mono-ish labels (noth.in signature) */
.tag {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.tag-b { color: var(--burgundy); }
.tag-bracket::before { content: "[ "; opacity: .5; }
.tag-bracket::after { content: " ]"; opacity: .5; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter);
  mix-blend-mode: normal;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease), color .3s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--cream);
}
.nav.on-paper { color: var(--ink); }
.nav.scrolled {
  padding-block: .75rem;
  background: #17110f;
  border-bottom: 1px solid var(--d-line);
  color: var(--cream);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .02em; position: relative; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.15rem !important;
  opacity: 1 !important; font-weight: 600 !important; transition: background .25s var(--ease), color .25s var(--ease);
}
.nav.scrolled .nav-cta:hover, .nav .nav-cta:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.nav-toggle { display: none; width: 30px; height: 26px; position: relative; z-index: 210; }
.nav-toggle span { position: absolute; left: 2px; right: 2px; height: 2px; background: currentColor; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1){ top: 6px; } .nav-toggle span:nth-child(2){ bottom: 6px; }
body.menu-open .nav-toggle span:nth-child(1){ top: 12px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2){ bottom: 12px; transform: rotate(-45deg); }

/* ============================================================
   HERO — clickable image cluster (cipher.tv)
   ============================================================ */
.hero { position: relative; min-height: 100svh; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.hero::after { /* vignette */
  content:""; position:absolute; inset:0; pointer-events:none; z-index:3;
  background: radial-gradient(130% 100% at 50% 46%, transparent 62%, rgba(15,10,9,.42) 100%);
}
/* Hero text sits centred; the image ring orbits around it */
.hero-head {
  position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 780px); text-align: center; pointer-events: none;
}
.hero-head .tag { color: var(--gold); }
.hero-head h1 {
  color: var(--cream); font-size: clamp(2.2rem, 5.6vw, 4.4rem); margin-top: 1rem; line-height: .98; letter-spacing: -.03em;
  text-shadow: 0 4px 40px rgba(20,15,14,.85), 0 2px 12px rgba(20,15,14,.9);
}
.hero-head h1 em { font-style: italic; color: var(--cream); }
.hero-head p { color: var(--d-mid); max-width: 40ch; margin: 1.1rem auto 0; font-size: clamp(.95rem,1.4vw,1.08rem); }

/* Canvas render surface fills the hero; cluster is drawn in JS */
.hero-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; display: block;
  touch-action: pan-y; cursor: default;
}
.hero-canvas.pointing { cursor: pointer; }
.hero-hint {
  position: absolute; left: 0; right: 0; bottom: 4.6rem; z-index: 4; text-align: center;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--d-low);
  pointer-events: none;
}

/* Accessible + no-JS fallback list of the same links (visually hidden but focusable) */
.hero-index {
  position: absolute; z-index: 5; margin: 0; padding: 0; list-style: none;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  left: 0; bottom: 0;
}
.hero-index a:focus-visible {
  position: fixed; top: 4.5rem; left: 50%; transform: translateX(-50%);
  width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--bg-2); color: var(--cream); padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--gold); font-size: .85rem; z-index: 300;
}
/* If JS/canvas is unavailable, reveal the list as a simple gallery of links */
.no-canvas .hero-canvas, .no-canvas .hero-hint { display: none; }
.no-canvas .hero-index {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem;
  max-width: min(1180px,92vw); margin: 2rem auto 0;
}
.no-canvas .hero-index a { display: block; padding: 1rem; border: 1px solid var(--d-line); border-radius: 4px; color: var(--d-mid); }

.hero-foot {
  position: relative; z-index: 4; margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 0 1.6rem; color: var(--d-low);
}
.hero-foot .tag { color: var(--d-low); }
.scroll-hint { display: inline-flex; align-items: center; gap: .6rem; color: var(--d-mid); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-hint .dot { width: 22px; height: 34px; border: 1px solid var(--d-line); border-radius: 12px; position: relative; }
.scroll-hint .dot::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:6px; border-radius:2px; background: var(--gold); transform: translateX(-50%); animation: sd 1.6s var(--ease) infinite; }
@keyframes sd { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,12px)} }
@media (prefers-reduced-motion: reduce){ .scroll-hint .dot::after{ animation:none; } }

/* ============================================================
   PAPER BODY
   ============================================================ */
.paper { background: var(--paper); color: var(--ink); position: relative; }
.paper .section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.rule { height: 1px; background: var(--p-line); border: 0; }

/* Big editorial statement */
.statement { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.statement .meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: 1.4rem; border-bottom: 1px solid var(--p-line); }
.statement .meta .r { color: var(--ink-3); }
.statement h2 {
  font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); max-width: 20ch;
}
.statement h2 em { font-style: italic; color: var(--burgundy); }
.statement .sub { max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem,1.4vw,1.15rem); margin-top: .5rem; }

/* Featured banner */
.feature { margin-top: clamp(2.5rem,5vw,4rem); position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 21/9; background: var(--paper-2); display: block; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.feature:hover img { transform: scale(1.03); }
.feature .fmeta { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(1.2rem,3vw,2.2rem); background: linear-gradient(to top, rgba(15,10,9,.7), transparent 55%); color: var(--cream); }
.feature .fmeta .t { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2.4rem); line-height: 1; }
.feature .fmeta .k { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.feature .arrow { width: 46px; height: 46px; border: 1px solid rgba(245,238,223,.5); border-radius: 999px; display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.feature:hover .arrow { background: var(--cream); color: var(--ink); }
.feature .arrow svg { width: 18px; height: 18px; }
@media (max-width: 700px){ .feature { aspect-ratio: 4/3; } }

/* Three-column editorial row */
.editorial { display: grid; grid-template-columns: 0.9fr 1.4fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.editorial .col-label .tag { color: var(--burgundy); }
.editorial .col-body p { font-size: clamp(1.15rem,1.8vw,1.5rem); line-height: 1.45; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.editorial .col-body p + p { margin-top: 1rem; }
.editorial .col-visual { aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: var(--bg); }
.editorial .col-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px){ .editorial { grid-template-columns: 1fr; gap: 1.4rem; } .editorial .col-visual { aspect-ratio: 16/9; } }

/* Services — editorial hover list (noth.in) */
.svc-list { border-top: 1px solid var(--p-line-2); }
.svc-row {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.5rem; align-items: center;
  padding: clamp(1.3rem,3vw,2.4rem) 0; border-bottom: 1px solid var(--p-line);
  position: relative; transition: padding .4s var(--ease);
}
.svc-row .num { font-family: var(--serif); font-size: 1rem; color: var(--ink-3); }
.svc-row .name { font-family: var(--serif); font-size: clamp(1.8rem,4.6vw,3.4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); transition: color .35s var(--ease), transform .45s var(--ease); }
.svc-row .name em { font-style: italic; }
.svc-row .desc { color: var(--ink-2); font-size: .92rem; max-width: 34ch; justify-self: end; text-align: right; transition: color .35s; }
.svc-row .plus { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .3s; }
.svc-row:hover { background: linear-gradient(to right, transparent, rgba(124,34,51,.05)); }
.svc-row:hover .name { color: var(--burgundy); transform: translateX(14px); }
@media (hover:hover){ .svc-row:hover .desc { color: var(--ink); } }
@media (max-width: 720px){
  .svc-row { grid-template-columns: 2.4rem 1fr; }
  .svc-row .desc { display: none; }
}

/* WORKS — asymmetric staggered grid */
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3.5rem); }
.works-head h2 { font-size: clamp(1.9rem,4.6vw,3.4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; text-align: right; }
.works-head h2 em { font-style: italic; color: var(--burgundy); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filter { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--p-line-2); font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: all .25s var(--ease); }
.filter:hover { border-color: var(--burgundy); color: var(--burgundy); }
.filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.works { column-count: 3; column-gap: clamp(1rem,2vw,1.8rem); }
.w-item { break-inside: avoid; margin-bottom: clamp(1rem,2vw,1.8rem); display: block; }
.w-item .frame { position: relative; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.w-item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease), filter .5s var(--ease); filter: saturate(.94); }
.w-item:hover img { transform: scale(1.045); filter: saturate(1.04); }
.w-item .cap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .1rem .2rem; }
.w-item .cap .t { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); line-height: 1.1; }
.w-item .cap .k { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.w-item.hide { display: none; }
@media (max-width: 900px){ .works { column-count: 2; } }
@media (max-width: 520px){ .works { column-count: 1; } }

/* Process — editorial numbered rows */
.flow-list { border-top: 1px solid var(--p-line-2); }
.flow-row { display: grid; grid-template-columns: 5rem 1fr 2fr; gap: clamp(1rem,3vw,2.5rem); padding: clamp(1.4rem,3vw,2.2rem) 0; border-bottom: 1px solid var(--p-line); align-items: baseline; }
.flow-row .l { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: var(--burgundy); line-height: 1; }
.flow-row .h { display: flex; flex-direction: column; gap: .3rem; }
.flow-row .h .k { color: var(--ink-3); }
.flow-row .h h4 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.05rem,2vw,1.4rem); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.flow-row p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 720px){ .flow-row { grid-template-columns: 3rem 1fr; } .flow-row p { grid-column: 1 / -1; } }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.studio-grid h2 { font-size: clamp(2rem,5vw,3.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.studio-grid h2 em { font-style: italic; color: var(--burgundy); }
.studio-grid p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1rem; max-width: 52ch; }
.studio-grid .sign { font-family: var(--serif); font-style: italic; color: var(--burgundy); font-size: 1.3rem; margin-top: 1.4rem; }
.studio-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.studio-badges span { border: 1px solid var(--p-line-2); color: var(--ink-2); border-radius: 999px; padding: .35rem .85rem; font-size: .76rem; }
.studio-visual { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.studio-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px){ .studio-grid { grid-template-columns: 1fr; } .studio-visual { aspect-ratio: 16/10; order: -1; } }

/* Photography strip */
.photo-strip { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(.5rem,1vw,.9rem); margin-top: 2.5rem; }
.photo-strip a { aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); transition: transform .8s var(--ease); }
.photo-strip a:hover img { transform: scale(1.06); }
.photo-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 2.4rem; }
@media (max-width: 820px){ .photo-strip { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 460px){ .photo-strip { grid-template-columns: repeat(2,1fr); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .88rem; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-bright); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translate(3px,-3px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--burgundy); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--p-line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--burgundy); color: var(--burgundy); transform: translateY(-2px); }

/* ============================================================
   CONTACT + FOOTER (dark bookend)
   ============================================================ */
.dark { background: var(--bg); color: var(--d-hi); }
.dark .section { padding-block: clamp(4rem,8vw,7rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.contact-grid h2 { color: var(--cream); font-size: clamp(2rem,5vw,3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: .8rem 0 1.2rem; }
.contact-grid h2 em { font-style: italic; color: var(--burgundy-bright); }
.contact-grid .lede { color: var(--d-mid); max-width: 46ch; font-size: 1.05rem; margin-bottom: 2.2rem; }
.contact-info a.row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--d-line); transition: color .25s; }
.contact-info a.row:hover { color: var(--gold); }
.contact-info .ci-ico { width: 22px; height: 22px; color: var(--burgundy-bright); flex: none; }
.contact-info .ci-l { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--d-low); display: block; }
.contact-info .ci-v { font-size: 1.02rem; color: var(--d-hi); }
.review-card { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.8rem; padding: 1rem; border: 1px solid var(--d-line); border-radius: 4px; background: var(--bg-2); }
.review-card img { width: 68px; height: 68px; border-radius: 6px; flex: none; }
.review-card .rc-t { font-family: var(--serif); font-size: 1.05rem; color: var(--cream); }
.review-card .rc-s { font-size: .82rem; color: var(--d-mid); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

.form { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--d-low); }
.field label .req { color: var(--burgundy-bright); }
.field input, .field select, .field textarea { background: var(--bg-2); border: 1px solid var(--d-line); border-radius: 4px; padding: .85rem 1rem; color: var(--d-hi); font: inherit; font-size: .95rem; transition: border-color .25s, background .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--d-low); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn { justify-content: center; margin-top: .2rem; }
.form-note { font-size: .8rem; color: var(--d-low); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Giant footer wordmark (noth.in) */
.footer { background: var(--bg); border-top: 1px solid var(--d-line); padding: clamp(3rem,6vw,5rem) 0 2rem; overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-cols p { color: var(--d-mid); font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h5 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--d-low); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--d-mid); font-size: .92rem; padding: .32rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.bigmark { font-family: var(--serif); font-weight: 500; color: var(--cream); line-height: .8; letter-spacing: -.03em; font-size: clamp(3.5rem, 16vw, 15rem); white-space: nowrap; margin: 1rem 0 1.5rem; }
.bigmark em { font-style: italic; color: var(--burgundy-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--d-line); }
.footer-bottom p { font-size: .8rem; color: var(--d-low); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 36px; height: 36px; border: 1px solid var(--d-line); border-radius: 999px; display: grid; place-items: center; transition: all .25s var(--ease); }
.socials a:hover { border-color: var(--gold); background: var(--bg-3); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; color: var(--d-mid); }
@media (max-width: 760px){ .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols .footer-brand { grid-column: span 2; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Mobile nav + hero fallback
   ============================================================ */
@media (max-width: 880px){
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    background: var(--bg-2); color: var(--cream);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem;
    padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .4s var(--ease);
    border-left: 1px solid var(--d-line); z-index: 205;
  }
  body.menu-open .nav-links { transform: none; }
  .nav-links a { font-size: 1.15rem; opacity: 1; }
}

@media (max-width: 720px){
  .hero-hint { bottom: 4rem; }
  .hero-foot { padding-inline: var(--gutter); }
}

/* ============================================================
   INTERIOR PAGES (Work / Services / Process / Studio / Photography)
   ============================================================ */
.page-hero {
  position: relative; background: var(--bg); color: var(--d-hi); overflow: hidden;
  padding: clamp(8rem, 18vh, 11rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--d-line);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 82% 18%, rgba(168,48,73,.22), transparent 70%),
              radial-gradient(50% 55% at 4% 96%, rgba(201,154,91,.10), transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: .55rem; align-items: center; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--d-low); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--d-mid); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .5; }
.page-hero .tag { color: var(--gold); }
.page-hero h1 { color: var(--cream); font-size: clamp(2.5rem, 7.5vw, 5.6rem); line-height: .98; letter-spacing: -.03em; margin-top: 1rem; max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--burgundy-bright); }
.page-hero .lead { color: var(--d-mid); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 58ch; margin-top: 1.5rem; }
.page-hero .ph-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"]::after { width: 100%; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; margin-top: 1rem; }
.sec-head h2 em { font-style: italic; color: var(--burgundy); }
.sec-head p { color: var(--ink-2); margin-top: 1rem; font-size: 1.05rem; }

.more-link { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--burgundy); margin-top: 2rem; }
.more-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.more-link:hover { color: var(--burgundy-bright); }
.more-link:hover svg { transform: translateX(5px); }
.more-link.on-dark { color: var(--gold); }
.more-link.on-dark:hover { color: var(--cream); }

/* Service detail cards */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--p-line); border: 1px solid var(--p-line); border-radius: 4px; overflow: hidden; }
.detail-card { background: var(--paper); padding: clamp(1.7rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1rem; }
.detail-card .dc-num { font-family: var(--serif); color: var(--gold); font-size: .95rem; }
.detail-card .dc-ico { width: 42px; height: 42px; color: var(--burgundy); }
.detail-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); }
.detail-card h3 em { font-style: italic; }
.detail-card p { color: var(--ink-2); font-size: .98rem; }
.detail-card ul { list-style: none; padding: 0; margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.detail-card ul li { font-size: .76rem; color: var(--ink-2); border: 1px solid var(--p-line-2); border-radius: 999px; padding: .32rem .78rem; }
@media (max-width: 720px){ .detail-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--burgundy); color: var(--cream); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band .tag { color: rgba(245,238,223,.7); }
.cta-band h2 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; margin-top: 1rem; }
.cta-band h2 em { font-style: italic; }
.cta-band p { color: rgba(245,238,223,.8); max-width: 48ch; margin: 1.2rem auto 2rem; font-size: 1.05rem; }
.cta-band .btn-cream { background: var(--cream); color: var(--burgundy-deep); }
.cta-band .btn-cream:hover { background: #fff; transform: translateY(-2px); }

/* Compact process teaser */
.flow-mini { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.flow-mini span { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--p-line-2); border-radius: 999px; padding: .45rem .95rem; font-size: .82rem; color: var(--ink-2); }
.flow-mini span b { font-family: var(--serif); color: var(--burgundy); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--p-line-2); }
.faq details { border-bottom: 1px solid var(--p-line); padding: 1.3rem 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--burgundy); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--ink-2); margin-top: .9rem; max-width: 66ch; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--p-line); padding-top: 2rem; margin-top: 2.5rem; }
.stats .n { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--burgundy); display: block; line-height: 1; }
.stats .l { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: .4rem; display: block; }
@media (max-width: 640px){ .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; } }

/* Photography full gallery (photography page) */
.gallery { column-count: 3; column-gap: clamp(.8rem, 1.6vw, 1.4rem); }
.gallery a { display: block; break-inside: avoid; margin-bottom: clamp(.8rem, 1.6vw, 1.4rem); overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease), filter .5s var(--ease); filter: saturate(.96); }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.05); }
@media (max-width: 820px){ .gallery { column-count: 2; } }
@media (max-width: 480px){ .gallery { column-count: 1; } }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); padding: 1.5rem 0; margin-top: 2.2rem; }
.case-meta .m .l { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--d-low); display: block; margin-bottom: .4rem; }
.case-meta .m .v { color: var(--d-hi); font-size: .98rem; }
@media (max-width: 720px){ .case-meta { grid-template-columns: 1fr 1fr; gap: 1.3rem; } }

.placeholder-note { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px dashed var(--gold); border-radius: 999px; padding: .3rem .8rem; }

.case-block { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.case-block .k .tag { color: var(--burgundy); }
.case-block h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--ink); margin-bottom: .6rem; line-height: 1.05; }
.case-block h2 em { font-style: italic; color: var(--burgundy); }
.case-block p { color: var(--ink-2); font-size: 1.05rem; } .case-block p + p { margin-top: 1rem; }
.case-block ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.case-block ul li { margin-bottom: .4rem; }
@media (max-width: 760px){ .case-block { grid-template-columns: 1fr; gap: 1rem; } }

.case-figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.case-figure img { width: 100%; display: block; }
figure.case-figure figcaption { font-size: .8rem; color: var(--ink-3); padding: .7rem .2rem 0; }
.case-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 640px){ .case-two { grid-template-columns: 1fr; } }

.pull-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.28; color: var(--ink); max-width: 24ch; letter-spacing: -.01em; }
.pull-quote em { color: var(--burgundy); font-style: italic; }
.pull-quote .by { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.6rem; }

.next-case { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--p-line-2); padding-top: 2rem; }
.next-case .l { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.next-case a { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink); display: inline-flex; align-items: center; gap: .6rem; transition: gap .25s var(--ease), color .25s; }
.next-case a:hover { color: var(--burgundy); gap: .9rem; }

/* Case cards on the Work page */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 820px){ .case-cards { grid-template-columns: 1fr; } }
.case-card { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); display: block; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); filter: saturate(.95); }
.case-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.case-card .cc-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: linear-gradient(to top, rgba(12,8,8,.92) 0%, rgba(12,8,8,.15) 55%, transparent 75%); }
.case-card .cc-k { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.case-card .cc-t { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); line-height: 1.05; margin-top: .35rem; }
.case-card .cc-r { font-size: .82rem; color: var(--ink-mid, #cdbcac); margin-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; }

/* ============================================================
   NAV DROPDOWN — case studies under Work
   ============================================================ */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-item .caret { font-size: .62em; opacity: .55; transition: transform .25s var(--ease), opacity .25s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); opacity: .9; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px; /* transparent bridge so hover doesn't drop */
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s; z-index: 210;
}
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; }
.sub-inner {
  display: flex; flex-direction: column; min-width: 226px; padding: .5rem;
  background: #17110f; border: 1px solid var(--d-line); border-radius: 12px;
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
}
.sub-inner a { padding: .6rem .8rem; border-radius: 7px; font-size: .85rem; opacity: .82; white-space: nowrap; }
.sub-inner a::after { display: none !important; }
.sub-inner a:hover, .sub-inner a[aria-current="page"] { background: var(--bg-3); opacity: 1; }

@media (max-width: 880px){
  .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-item .caret { display: none; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; padding-top: .4rem; width: 100%; }
  .sub-inner { background: none; border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; gap: .1rem; }
  .sub-inner a { font-size: 1rem; padding: .4rem 0; }
}

/* ============================================================
   WORDPRESS BLOCK ADAPTATIONS
   Maps core blocks (Navigation, Buttons, Group) onto the theme's
   custom design so pages stay editable in the block editor.
   ============================================================ */

/* --- Reset core block spacing inside our own sections --- */
.wp-block-group.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.paper .wp-block-group.wrap,
.dark .wp-block-group.wrap { max-width: var(--wrap); }
.wp-block-group.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.wp-block-columns { margin-bottom: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: 4px; }

/* --- Header / nav --- */
.nav.wp-block-group {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding: 1.15rem var(--gutter); margin: 0;
  border-bottom: 1px solid transparent; color: var(--cream);
}
.nav .brand { display: inline-flex; align-items: center; gap: .65rem; }
.nav .brand-mark { display: inline-flex; }
.nav .brand .mark { width: 34px; height: 34px; }
.nav .wp-block-site-title { margin: 0; }
.nav .wp-block-site-title a {
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .01em; color: currentColor; text-decoration: none;
}
.nav-right { gap: 1.6rem !important; align-items: center; }

/* Navigation block styled like the original nav-links */
.wp-block-navigation { font-family: var(--sans); }
.wp-block-navigation .wp-block-navigation-item__content {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: currentColor; text-decoration: none; opacity: .82; position: relative;
}
.wp-block-navigation .wp-block-navigation-item__content:hover { opacity: 1; }
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { opacity: 1; color: var(--cream); }
.wp-block-navigation__container { gap: 2rem; }

/* Submenu = the Work dropdown */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: #17110f !important; border: 1px solid var(--d-line) !important;
  border-radius: 12px; box-shadow: 0 22px 55px rgba(0,0,0,.55);
  padding: .5rem; min-width: 226px;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: .6rem .8rem; border-radius: 7px; font-size: .85rem; white-space: nowrap;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--bg-3);
}

/* Nav CTA button */
.nav-cta-wrap { margin: 0; }
.nav .wp-block-button.nav-cta .wp-block-button__link {
  background: transparent; color: currentColor; border: 1px solid currentColor;
  border-radius: 999px; padding: .55rem 1.15rem; font-size: .82rem; font-weight: 600;
}
.nav .wp-block-button.nav-cta .wp-block-button__link:hover {
  background: var(--burgundy); border-color: var(--burgundy); color: var(--cream);
}

/* Mobile overlay */
@media (max-width: 880px){
  .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--bg-2); padding-top: 5rem;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; opacity: 1; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    background: none !important; border: none !important; box-shadow: none; padding-left: 1rem;
  }
}

/* --- CTA band button --- */
.cta-band .wp-block-button.btn-cream .wp-block-button__link {
  background: var(--cream); color: var(--burgundy-deep);
}
.cta-band .wp-block-button.btn-cream .wp-block-button__link:hover { background: #fff; }
.cta-band h2, .cta-band p { color: var(--cream); }
.cta-band p { color: rgba(245,238,223,.85); }

/* --- Footer blocks --- */
.footer .wp-block-site-title a { font-family: var(--serif); color: var(--cream); text-decoration: none; font-size: 1.05rem; }
.footer .footer-list { list-style: none; padding: 0; margin: 0; }
.footer .footer-list li { padding: .32rem 0; }
.footer .footer-list a { color: var(--d-mid); font-size: .92rem; text-decoration: none; }
.footer .footer-list a:hover { color: var(--cream); }
.footer h5 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--d-low); margin-bottom: 1rem; font-family: var(--sans); font-weight: 600; }
.footer .wp-block-social-links { gap: .5rem; }

/* --- Editor-only: make dark sections legible in the block editor --- */
.editor-styles-wrapper .paper { background: var(--paper); color: var(--ink); }
.editor-styles-wrapper .dark,
.editor-styles-wrapper .page-hero { background: var(--bg); color: var(--d-hi); }
.editor-styles-wrapper .hero { min-height: 60vh; }
