:root {
  color-scheme: dark;
  --ink: #0b0b0a;
  --bg: #0b0b0a;
  --bg-2: #161614;
  --fg: #ecebe5;
  --fg-rgb: 236, 235, 229;
  --mute: #8a8980;
  --line: rgba(236, 235, 229, 0.14);
  --signal: #ff4f00;
  --signal-text: #ff4f00;
  --grain: 0.06;
  --gutter: clamp(16px, 3vw, 40px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* light edition: warm paper, ink type, same signal orange */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f0ea;
    --bg-2: #e7e4db;
    --fg: #0b0b0a;
    --fg-rgb: 11, 11, 10;
    --mute: #6b6960;
    --line: rgba(11, 11, 10, 0.14);
    --signal-text: #cf3f00;
    --grain: 0.05;
  }
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: normal; letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 200;
  transition: width .25s, height .25s, margin .25s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- top bar ---------- */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.bar__mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -0.01em; }
.bar__mark svg { width: 22px; height: 22px; }
.bar__nav { display: flex; gap: clamp(14px, 2.4vw, 36px); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.bar__nav a { position: relative; }
.bar__nav i { font-style: normal; opacity: .5; margin-right: 6px; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .35s cubic-bezier(.7,0,.2,1); }
.bar__nav a:hover::after { right: 0; }
.bar__clock { justify-self: end; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 88px var(--gutter) var(--gutter);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__meta { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--mute); }
.hero__title {
  position: relative;
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-size: 14vw;
  line-height: .78;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.hero__word { display: inline-block; }
.hero__cut {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lede { max-width: 34ch; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
.hero__lede em { color: var(--signal); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  background: var(--signal); color: var(--ink);
  border-radius: 999px;
  font-weight: 500;
  transition: transform .3s cubic-bezier(.7,0,.2,1), background .3s;
}
.hero__cta:hover { background: var(--fg); color: var(--bg); transform: rotate(-4deg) scale(1.04); }

/* entrance */
.hero__word { animation: rise 1.2s cubic-bezier(.2,.8,.1,1) both .1s; }
.hero__meta, .hero__foot { animation: fade 1s ease both .7s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; filter: blur(12px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--signal); color: var(--ink); border-block: 1px solid var(--ink); transform: rotate(-1.2deg) scaleX(1.02); margin: 28px 0; }
.ticker__track { display: flex; width: max-content; gap: 32px; padding: 14px 0; animation: marquee 32s linear infinite; font-weight: 800; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: clamp(20px, 3vw, 40px); letter-spacing: -0.02em; }
.ticker__track b { font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section, .contact { padding: clamp(80px, 12vw, 180px) var(--gutter); position: relative; }
.section__head { display: flex; align-items: center; gap: 16px; color: var(--mute); margin-bottom: clamp(40px, 6vw, 80px); }
.section__head span:first-child { color: var(--signal-text); }
.section__head h2 { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section__head .rule { flex: 1; height: 1px; background: var(--line); }

/* manifesto */
.manifesto__text {
  font-size: clamp(32px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variation-settings: "wdth" 85;
  max-width: 18ch;
  text-indent: 2.2em;
}
.manifesto__text em { color: var(--signal); }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .08em; height: .32em; background: var(--signal); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.7,0,.2,1) .4s; }
.reveal.is-in .hl::after, .reveal.is-in.hl::after { transform: scaleX(1); }
.hl { z-index: 0; }

.axioms { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); padding-top: 24px; }
.axioms li { font-size: 13px; line-height: 1.6; text-transform: none; letter-spacing: 0; color: var(--fg); }
.axioms b { color: var(--signal-text); font-weight: 500; margin-right: 8px; }

/* practice — inverted against the current theme */
.practice { background: var(--fg); color: var(--bg); }
.practice .section__head span:first-child { color: var(--signal); }
.practice .section__head .rule { background: currentColor; opacity: .15; }
.practice__title { font-size: clamp(48px, 9vw, 160px); line-height: .86; font-weight: 900; font-variation-settings: "wdth" 70; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: clamp(48px, 7vw, 100px); }
.practice__title em { text-transform: none; font-size: 1.05em; letter-spacing: -0.02em; }

.services { list-style: none; border-top: 2px solid currentColor; }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1fr) 200px;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid currentColor;
  isolation: isolate;
  transition: color .35s, padding .45s cubic-bezier(.7,0,.2,1);
}
.service::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--bg); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.service:hover { color: var(--fg); padding-left: 16px; }
.service:hover::before { transform: scaleY(1); }
.service:hover .service__no { color: var(--signal); }
.service__name { font-size: clamp(28px, 4.2vw, 64px); font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.035em; line-height: .95; }
.service__desc { font-size: 16px; line-height: 1.45; max-width: 38ch; }
.service__tags { justify-self: end; text-align: right; opacity: .6; }

/* method */
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.step { padding: 0 clamp(16px, 2vw, 32px) 40px; border-right: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; transition: background .4s; }
.step:hover { background: var(--bg-2); }
.step__no { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 10vw, 160px); line-height: .9; color: var(--signal); margin-bottom: auto; }
.step h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: -0.03em; margin: 40px 0 12px; }
.step p { color: var(--mute); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.step:nth-child(even) { transform: translateY(60px); }

/* reach */
.reach { padding-top: clamp(120px, 14vw, 220px); }
.reach__title { font-size: clamp(40px, 7vw, 120px); line-height: .92; font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: clamp(40px, 6vw, 80px); }
.reach__title em { text-transform: none; color: var(--signal); }
.zones { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.zone { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.zone span:first-child { color: var(--mute); }
.zone span:last-child { font-size: clamp(28px, 3.4vw, 52px); font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 70; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.zone.is-home span:last-child { color: var(--signal); }

/* contact */
.contact { border-top: 1px solid var(--line); overflow: hidden; }
.contact__kicker { color: var(--mute); margin-bottom: 16px; }
.contact__big {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em;
  font-size: clamp(64px, 13.5vw, 260px);
  line-height: .85;
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.contact__big em { text-transform: none; color: var(--signal); font-size: 1.08em; letter-spacing: -0.03em; }
.contact__arrow { display: inline-block; font-weight: 300; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.contact__big:hover .contact__arrow { transform: translateX(.2em) rotate(-45deg); }
.contact__mail { display: inline-block; margin-top: 32px; font-size: clamp(14px, 1.6vw, 20px); border-bottom: 1px solid var(--signal); padding-bottom: 4px; text-transform: none; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px var(--gutter); border-top: 1px solid var(--line); color: var(--mute); }
.foot a:hover { color: var(--signal); }

/* reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.1,1); }
.reveal.is-in { opacity: 1; transform: none; }
.step.reveal.is-in:nth-child(even) { transform: translateY(60px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav { display: none; }
  .service { grid-template-columns: 56px 1fr; gap: 8px 16px; }
  .service__desc, .service__tags { grid-column: 2; justify-self: start; text-align: left; }
  .method__grid { grid-template-columns: 1fr 1fr; }
  .step { min-height: 300px; border-bottom: 1px solid var(--line); }
  .step:nth-child(even), .step.reveal.is-in:nth-child(even) { transform: none; }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .axioms { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero__meta span:nth-child(2) { display: none; }
  .hero__cut { -webkit-text-stroke-width: 1px; }
  .method__grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__no { margin-bottom: 0; }
  .zones { grid-template-columns: 1fr 1fr; }
  .manifesto__text { text-indent: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
