/* Xinye Design Studio — "Plan" (light), v2: louder interaction */
:root {
  --paper: #f2eee6;
  --paper-2: #e9e3d7;
  --ink: #1c1b18;
  --ink-2: #4a4740;
  --ink-3: #7a766c;
  --line: rgba(28, 27, 24, .14);
  --line-strong: rgba(28, 27, 24, .32);
  --draft: #2f4a86;            /* drafting-pencil blue */
  --light: rgba(255, 242, 205, .85);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --col: min(1320px, 100% - 2 * var(--gutter));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-variation-settings: "wdth" 100;
  font-weight: 350;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--draft); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 550; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 1.5px solid var(--draft); outline-offset: 4px; }

/* ---------- Custom cursor (enabled by JS on fine pointers) ---------- */
.cursor, .guides, .float-preview { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .project article { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-dot {
  width: 15px; height: 15px; margin: -7px 0 0 -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
  transition: opacity .2s;
}
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out),
              background-color .3s, border-color .3s, opacity .3s;
}
.cursor-label {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .45s var(--ease-out); white-space: nowrap;
}
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--draft); background: rgba(47, 74, 134, .08); }
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-view .cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--ink); border-color: var(--ink); }
.cursor.is-view .cursor-label { opacity: 1; transform: none; }
.cursor.is-view .cursor-dot { opacity: 0; }
.cursor.is-text .cursor-ring, .cursor.is-text .cursor-dot, .cursor.is-hidden .cursor-ring, .cursor.is-hidden .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* architectural guide lines that follow the pointer in the hero */
.has-cursor .guides { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .5s; }
.has-cursor .guides.on { opacity: 1; }
.guide { position: absolute; background: var(--draft); opacity: .35; will-change: transform; }
.guide-x { left: 0; right: 0; top: 0; height: 1px; }
.guide-y { top: 0; bottom: 0; left: 0; width: 1px; }
.coord {
  position: absolute; left: 0; top: 0; will-change: transform;
  font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--draft); white-space: nowrap;
}

/* ---------- Floating project preview (follows the pointer) ---------- */
.has-cursor .float-preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(320px, 34vw, 540px); aspect-ratio: 16 / 10;
  opacity: 0; will-change: transform, opacity;
  transition: opacity .35s var(--ease);
}
.float-preview.on { opacity: 1; }
.fp-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .7s var(--ease-out), transform 1.2s var(--ease-out);
  transform: scale(1.15);
  box-shadow: 0 40px 80px -40px rgba(28, 27, 24, .55);
}
.fp-img.on { clip-path: inset(0 0 0 0); transform: scale(1); }
.fp-img.leaving { clip-path: inset(0 0 100% 0); transform: scale(1); }
.fp-tag {
  position: absolute; left: 0; top: calc(100% + 10px);
  font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Scroll rail ---------- */
.rail {
  position: fixed; right: 22px; top: 50%; z-index: 18; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 26px; align-items: flex-end;
  padding-right: 14px; opacity: 0; transition: opacity .5s;
}
.rail.show { opacity: 1; }
.rail::before { content: ""; position: absolute; right: 0; top: -10px; bottom: -10px; width: 1px; background: var(--line-strong); }
.rail-fill { position: absolute; right: 0; top: -10px; width: 1px; height: calc(100% + 20px); background: var(--draft); transform-origin: top; transform: scaleY(var(--rp, 0)); }
.rail-mark { position: relative; font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); text-decoration: none; transition: color .3s; }
.rail-mark.active { color: var(--draft); font-weight: 500; }
.rail-mark::after { content: ""; position: absolute; right: -17px; top: 50%; width: 7px; height: 1px; background: currentColor; transition: width .4s var(--ease-out), right .4s var(--ease-out); }
.rail-mark.active::after { width: 15px; right: -21px; }
@media (max-width: 960px) { .rail { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(var(--paper) 55%, rgba(242, 238, 230, 0));
}
.site-header a { text-decoration: none; }
.wordmark { font-weight: 500; transition: opacity .4s var(--ease); }
.js .site-header.at-top .wordmark:not(:focus-visible) { opacity: 0; }
.site-header ul { display: flex; gap: 28px; }
.site-header nav a { color: var(--ink-2); position: relative; }
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a.current { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a.current::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 92px); min-height: calc(100svh - 92px);
  display: flex; align-items: flex-end;
  padding: 110px 0 clamp(40px, 7vh, 88px);
  overflow: hidden; isolation: isolate;
}
.plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--ink); }
.plan-grid { opacity: .09; }
.plan-lines { opacity: .42; will-change: transform; }
.plan-far { transform: translateY(calc(var(--hs, 0) * -60px)); }
.plan-near { transform: translateY(calc(var(--hs, 0) * -160px)); }
.plan-marks { opacity: .5; transform: translateY(calc(var(--hs, 0) * -100px)); }
.plan-lines [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan-lines [pathLength] { animation: draw 2.2s var(--ease-out) forwards; }
.js .plan-near [pathLength] { animation-delay: .6s; }
.js .plan-lines .dashed { stroke-dasharray: 4 6; animation: fade 1.2s ease 1.6s both; }
html:not(.js) .plan-lines [pathLength] { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-light {
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(34% 44% at var(--lx, 30%) var(--ly, 35%), var(--light), transparent 70%),
    radial-gradient(60% 40% at 80% 90%, rgba(214, 206, 190, .35), transparent 70%);
  animation: daylight 30s ease-in-out infinite alternate;
}
@keyframes daylight { 0% { transform: translate3d(-6%, -2%, 0); } 100% { transform: translate3d(10%, 4%, 0); } }

.hero-inner {
  width: var(--col); margin-inline: auto; max-width: 1320px;
  transform: translateY(calc(var(--hs, 0) * -80px)); opacity: calc(1 - var(--hs, 0) * .9);
}
.studio-name {
  font-family: var(--mono); font-weight: 500; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.positioning {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 250;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: 1.0; letter-spacing: -.01em;
  max-width: 16ch;
}
.lede { margin-top: clamp(24px, 4vh, 40px); max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.credential { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }

/* split text */
.split-line { display: block; }
.w { display: inline-block; white-space: nowrap; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.ch { display: inline-block; will-change: transform, font-variation-settings; }
.js [data-split="hero"] .ch { transform: translateY(105%); animation: chUp 1.1s var(--ease-out) forwards; animation-delay: calc(.25s + var(--i) * 18ms); }
@keyframes chUp { to { transform: none; } }
.js [data-split="words"] .w-in { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 14ms); }
.js .in [data-split="words"] .w-in, .js [data-split="words"].in .w-in { transform: none; }

.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(28px, 5vh, 48px);
  padding: 17px 30px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: color .45s var(--ease-out), transform .5s var(--ease-out);
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.button::after { content: "→"; font-family: var(--body); letter-spacing: 0; transition: transform .45s var(--ease-out); }
.button:hover, .button:focus-visible { color: var(--paper); }
.button:hover::before, .button:focus-visible::before { transform: none; }
.button:hover::after { transform: translateX(6px); }

.js .hero-inner > :not(.positioning) { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease-out) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: .1s; }
.js .hero-inner > :nth-child(3) { animation-delay: 1.0s; }
.js .hero-inner > :nth-child(4) { animation-delay: 1.15s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section {
  width: var(--col); margin-inline: auto;
  padding-block: clamp(96px, 16vh, 180px);
  position: relative; isolation: isolate;
}
/* the section line draws itself as you scroll in */
.section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong);
  transform-origin: left; transform: scaleX(var(--p, 1));
}
.section::before { content: ""; position: absolute; top: -5px; left: 0; width: 1px; height: 11px; background: var(--ink-2); }
.label {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: clamp(40px, 7vh, 72px);
}
.label .num { color: var(--draft); }

/* line drawings that draw with scroll progress (pathLength=1) */
.frag { position: absolute; z-index: -1; color: var(--ink); opacity: .4; pointer-events: none; overflow: visible; }
.frag [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) - var(--d, 0)) * 1.8, 1));
}
.frag .keep-dash { stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: clamp(0, (var(--p, 1) - var(--d, 0)) * 3, 1); }
.frag-about { left: 0; top: clamp(150px, 22vh, 230px); width: clamp(200px, 26vw, 340px); }
.frag-work { right: 0; top: clamp(130px, 20vh, 200px); width: clamp(220px, 30vw, 420px); }
.frag-services { right: 0; top: 40px; width: clamp(140px, 16vw, 220px); }
.frag-contact { left: 0; bottom: 24px; width: clamp(120px, 13vw, 190px); }

.about-text {
  max-width: 36ch; margin-left: auto; margin-right: clamp(0px, 8vw, 140px);
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.36; font-weight: 300;
  font-variation-settings: "wdth" 88;
}

/* ---------- Trust bar ---------- */
.trust { width: var(--col); margin-inline: auto; position: relative; z-index: 1; }
.trust-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.trust-item {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 24px 24px;
  border-left: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item::before {   /* draft-blue sweep on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--draft);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.trust-item:hover::before { transform: scaleX(1); }
.trust-kind { font: 400 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--draft); }
.trust-name {
  font-family: var(--display); font-variation-settings: "wdth" 80, "wght" 350;
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; transition: font-variation-settings .6s var(--ease-out);
}
.trust-item:hover .trust-name { font-variation-settings: "wdth" 96, "wght" 420; }
.js .trust-item { opacity: 0; transform: translateY(10px); animation: rise .9s var(--ease-out) forwards; }
.js .trust-item:nth-child(1) { animation-delay: 1.35s; }
.js .trust-item:nth-child(2) { animation-delay: 1.45s; }
.js .trust-item:nth-child(3) { animation-delay: 1.55s; }
.js .trust-item:nth-child(4) { animation-delay: 1.65s; }
.trust + .section::after, .trust + .section::before { display: none; }

/* ---------- Selected recognition ---------- */
.recognition {
  margin-top: clamp(56px, 9vh, 100px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px clamp(32px, 5vw, 80px);
}
.rec-list { border-top: 1px solid var(--line-strong); }
.rec {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out);
}
.rec::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: -1; background: var(--paper-2);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.rec:hover::before { transform: scaleX(1); }
.rec:hover { padding-left: 14px; }
.rec-year { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); transition: color .3s; }
.rec:hover .rec-year { color: var(--draft); }
.rec-name { font-family: var(--display); font-variation-settings: "wdth" 82, "wght" 350; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
.rec-detail { color: var(--ink-2); font-size: 15px; }
.recognition { position: relative; isolation: isolate; }

/* ---------- Training: a drawing title block ---------- */
.training {
  margin-top: clamp(72px, 12vh, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px clamp(32px, 5vw, 80px);
}
.training-label { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--draft); margin-bottom: 18px; }
.training-lead {
  font-family: var(--display); font-variation-settings: "wdth" 76, "wght" 300;
  font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; max-width: 16ch;
}
.scales { border: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scale {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px;
  padding: 22px 20px 24px; border-right: 1px solid var(--line-strong); min-height: 260px;
  transition: background-color .4s;
}
.scale:last-child { border-right: 0; }
.scale-icon { width: 56px; height: 56px; color: var(--ink); margin-bottom: 18px; overflow: visible; }
.scale-icon [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) - .35) * 2.2, 1));
  transition: stroke .4s;
}
.scale-name {
  font-family: var(--display); font-variation-settings: "wdth" 72, "wght" 300;
  font-size: clamp(30px, 2.8vw, 44px); line-height: 1;
  transition: font-variation-settings .6s var(--ease-out);
}
.scale-field { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: 8px; }
.scale-school { font-size: 15px; line-height: 1.45; color: var(--ink-2); align-self: end; }
.scale-note { display: block; margin-top: 6px; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--draft); }
.scale--now { background: var(--ink); color: var(--paper); }
.scale--now .scale-icon, .scale--now .scale-field { color: var(--paper); }
.scale--now .scale-school { color: rgba(242, 238, 230, .7); }
.scale:not(.scale--now):hover { background: var(--paper-2); }
.scale:hover .scale-name { font-variation-settings: "wdth" 108, "wght" 380; }
.scale:hover .scale-icon [pathLength] { stroke: var(--draft); }
.scale--now:hover .scale-icon [pathLength] { stroke: #9fb4e6; }
/* arrow from one scale to the next */
.scale:not(:last-child)::after {
  content: "→"; position: absolute; right: -9px; top: 46px; z-index: 1;
  width: 18px; text-align: center; background: var(--paper); font-size: 13px; color: var(--ink-3);
}

/* ---------- Work ---------- */
.work-intro { max-width: 40ch; color: var(--ink-2); margin-bottom: clamp(32px, 5vh, 56px); }
.projects { border-top: 1px solid var(--line-strong); }
.project { border-bottom: 1px solid var(--line-strong); position: relative; }
.project::before { /* ink wash that sweeps in on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.project article {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 16px 40px; align-items: baseline;
  padding: clamp(30px, 5vh, 56px) 0;
}
.project-index { font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); transition: color .3s; }
.project-title {
  font-family: var(--display); font-variation-settings: "wdth" 72, "wght" 280;
  font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.005em;
  transition: font-variation-settings .7s var(--ease-out), transform .7s var(--ease-out), color .3s;
}
.project-desc { color: var(--ink-2); max-width: 36ch; transition: opacity .4s; }
.project-link, .also-item a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding-bottom: 3px; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.project-link:hover, .also-item a:hover { background-size: 0 1px; background-position: right bottom; }
.preview { margin: 0; overflow: hidden; background: var(--paper-2); outline: 1px solid var(--line); }
.preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* desktop with a real pointer: rows react, inline previews give way to the floating one */
@media (hover: hover) and (pointer: fine) {
  .project .preview, .also-item .preview { display: none; }
  .project:hover::before, .project:focus-within::before { transform: scaleY(1); transform-origin: top; }
  .project:hover .project-title, .project:focus-within .project-title { font-variation-settings: "wdth" 112, "wght" 330; transform: translateX(14px); }
  .project:hover .project-index, .project:focus-within .project-index { color: var(--draft); }
  .projects:hover .project:not(:hover) { opacity: .28; }
  .project:hover .project-desc { opacity: 0; }
  .project { transition: opacity .5s var(--ease); }
  .also-item a { font-size: 15px; }
}

.also {
  margin-top: clamp(64px, 10vh, 110px);
  display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px 40px; align-items: baseline;
}
.also-title { grid-column: 2; font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.also-list { display: flex; flex-wrap: wrap; gap: 20px 48px; grid-column: 3 / -1; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.service-grid li {
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-2); min-height: 240px; position: relative; overflow: hidden;
  transition: color .4s;
}
.service-grid li::after { /* hatch fill that slides in, like a poché */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(47, 74, 134, .07) 0 1px, transparent 1px 9px);
  clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease-out);
}
.service-grid li:hover::after { clip-path: inset(0 0 0 0); }
.service-grid li:hover { color: var(--ink); }
.service-grid strong {
  display: block; color: var(--ink);
  font-family: var(--display); font-variation-settings: "wdth" 80, "wght" 350;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.16; margin: 14px 0; max-width: 22ch;
  transition: font-variation-settings .6s var(--ease-out);
}
.service-grid li:hover strong { font-variation-settings: "wdth" 100, "wght" 420; }
.cell-no { font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--draft); }
.service-grid li::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 9px; height: 9px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat;
  transition: transform .6s var(--ease-out);
}
.service-grid li:hover::before { transform: rotate(45deg); }

/* ---------- How we work: route drawn by scroll ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; position: relative; padding-top: 56px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line); }
.steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--draft);
  transform-origin: left; transform: scaleX(clamp(0, (var(--p, 1) - .15) * 1.6, 1));
}
.steps li { counter-increment: step; position: relative; color: var(--ink-2); max-width: 30ch; transition: opacity .6s, transform .8s var(--ease-out); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -56px; left: 0; z-index: 1;
  font: 500 12px/21px var(--mono); letter-spacing: .1em; color: var(--ink-3);
  background: var(--paper); padding: 0 12px 0 0; transition: color .4s;
}
.steps li::after { content: ""; position: absolute; top: -50px; left: 32px; width: 9px; height: 9px; border: 1px solid var(--ink-3); border-radius: 50%; background: var(--paper); z-index: 1; transition: background-color .4s, border-color .4s, transform .5s var(--ease-out); }
.js .steps li:not(.lit) { opacity: .25; transform: translateY(14px); }
.steps li.lit::before { color: var(--draft); }
.steps li.lit::after { background: var(--draft); border-color: var(--draft); transform: scale(1.3); }
.steps strong { display: block; color: var(--ink); font-family: var(--display); font-variation-settings: "wdth" 80, "wght" 350; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 140px); }
.contact-title { font-family: var(--display); font-variation-settings: "wdth" 72, "wght" 250; font-size: clamp(44px, 6vw, 96px); line-height: 1.0; margin-bottom: 24px; max-width: 10ch; }
.contact-head p { color: var(--ink-2); max-width: 32ch; }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 6px; position: relative; }
.field label { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.field:focus-within label { color: var(--draft); }
.opt { text-transform: none; letter-spacing: .02em; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 400 18px/1.5 var(--body); padding: 8px 0 10px;
  background: linear-gradient(var(--draft), var(--draft)) left bottom / 0 2px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px, 100% 1px; }
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { background-image: linear-gradient(#9a2a1f, #9a2a1f), linear-gradient(#9a2a1f, #9a2a1f); }
.error { color: #9a2a1f; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .button { justify-self: start; margin-top: 8px; }
.form .button[disabled] { opacity: .5; }
.form-status { font-size: 17px; min-height: 1.6em; }
.form-status.is-done { font-family: var(--display); font-variation-settings: "wdth" 80, "wght" 350; font-size: 28px; }
.form.is-sent .field, .form.is-sent .button { display: none; }

/* ---------- Email call to action ---------- */
.email-cta { display: grid; gap: 18px; align-content: start; }
.email-hint { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.email-asks { counter-reset: ask; border-top: 1px solid var(--line-strong); }
.email-asks li {
  counter-increment: ask; display: flex; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-variation-settings: "wdth" 82, "wght" 330; font-size: clamp(20px, 1.8vw, 26px);
}
.email-asks li::before { content: counter(ask, decimal-leading-zero); font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--draft); }
.email-asks .opt { font: 400 13px/1 var(--mono); }
.email-cta .button { justify-self: start; margin-top: 10px; }
.email-addr {
  justify-self: start; font: 400 14px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 2px;
}
.email-addr:hover { color: var(--draft); }

/* ---------- Footer ---------- */
.site-footer {
  width: var(--col); margin-inline: auto; display: flex; justify-content: space-between; gap: 16px;
  padding: 28px 0 40px; border-top: 1px solid var(--line);
  font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .service-grid li.reveal:nth-child(2) { transition-delay: .08s; }
.js .service-grid li.reveal:nth-child(3) { transition-delay: .16s; }
.js .service-grid li.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .project article { grid-template-columns: 1fr auto; }
  .project-index { grid-column: 1 / -1; }
  .project-desc { grid-column: 1 / -1; }
  .also { grid-template-columns: 1fr; }
  .also-title, .also-list { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .training, .recognition { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .rec { grid-template-columns: 48px 1fr; }
  .rec-detail { grid-column: 2; }
  .trust-item { padding: 18px 14px 20px; }
}
@media (max-width: 520px) {
  .scales { grid-template-columns: 1fr; }
  .scale { border-right: 0; border-bottom: 1px solid var(--line-strong); min-height: 0; grid-template-columns: 56px 1fr; grid-template-rows: auto; column-gap: 18px; }
  .scale:last-child { border-bottom: 0; }
  .scale-icon { grid-row: 1 / span 3; width: 48px; height: 48px; margin: 0; }
  .scale-school { grid-column: 2; }
  .scale::after { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { flex-direction: column; gap: 10px; padding-block: 16px 20px; position: absolute; background: none; }
  .site-header ul { flex-wrap: wrap; gap: 6px 18px; }
  html { scroll-padding-top: 16px; }
  .hero { padding-top: 140px; }
  .section { padding-block: 72px 88px; }
  .positioning { font-size: clamp(42px, 12.5vw, 64px); }
  .plan-lines { opacity: .16; }
  .plan-marks { opacity: .3; }
  .about-text { margin: 0; font-size: 22px; }
  .frag { opacity: .22; }
  .frag-contact { bottom: 20px; }
  .frag-about { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-left: 48px; }
  .steps::before, .steps::after { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(clamp(0, (var(--p, 1) - .1) * 1.5, 1)); }
  .steps li::before { top: 2px; left: -48px; padding: 0 0 6px; background: none; left: -36px; }
  .steps li::after { top: 7px; left: -48px; }
  .scroll-cue { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .project article { grid-template-columns: 1fr; }
  .project-index, .project-desc, .project-link { grid-column: auto; }
  .project .preview { order: -1; margin-bottom: 6px; }
  .project-index { order: -2; }
  .project-link { justify-self: start; }
  .also-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .also-item { display: flex; flex-direction: column-reverse; gap: 12px; }
  .also-item a { align-self: flex-start; }
}
@media (max-width: 480px) and ((hover: none) or (pointer: coarse)) {
  .also-list { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: everything still, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-inner > *, .js .reveal, .js .steps li, .js .trust-item { opacity: 1 !important; transform: none !important; }
  .js [data-split] .ch, .js [data-split] .w-in { transform: none !important; }
  .plan-lines [pathLength], .frag [pathLength], .scale-icon [pathLength] { stroke-dashoffset: 0 !important; }
  .frag .keep-dash { opacity: 1 !important; }
  .plan-lines, .plan-marks, .hero-inner { transform: none !important; }
  .hero-inner { opacity: 1 !important; }
  .section::after { transform: none !important; }
  .steps::after { transform: none !important; }
  .scroll-cue { display: none; }
}
