:root {
  --ink: #0c0a09;
  --ink-2: #14110e;
  --ink-3: #1c1814;
  --cream: #f1e8d6;
  --cream-2: rgba(241, 232, 214, 0.66);
  --cream-3: rgba(241, 232, 214, 0.38);
  --line: rgba(241, 232, 214, 0.12);
  --choc: #6b3a1f;
  --choc-2: #8a5130;
  --choc-light: #b98258;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--choc); color: var(--cream); }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--serif); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.grain {
  position: fixed; inset: -50%;
  z-index: 100; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

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

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 10, 9, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mono {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--cream-3); border-radius: 50%;
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.02em;
}
.nav__name { font-size: 15px; font-weight: 400; letter-spacing: 0.01em; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav__links a { color: var(--cream-2); transition: color 0.3s; position: relative; }
.nav__links a:hover { color: var(--cream); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--choc-light); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  color: var(--cream) !important;
  padding: 9px 18px; border: 1px solid var(--cream-3); border-radius: 100px;
  transition: background 0.3s, border-color 0.3s !important;
}
.nav__cta:hover { background: var(--choc); border-color: var(--choc); }
.nav__toggle { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 400; cursor: pointer;
  border: 0; background: none; color: var(--cream);
}
.btn--solid {
  padding: 16px 28px; border-radius: 100px;
  background: var(--choc); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.btn--solid::before {
  content: ""; position: absolute; inset: 0; background: var(--cream);
  transform: translateY(101%); transition: transform 0.5s var(--ease);
  border-radius: inherit;
}
.btn--solid:hover::before { transform: translateY(0); }
.btn--solid:hover { color: var(--ink); }
.btn--solid > * , .btn--solid { z-index: 0; }
.btn--solid { isolation: isolate; }
.btn--solid::before { z-index: -1; }
.btn--text { color: var(--cream-2); padding: 16px 4px; transition: color 0.3s; }
.btn--text::after { content: "→"; transition: transform 0.4s var(--ease); }
.btn--text:hover { color: var(--cream); }
.btn--text:hover::after { transform: translateX(5px); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 72% 45%, rgba(107, 58, 31, 0.22), transparent 70%),
    var(--ink);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 140px var(--gutter) clamp(56px, 9vh, 110px);
  pointer-events: none;
}
.hero__inner a { pointer-events: auto; }
.hero__kicker {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--choc-light); margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--choc-light); }
.hero__bottom {
  margin-top: clamp(36px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.hero__lead { max-width: 44ch; color: var(--cream-2); font-size: 17px; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  display: none; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-3);
}
.hero__scroll-track { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-track span {
  position: absolute; inset: 0; background: var(--choc-light);
  animation: track 2.4s var(--ease) infinite;
}
@keyframes track { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* intro animation */
[data-intro] { opacity: 0; transform: translateY(18px); }
.hero__title .line[data-intro] { opacity: 1; transform: none; }
.hero__title .line[data-intro] > span { transform: translateY(110%); }
.is-loaded [data-intro] {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.is-loaded .hero__title .line[data-intro] > span {
  transform: none; transition: transform 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 1ms);
}
.is-loaded .hero__scroll[data-intro] { transform: translateY(-50%) rotate(90deg); }

/* SECTIONS */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-3);
  margin-bottom: 36px;
}
.label span { color: var(--choc-light); font-variant-numeric: tabular-nums; }
.label span::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line); margin-left: 14px; vertical-align: middle; }
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.01em;
}
.h2 em { color: var(--choc-light); }
.body { color: var(--cream-2); max-width: 52ch; }

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

/* MANIFESTO */
.manifesto { border-top: 0; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.1vw, 3.7rem);
  line-height: 1.14; letter-spacing: -0.005em;
  max-width: 24ch;
}
.manifesto__text .w { color: var(--cream); opacity: 0.18; transition: opacity 0.35s linear, color 0.6s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__sign { margin-top: 64px; display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.manifesto__sig { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--choc-light); }
.manifesto__role { font-size: 14px; color: var(--cream-3); }

/* MODEL */
.model { background: var(--ink-2); }
.model__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); }
.model__head .h2 { margin-bottom: 40px; }
.model__head .body + .body { margin-top: 20px; }
.model__terms { display: flex; flex-direction: column; }
.term {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 20px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.term:last-child { border-bottom: 1px solid var(--line); }
.term__num { grid-row: span 2; font-family: var(--serif); font-size: 26px; color: var(--choc-light); line-height: 1; }
.term__title { font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.term p { color: var(--cream-2); font-size: 16px; }

/* METHOD */
.method__head { margin-bottom: clamp(56px, 8vw, 100px); }
.method__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 48px; }
.method__rail { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.method__rail span { position: absolute; inset: 0; background: var(--choc-light); transform: scaleX(0); transform-origin: left; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -53px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--choc-light);
}
.step__num { display: block; font-size: 13px; color: var(--cream-3); letter-spacing: 0.1em; margin-bottom: 18px; }
.step__title { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin-bottom: 16px; }
.step p { color: var(--cream-2); font-size: 16px; }

/* SECTORS */
.sectors { background: var(--ink-2); }
.sectors__head { margin-bottom: clamp(48px, 7vw, 90px); }
.sector {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line);
  transition: padding 0.6s var(--ease);
}
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--choc-light);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease);
}
.sector:hover::before { transform: scaleX(1); }
.sector__idx { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--cream-3); transition: color 0.4s; }
.sector:hover .sector__idx { color: var(--choc-light); }
.sector__name {
  font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.02;
  transition: transform 0.7s var(--ease);
}
.sector:hover .sector__name { transform: translateX(14px); }
.sector__desc { color: var(--cream-2); font-size: 16px; max-width: 46ch; }
.sectors__more { margin-top: 56px; max-width: 60ch; color: var(--cream-2); font-size: 19px; }

/* CLIENTS */
.clients__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.clients__head .label { margin-bottom: 0; }
.clients__head .body { max-width: 44ch; }
.clients__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.client {
  position: relative; aspect-ratio: 1 / 0.8;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px; border: 1px solid var(--line); margin-left: -1px;
  overflow: hidden;
}
.client::before {
  content: ""; position: absolute; inset: 0; background: var(--choc);
  transform: translateY(100%); transition: transform 0.8s var(--ease); z-index: 0;
}
.client:hover::before { transform: translateY(0); }
.client > * { position: relative; z-index: 1; }
.client__name { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.01em; }
.client__sector { font-size: 14px; color: var(--cream-2); align-self: flex-start; }
.client:hover .client__sector { color: var(--cream); }

/* START */
.start__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 8vw, 120px); }
.start__head { position: sticky; top: 120px; align-self: start; }
.start__head .h2 { margin-bottom: 32px; }
.start__timeline { list-style: none; margin: 0; padding: 0; }
.moment { padding: 0 0 56px 40px; border-left: 1px solid var(--line); position: relative; }
.moment:last-child { padding-bottom: 0; }
.moment::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--choc-light);
}
.moment__when { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--choc-light); margin-bottom: 14px; }
.moment__title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: 14px; }
.moment p { color: var(--cream-2); max-width: 50ch; }

/* FAQ */
.faq { background: var(--ink-2); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 8vw, 120px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-size: 20px; font-weight: 400;
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--choc-light); }
.qa__icon { position: relative; width: 16px; height: 16px; flex: none; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa p { color: var(--cream-2); padding: 0 48px 30px 0; max-width: 62ch; }

/* CONTACT */
.contact__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 8.6rem); line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: clamp(56px, 8vw, 100px);
}
.contact__title em { color: var(--choc-light); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 8vw, 120px); }
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact__mail {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  border-bottom: 1px solid var(--choc-light); padding-bottom: 4px; transition: color 0.3s;
  word-break: break-all;
}
.contact__mail:hover { color: var(--choc-light); }
.contact__link { color: var(--cream-2); font-size: 15px; }
.contact__link::after { content: " ↗"; }
.contact__link:hover { color: var(--cream); }

.form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.field { position: relative; width: 100%; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 30px 0 12px; outline: none; border-radius: 0; resize: vertical;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-2) 50%), linear-gradient(135deg, var(--cream-2) 50%, transparent 50%);
  background-position: calc(100% - 10px) 60%, calc(100% - 5px) 60%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--ink-2); color: var(--cream); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--choc-light); }
.field label {
  position: absolute; left: 0; top: 30px; font-size: 17px; color: var(--cream-3);
  pointer-events: none; transform-origin: left top; transition: transform 0.4s var(--ease), color 0.3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static {
  transform: translateY(-22px) scale(0.75); color: var(--choc-light);
}
.field.is-error input, .field.is-error textarea { border-color: #b4553a; }
.form .btn { margin-top: 28px; }
.form__note { font-size: 14px; color: var(--cream-2); min-height: 1.4em; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 40px 0 32px; overflow: hidden; }
.footer__big {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(5rem, 22vw, 22rem); line-height: 0.82; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(185, 130, 88, 0.45);
  margin-bottom: 40px; white-space: nowrap;
}
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--cream-3); }
.footer__row a:hover { color: var(--cream); }

/* RESPONSIVE */
@media (min-width: 1100px) {
  .hero__scroll { display: flex; }
}
@media (max-width: 980px) {
  .model__grid, .start__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .start__head { position: static; }
  .method__steps { grid-template-columns: 1fr 1fr; row-gap: 72px; padding-top: 0; }
  .method__rail { display: none; }
  .step { padding-top: 28px; border-top: 1px solid var(--line); }
  .step::before { top: -5px; }
  .sector { grid-template-columns: 48px 1fr; }
  .sector__desc { grid-column: 2; }
  .clients__list { grid-template-columns: 1fr; }
  .client { aspect-ratio: auto; min-height: 180px; margin-left: 0; margin-top: -1px; gap: 40px; }
}
@media (max-width: 820px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 2;
  }
  .nav__toggle span { display: block; height: 1px; background: var(--cream); transition: transform 0.5s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
    padding: 0 var(--gutter); font-size: 0;
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav__links a { font-family: var(--serif); font-size: 40px; color: var(--cream); }
  .nav__links a::after { display: none; }
  .nav__cta { border: 0 !important; padding: 0 !important; color: var(--choc-light) !important; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .method__steps { grid-template-columns: 1fr; row-gap: 56px; }
  .hero__inner { padding-bottom: 48px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { gap: 8px 20px; }
  .term { grid-template-columns: 44px 1fr; }
  .qa summary { font-size: 18px; }
  .qa p { padding-right: 0; }
  .sector { grid-template-columns: 1fr; gap: 10px; }
  .sector__desc { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-intro], .reveal, .hero__title .line[data-intro] > span { opacity: 1 !important; transform: none !important; }
  .hero__scroll[data-intro] { transform: translateY(-50%) rotate(90deg) !important; }
  .manifesto__text .w { opacity: 1; }
}
