/* ===================================================================
   LuxBuro — Version B · "Measured Light"
   A cool, precise, gallery-meets-datasheet direction.
   Display: Space Grotesk · Accent: Newsreader italic · Body: Hanken
   Grotesk · Data: IBM Plex Mono
   =================================================================== */

:root {
  /* --- paper / ink (warm — sampled from the logo artwork) --- */
  --cream:    #F5F2EA;
  --paper:    var(--cream);
  --paper-2:  #E9E6DF;
  --paper-3:  #FAF8F4;
  --ink:      #17181C;
  --ink-2:    #37383C;
  --ink-dim:  rgba(23, 24, 28, 0.62);
  --ink-muted:rgba(23, 24, 28, 0.42);
  --line:     rgba(23, 24, 28, 0.14);
  --line-soft:rgba(23, 24, 28, 0.07);

  /* --- brand gold (logo dots, X letterform, tagline) --- */
  --accent:       #D49045;
  --accent-text:  #9C6A2E;
  --accent-deep:  #B0783B;
  --accent-bright:#E0A352;
  --beige:        #EADFC8;

  /* --- near-black ink for contrast sections --- */
  --night:    #17181C;
  --night-2:  #202126;
  --on-night:        #E3E2DF;
  --on-night-dim:    rgba(227, 226, 223, 0.64);
  --on-night-muted:  rgba(227, 226, 223, 0.42);
  --line-night: rgba(227, 226, 223, 0.14);

  /* --- type --- */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --serif:   'Newsreader', Georgia, serif;
  --body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* --- layout (carried over, proven) --- */
  --container: 1320px;
  --pad:     clamp(20px, 4vw, 56px);
  --section: clamp(80px, 12vw, 160px);
  --radius:  2px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--body);
  background: var(--cream);
  transition: background-color 900ms cubic-bezier(.4,0,.2,1);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- shared structural bits ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }

/* eyebrow — datasheet field label */
.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }
.on-night .eyebrow { color: var(--accent-bright); }
.on-night .eyebrow::before { background: var(--accent-bright); }

/* serif-italic accent — the signature LuxBuro move */
em, .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.on-night em, .on-night .accent { color: var(--accent-bright); }

/* headings */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.h-display { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 500; }
.h-1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.h-2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.h-3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-dim); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--ink-dim); }

/* mono datum line */
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: background .25s, color .25s, transform .25s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-night .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.on-night .btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--night); }
.on-night .btn--ghost { background: transparent; color: var(--on-night); border-color: var(--line-night); }
.on-night .btn--ghost:hover { background: var(--on-night); color: var(--night); }

/* inline arrow link */
.link {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s, border-color .25s;
}
.link:hover { gap: 14px; border-color: var(--accent); }
.on-night .link { color: var(--accent-bright); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 240, 238, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { height: 44px; width: auto; display: block; }
.footer .brand__logo { height: 36px; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand__word {
  font-family: var(--display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.nav__cta { margin-left: 4px; }
.nav__cta .btn { padding: 11px 18px; }
.nav__menu-cta { display: none; }
.nav__toggle {
  display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 14px; color: var(--ink); cursor: pointer;
}

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px var(--pad) 26px;
  }
  .nav.is-open .nav__link { font-size: 16px; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav.is-open .nav__menu-cta {
    display: inline-flex; margin-top: 16px; width: 100%; justify-content: center;
  }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; background: var(--night); color: var(--on-night);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,24,28,0.50) 0%, rgba(23,24,28,0.74) 60%, var(--night) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: clamp(70px,11vw,140px) var(--pad) clamp(40px,6vw,70px);
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
}
.hero__top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-night-dim); margin-bottom: clamp(28px,5vw,56px);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 7rem); font-weight: 500; max-width: 16ch;
  margin-bottom: 30px; color: var(--beige);
}
.hero h1 em { color: var(--accent-bright); }
.hero__sub { color: var(--on-night-dim); max-width: 56ch; font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* corner registration marks */
.reg { position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--accent-bright); }
.reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.reg::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.reg--tl { top: 22px; left: 22px; } .reg--tr { top: 22px; right: 22px; }
.reg--bl { bottom: 22px; left: 22px; } .reg--br { bottom: 22px; right: 22px; }

/* markets ribbon */
.ribbon {
  border-top: 1px solid var(--line-night);
  margin-top: clamp(36px,6vw,64px); padding-top: 22px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-night-muted);
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
}
.ribbon span:first-child { color: var(--accent-bright); }

/* ---------- section header ---------- */
.s-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px,5vw,60px); max-width: 70ch; }
.s-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; gap: 30px; flex-wrap: wrap; }
.s-head--row > div { max-width: 60ch; }

/* ---------- solution cards (home + solutions teaser) ---------- */
.grid-solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sol-card {
  background: var(--paper); padding: clamp(24px,3vw,38px);
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  transition: background .25s, color .25s;
}
.sol-card:hover { background: var(--paper-3); }
.sol-card__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.sol-card h3 { font-size: clamp(1.1rem,1.6vw,1.4rem); }
.sol-card p { color: var(--ink-dim); font-size: 15px; }
@media (max-width: 860px){ .grid-solutions { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .grid-solutions { grid-template-columns: 1fr; } }

/* ---------- full-bleed image break ---------- */
.fullbleed { position: relative; }
.fullbleed img { width: 100%; height: clamp(340px, 56vw, 640px); object-fit: cover; }
.fullbleed__cap {
  position: absolute; left: var(--pad); bottom: clamp(22px,4vw,40px);
  color: var(--on-night); font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem,3.5vw,2.6rem); text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.fullbleed__cap .mono { display:block; color: var(--accent-bright); font-weight: 400; margin-bottom: 8px; letter-spacing: 0.18em; text-transform: uppercase; text-shadow:none; }

/* ---------- brand square cards (our-brands) ---------- */
.grid-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.6vw,22px); }
@media (max-width: 900px){ .grid-brands { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-brands { grid-template-columns: 1fr; } }

.brand-card {
  aspect-ratio: 1 / 1;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px,2.4vw,30px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.brand-card::after {
  content: ""; position: absolute; top: 16px; right: 16px;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--line-soft),var(--line-soft)) center/100% 1px no-repeat,
    linear-gradient(var(--line-soft),var(--line-soft)) center/1px 100% no-repeat;
  opacity: 0; transition: opacity .25s;
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(20,24,26,.4); }
.brand-card:hover::after { opacity: 1; }
.brand-card:focus-within { border-color: var(--accent); }
.brand-card__top { display:flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.brand-card__idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink-muted); }
.brand-card__origin { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-align: right; }
.brand-card__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem,2.6vw,2.1rem); letter-spacing: -0.025em; line-height: 1.02; margin-top: auto; }
.brand-card__desc { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; margin-top: 12px; }
.brand-card__go { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; gap: 8px; transition: gap .25s; }
.brand-card:hover .brand-card__go { gap: 14px; }
/* ---- brand logo on card (visible from start; grows on hover) ---- */
.brand-card__logo-wrap { display: flex; align-items: center; min-height: 64px; margin: 6px 0 4px; }
.brand-card__logo {
  height: 52px; width: auto; max-width: 78%; object-fit: contain; object-position: left center;
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.16,.8,.2,1), filter .3s ease;
}
.brand-card:hover .brand-card__logo,
.brand-card:focus-within .brand-card__logo { transform: scale(1.16); }
.brand-card__name { transition: color .25s ease; }
.brand-card:hover .brand-card__name,
.brand-card:focus-within .brand-card__name { color: var(--accent); }
@media (max-width: 560px){ .brand-card__logo { height: 46px; } }
/* ---- staggered reveal: cards cascade in as the grid scrolls into view ---- */
.grid-brands .brand-card.reveal { transition-delay: 0ms; }
.grid-brands .brand-card.reveal:nth-child(3n+2) { transition-delay: 90ms; }
.grid-brands .brand-card.reveal:nth-child(3n+3) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce){ .grid-brands .brand-card.reveal { transition-delay: 0ms; } }
.stretch::after { content:""; position:absolute; inset:0; } /* full-card click */

/* ---------- featured product blocks ---------- */
.fp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,4vw,60px); align-items: center; padding-block: clamp(48px,7vw,90px); border-top: 1px solid var(--line); }
.fp:first-of-type { border-top: 0; }
.fp:nth-child(even) .fp__media { order: 2; }
.fp__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 4 / 3; }
.fp__media img { width: 100%; height: 100%; object-fit: cover; }
.fp__media .reg { position:absolute; }
.fp__brand { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display:flex; gap:12px; align-items:center; }
.fp__brand .dot { width:5px;height:5px;border-radius:50%;background:var(--accent); }
.fp h3 { font-size: clamp(1.8rem,3.4vw,2.9rem); margin: 14px 0 18px; }
.fp h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.fp__story a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: rgba(23,24,28,.35); transition: text-decoration-color .2s ease; }
.fp__story a:hover { text-decoration-color: var(--ink); }
.fp__story { color: var(--ink-dim); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }
.spec-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin: 26px 0 12px; }
.spec-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-list li {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px; line-height: 1.4;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before { content: attr(data-i); color: var(--accent); flex: 0 0 auto; font-size: 11px; }
.fp__link { margin-top: 24px; }
@media (max-width: 820px){
  .fp { grid-template-columns: 1fr; gap: 26px; }
  .fp:nth-child(even) .fp__media { order: 0; }
}

/* video embed */
.video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- work / project tiles ---------- */
.grid-work { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,26px); }
@media (max-width: 900px){ .grid-work { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-work { grid-template-columns: 1fr; } }
.work-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 4/3; }
.work-tile img { width:100%;height:100%;object-fit:cover; transition: transform .5s; }
.work-tile:hover img { transform: scale(1.04); }
.work-tile__cap { position:absolute; left:18px; bottom:16px; right:18px; color: var(--on-night); z-index:2; }
.work-tile__cap .mono { color: var(--accent-bright); letter-spacing:0.14em; text-transform:uppercase; display:block; margin-bottom:5px; font-size:13px; font-weight:600; }
.work-tile__cap strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem,1.6vw,1.3rem); }
.work-tile::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(12,38,46,.78)); z-index:1; }

/* ---------- solutions page rows ---------- */
.sol-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,4vw,64px); align-items: center; padding-block: clamp(40px,6vw,80px); border-top: 1px solid var(--line); }
.sol-row:nth-child(even) .sol-row__media { order: -1; }
.sol-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--night); }
.sol-row__media img { width:100%;height:100%;object-fit:cover; }
.sol-row h2 { font-size: clamp(1.7rem,3vw,2.5rem); margin: 14px 0 16px; }
.sol-row__brands { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); transition: border-color .2s,color .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 820px){ .sol-row { grid-template-columns: 1fr; gap: 22px; } .sol-row:nth-child(even) .sol-row__media { order: 0; } }

/* ---------- page hero (interior pages) ---------- */
.phero { padding-block: clamp(70px,9vw,120px) clamp(40px,5vw,64px); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; }
.phero > .container { position: relative; z-index: 1; }
.phero .ripple-field--phero { z-index: 0; }
.phero h1 { margin: 20px 0 22px; max-width: 18ch; }

/* ---------- brand deep page hero ---------- */
.bhero { position: relative; background: var(--night); color: var(--on-night); padding-block: clamp(64px,9vw,120px); overflow:hidden; }
.bhero__inner { position: relative; z-index: 2; }
.bhero h1 { font-size: clamp(2.6rem,7vw,5.4rem); margin: 20px 0 18px; }
.bhero__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,2.4vw,2rem); color: var(--accent-bright); max-width: 30ch; }
.bhero__meta { margin-top: 26px; display:flex; flex-wrap:wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-dim); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px,5vw,72px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.info-block { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.info-block .eyebrow { margin-bottom: 12px; }
.info-block a, .info-block p { display:block; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.info-block a:hover { color: var(--accent); }

/* generic prose for studio/work intros */
.prose p { max-width: 64ch; color: var(--ink-dim); margin-bottom: 18px; font-size: 16.5px; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* stat / fact row */
.facts { display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background: var(--line); border:1px solid var(--line); margin-top: clamp(30px,4vw,50px); }
.fact { background: var(--paper); padding: clamp(20px,2.5vw,30px); }
.fact__n { font-family: var(--display); font-weight:600; font-size: clamp(1.8rem,3vw,2.6rem); letter-spacing:-0.03em; }
.fact__l { font-family: var(--mono); font-size: 11.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--ink-dim); margin-top:8px; }
@media (max-width:760px){ .facts { grid-template-columns: repeat(2,1fr); } }

/* CTA band */
.cta-band { background: var(--night); color: var(--on-night); position: relative; overflow:hidden; }
.cta-band__inner { display:flex; align-items:center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: clamp(56px,8vw,110px); }
.cta-band h2 { font-size: clamp(1.9rem,4vw,3.4rem); max-width: 18ch; }
.cta-band h2 em { color: var(--accent-bright); }

/* ---------- footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(48px,6vw,80px) 30px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand .brand__word { font-size: 22px; }
.footer__tag { color: var(--ink-dim); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; font-weight: 500; }
.footer__col a { display:block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bot { display:flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px,5vw,64px); padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase; }
@media (max-width: 760px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* utility */
.center { text-align: center; }
.mt-l { margin-top: clamp(30px,4vw,52px); }
.divider { height:1px; background: var(--line); border:0; }
.skip { position:absolute; left:-9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-family: var(--mono); font-size: 12px; }

/* ---- Full-bleed video hero (landing) ---------------------------------- */
.hero--video .hero__video {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
}
.hero--video .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,24,28,0.74) 0%, rgba(23,24,28,0.34) 44%, rgba(23,24,28,0) 72%),
    linear-gradient(0deg, rgba(23,24,28,0.82) 0%, rgba(23,24,28,0.12) 46%, rgba(23,24,28,0) 70%);
}
.hero--video .hero__inner {
  min-height: 100vh; min-height: 100svh;
  justify-content: flex-end;
  padding-bottom: clamp(54px, 7vw, 96px);
}
.hero--video .hero__top { margin-bottom: 20px; }
/* scroll cue */
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(234,223,200,0.55); border-radius: 13px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__scroll span {
  width: 3px; height: 9px; border-radius: 2px; background: var(--accent);
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(9px); opacity: .3; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__video { /* video still shows first frame; browsers honor reduced-motion for autoplay where supported */ }
  .hero__scroll span { animation: none; }
}

/* ---- Full-bleed scroll scenes (image-led, section-by-section) ---------- */
.scene { position: relative; height: 92vh; height: 92svh; min-height: 540px; overflow: hidden; display: flex; }
.scene.reveal { opacity: 1; transform: none; }           /* the band itself doesn't shift */
.scene__media { position: absolute; inset: 0; overflow: hidden; }
.scene__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); transition: transform 1.8s cubic-bezier(.16,.8,.2,1); will-change: transform;
}
.scene.is-in .scene__media img { transform: scale(1); }
.scene__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,24,28,0.30) 0%, rgba(23,24,28,0) 28%),
    linear-gradient(0deg, rgba(23,24,28,0.82) 0%, rgba(23,24,28,0.12) 46%, rgba(23,24,28,0) 70%);
}
.scene__cap { position: relative; z-index: 2; align-self: flex-end; width: 100%; padding-bottom: clamp(48px,7vw,98px); }
.scene__cap .eyebrow { color: var(--accent-bright); }
.scene__title {
  font-family: var(--display); font-weight: 500; color: var(--beige);
  font-size: clamp(2.4rem, 6.4vw, 5.2rem); letter-spacing: -0.02em; line-height: 1.0;
  margin: 16px 0 20px; max-width: 16ch;
}
.scene__title em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.scene__cap .link { color: var(--beige); }
.scene__cap .container {
  transform: translateY(28px); opacity: 0;
  transition: transform .9s cubic-bezier(.16,.8,.2,1) .12s, opacity .9s ease .12s;
}
.scene.is-in .scene__cap .container { transform: none; opacity: 1; }
.section--afterscene { padding-top: clamp(50px, 7vw, 92px); }
@media (prefers-reduced-motion: reduce) {
  .scene__media img, .scene__cap .container { transition: none; transform: none; opacity: 1; }
}

/* ---- Featured Work — photo + text rows ------------------------------- */
.project-rows { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 96px); }
.project-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 4vw, 68px);
  align-items: center;
}
.project-row--rev .project-row__media { order: 2; }
.project-row__media { overflow: hidden; border: 0.5px solid var(--line); }
.project-row__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,.8,.2,1);
}
.project-row:hover .project-row__media img { transform: scale(1.04); }
.project-row__title {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.05;
  margin: 12px 0 14px;
}
.project-row__desc { color: var(--ink-dim); max-width: 42ch; margin-bottom: 18px; }
.project-row__tags { margin-bottom: 14px; }
.project-row__tags em { text-transform: none; letter-spacing: 0; font-size: 1.12em; }
.project-row__desc.story { display: block; margin-top: 8px; line-height: 1.55; }
@media (max-width: 760px) {
  .project-row { grid-template-columns: 1fr; }
  .project-row--rev .project-row__media { order: 0; }
}

/* ---- Bold animated brand index (landing) ----------------------------- */
.brands-bold .s-head { margin-bottom: clamp(20px, 3vw, 36px); }
.brand-index { border-top: 1px solid var(--line); }
/* staggered scroll-in: rows cascade in waves of four */
.brand-index .brand-line.reveal { transition-delay: 0ms; }
.brand-index .brand-line.reveal:nth-child(4n+2) { transition-delay: 80ms; }
.brand-index .brand-line.reveal:nth-child(4n+3) { transition-delay: 160ms; }
.brand-index .brand-line.reveal:nth-child(4n+4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce){ .brand-index .brand-line.reveal { transition-delay: 0ms; } }
.brand-line {
  position: relative; display: grid; align-items: center;
  grid-template-columns: auto 1fr auto clamp(210px, 22vw, 300px) auto; gap: clamp(14px, 3vw, 44px);
  padding: clamp(16px, 2.3vw, 30px) clamp(8px, 1.4vw, 20px);
  border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate;
}
.brand-line::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(212,144,69,0.12), rgba(212,144,69,0) 70%);
  opacity: 0; transition: opacity .45s ease;
}
.brand-line__idx { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); align-self: start; padding-top: .4em; }
.brand-line__name {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.9vw, 2.4rem); line-height: 1.0; color: var(--ink);
  text-transform: uppercase;
  transition: color .4s ease, transform .55s cubic-bezier(.16,.8,.2,1);
}
.brand-line__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px;
  opacity: .55; transform: translateX(6px); transition: opacity .4s ease, transform .55s cubic-bezier(.16,.8,.2,1); }
.brand-line__origin { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.brand-line__tag { font-size: 13px; color: var(--ink-dim); max-width: 30ch; }
.brand-line__arrow { font-size: 1.5rem; color: var(--accent); opacity: 0; transform: translateX(-12px); transition: opacity .45s ease, transform .55s cubic-bezier(.16,.8,.2,1); }
.brand-line:hover .brand-line__name, .brand-line:focus-visible .brand-line__name { color: var(--accent); transform: translateX(8px); }
.brand-line:hover .brand-line__meta { opacity: 1; transform: none; }
.brand-line:hover .brand-line__arrow { opacity: 1; transform: none; }
.brand-line:hover::before { opacity: 1; }
@media (max-width: 720px) {
  .brand-line { grid-template-columns: auto 1fr auto; }
  .brand-line__meta, .brand-line__arrow { display: none; }
}
@media (max-width: 640px) {
  .brand-line { grid-template-columns: auto 1fr; }
  .brand-line__logobox { display: none; }
}
/* marquee */
.brand-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px,2.4vw,30px) 0; background: var(--paper-3); }
.brand-marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: lx-marquee 32s linear infinite; }
.brand-marquee__track span { font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; color: var(--ink-muted); padding: 0 clamp(18px,2.4vw,34px); }
.brand-marquee__dot { color: var(--accent) !important; font-size: 0.7em !important; }
@keyframes lx-marquee { to { transform: translateX(-50%); } }
.brand-marquee:hover .brand-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce){ .brand-marquee__track { animation: none; } }

/* ---- brand logo: optical bounding box so every mark reads at one size ---- */
.brand-line__logobox {
  width: clamp(150px, 16vw, 200px); height: 56px; padding: 0;
  display: flex; align-items: center; justify-content: flex-start;
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.16,.8,.2,1);
}
.brand-line__logo {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; object-position: left center; display: block;
  opacity: .95;
  transform-origin: left center;
  transition: opacity .3s ease;
}
/* per-logo optical-scale overrides — baseline values, fine-tune to taste */
.brand-line__logobox[data-brand="lluria"]            .brand-line__logo { transform: scale(0.95); }
.brand-line__logobox[data-brand="backlight"]         .brand-line__logo { transform: scale(0.85); }
.brand-line__logobox[data-brand="eoslight"]          .brand-line__logo { transform: scale(0.95); }
.brand-line__logobox[data-brand="lucifer"]           .brand-line__logo { transform: scale(1.00); }
.brand-line__logobox[data-brand="promotech"]         .brand-line__logo { transform: scale(0.90); }
.brand-line__logobox[data-brand="eldoled"]           .brand-line__logo { transform: scale(0.95); }
.brand-line__logobox[data-brand="corporate-friends"] .brand-line__logo { transform: scale(1.15); }
.brand-line__logobox[data-brand="ghm-eclatec"]       .brand-line__logo { transform: scale(1.05); }
/* hover: grow the whole cell (composes with per-logo base scale) + full ink */
.brand-line:hover .brand-line__logobox,
.brand-line:focus-visible .brand-line__logobox { transform: scale(1.08); }
.brand-line:hover .brand-line__logo,
.brand-line:focus-visible .brand-line__logo { opacity: 1; }
@media (max-width: 900px) { .brand-line__logobox { width: 150px; height: 48px; } }

/* ---- News page ------------------------------------------------------- */
.news-article { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
.news-article__media { overflow: hidden; border: 0.5px solid var(--line); aspect-ratio: 16 / 9; }
.news-article__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-article__meta { display: flex; gap: 18px; flex-wrap: wrap; }
.news-article__meta .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.news-article__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.06; margin: 12px 0 18px; color: var(--ink); }
.news-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-credits > div { display: flex; flex-direction: column; gap: 3px; }
.news-credits .mono { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.news-credits > div > span:last-child { color: var(--ink); font-size: 14px; }
@media (min-width: 900px) {
  .news-article { grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 4vw, 64px); }
  .news-article__media { aspect-ratio: 4 / 5; position: sticky; top: 96px; }
}

/* ===================================================================
   The Temperature Index — ambient per-brand cream tint + footer CCT readout
   =================================================================== */
.cct-readout {
  font-family: var(--body);            /* Hanken Grotesk */
  font-size: 11px;
  letter-spacing: .08em;
  opacity: .35;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;                 /* reserve space, no CLS */
}
/* LuXBuro mark — gold-base ripple (header + footer). Only the dots (.lux-mark-dots)
   animate via main.js; the wordmark image and gold X are never touched. Footer field
   (.lux-mark-dots--footer) is phase-offset half a cycle in JS. */
.brand__lockup { display: inline-flex; align-items: center; }
.lux-mark { overflow: visible; }
.lux-mark-dots > * { fill: #D49045; }   /* solid gold at rest (pre-JS + reduced motion) */

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  .lux-mark-dots > * { fill: #D49045 !important; opacity: 1 !important; }
}

/* ---------- tiled ripple fields (hero, brand-hero, …) ---------- */
.ripple-field { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: hidden; }
.hero .ripple-field--hero,
.bhero .ripple-field--brand-hero { z-index: 1; }   /* above media, below hero text (z-index:2) */
@media (max-width: 720px) { .ripple-field--hero { display: none; } }  /* drop homepage hero field on mobile; brand-hero kept */

/* ---------- beige ripple surfaces (contact bg · dividers · card hover) ---------- */
/* contact page: continuous gold wave behind the form/info */
.contact-canvas { position: relative; }
.contact-canvas .ripple-field--contact { z-index: 0; }
.contact-canvas > section { position: relative; z-index: 1; }

/* section divider: a single row the wave sweeps once on scroll-in */
.ripple-divider { position: relative; width: 100%; height: 30px; margin: 0 auto; overflow: visible; }
.ripple-divider .ripple-field--divider { position: absolute; inset: 0; z-index: 0; }

/* work card: a hidden constellation in a band below the card, fired from the cursor on hover */
.project-row { position: relative; }
.project-row .ripple-field--card {
  position: absolute; inset: auto; left: -40px; right: -40px; bottom: -46px;
  width: auto; height: 60px; z-index: 0; pointer-events: none; overflow: visible;
}

/* mobile <=720px: drop contact bg + card band; dividers become a plain rule */
@media (max-width: 720px) {
  .ripple-field--contact, .ripple-field--card { display: none; }
  .ripple-divider { height: 1px; background: var(--line); }
  .ripple-divider .ripple-field--divider { display: none; }
}

/* ---- Start-a-brief form -------------------------------------------- */
.brief-subtitle {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 60ch;
  line-height: 1.65;
}

.brief-form__progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.brief-form__progress-track {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.brief-form__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.brief-form__step-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* steps — only .is-active is shown */
.brief-form__step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}
.brief-form__step.is-active {
  display: block;
  animation: bf-step-in .28s ease both;
}
@keyframes bf-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.brief-form__legend {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  float: none;
  width: 100%;
  padding: 0;
}

/* field layout */
.brief-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.brief-form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
@media (max-width: 640px) {
  .brief-form__row--2 { grid-template-columns: 1fr; }
}

/* labels */
.brief-form__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.brief-form__req { color: var(--accent); margin-left: 1px; }
.brief-form__hint {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.brief-form__hint-inline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: 4px;
}

/* controls */
.brief-form__input,
.brief-form__select,
.brief-form__textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.brief-form__input:focus,
.brief-form__select:focus,
.brief-form__textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(212, 144, 69, .14);
}
.brief-form__input::placeholder,
.brief-form__textarea::placeholder { color: var(--ink-muted); }
.brief-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317181C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.brief-form__textarea { resize: vertical; min-height: 140px; }
.brief-form__file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  padding: 10px 0;
  cursor: pointer;
}

/* error text */
.brief-form__error {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #c0392b;
  min-height: 1em;
}

/* scope chips */
.brief-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-label { cursor: pointer; }
.chip-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip-label span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  color: var(--ink-2);
  transition: background .18s, border-color .18s, color .18s;
  user-select: none;
}
.chip-label:hover span,
.chip-label input:focus-visible + span {
  border-color: var(--accent-deep);
  background: var(--cream);
}
.chip-label input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* consent */
.brief-form__field--consent { margin-top: 8px; }
.brief-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.brief-form__checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

/* navigation row */
.brief-form__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* success panel */
.brief-form__success {
  display: flex;
  flex-direction: column;
  padding-block: clamp(40px, 8vw, 80px);
}
.brief-form__success[hidden] { display: none; }

/* server error banner */
.brief-form__submit-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(192, 57, 43, .06);
  border-left: 3px solid #c0392b;
  font-size: 14px;
  color: #c0392b;
}
.brief-form__submit-error a { color: inherit; text-decoration: underline; }
.brief-form__submit-error[hidden] { display: none; }
