/* Tyohan · site v0.3 (10/11/2026)
   Flat and quiet: solid colours, centred type, lots of air.
   The page background moves between black, white and Aegean as each section reaches the middle of the screen. */

:root {
  --black: #0A0A0A;
  --white: #FBFAF7;
  --egeu: #1D4166;
  --gold: #B8955A;
  --gold-light: #D3B573;

  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(251, 250, 247, .58);
  --line: rgba(251, 250, 247, .16);
  --accent: var(--gold);
  --on-accent: var(--black);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --swap: cubic-bezier(.65, 0, .35, 1);
  --pad-x: clamp(20px, 5vw, 64px);
  --gap-section: clamp(140px, 24vh, 280px);
  --wide: 125%;
}
html[data-theme="light"] {
  --bg: var(--white);
  --fg: var(--black);
  --muted: rgba(10, 10, 10, .56);
  --line: rgba(10, 10, 10, .14);
  --accent: var(--egeu);
  --on-accent: var(--white);
}
html[data-theme="blue"] {
  --bg: var(--egeu);
  --fg: var(--white);
  --muted: rgba(251, 250, 247, .62);
  --line: rgba(251, 250, 247, .2);
  --accent: var(--gold-light);
  --on-accent: var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .8s var(--swap), color .8s var(--swap);
}
img, svg { display: block; max-width: 100%; }
.sym-pil { aspect-ratio: 172 / 167; }
.sym-ord { aspect-ratio: 80 / 168; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- type ---------- */
.hero-title, .title, .contact-title, .work h3, .vow-yes {
  font-stretch: var(--wide);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.title { font-size: clamp(2rem, 4.4vw, 3.9rem); }
.eyebrow {
  font-stretch: var(--wide);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 1s var(--swap);
}
.lead { color: var(--muted); max-width: 40ch; margin-inline: auto; transition: color 1s var(--swap); }

/* split headings: each word rises out of its own line */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: 72px; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: transform .6s var(--ease), color 1s var(--swap);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); opacity: 0; transition: opacity .5s var(--ease), background-color 1s var(--swap);
}
.nav.is-solid::before { opacity: 1; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.nav-brand svg { width: 22px; height: 22px; fill: var(--accent); transition: fill 1s var(--swap), transform .6s var(--ease); }
.nav-brand span { font-stretch: var(--wide); font-size: 13px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; }
.nav-brand:hover svg { transform: translateY(-2px); }
.nav-links { display: flex; gap: clamp(24px, 3vw, 44px); }
.nav-links a, .link {
  position: relative; font-size: 14px; letter-spacing: .02em; padding: 6px 0;
}
.nav-links a::after, .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .link:hover::after { transform: scaleX(1); transform-origin: left; }
.link::after { transform: scaleX(1); opacity: .35; }
.link:hover::after { opacity: 1; }
.nav .btn { justify-self: end; }

/* ---------- buttons: flat pill, colour fills from below on hover ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
  transition: color .5s var(--ease), border-color 1s var(--swap), background-color 1s var(--swap), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease), background-color 1s var(--swap);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { height: 40px; padding: 0 20px; font-size: 13px; border: 1px solid var(--line); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid::before { background: var(--fg); }
.btn-solid:hover { color: var(--bg); }

/* ---------- sections ---------- */
main > section {
  position: relative;
  padding: var(--gap-section) var(--pad-x);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* hero */
.hero { min-height: 100dvh; justify-content: center; padding-top: 112px !important; padding-bottom: 72px !important; }
.hero-art { width: min(36vh, 360px); margin-bottom: clamp(28px, 5vh, 48px); will-change: transform; }
.hero-art img { width: 100%; height: auto; }
.hero-title { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
.hero-sub { margin-top: 28px; max-width: 40ch; text-wrap: balance; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }
.hero-cta { margin-top: 44px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }

/* manifesto */
.manifesto-text {
  max-width: 24ch; text-wrap: balance;
  font-stretch: 112%; font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 3.1rem); line-height: 1.22; letter-spacing: -.015em;
}
.manifesto-text .mw { opacity: .16; transition: opacity .25s linear; }
.orders {
  margin-top: clamp(120px, 18vh, 200px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: clamp(32px, 7vw, 120px); align-items: end;
}
.order { display: flex; flex-direction: column; align-items: center; gap: 22px; cursor: default; }
.order svg { height: clamp(110px, 13vw, 160px); width: auto; color: var(--fg); transition: transform .7s var(--ease), color .5s var(--ease), opacity .5s var(--ease); }
.order-t svg { fill: var(--accent); }
.order figcaption { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: color .5s var(--ease), letter-spacing .7s var(--ease); }
.orders:hover .order svg { opacity: .35; }
.orders .order:hover svg { opacity: 1; transform: translateY(-10px); color: var(--accent); }
.orders .order:hover figcaption { color: var(--fg); letter-spacing: .4em; }

/* approach: tall section, the stage sticks while you scroll through the four parts */
.approach { height: 420vh; padding: 0 var(--pad-x) !important; justify-content: flex-start; }
.approach-stage {
  position: sticky; top: 0; height: 100dvh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 72px;
}
.approach .title { margin-top: 20px; }
.column { height: min(34vh, 320px); width: auto; margin: clamp(36px, 6vh, 64px) 0 clamp(28px, 5vh, 48px); overflow: visible; }
.part { fill: var(--fg); opacity: .14; cursor: pointer; transition: opacity .6s var(--ease), fill .6s var(--ease), transform .7s var(--ease); transform-box: fill-box; transform-origin: center; }
.part:hover { opacity: .4; }
.part.is-on { fill: var(--gold); opacity: 1; }
.steps { display: grid; width: min(560px, 100%); min-height: 132px; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; }
.step-part { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin-top: 10px; font-stretch: var(--wide); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.step p:last-child { margin-top: 10px; color: var(--muted); }
.ticks { margin-top: 28px; display: flex; gap: 10px; }
.ticks li { width: 28px; height: 2px; background: var(--line); transition: background-color .5s var(--ease), width .6s var(--ease); }
.ticks li.is-on { background: var(--gold); width: 44px; }

/* services: an open zigzag of four living halftones, a plumb line down the middle */
.services { overflow: clip; }
.services .lead { margin-top: 24px; }
.works {
  --drop: clamp(140px, 22vh, 260px);                 /* how far the right column hangs below the left */
  position: relative;
  margin-top: clamp(110px, 16vh, 180px); padding-bottom: var(--drop);
  width: min(1180px, 100%);
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(64px, 12vw, 200px); row-gap: clamp(120px, 18vh, 220px);
}
.work { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; cursor: default; }
.work:nth-child(even) { translate: 0 var(--drop); }
.work-art { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
.work-art img, .work-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-art img { object-fit: contain; transition: opacity .6s var(--ease); }
.work-art canvas { opacity: 0; transition: opacity .6s var(--ease); }
.work-art.is-live img { opacity: 0; }
.work-art.is-live canvas { opacity: 1; }
.work-no {
  margin-top: clamp(28px, 4vh, 44px);
  font-stretch: var(--wide); font-size: 12px; font-weight: 500; letter-spacing: .32em;
  color: var(--muted); transition: color .5s var(--ease), letter-spacing .8s var(--ease);
}
.work h3 {
  position: relative; margin-top: 14px; padding-bottom: 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.work h3::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 1px; margin-left: -32px;
  background: var(--accent); transform: scaleX(.25); transition: transform .8s var(--ease), background-color 1s var(--swap);
}
.work-desc { margin-top: 18px; max-width: 34ch; color: var(--muted); text-wrap: pretty; transition: color .5s var(--ease); }
.work:hover .work-no { color: var(--accent); letter-spacing: .44em; }
.work:hover h3::after { transform: scaleX(1); }
.work:hover .work-desc { color: var(--fg); }
.works-axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; pointer-events: none; }
.works-axis span {
  position: absolute; inset: 0; background: var(--line);
  transform: scaleY(var(--axis, 1)); transform-origin: top; transition: background-color 1s var(--swap);
}
.works-axis::before, .works-axis::after {          /* a small capital and base on the plumb line */
  content: ""; position: absolute; left: 50%; width: 9px; height: 1px; margin-left: -4.5px; background: var(--line);
}
.works-axis::before { top: 0; }
.works-axis::after { bottom: 0; }

/* principles */
.vows { margin-top: clamp(80px, 12vh, 130px); display: grid; gap: clamp(80px, 13vh, 140px); width: min(900px, 100%); }
.vow { cursor: default; }
.vow-no { position: relative; display: inline-block; font-size: 15px; color: var(--muted); }
.vow-no::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 1px;
  background: var(--accent); transform: scaleX(var(--strike, 0)); transform-origin: left; transition: transform .9s var(--ease) .15s;
}
.vow.is-in .vow-no { --strike: 1; }
.vow-yes { margin-top: 14px; font-size: clamp(1.6rem, 3.4vw, 2.9rem); transition: color .5s var(--ease), transform .7s var(--ease); }
.vow:hover .vow-yes { color: var(--accent); transform: translateY(-4px); }

/* contact */
.contact { min-height: 100dvh; justify-content: center; }
.contact-art { width: min(18vh, 170px); margin-bottom: clamp(36px, 6vh, 60px); }
.contact-title { font-size: clamp(2.3rem, 5.4vw, 4.8rem); }
.contact .lead { margin-top: 28px; }

/* footer */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 36px var(--pad-x) 44px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot .nav-brand { color: var(--fg); }
.foot p:last-child { justify-self: end; }

/* reveal on scroll (JS adds .is-in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .orders .order:nth-child(2) { transition-delay: .08s; }
.js .orders .order:nth-child(3) { transition-delay: .16s; }
.js .orders .order:nth-child(4) { transition-delay: .24s; }
.js .work h3.reveal { transition-delay: .08s; }
.js .work .work-desc.reveal { transition-delay: .16s; }

/* ---------- touch screens: no hover, so show everything ---------- */
@media (hover: none), (pointer: coarse) {
  .work h3::after { transform: scaleX(1); }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; height: 64px; }
  .nav-links { display: none; }
  .nav-brand span { letter-spacing: .32em; }
  .btn-ghost { height: 36px; padding: 0 14px; font-size: 12px; }
  .hero-art { width: min(30vh, 240px); }
  .hero-cta { gap: 22px; flex-direction: column; }
  .orders { grid-template-columns: repeat(2, minmax(0, 120px)); row-gap: 64px; }
  .orders:hover .order svg { opacity: 1; }
  .column { height: min(28vh, 220px); }
  .steps { min-height: 150px; }
  .works { grid-template-columns: 1fr; row-gap: 120px; padding-bottom: 0; }
  .work:nth-child(even) { translate: none; }
  .work-art { width: min(78vw, 340px); }
  .works-axis { display: none; }
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot p:last-child { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .manifesto-text .mw { opacity: 1; }
}
