:root {
  --paper: #ece8df;
  --paper-2: #e2ddd1;
  --ink: #0d0d0b;
  --ink-soft: #3a3934;
  --accent: #7a1c2c;
  --accent-light: #b23c52;
  --muted: #8c887d;
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[data-theme="accent"] :focus-visible, [data-theme="ink"] :focus-visible { outline-color: var(--paper); }

/* ───────── a11y ───────── */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; border-radius: 99px;
  background: var(--ink); color: var(--paper); transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ───────── texture & cursor ───────── */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  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='.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 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.cursor__label { color: var(--ink); opacity: 0; transition: opacity .3s; font-size: 10px; mix-blend-mode: normal; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
.no-js .cursor { display: none; }

/* ───────── loader (JS only, so content is never trapped behind it) ───────── */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: none; place-items: center;
}
.js .loader { display: grid; }
.loader__x { font-family: var(--display); font-weight: 500; font-size: clamp(120px, 26vw, 360px); line-height: 1; color: var(--accent-light); }
.loader__count { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 13px; }
.loader__label { position: absolute; right: var(--gutter); bottom: var(--gutter); color: var(--muted); }

/* ───────── nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  color: var(--ink); transition: color .5s var(--ease);
}
body[data-nav="light"] .nav { color: var(--paper); }
.nav__logo { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.nav__logo span { font-weight: 500; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { position: relative; display: flex; gap: 8px; }
.nav__links i { font-style: normal; opacity: .5; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; border-radius: 99px; padding: 10px 18px; display: inline-flex; gap: 10px; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ───────── shared ───────── */
section { position: relative; }
.label { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-weight: 400; line-height: 1.4; }
.label i { font-style: normal; color: var(--accent); }
.label--light { color: rgba(236, 232, 223, .9); }
.label--light i { color: var(--paper); }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; will-change: transform; }

/* h2 is reserved for the small mono section labels (keyword-bearing headings);
   big visual statements use .display so the outline stays descriptive. */
h1, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: .9; }
h1 em, h3 em, .display em { font-weight: 500; color: var(--accent); }

/* ───────── hero ───────── */
.hero {
  height: 100vh; min-height: 640px; overflow: hidden;
  padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__meta {
  position: absolute; top: 78px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; color: var(--ink-soft);
}
.hero__title {
  position: relative; font-size: clamp(44px, 10.4vw, 200px); margin-bottom: 28px; pointer-events: none;
}
.hero__kicker { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.line--indent { padding-left: 12vw; }
.hero__title .dot { color: var(--accent); }
.hero__foot {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 36px;
}
.hero__sub { max-width: 280px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.badge {
  position: relative; width: 132px; height: 132px; flex: none;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper);
}
.badge__ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge__ring text { font-family: var(--mono); font-size: 13.5px; letter-spacing: .18em; fill: currentColor; }
.badge__arrow { font-size: 30px; transition: transform .5s var(--ease); }
.badge:hover .badge__arrow { transform: rotate(-90deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; color: var(--ink-soft);
}
.hero__scroll span { width: 1px; height: 32px; background: var(--ink); transform-origin: top; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) {
  .hero__scroll { display: none; }
  .badge { width: 104px; height: 104px; }
  .line--indent { padding-left: 0; }
  .hero__title { font-size: 13.4vw; }
}

/* ───────── about ───────── */
.about { padding: 22vh var(--gutter) 18vh; }
.about__text {
  margin-top: 40px; font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 6.4vw, 108px); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch;
}
.about__text .w { opacity: .12; transition: none; }
.chip {
  display: inline-block; padding: 0 .28em; border-radius: 99px; line-height: 1.05;
  border: 2px solid currentColor;
}
.chip--b { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--c { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ───────── marquee ───────── */
.marquee { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2.2vw 0; }
.marquee__track {
  display: flex; align-items: center; gap: 3vw; width: max-content; will-change: transform;
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 150px); letter-spacing: -0.04em; line-height: 1;
}
.marquee b { color: var(--accent); font-weight: 500; }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* ───────── approach ───────── */
.approach { height: 300vh; background: var(--accent); color: var(--paper); }
.approach__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding: 96px var(--gutter) 40px; display: flex; flex-direction: column;
}
.venn { position: absolute; inset: 0; margin: auto; width: min(1000px, 96vw); height: auto; top: 6%; }
.venn .ring { fill: none; stroke: var(--paper); stroke-width: 1.2; }
.venn .lens { fill: var(--paper); }
.vlabel { font-family: var(--mono); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; fill: var(--paper); text-anchor: middle; }
.vx { font-family: var(--display); font-size: 120px; fill: var(--accent); text-anchor: middle; opacity: 0; }
.approach__copy { margin-top: auto; position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.approach__title { font-size: clamp(34px, 5.2vw, 88px); font-weight: 700; }
.approach__title em { color: var(--paper); font-weight: 500; font-style: normal; border-bottom: .06em solid var(--paper); }
.approach__sub { max-width: 260px; color: rgba(236, 232, 223, .92); line-height: 1.6; }
.approach__progress { position: absolute; top: 96px; right: var(--gutter); }
@media (max-width: 760px) {
  .venn { top: -18%; }
  .vlabel { font-size: 21px; }
}

/* ───────── why ───────── */
.why { padding: 20vh var(--gutter) 16vh; overflow: hidden; }
.why__cross { position: absolute; inset: 0; pointer-events: none; }
.why__cross i { position: absolute; background: var(--accent); opacity: .55; }
.why__cross i:first-child { left: 0; right: 0; height: 1px; top: var(--cy, 50%); }
.why__cross i:last-child { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.why__title { position: relative; margin-top: 40px; font-size: clamp(52px, 10vw, 180px); }
.why__note { position: relative; max-width: 360px; margin: 48px 0 12vh auto; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.why__list { position: relative; list-style: none; border-top: 1px solid var(--ink); }
.why__list li {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px;
  padding: 2.4vw 0; border-bottom: 1px solid var(--ink); overflow: hidden; isolation: isolate;
}
.why__list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.why__list li span {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(40px, 7vw, 120px); line-height: 1;
  transition: transform .6s var(--ease), color .4s;
}
.why__list li em { opacity: 0; transform: translateX(-20px); transition: all .6s var(--ease); }
.why__list li:hover::before { transform: scaleY(1); }
.why__list li:hover { color: var(--paper); }
.why__list li:hover span { transform: translateX(2vw); }
.why__list li:hover em { opacity: 1; transform: none; }
@media (hover: none) { .why__list li em { opacity: .6; transform: none; } }
@media (max-width: 760px) {
  .why__list li { grid-template-columns: 28px 1fr; }
  .why__list li em { grid-column: 2; }
}

/* ───────── long-term ───────── */
.long { min-height: 140vh; background: var(--ink); color: var(--paper); overflow: hidden; }
.long__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.long__inner { position: relative; padding: 20vh var(--gutter) 16vh; min-height: 140vh; display: flex; flex-direction: column; }
.long__title { margin-top: 40px; font-size: clamp(80px, 17vw, 300px); }
.long__title em { color: var(--accent-light); }
.long__pair { display: flex; gap: 18px; align-items: center; margin-top: 40px; font-size: 13px; }
.long__pair b { color: var(--accent-light); font-family: var(--display); font-size: 26px; font-weight: 500; }
.long__note { max-width: 300px; margin-top: auto; font-size: 17px; line-height: 1.45; color: rgba(236, 232, 223, .7); }
.long__year { position: absolute; right: var(--gutter); bottom: 16vh; color: rgba(236, 232, 223, .7); }

/* ───────── what we do ───────── */
.do { padding: 20vh var(--gutter) 18vh; }
.do__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 10vh; }
.do__title { font-size: clamp(44px, 7vw, 120px); text-align: right; }
.services { border-top: 1px solid var(--ink); }
.service {
  position: relative; display: grid; grid-template-columns: 80px 1.4fr 1fr; gap: 24px; align-items: end;
  padding: 4vw 0; border-bottom: 1px solid var(--ink);
}
.service__num { align-self: start; color: var(--accent); }
.service__tag { margin-bottom: 18px; color: var(--ink-soft); }
.service__name { font-size: clamp(44px, 6.6vw, 112px); transition: transform .7s var(--ease), color .4s; }
.service:hover .service__name { transform: translateX(1.5vw); color: var(--accent); }
.service__desc { max-width: 320px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.service__art { display: none; }
.float-art {
  position: fixed; top: 0; left: 0; z-index: 40; width: 300px; height: 380px; pointer-events: none;
  margin: -190px 0 0 -150px; border-radius: 4px; overflow: hidden; background: var(--ink);
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease);
}
.float-art.is-on { clip-path: inset(0 0 0 0); }
.float-art canvas { width: 100%; height: 100%; display: block; }
@media (hover: none), (max-width: 760px) {
  .float-art { display: none; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 10vw 0; }
  .service__art { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--ink); margin-top: 12px; }
}

/* ───────── faq ───────── */
.faq { padding: 4vh var(--gutter) 20vh; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--ink); }
.faq__item summary {
  display: grid; grid-template-columns: 60px 1fr 40px; align-items: center; gap: 16px;
  padding: 28px 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { font-style: normal; color: var(--accent); }
.faq__q { font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; transition: color .3s, transform .6s var(--ease); }
.faq__item summary:hover .faq__q { color: var(--accent); transform: translateX(10px); }
.faq__icon { position: relative; width: 22px; height: 22px; justify-self: end; transition: transform .6s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--accent); } /* + turns into × — the brand mark */
.faq__a { max-width: 68ch; padding: 0 56px 34px 76px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.faq__a a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (max-width: 760px) {
  .faq__item summary { grid-template-columns: 30px 1fr 22px; gap: 10px; padding: 22px 0; }
  .faq__a { padding: 0 0 26px 40px; font-size: 16px; }
}

/* ───────── contact ───────── */
.contact { background: var(--accent); color: var(--paper); padding: 20vh var(--gutter) 10vh; min-height: 90vh; display: flex; flex-direction: column; }
.contact__addr { font-style: normal; display: flex; }
.contact__title { margin-top: 40px; font-size: clamp(110px, 24vw, 420px); line-height: .82; }
.contact__title em { color: var(--paper); font-weight: 500; -webkit-text-stroke: 0; font-style: normal; opacity: .95; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 18px; align-self: flex-start;
  margin-top: 6vh; padding: 18px 28px; border: 1px solid var(--paper); border-radius: 99px;
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: -0.02em;
  transition: background .4s, color .4s;
}
.contact__mail:hover { background: var(--paper); color: var(--accent); }
.contact__mail b { transition: transform .5s var(--ease); font-weight: 500; }
.contact__mail:hover b { transform: rotate(45deg); }
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter) 32px; background: var(--accent); color: rgba(236, 232, 223, .9);
  border-top: 1px solid rgba(236, 232, 223, .25);
}
.footer nav { display: flex; gap: 28px; }
.footer a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .grain, .badge__ring, .hero__scroll span { animation: none; }
}

/* ───────── legal pages (/privacy, /terms) ───────── */
/* text scrolls under the nav here, so it gets a solid ground */
.page-legal .nav { background: var(--paper); border-bottom: 1px solid rgba(13, 13, 11, .12); }
.legal { padding: 22vh var(--gutter) 16vh; }
.legal__title { margin-top: 40px; font-size: clamp(64px, 12vw, 210px); }
.legal__meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: var(--ink-soft); }
.legal__draft {
  margin-top: 28px; padding: 14px 18px; max-width: 68ch; border: 1px solid var(--accent);
  color: var(--accent); line-height: 1.6; text-transform: none; letter-spacing: .02em; font-size: 12px;
}
.legal__grid {
  display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 6vw;
  margin-top: 12vh; padding-top: 40px; border-top: 1px solid var(--ink);
}
.legal__toc { position: sticky; top: 96px; align-self: start; }
.legal__toc ol { list-style: none; counter-reset: toc; display: grid; gap: 12px; margin-top: 18px; }
.legal__toc li { counter-increment: toc; display: flex; gap: 10px; }
.legal__toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); }
.legal__toc a { transition: color .3s; }
.legal__toc a:hover { color: var(--accent); }
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.03em; line-height: 1.1; margin: 72px 0 20px; scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-weight: 500; font-size: 17px; letter-spacing: 0; line-height: 1.4; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.prose p + p { margin-top: 1em; }
.prose ul { margin: 1em 0; padding-left: 1.4em; display: grid; gap: .5em; }
.prose li::marker { content: "×  "; color: var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose strong { color: var(--ink); font-weight: 500; }
mark.todo { background: rgba(122, 28, 44, .12); color: var(--accent); padding: 0 .25em; border-radius: 2px; }
@media (max-width: 760px) {
  .legal__grid { grid-template-columns: 1fr; gap: 48px; }
  .legal__toc { position: static; }
  .prose p, .prose li { font-size: 16px; }
}

/* ───────── html site map (/sitemap) ───────── */
.sitemap-block { margin-top: 12vh; }
.sitemap { list-style: none; margin-top: 24px; border-top: 1px solid var(--ink); }
.sitemap > li { border-bottom: 1px solid var(--ink); }
.sitemap__page { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: 28px 0; }
.sitemap__page i { font-style: normal; color: var(--accent); }
.sitemap__page span {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(36px, 5.4vw, 92px); transition: transform .6s var(--ease), color .3s;
}
.sitemap__page em { color: var(--ink-soft); }
.sitemap__page:hover span { transform: translateX(1.5vw); color: var(--accent); }
.sitemap__sub {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px;
  padding: 0 0 32px 76px;
}
.sitemap__sub a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(13, 13, 11, .15); font-size: 16px; transition: color .3s;
}
.sitemap__sub a em { color: var(--ink-soft); font-size: 10px; }
.sitemap__sub a:hover { color: var(--accent); }
.sitemap__sub--files { margin-top: 24px; padding-left: 0; border-top: 1px solid var(--ink); }
@media (max-width: 760px) {
  .sitemap__page { grid-template-columns: 30px 1fr; }
  .sitemap__page em { grid-column: 2; }
  .sitemap__sub { padding-left: 46px; grid-template-columns: 1fr; }
  .sitemap__sub--files { padding-left: 0; }
}
