:root {
  /* image-led: soil / brass / stone — logo stays as mark, page breathes */
  --soil: #8c6844;
  --soil-deep: #5e452e;
  --brass: #b08955;
  --stone: #f3f1ec;
  --stone-2: #e7e2d9;
  --paper: #faf9f6;
  --ink: #1c1b1a;
  --ink-soft: #2e2c2a;
  --muted: #6f6a63;
  --line: rgba(28, 27, 26, 0.1);
  --header: 92px;
  --font-d: "Sora", system-ui, sans-serif;
  --font-s: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  /* aliases so older rules still resolve */
  --plum: var(--ink);
  --plum-2: var(--ink-soft);
  --plum-3: #3f3c38;
  --bar: var(--soil);
  --bar-2: var(--brass);
  --mist: var(--stone);
  --mist-2: var(--stone-2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-d);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100%;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(176, 137, 85, 0.14), transparent 58%),
    radial-gradient(700px 480px at 100% 0%, rgba(140, 104, 68, 0.08), transparent 55%),
    linear-gradient(180deg, #faf9f6 0%, var(--stone) 50%, #e9e4db 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--soil); color: #fff; }

.skip {
  position: absolute; left: 14px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px;
}
.skip:focus { top: 14px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap-wide { width: min(1400px, calc(100% - 24px)); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header);
  display: flex; align-items: center;
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: blur(14px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 249, 246, 0.94);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(1400px, calc(100% - 24px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand img {
  height: 64px; width: auto;
  background: transparent !important;
  mix-blend-mode: normal;
  transition: transform .5s var(--ease);
}
.site-footer .brand-lockup img {
  height: 58px; width: auto; margin-bottom: 14px;
  filter: none;
  opacity: 1;
}
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.9rem; font-weight: 500;
  position: relative;
}
.nav a:not(.btn) { color: var(--ink-soft); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--soil), var(--brass));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.active:not(.btn)::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .3s var(--ease);
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { content: ""; top: -8px; }
.nav-toggle span::after { content: ""; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  background: linear-gradient(120deg, var(--ink) 0%, var(--soil-deep) 100%);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 14px 34px rgba(28, 27, 26, 0.16);
  transform: translate3d(var(--bx), var(--by), 0);
  transition: box-shadow .3s var(--ease), filter .3s;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 18px 40px rgba(28, 27, 26, 0.22); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(28, 27, 26, 0.2);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); filter: none; }
.btn-light {
  background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgba(28, 27, 26, 0.12);
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.84rem; }
.nav a.btn,
.nav a.btn:link,
.nav a.btn:visited,
.nav a.btn:hover,
.nav a.btn:active {
  color: #fff !important;
}

/* ——— HERO: full-bleed core photo, brand first ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f6f1f5;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%;
  transform: scale(1.08);
  filter: saturate(0.92) hue-rotate(-18deg) contrast(1.04);
  animation: heroZoom 20s var(--ease) forwards;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 27, 26, 0.42) 0%, rgba(28, 27, 26, 0.14) 58%, transparent 100%),
    linear-gradient(0deg, rgba(28, 27, 26, 0.32) 0%, transparent 52%);
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-copy {
  position: relative; z-index: 1;
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
  padding: calc(var(--header) + 40px) 0 72px;
  display: grid; gap: 22px;
  max-width: 880px;
  margin-left: max(12px, calc((100% - 1400px) / 2 + 12px));
}
.hero-logo {
  width: min(480px, 88vw);
  height: auto;
  background: transparent !important;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  opacity: 0; transform: translateY(28px);
  animation: rise 1.1s var(--ease) 0.1s forwards;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #e2d4bc;
  opacity: 0; animation: rise 1s var(--ease) 0.25s forwards;
}
.hero-kicker::before {
  content: ""; width: 42px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, #fff, var(--brass));
}
.hero h1 {
  font-family: var(--font-s);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 10ch;
  opacity: 0; animation: rise 1.1s var(--ease) 0.35s forwards;
}
.hero h1 em {
  font-style: italic;
  color: #e8d5b5;
}
.hero .lead {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  color: rgba(246, 241, 245, 0.78); max-width: 34rem;
  opacity: 0; animation: rise 1.1s var(--ease) 0.5s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: rise 1.1s var(--ease) 0.65s forwards;
}
.hero .btn { background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.hero .btn:hover { filter: none; background: var(--brass); color: #fff; }
.hero .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none;
}
.hero .btn-ghost:hover { background: #fff; color: var(--plum); border-color: #fff; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* photo-led manifesto */
.manifesto-visual {
  padding: 0 !important;
  background: none !important;
}
.manifesto-visual img {
  width: 100%; height: 100%; min-height: min(62vw, 560px);
  object-fit: cover; border-radius: 32px;
  box-shadow: 0 40px 80px rgba(28, 27, 26, 0.16);
}
.manifesto-visual .grid,
.manifesto-visual .pierce,
.manifesto-visual .mark { display: none; }

/* dual image story */
.shot-duo {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.shot {
  position: relative; overflow: hidden; border-radius: 28px;
  min-height: 320px;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 1.2s var(--ease);
}
.shot:hover img { transform: scale(1.05); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(28,27,26,.68) 0%, transparent 55%);
}
.shot figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1;
  color: #fff; font-family: var(--font-s); font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.shot figcaption small {
  display: block; font-family: var(--font-d); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-bottom: 6px;
}
.shot.tall { min-height: 420px; }

/* lab panes with photo heads */
.lab-pane .pane-photo {
  margin: -8px -8px 22px;
  border-radius: 18px; overflow: hidden; aspect-ratio: 16/10;
}
.lab-pane .pane-photo img { width: 100%; height: 100%; object-fit: cover; }
.lab-pane.dark .pane-photo { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

.process-band {
  position: relative; border-radius: 32px; overflow: hidden;
  min-height: 280px; margin-bottom: 28px;
}
.process-band img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.process-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,27,26,.78), rgba(28,27,26,.28));
}
.process-band .inner {
  position: relative; z-index: 1; padding: clamp(28px, 5vw, 48px);
  color: #fff; max-width: 34rem;
}
.process-band h2 { color: #fff; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 80;
  width: 0; background: linear-gradient(90deg, var(--soil), var(--brass));
}

/* ribbon */
.ribbon {
  position: relative;
  border-block: 1px solid var(--line);
  background: rgba(252, 250, 251, 0.7);
  overflow: hidden;
  padding: 18px 0;
}
.ribbon-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 38s linear infinite;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--plum-3);
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 48px; }
.ribbon-track span::after {
  content: ""; width: 10px; height: 10px; border-radius: 2px;
  background: linear-gradient(135deg, var(--plum), var(--bar-2));
  transform: rotate(45deg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bar); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 999px; background: var(--plum);
}
h2 {
  font-family: var(--font-s);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--plum);
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }
.section-head .lead { margin-top: 16px; }

.manifesto {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.manifesto-visual {
  position: relative; min-height: min(62vw, 560px);
  border-radius: 32px;
  background: linear-gradient(160deg, #2a2825 0%, #5e452e 100%);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(28, 27, 26, 0.16);
}
.manifesto-visual .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 75%);
}
.manifesto-visual .mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 40px;
}
.manifesto-visual .mark strong {
  font-family: var(--font-s);
  font-size: clamp(4rem, 12vw, 8rem);
  color: rgba(255,255,255,0.94);
  font-weight: 400; line-height: 0.9;
  text-align: center;
}
.manifesto-visual .pierce {
  position: absolute; left: -8%; right: -8%; height: 22px;
  top: 58%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), rgba(138,107,141,0.9), transparent);
  transform: rotate(-4deg);
  box-shadow: 0 0 40px rgba(255,255,255,0.25);
}
.manifesto-copy h2 { margin-bottom: 18px; }
.manifesto-copy .lead { margin-bottom: 28px; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 8px;
}
.stat-row div {
  padding: 16px 0 0;
  border-top: 2px solid var(--plum);
}
.stat-row b {
  display: block; font-family: var(--font-s);
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--plum); line-height: 1;
}
.stat-row span {
  display: block; margin-top: 8px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* tests as pierced columns — not cards */
.lab-stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  position: relative;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.lab-stage::before {
  content: "";
  position: absolute; left: 50%; top: 8%; bottom: 8%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--bar), transparent);
  z-index: 2;
}
.lab-pane { padding: clamp(28px, 4vw, 48px); position: relative; z-index: 1; }
.lab-pane.dark {
  background: linear-gradient(165deg, #2a2825 0%, #1c1b1a 100%);
  color: #f6f3ee;
}
.lab-pane h3 {
  font-family: var(--font-s); font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 8px 0 12px;
}
.lab-pane > p { color: var(--muted); margin-bottom: 28px; max-width: 34ch; }
.lab-pane.dark > p { color: rgba(246, 241, 245, 0.68); }
.test-rail { display: grid; gap: 0; }
.test-rail li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  transform: translateX(0);
  transition: transform .35s var(--ease), color .25s;
}
.lab-pane.dark .test-rail li { border-top-color: rgba(255,255,255,0.1); }
.test-rail li:first-child { border-top: 0; }
.test-rail li:hover { transform: translateX(6px); color: var(--bar); }
.lab-pane.dark .test-rail li:hover { color: #e2c9e4; }
.test-rail .idx {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--bar);
}
.lab-pane.dark .test-rail .idx { color: var(--bar-2); }

.process {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.process article {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: 24px;
  background: rgba(252, 250, 251, 0.72);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.process article:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(28, 27, 26, 0.1);
}
.process article::after {
  content: "";
  position: absolute; left: -20%; right: -20%; height: 14px; bottom: 28%;
  background: linear-gradient(90deg, transparent, rgba(176,137,85,0.28), transparent);
  transform: rotate(-3deg); pointer-events: none;
}
.process .n {
  font-family: var(--font-s); font-size: 3.4rem; color: var(--plum);
  line-height: 1; margin-bottom: 18px; position: relative; z-index: 1;
}
.process h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1;
}
.process p { color: var(--muted); position: relative; z-index: 1; }

.cta {
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(176,137,85,0.28), transparent 60%),
    linear-gradient(135deg, #2a2825 0%, #1c1b1a 55%, #5e452e 100%);
  color: #f6f3ee;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  box-shadow: 0 40px 80px rgba(28, 27, 26, 0.18);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: -10%; right: -10%; height: 20px; top: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: rotate(-2deg);
}
.cta h2 { color: #fff; position: relative; }
.cta .lead { color: rgba(246,241,245,0.72); margin-top: 12px; position: relative; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

.page-hero {
  padding: calc(var(--header) + 64px) 0 48px;
}
.page-hero h1 {
  font-family: var(--font-s); font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.98; color: var(--plum); margin: 12px 0 14px;
}

.contact-layout {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: start;
}
.contact-list { display: grid; gap: 0; }
.contact-list a, .contact-list div {
  display: grid; gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bar);
}
.contact-list strong, .contact-list b {
  font-size: 1.2rem; font-weight: 600;
}
.form {
  display: grid; gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(252,250,251,0.9);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(28, 27, 26, 0.08);
}
.form label {
  display: grid; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.form input, .form textarea, .form select {
  min-height: 50px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--line);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid rgba(140, 104, 68, 0.35); border-color: var(--soil);
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  background: #1c1b1a; color: rgba(246, 243, 238, 0.72);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 0.78rem;
}

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 28px; height: 28px; }

.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .manifesto, .lab-stage, .process, .cta, .contact-layout, .footer-grid, .stat-row, .shot-duo {
    grid-template-columns: 1fr;
  }
  .lab-stage::before { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header) 0 auto 0;
    background: rgba(252,250,251,0.97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: .4s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .hero-copy { margin-left: auto; }
  .shot, .shot.tall { min-height: 260px; }
}
