/* =========================================================
   Outwright Atelier — "Gallery" design system
   Ported from the approved prototype into production CSS.
   ========================================================= */

:root {
  --paper: #fbfbf9;
  --warm: #f3f1ec;
  --ph: #eceae4;
  --ink: #141414;
  --dark: #0e0e0d;
  --on-dark: #f3f1ec;
  --accent: #e0531f;

  --pad: clamp(18px, 4vw, 60px);
  --pad-top: clamp(116px, 15vh, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  margin: 0;
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: 40px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  transition: opacity .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: 0.82; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { opacity: 0.86; }
.btn-outline { background: none; color: var(--ink); border: 1px solid rgba(20, 20, 20, 0.3); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
  transition: color .25s var(--ease);
}
.text-link b { font-weight: 600; transition: transform .35s var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link:hover b { transform: translateX(5px); }
.text-link-light { color: rgba(243, 241, 236, 0.8); }
.text-link-light:hover { color: #fff; }

.prose-link { color: var(--ink); border-bottom: 1px solid rgba(20, 20, 20, 0.3); transition: border-color .25s; }
.prose-link:hover { border-color: var(--accent); }

/* ---------- signature: dot-i + brand bullet ---------- */
.dot-i { position: relative; display: inline-block; }
.dot-i .tittle {
  position: absolute;
  left: 58%;
  bottom: 0.652em;
  width: 0.213em;
  height: 0.213em;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}
.bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 26px) var(--pad);
  background: rgba(251, 251, 249, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity .25s var(--ease);
}
.nav-links a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background .25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.nav-links a.active::before { background: var(--accent); }
.nav-cta {
  color: var(--paper) !important;
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 40px;
  font-weight: 500 !important;
  opacity: 1 !important;
}
.nav-cta::before { display: none; }
.nav-cta:hover { opacity: 0.82 !important; }

.menu-button { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-button span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.mobile-nav { display: none; }

/* ============================ LAYOUT ============================ */
main { display: block; min-height: 72vh; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.page-top { padding-top: var(--pad-top); }

.page-hero {
  padding: var(--pad-top) var(--pad) clamp(28px, 5vh, 56px);
}
.page-hero .eyebrow { margin-bottom: clamp(16px, 3vh, 28px); }
.page-hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.page-hero p.lead { margin: clamp(18px, 3vh, 28px) 0 0; max-width: 52ch; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: rgba(20, 20, 20, 0.7); }

.section { padding: clamp(40px, 7vh, 100px) 0; }
.section-pad { padding: clamp(40px, 7vh, 100px) var(--pad); }

/* ============================ REVEALS ============================ */
html.js [data-reveal] { opacity: 0; will-change: opacity, transform; transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js [data-reveal][data-init="up"], html.js [data-reveal]:not([data-init]) { transform: translateY(26px); }
html.js [data-reveal][data-init="rise"] { transform: translateY(135%); }
html.js [data-reveal][data-init="fade"] { transform: none; transition: opacity 1s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; padding: 0.32em 0 0.2em; margin: -0.32em 0 -0.2em; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ============================ HOME / WORK ============================ */
.hero-head { position: relative; padding: clamp(100px, 14vh, 150px) var(--pad) 0; }
.meta-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
  margin-bottom: clamp(30px, 5vh, 64px);
}
.wordmark {
  margin: 0;
  font-weight: 800;
  font-size: clamp(48px, 12vw, 212px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  will-change: transform, opacity;
}
.wordmark .muted { color: rgba(20, 20, 20, 0.3); }

.hero-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(32px, 5vh, 64px);
  align-items: end;
}
.hero-intro .lead {
  margin: 0;
  max-width: 42ch;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.82);
}
.hero-side { display: flex; flex-direction: column; gap: clamp(20px, 3.5vh, 34px); }
.pull-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 26ch;
}
.cue { cursor: pointer; background: none; border: none; padding: 0; text-align: left; }
.cue .arrow { display: inline-block; animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(7px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cue .arrow { animation: none; } }

.hero-fig {
  position: relative;
  margin: clamp(40px, 6vh, 84px) calc(-1 * var(--pad)) 0;
  height: clamp(380px, 66vh, 800px);
  overflow: hidden;
  background: var(--ph);
}
/* clip-path wipe: the figure opens outward from its centre as it enters */
html.js .hero-fig[data-reveal] {
  clip-path: inset(0 16% 0 16%);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), clip-path 1.4s var(--ease);
}
html.js .hero-fig[data-reveal].in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html.js .hero-fig[data-reveal] { clip-path: none; } }
.hero-fig img { position: absolute; top: -12%; left: 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.hero-fig .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(0deg, rgba(16, 16, 16, 0.55), rgba(16, 16, 16, 0)); pointer-events: none; }
.hero-cap {
  position: absolute;
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(16px, 3vh, 32px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: var(--paper);
}
.hero-cap .cap-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 8px; }
.hero-cap .cap-title { font-weight: 700; font-size: clamp(20px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.02em; }
.hero-cap .cap-meta { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-align: right; opacity: 0.85; white-space: nowrap; }

/* featured */
.featured { padding: clamp(40px, 7vh, 90px) 0 clamp(40px, 6vh, 80px); }
.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 0 var(--pad);
  margin-bottom: clamp(26px, 4vh, 48px);
}
.featured-head .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); margin-bottom: 12px; }
.featured-head h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 5vw, 70px); line-height: 0.95; letter-spacing: -0.035em; }
.featured-fig { margin: 0 var(--pad); height: clamp(300px, 50vh, 600px); overflow: hidden; background: var(--ph); }
.featured-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured-fig:hover img { transform: scale(1.04); }
.featured-desc { margin: clamp(24px, 4vh, 44px) auto 0; padding: 0 var(--pad); max-width: 760px; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; color: rgba(20, 20, 20, 0.72); }

/* horizontal rail */
.rail {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  padding: clamp(28px, 4vh, 48px) var(--pad) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: 0 0 auto; scroll-snap-align: start; width: clamp(260px, 38vw, 520px); }
.rail figure { margin: 0; height: clamp(200px, 30vw, 380px); overflow: hidden; background: var(--ph); }
.rail figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rail a:hover figure img { transform: scale(1.05); }
.rail .rail-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.rail .rail-meta h3 { margin: 0; font-size: clamp(16px, 1.5vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.rail .rail-meta span { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(20, 20, 20, 0.5); }

/* marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid rgba(20, 20, 20, 0.1); border-bottom: 1px solid rgba(20, 20, 20, 0.1); padding: clamp(14px, 1.6vw, 22px) 0; margin-top: clamp(40px, 6vh, 80px); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; animation: marq 34s linear infinite; will-change: transform; font-weight: 700; font-size: clamp(16px, 2vw, 34px); letter-spacing: -0.02em; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* manifesto / belief list (home) */
.belief { padding: clamp(50px, 8vh, 110px) var(--pad); }
.belief ul { list-style: none; margin: clamp(24px, 4vh, 44px) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(20, 20, 20, 0.14); }
.belief li { display: grid; grid-template-columns: 64px 1fr; gap: clamp(12px, 2vw, 28px); padding: clamp(20px, 3vh, 34px) 0; border-bottom: 1px solid rgba(20, 20, 20, 0.12); align-items: baseline; }
.belief li span { font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.4); }
.belief li p { margin: 0; font-size: clamp(18px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }
.belief li b { font-weight: 800; }

/* ============================ INDEX (projects list) ============================ */
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: var(--pad-top) var(--pad) clamp(34px, 5vh, 60px);
}
.index-head h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 6vw, 104px); line-height: 0.9; letter-spacing: -0.04em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border-radius: 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.index-list { padding: 0 var(--pad) clamp(60px, 10vh, 120px); border-top: 1px solid rgba(20, 20, 20, 0.16); margin: 0 var(--pad); }
.index-row {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(16px, 2.2vw, 28px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  transition: opacity .3s var(--ease);
}
.index-row .idx { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: rgba(20, 20, 20, 0.4); opacity: 0.6; transition: opacity .35s var(--ease); }
.index-row .rowname { display: inline-flex; align-items: baseline; gap: 14px; font-weight: 700; font-size: clamp(21px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.03em; transition: transform .5s var(--ease); }
.index-row .rowtag { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(13px, 1.1vw, 18px); letter-spacing: 0; color: rgba(20, 20, 20, 0.45); white-space: nowrap; }
.index-row .rowmeta { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(20, 20, 20, 0.55); }
.index-row .rowmeta .type { min-width: 7.5em; text-align: right; color: rgba(20, 20, 20, 0.4); }
.index-row:hover .rowname { transform: translateX(18px); }
.index-row:hover .idx { opacity: 1; }

#preview {
  position: fixed; top: 0; left: 0; z-index: 80;
  width: 300px; height: 380px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity .4s ease, transform .5s var(--ease);
  overflow: hidden;
  background: var(--ph);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45);
  will-change: transform, opacity;
}
#preview img { width: 100%; height: 100%; object-fit: cover; }

/* ============================ PROJECT DETAIL ============================ */
.project-hero { position: relative; height: clamp(360px, 70vh, 760px); overflow: hidden; background: var(--ph); }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 16, 16, 0.6), rgba(16, 16, 16, 0) 55%); }
.project-hero .ph-content { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vh, 56px); color: var(--paper); }
.project-hero .ph-content .eyebrow { color: rgba(243, 241, 236, 0.85); margin-bottom: 12px; }
.project-hero h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 6vw, 96px); line-height: 0.92; letter-spacing: -0.04em; }

.project-story { display: grid; grid-template-columns: 0.42fr 1fr; gap: clamp(34px, 5vw, 90px); padding: clamp(50px, 8vh, 110px) var(--pad); }
.project-story aside dl { margin: clamp(18px, 3vh, 28px) 0 0; display: grid; gap: 0; }
.project-story aside dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.14); }
.project-story aside dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(20, 20, 20, 0.5); }
.project-story aside dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.project-story article p { margin: 0 0 22px; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.7; color: rgba(20, 20, 20, 0.84); max-width: 60ch; }
.project-story article .eyebrow { margin-bottom: clamp(16px, 2.5vh, 24px); }
.project-story article .btn { margin-top: 10px; }

.project-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: center; padding: 0 var(--pad) clamp(50px, 8vh, 110px); }
.project-media figure { margin: 0; height: clamp(280px, 46vh, 540px); overflow: hidden; background: var(--ph); }
.project-media figure img { width: 100%; height: 100%; object-fit: cover; }
.project-media h2 { margin: 8px 0 14px; font-weight: 800; font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.project-media p { margin: 0; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: rgba(20, 20, 20, 0.7); max-width: 40ch; }

/* project gallery + lightbox */
.project-gallery { padding: 0 var(--pad) clamp(50px, 8vh, 110px); }
.project-gallery .ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(20px, 3vh, 32px); }
.project-gallery .ghead h2 { margin: 0; font-weight: 800; font-size: clamp(22px, 3vw, 42px); letter-spacing: -0.03em; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 1vw, 16px); }
.gallery-grid figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid.single { grid-template-columns: 1fr; }
.gallery-grid.single figure { aspect-ratio: 16 / 9; }

.lb { position: fixed; inset: 0; z-index: 120; background: var(--dark); display: flex; flex-direction: column; color: var(--on-dark); }
.lb[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(16px, 2.4vw, 28px) var(--pad); border-bottom: 1px solid rgba(243, 241, 236, 0.14); }
.lb-title { font-weight: 700; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -0.02em; }
.lb-sub { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(243, 241, 236, 0.6); margin-top: 5px; }
.lb-close { cursor: pointer; display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--on-dark); background: none; border: 1px solid rgba(243, 241, 236, 0.3); padding: 10px 18px; border-radius: 40px; transition: background .25s, color .25s; }
.lb-close:hover { background: var(--on-dark); color: var(--dark); }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: clamp(14px, 2.5vw, 40px); min-height: 0; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.8); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer; width: clamp(44px, 4vw, 58px); height: clamp(44px, 4vw, 58px); border-radius: 50%; border: 1px solid rgba(243, 241, 236, 0.3); background: rgba(14, 14, 13, 0.5); color: var(--on-dark); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.lb-nav:hover { background: var(--on-dark); color: var(--dark); }
.lb-prev { left: clamp(10px, 2vw, 28px); }
.lb-next { right: clamp(10px, 2vw, 28px); }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(12px, 2vw, 22px) var(--pad); border-top: 1px solid rgba(243, 241, 236, 0.14); }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-thumb { cursor: pointer; border: none; padding: 0; width: clamp(44px, 4vw, 62px); height: clamp(34px, 3vw, 46px); overflow: hidden; background: #222; opacity: 0.45; outline-offset: 2px; transition: opacity .25s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.active { opacity: 1; outline: 2px solid var(--on-dark); }
.lb-counter { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: rgba(243, 241, 236, 0.7); white-space: nowrap; }
@media (max-width: 880px) { .lb-thumbs { display: none; } .gallery-grid { grid-template-columns: 1fr; } }

.project-nav { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(34px, 5vh, 56px) var(--pad); border-top: 1px solid rgba(20, 20, 20, 0.14); margin: 0 var(--pad); }
.project-nav .next-title { font-weight: 800; font-size: clamp(26px, 4vw, 60px); letter-spacing: -0.035em; line-height: 1; transition: transform .4s var(--ease); display: inline-block; }
.project-nav .next-title:hover { transform: translateX(10px); }

/* ============================ SERVICES ============================ */
.detail-rows { padding: 0 var(--pad) clamp(40px, 6vh, 80px); border-top: 1px solid rgba(20, 20, 20, 0.16); margin: 0 var(--pad); }
.detail-row { display: grid; grid-template-columns: 64px 1.1fr 0.9fr; gap: clamp(16px, 2.5vw, 44px); padding: clamp(28px, 4vh, 52px) 0; border-bottom: 1px solid rgba(20, 20, 20, 0.12); align-items: start; }
.detail-row > span { font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.4); padding-top: 10px; }
.detail-row h2 { margin: 0 0 14px; font-weight: 800; font-size: clamp(24px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1; }
.detail-row > div > p { margin: 0; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; color: rgba(20, 20, 20, 0.78); max-width: 46ch; }
.detail-note p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(20, 20, 20, 0.7); }
.detail-note .eyebrow { margin: 0 0 6px; }
.detail-note .benefit-label { margin-top: 18px; }

/* ============================ PROCESS ============================ */
.process-rows { padding: 0 var(--pad) clamp(40px, 6vh, 80px); margin: 0 var(--pad); }
.process-row { display: grid; grid-template-columns: clamp(70px, 12vw, 200px) 1fr; gap: clamp(20px, 4vw, 60px); padding: clamp(30px, 5vh, 60px) 0; border-bottom: 1px solid rgba(20, 20, 20, 0.14); align-items: baseline; }
.process-row:first-child { border-top: 1px solid rgba(20, 20, 20, 0.16); }
.giant-step { margin: 0; font-weight: 800; font-size: clamp(48px, 10vw, 150px); line-height: 0.8; letter-spacing: -0.05em; color: rgba(20, 20, 20, 0.14); }
.process-row h2 { margin: 0 0 14px; font-weight: 800; font-size: clamp(26px, 3.6vw, 56px); letter-spacing: -0.035em; line-height: 1; }
.process-row > div > p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: rgba(20, 20, 20, 0.78); max-width: 54ch; }
.deliverable { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid rgba(20, 20, 20, 0.14); font-size: clamp(15px, 1.2vw, 17px) !important; color: rgba(20, 20, 20, 0.62) !important; }
.deliverable b { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ============================ ABOUT ============================ */
.about { background: var(--warm); padding: var(--pad-top) var(--pad) clamp(60px, 10vh, 120px); }
.about-grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: clamp(34px, 5vw, 90px); align-items: center; }
.about-fig { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about-fig img { width: 100%; height: 110%; position: relative; top: -5%; object-fit: cover; object-position: 50% 14%; filter: grayscale(1) contrast(1.04); will-change: transform; }
.about-copy h2 { margin: 0 0 clamp(24px, 3.5vh, 40px); font-weight: 800; font-size: clamp(30px, 4.4vw, 72px); line-height: 0.95; letter-spacing: -0.035em; }
.about-copy h2 .muted { color: rgba(20, 20, 20, 0.32); }
.about-copy .eyebrow { margin-bottom: clamp(20px, 3vh, 34px); }
.about-copy p { margin: 0 0 22px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: rgba(20, 20, 20, 0.8); max-width: 52ch; }
.about-copy .large-serif { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.4; color: var(--ink); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(20, 20, 20, 0.14); margin-top: clamp(30px, 5vh, 52px); border: 1px solid rgba(20, 20, 20, 0.14); }
.stat-strip .cell { background: var(--warm); padding: clamp(16px, 2vw, 24px); }
.stat-strip .num { font-weight: 800; font-size: clamp(24px, 3vw, 42px); letter-spacing: -0.03em; }
.stat-strip .num sup { font-size: 0.5em; vertical-align: super; }
.stat-strip .lbl { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 20, 20, 0.5); margin-top: 6px; line-height: 1.4; }

.story-block { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(50px, 8vh, 110px) var(--pad); }
.story-block .body-copy p { margin: 0 0 22px; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.7; color: rgba(20, 20, 20, 0.84); max-width: 58ch; }
.story-block .large-serif { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.35; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(20, 20, 20, 0.12); border: 1px solid rgba(20, 20, 20, 0.12); margin-top: clamp(24px, 4vh, 40px); }
.value-card { background: var(--paper); padding: clamp(20px, 2vw, 30px); }
.value-card span { font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.4); }
.value-card h3 { margin: 14px 0 10px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.value-card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(20, 20, 20, 0.65); }

/* ============================ CONTACT ============================ */
.contact { padding: var(--pad-top) var(--pad) clamp(40px, 6vh, 72px); }
.contact .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); margin-bottom: clamp(20px, 3vh, 36px); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-grid h2 { margin: 0; font-weight: 800; font-size: clamp(44px, 9vw, 150px); line-height: 0.86; letter-spacing: -0.045em; }
.contact-grid h2 .muted { color: rgba(20, 20, 20, 0.32); }
.contact-rows { margin-top: clamp(34px, 5vh, 60px); display: flex; flex-direction: column; border-top: 1px solid rgba(20, 20, 20, 0.14); }
.contact-rows a, .contact-rows .crow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid rgba(20, 20, 20, 0.14); color: var(--ink); transition: opacity .25s; }
.contact-rows a:hover { opacity: 0.6; }
.contact-rows .ckey { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 20, 20, 0.5); }
.contact-rows .cval { font-weight: 600; font-size: clamp(15px, 1.4vw, 21px); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label .eyebrow { color: rgba(20, 20, 20, 0.5); }
.form input, .form select, .form textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 16px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form button[type="submit"] { align-self: flex-start; border-radius: 0; padding: 16px 26px; font-size: 14px; }
.form h2 { margin: clamp(14px, 2vh, 24px) 0 4px; font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.form h2:first-child { margin-top: 0; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.ghost-button { font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.6); border-bottom: 1px solid rgba(20, 20, 20, 0.3); padding-bottom: 2px; }
.ghost-button:hover { color: var(--ink); }
.form-note { font-size: 13px; color: rgba(20, 20, 20, 0.5); margin: 4px 0 0; }

.thanks-card { border: 1px solid rgba(20, 20, 20, 0.16); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 300px; justify-content: center; }
.thanks-card h2 { margin: 0; font-weight: 800; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.03em; }
.thanks-card p { margin: 0; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; color: rgba(20, 20, 20, 0.7); max-width: 34ch; }
.hidden { display: none !important; }

/* home teasers (services / process preview) */
.teaser-2up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 70px); padding: clamp(50px, 8vh, 110px) var(--pad); border-top: 1px solid rgba(20, 20, 20, 0.12); }
.teaser-2up h2 { margin: 14px 0 18px; font-weight: 800; font-size: clamp(24px, 3vw, 46px); letter-spacing: -0.03em; line-height: 1; }
.home-list { list-style: none; margin: 0 0 22px; padding: 0; }
.home-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.1); align-items: baseline; }
.home-list li > span { font-size: 12px; font-weight: 600; color: rgba(20, 20, 20, 0.4); }
.home-list li b { display: block; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; letter-spacing: -0.01em; }
.home-list li p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(20, 20, 20, 0.6); }

/* shared "start" band */
.start-band { padding: clamp(50px, 9vh, 120px) var(--pad); text-align: center; }
.start-band h2 { margin: 0 0 clamp(20px, 3vh, 32px); font-weight: 800; font-size: clamp(30px, 5vw, 80px); line-height: 0.95; letter-spacing: -0.04em; }
.start-band .eyebrow { margin-bottom: 16px; }

/* ============================ BLOG ============================ */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding: var(--pad-top) var(--pad) clamp(34px, 5vh, 60px); }
.blog-head h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 6vw, 104px); line-height: 0.9; letter-spacing: -0.04em; }
.blog-head .blog-intro { margin: 0; max-width: 34ch; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.4; color: rgba(20, 20, 20, 0.7); }

.post-list { border-top: 1px solid rgba(20, 20, 20, 0.16); margin: 0 var(--pad); padding: 0 0 clamp(60px, 10vh, 120px); }
.post-row { cursor: pointer; display: grid; grid-template-columns: clamp(96px, 12vw, 170px) 1fr auto; align-items: baseline; gap: clamp(14px, 2.5vw, 40px); padding: clamp(22px, 3vw, 40px) clamp(8px, 1.4vw, 20px); border-bottom: 1px solid rgba(20, 20, 20, 0.12); transition: background .3s ease; }
.post-row:hover { background: rgba(20, 20, 20, 0.025); }
.post-date { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); }
.post-body { transition: transform .5s var(--ease); }
.post-row:hover .post-body { transform: translateX(12px); }
.post-title { font-weight: 700; font-size: clamp(22px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }
.post-excerpt { margin: 12px 0 0; max-width: 60ch; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.55; color: rgba(20, 20, 20, 0.62); }
.post-meta { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(20, 20, 20, 0.55); white-space: nowrap; }
.post-meta .read { color: rgba(20, 20, 20, 0.4); }

.article-view { position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--ink); overflow-y: auto; }
.article-view[hidden] { display: none; }
.article-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(16px, 2.4vw, 26px) clamp(18px, 4vw, 48px); background: rgba(251, 251, 249, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(20, 20, 20, 0.1); }
.article-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 20, 20, 0.55); }
.article-col { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 32px) clamp(80px, 12vh, 140px); }
.article-date { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); margin-bottom: clamp(18px, 3vh, 28px); }
.article-col h1 { margin: 0 0 clamp(28px, 5vh, 48px); font-weight: 800; font-size: clamp(34px, 5.5vw, 68px); line-height: 0.98; letter-spacing: -0.035em; }
.article-col p { margin: 0 0 clamp(20px, 3vh, 28px); font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.7; color: rgba(20, 20, 20, 0.84); }
.article-byline { margin-top: clamp(40px, 6vh, 70px); padding-top: 24px; border-top: 1px solid rgba(20, 20, 20, 0.14); display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.6); }
.article-byline .bullet { width: 9px; height: 9px; }
@media (max-width: 880px) {
  .blog-head { flex-direction: column; align-items: flex-start; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row:hover .post-body { transform: none; }
  .post-meta { order: -1; }
}

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid rgba(20, 20, 20, 0.12); background: var(--paper); }
.footer-main { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 8vh, 90px) var(--pad) clamp(34px, 5vh, 56px); }
.footer-brand a.fbrand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.footer-brand p { margin: 16px 0 18px; font-size: 14px; line-height: 1.6; color: rgba(20, 20, 20, 0.6); max-width: 34ch; }
.footer h4 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { font-size: 14px; color: rgba(20, 20, 20, 0.7); }
.footer ul a:hover { color: var(--ink); }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(20, 20, 20, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.social a:hover { background: var(--ink); color: var(--paper); }
.social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-bottom { border-top: 1px solid rgba(20, 20, 20, 0.12); }
.footer-bottom .fb-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px var(--pad); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(20, 20, 20, 0.45); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 880px) {
  .menu-button { display: flex; }
  .nav-links { display: none; }
  .nav.open .mobile-nav {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 0; left: 0; right: 0;
    padding: 84px var(--pad) 28px;
    background: var(--paper);
    border-bottom: 1px solid rgba(20, 20, 20, 0.1);
    z-index: -1;
  }
  .nav.open .mobile-nav a { padding: 12px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(20, 20, 20, 0.08); }
  .nav.open .mobile-nav a.nav-cta { background: var(--ink); color: var(--paper); border: none; border-radius: 40px; text-align: center; margin-top: 12px; padding: 14px; }
  .nav.open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-button span:nth-child(2) { opacity: 0; }
  .nav.open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-intro { grid-template-columns: 1fr; gap: 28px; }
  .featured-head { flex-direction: column; align-items: flex-start; }
  .index-head { flex-direction: column; align-items: flex-start; }
  .index-row { grid-template-columns: 40px 1fr; }
  .index-row .rowmeta { display: none; }
  .index-row:hover .rowname { transform: none; }
  #preview { display: none; }
  .project-story { grid-template-columns: 1fr; }
  .project-media { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 40px 1fr; }
  .detail-note { grid-column: 2; }
  .process-row { grid-template-columns: 1fr; gap: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .belief li { grid-template-columns: 40px 1fr; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .value-grid, .stat-strip { grid-template-columns: 1fr; }
  .meta-row span:nth-child(3), .meta-row span:nth-child(4) { display: none; }
}
