/* ==========================================================================
   Tokens
   ========================================================================== */
/* Three brand palettes. Each defines the page colours plus an inverse set
   (--x-*) used by .dark sections. Switch with <html data-theme="a|b|c">. */
:root, [data-theme="a"] {          /* A: Paper & Amber */
  --bg: #eeece7; --bg-2: #e4e1da; --ink: #0f0f0f; --muted: #6c6963;
  --line: rgba(15, 15, 15, .14); --line-strong: rgba(15, 15, 15, .28);
  --accent: #e39b2b; --accent-deep: #a8650f; --on-accent: #0f0f0f;
  --x-bg: #0f0f0f; --x-bg-2: #1a1a19; --x-ink: #eeece7; --x-muted: #8e8b84;
  --x-line: rgba(238, 236, 231, .14); --x-line-strong: rgba(238, 236, 231, .28); --x-accent-deep: #e39b2b;
  --holo: #ffbf5c; --holo-deep: #9c5a08;
  --page-bg: #eeece7; --page-ink: #0f0f0f; --page-line: rgba(15, 15, 15, .14);
  --world-ground: #c9c0ad; --world-peak: #ebe6db; --world-cloud: #ffffff; --world-sun: #f2b04a;
}
[data-theme="b"] {                 /* B: Obsidian & Ember */
  --bg: #09090a; --bg-2: #141415; --ink: #f3efe9; --muted: #8c8781;
  --line: rgba(243, 239, 233, .12); --line-strong: rgba(243, 239, 233, .24);
  --accent: #ff4a26; --accent-deep: #ff6b4d; --on-accent: #0a0a0b;
  --x-bg: #1c0b07; --x-bg-2: #26110b; --x-ink: #f3efe9; --x-muted: #b0948c;
  --x-line: rgba(243, 239, 233, .13); --x-line-strong: rgba(243, 239, 233, .26); --x-accent-deep: #ff6b4d;
  --holo: #ff6a45; --holo-deep: #ff4a26;
  --page-bg: #09090a; --page-ink: #f3efe9; --page-line: rgba(243, 239, 233, .12);
  --world-ground: #0d0a09; --world-peak: #3a1d14; --world-cloud: #3b221b; --world-sun: #ff5a2e;
}
[data-theme="c"] {                 /* C: Glacier & Gold */
  --bg: #edf1f4; --bg-2: #dfe6ec; --ink: #0d1b2e; --muted: #5a6779;
  --line: rgba(13, 27, 46, .14); --line-strong: rgba(13, 27, 46, .28);
  --accent: #f2b11a; --accent-deep: #9a6a00; --on-accent: #0d1b2e;
  --x-bg: #0d1b2e; --x-bg-2: #142640; --x-ink: #edf1f4; --x-muted: #8a9ab0;
  --x-line: rgba(237, 241, 244, .14); --x-line-strong: rgba(237, 241, 244, .28); --x-accent-deep: #f2b11a;
  --holo: #47c8ff; --holo-deep: #0a5bd1;
  --page-bg: #edf1f4; --page-ink: #0d1b2e; --page-line: rgba(13, 27, 46, .14);
  --world-ground: #aebdcc; --world-peak: #eef3f7; --world-cloud: #ffffff; --world-sun: #8fd3ff;
}
:root {
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main, footer { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -0.04em; line-height: .95; }
h1 { font-size: clamp(3.3rem, 10.2vw, 11.5rem); letter-spacing: -0.055em; line-height: .88; }
h2 { font-size: clamp(2.4rem, 6.4vw, 6.6rem); letter-spacing: -0.05em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
h1 em, h2 em { padding-right: .04em; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { position: relative; padding: clamp(96px, 13vw, 200px) 0; }
.dark {
  --bg: var(--x-bg); --bg-2: var(--x-bg-2); --ink: var(--x-ink); --muted: var(--x-muted);
  --line: var(--x-line); --line-strong: var(--x-line-strong); --accent-deep: var(--x-accent-deep);
  background: var(--bg); color: var(--ink);
}
body, .dark, .header, .btn, .index__row::before { transition: background-color .6s var(--ease), color .6s var(--ease); }

.label { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.label::before { content: "("; }
.label::after { content: ")"; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.45; letter-spacing: -0.015em; max-width: 34ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 12-column grid */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 0; cursor: pointer; white-space: nowrap; transition: background .5s var(--ease);
}
.btn__circle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; overflow: hidden;
}
.btn__circle svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover .btn__circle svg { transform: rotate(-45deg); }
.btn--light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .7s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link svg { width: 15px; height: 15px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 22px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: transform .7s var(--ease), background .4s, padding .4s var(--ease);
  mix-blend-mode: normal;
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand svg { width: 34px; height: 34px; flex: none; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-size: 19px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.brand__name em { font-size: 1.08em; margin-right: .12em; }
.mark-ink { fill: currentColor; }
.mark-amber { fill: var(--accent); }
.mark-pupil { fill: var(--bg); }
.menu-open .mark-pupil { fill: var(--ink); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.15em; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.nav sup { font-size: 10px; margin-left: 2px; color: var(--muted); }
.header__cta { justify-self: end; font-size: 15px; }
.menu-btn { display: none; justify-self: end; background: none; border: 0; padding: 8px 0; font-size: 15px; font-weight: 500; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--bg);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--bg); background: transparent; backdrop-filter: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(3rem, 15vw, 5.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.02; }
.menu nav a[aria-current="page"] { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: color-mix(in srgb, var(--bg) 60%, transparent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 28px; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero h1 { margin-bottom: clamp(40px, 5vw, 80px); max-width: 13ch; font-size: clamp(3.2rem, 8.6vw, 9.8rem); }
.hero h1 .indent { display: inline-block; width: 1.6em; }
.hero__bottom { align-items: end; row-gap: 32px; }
.hero__intro { grid-column: 1 / span 4; }
.hero__intro p { margin-bottom: 26px; }
.hero__meta { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 13.5px; line-height: 1.4; padding-top: 14px; border-top: 1px solid var(--line); }
.hero__meta span { display: block; color: var(--muted); margin-bottom: 4px; }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 0 rgba(47, 179, 109, .5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(47, 179, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 109, 0); } }

.page-hero { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 40px; isolation: isolate; }
.page-hero .hero__canvas { left: 0; }
.page-hero h1 { font-size: clamp(3rem, 7.6vw, 8.4rem); max-width: 13ch; margin-bottom: 56px; }
.define { grid-column: 1 / span 5; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.2; }
.define b { font-weight: 500; font-size: 1.6em; letter-spacing: -0.05em; display: block; }
.define small { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0; margin: 6px 0 18px; }
.page-hero__foot { align-items: end; row-gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.page-hero__foot .label { grid-column: 1 / span 3; }
.page-hero__foot .lead { grid-column: 4 / span 5; max-width: 40ch; }
.page-hero__foot .crumbs { grid-column: 10 / span 3; justify-self: end; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Intro statement
   ========================================================================== */
.statement { grid-column: 3 / span 10; font-size: clamp(1.9rem, 4.1vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; margin: 0; }
.statement em { color: var(--accent-deep); }
.dark em { color: var(--accent); }
.side-label { grid-column: 1 / span 2; padding-top: .6em; }
.pains { margin-top: clamp(64px, 9vw, 130px); }
.pain { grid-column: span 4; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.pain h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.pain p { color: var(--muted); max-width: 32ch; margin: 0; }
.pain .num { font-size: 13px; color: var(--muted); display: block; margin-bottom: 42px; }

/* ==========================================================================
   Service index (home)
   ========================================================================== */
.head-row { align-items: end; margin-bottom: clamp(40px, 6vw, 80px); row-gap: 24px; }
.head-row h2 { grid-column: 1 / span 8; }
.head-row h2 sup { font-size: .22em; letter-spacing: 0; vertical-align: top; position: relative; top: .5em; margin-left: .2em; font-weight: 400; }
.head-row p { grid-column: 9 / span 4; color: var(--muted); max-width: 36ch; margin: 0; }

.index { border-top: 1px solid var(--line-strong); }
.index__row {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px);
  align-items: center; padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line-strong); isolation: isolate;
}
.index__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.index__row:hover::before { transform: scaleY(1); transform-origin: top; }
.index__row > * { transition: color .5s var(--ease), transform .7s var(--ease); }
.index__row:hover > * { color: var(--bg); }
.index__num { grid-column: span 1; font-size: 13.5px; color: var(--muted); }
.index__name { grid-column: span 5; font-size: clamp(1.9rem, 3.7vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.index__row:hover .index__name { transform: translateX(18px); }
.index__desc { grid-column: span 5; color: var(--muted); font-size: 15.5px; max-width: 40ch; }
.index__row:hover .index__desc { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.index__arrow { grid-column: span 1; justify-self: end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.index__row:hover .index__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.index__arrow svg { width: 17px; height: 17px; }

/* ==========================================================================
   Engine (dark)
   ========================================================================== */
.engine-head { row-gap: 28px; margin-bottom: clamp(56px, 8vw, 120px); align-items: end; }
.engine-head h2 { grid-column: 1 / span 7; }
.engine-head p { grid-column: 9 / span 4; color: var(--muted); margin: 0; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.stage { padding: 22px 22px 0 0; border-right: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; }
.stage + .stage { padding-left: 22px; }
.stage:last-child { border-right: 0; }
.stage__num { font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1; color: var(--accent); margin-bottom: auto; padding-bottom: 60px; letter-spacing: -0.03em; }
.stage h3 { margin-bottom: 12px; }
.stage__tags { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.stage p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ==========================================================================
   Why / workflow
   ========================================================================== */
.why { row-gap: 64px; }
.why__text { grid-column: 1 / span 6; }
.why__text h2 { font-size: clamp(2.2rem, 4.8vw, 5rem); margin-bottom: 34px; }
.why__text .lead { max-width: 40ch; }
.why__list { grid-column: 8 / span 5; list-style: none; padding: 0; margin: 0; counter-reset: why; align-self: end; }
.why__list li { counter-increment: why; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li::before { content: "0" counter(why); font-size: 13px; color: var(--muted); padding-top: 3px; }
.why__list b { font-weight: 500; display: block; margin-bottom: 2px; }
.why__list span { color: var(--muted); font-size: 15px; }

.flow { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 80px); background: var(--bg-2); border-radius: 4px; padding: clamp(22px, 3vw, 40px); }
.flow__top { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.flow__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow__step { position: relative; padding: 20px 18px 0 0; border-top: 1px solid var(--line-strong); }
.flow__step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.flow__step:last-child::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.flow__step small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 26px; text-transform: uppercase; letter-spacing: .06em; }
.flow__step b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.flow__step span { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Process
   ========================================================================== */
.steps { border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.step__num { grid-column: span 1; font-size: 13.5px; color: var(--muted); }
.step h3 { grid-column: span 4; font-size: clamp(1.8rem, 3.4vw, 3.2rem); letter-spacing: -0.045em; }
.step p { grid-column: 7 / span 5; color: var(--muted); margin: 0; max-width: 46ch; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { row-gap: 40px; }
.faq-wrap > h2 { grid-column: 1 / span 4; font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.faq { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; margin: 0; max-width: 60ch; }

/* ==========================================================================
   CTA (dark)
   ========================================================================== */
.cta { padding: clamp(110px, 14vw, 220px) 0 clamp(60px, 7vw, 100px); }
.cta h2 { font-size: clamp(4.6rem, 19vw, 21rem); letter-spacing: -0.065em; line-height: .82; margin-bottom: clamp(48px, 7vw, 100px); }
.cta h2 em { color: var(--accent); }
.cta__row { align-items: end; row-gap: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.cta__row p { grid-column: 1 / span 5; color: var(--muted); max-width: 38ch; margin: 0; }
.cta__row .cta__mail { grid-column: 6 / span 4; font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: -0.03em; }
.cta__row .btn { grid-column: 10 / span 3; justify-self: end; }

/* ==========================================================================
   About
   ========================================================================== */
.story { row-gap: 48px; align-items: start; }
.portrait { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; border-radius: 3px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px; font-size: 13px; color: var(--muted); }
.portrait__ph span { position: absolute; top: 20px; left: 22px; }
.portrait__ph b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(5rem, 11vw, 10rem); line-height: .8; color: var(--ink); letter-spacing: -0.04em; }
.portrait figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.story__text { grid-column: 7 / span 6; }
.story__text h2 { font-size: clamp(2.4rem, 4.8vw, 5rem); margin-bottom: 36px; }
.story__text p { color: var(--muted); max-width: 52ch; }
.story__text p.lead { color: var(--ink); margin-bottom: 1.2em; max-width: 36ch; }

.principles { border-top: 1px solid var(--line-strong); }
.principle { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); padding: 30px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.principle h3 { grid-column: 1 / span 6; font-size: clamp(1.8rem, 3.6vw, 3.4rem); letter-spacing: -0.045em; }
.principle p { grid-column: 8 / span 5; color: var(--muted); margin: 0; }

.skills { columns: 3; column-gap: 24px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.skills li { break-inside: avoid; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ==========================================================================
   Services detail
   ========================================================================== */
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.svc-jump a { color: var(--muted); transition: color .3s; }
.svc-jump a:hover { color: var(--ink); }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: 32px; padding: clamp(56px, 7vw, 110px) 0; border-top: 1px solid var(--line-strong); scroll-margin-top: 80px; }
.svc__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 110px; }
.svc__num { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 20px; }
.svc__head h2 { font-size: clamp(2.2rem, 4.4vw, 4.6rem); margin-bottom: 22px; }
.svc__outcome { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 24ch; }
.svc__body { grid-column: 7 / span 6; }
.svc__body > p { font-size: 1.15rem; line-height: 1.5; letter-spacing: -0.015em; margin-bottom: 40px; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.svc__cols h4 { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }

.ways { border-top: 1px solid var(--line); }
.way { grid-column: span 4; padding: 26px 24px 0 0; }
.way + .way { border-left: 1px solid var(--line); padding-left: 24px; }
.way span { font-size: 13px; color: var(--muted); display: block; margin-bottom: 70px; }
.way h3 { margin-bottom: 14px; }
.way p { color: var(--muted); margin: 0; max-width: 34ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { row-gap: 64px; align-items: start; }
.contact__aside { grid-column: 1 / span 4; position: sticky; top: 110px; }
.contact__mail { display: inline-block; font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; margin: 10px 0 40px; }
.contact__facts { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.contact__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact__facts span { color: var(--muted); }
.next { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; padding: 8px 0; color: var(--muted); font-size: 15px; }
.next li::before { content: "0" counter(n); font-size: 13px; padding-top: 2px; }
.next b { color: var(--ink); font-weight: 500; }

.form { grid-column: 6 / span 7; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 8px; }
.field { position: relative; display: flex; flex-direction: column; padding-top: 18px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; outline: none;
  transition: border-color .4s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-size: 6px 6px; background-position: calc(100% - 10px) 52%, calc(100% - 4px) 52%; background-repeat: no-repeat;
}
.field select option { background: var(--bg); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.4; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--accent); }
fieldset.field { border: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14.5px; cursor: pointer; transition: background .4s var(--ease), color .4s; user-select: none; }
.chip span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; max-width: 32ch; }
.hp { position: absolute; left: -9999px; }
.form__status { display: none; margin-top: 20px; font-size: 15px; color: var(--accent); }
.form__status.is-error { display: block; }
.form__success { display: none; padding: 40px 0; border-top: 1px solid var(--line-strong); }
.form__success h3 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.form__success p { color: var(--muted); max-width: 40ch; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__success { display: block; }
.btn.is-loading { opacity: .6; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(64px, 8vw, 110px) 0 24px; }
.footer__top { row-gap: 40px; padding-bottom: clamp(60px, 9vw, 140px); }
.footer__top > div:first-child { grid-column: 1 / span 5; }
.footer__top p { color: var(--muted); max-width: 34ch; }
.footer__col { grid-column: span 2; }
.footer__col:nth-child(2) { grid-column: 7 / span 2; }
.footer__col h4 { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.footer__col a:hover { color: var(--accent); }
.footer__big { font-size: clamp(5rem, 27vw, 30rem); font-weight: 600; letter-spacing: -0.07em; line-height: .78; white-space: nowrap; margin: 0 0 22px -0.04em; }
.footer__big em { display: block; font-size: .2em; letter-spacing: -0.02em; line-height: 1; margin: 0 0 .1em .25em; color: var(--accent-deep); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Cursor, curtain, reveals
   ========================================================================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent); opacity: 0;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), opacity .3s;
  display: grid; place-items: center; color: var(--ink); font-size: 12px; font-weight: 600;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: .25 !important; }
.cursor span { opacity: 0; transition: opacity .3s; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; opacity: 1 !important; }
.cursor.is-view span { opacity: 1; }

.curtain { position: fixed; inset: 0; z-index: 400; background: var(--ink); pointer-events: none; transform: translateY(100%); }
.curtain.is-cover { animation: cover .7s var(--ease-in-out) forwards; }
.curtain.is-reveal { animation: reveal .9s var(--ease-in-out) forwards; }
@keyframes cover { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes reveal { from { transform: translateY(0); } to { transform: translateY(-100%); } }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.js-anim [data-lines] { visibility: hidden; }
.js-anim [data-reveal] { opacity: 0; transform: translateY(30px); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 500; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* 3D door reveal on dark sections */
.dark { position: relative; }
.doors { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; perspective: 2000px; overflow: hidden; }
.door {
  position: relative; flex: 1; display: flex; align-items: center; overflow: hidden;
  background: var(--page-bg); color: var(--page-ink); will-change: transform; backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px var(--page-line);
}
.door--l { transform-origin: left center; justify-content: flex-end; }
.door--r { transform-origin: right center; justify-content: flex-start; }
.door svg { flex: none; width: clamp(120px, 16vw, 220px); height: auto; }
.door--l svg { margin-right: calc(clamp(120px, 16vw, 220px) / -2); }
.door--r svg { margin-left: calc(clamp(120px, 16vw, 220px) / -2); }
.door .mark-ink { fill: var(--page-ink); }
.door__label { position: absolute; bottom: 28px; font-size: 13px; color: var(--page-ink); opacity: .55; }
.door--l .door__label { left: var(--gutter); }
.door--r .door__label { right: var(--gutter); }
.door__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); opacity: 0; }
.door--r .door__shade { transform: scaleX(-1); }

/* Perspective for flip-in groups */
.index, .stages, .steps, .faq, .principles, .ways, .why__list, .footer__big { perspective: 1400px; }
.footer__big .ch { display: inline-block; transform-origin: 50% 100%; }

/* Fixed hologram layer: the eagle flies above the page; clicks pass through */
.eagle-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.eagle-stage canvas { width: 100% !important; height: 100% !important; }

/* Palette switcher (preview only; remove once a palette is chosen) */
.palette {
  position: fixed; left: 50%; bottom: 18px; z-index: 350; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--ink); color: var(--bg); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .45);
  font-size: 13px; white-space: nowrap;
}
.palette > span { padding: 0 10px 0 12px; opacity: .6; }
.palette button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; transition: background .3s;
}
.palette button:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.palette button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.palette i { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }
.palette i b { flex: 1; }
@media (max-width: 640px) {
  .palette { bottom: 10px; }
  .palette > span, .palette button em { display: none; }
  .palette button { padding: 6px; }
}

@media (max-width: 1100px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 22px 0 32px !important; }
  .stage:nth-child(odd) { padding-right: 22px !important; border-right: 1px solid var(--line); }
  .stage:nth-child(even) { padding-left: 22px !important; }
  .stage__num { padding-bottom: 28px; }
  .flow__track { grid-template-columns: 1fr; gap: 0; }
  .flow__step { border-top: 0; border-left: 1px solid var(--line-strong); padding: 0 0 26px 24px; }
  .flow__step::before { left: -5px; top: 4px; }
  .flow__step small { margin-bottom: 6px; }
}
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .menu-btn { display: block; }
  .hero__intro { grid-column: 1 / -1; }
  .hero__meta { grid-column: 1 / -1; }
  .statement, .side-label { grid-column: 1 / -1; }
  .pain { grid-column: 1 / -1; margin-bottom: 28px; }
  .pain .num { margin-bottom: 14px; }
  .head-row h2, .head-row p, .engine-head h2, .engine-head p { grid-column: 1 / -1; }
  .index__num { grid-column: span 2; }
  .index__name { grid-column: span 9; }
  .index__desc { grid-column: 3 / span 10; grid-row: 2; margin-top: 8px; }
  .index__arrow { grid-column: span 1; width: 36px; height: 36px; }
  .why__text, .why__list { grid-column: 1 / -1; }
  .step__num { grid-column: span 2; }
  .step h3 { grid-column: span 10; }
  .step p { grid-column: 3 / -1; margin-top: 10px; }
  .faq-wrap > h2, .faq { grid-column: 1 / -1; }
  .cta__row p, .cta__row .cta__mail, .cta__row .btn { grid-column: 1 / -1; justify-self: start; }
  .portrait, .story__text, .define { grid-column: 1 / -1; }
  .portrait { max-width: 520px; }
  .principle h3, .principle p { grid-column: 1 / -1; }
  .principle p { margin-top: 10px; }
  .skills { columns: 2; }
  .svc__head, .svc__body { grid-column: 1 / -1; position: static; }
  .way { grid-column: 1 / -1; border-left: 0 !important; padding: 24px 0 !important; border-bottom: 1px solid var(--line); }
  .way span { margin-bottom: 24px; }
  .contact__aside, .form { grid-column: 1 / -1; position: static; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .footer__col, .footer__col:nth-child(2) { grid-column: span 6; }
  .page-hero .hero__canvas { left: 0; opacity: .55; }
  .page-hero__foot .label, .page-hero__foot .lead, .page-hero__foot .crumbs { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 100px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div:last-child { display: none; }
  .stages { grid-template-columns: 1fr; }
  .stage:nth-child(odd) { border-right: 0; padding-right: 0 !important; }
  .stage:nth-child(even) { padding-left: 0 !important; }
  .svc__cols, .form__grid { grid-template-columns: 1fr; }
  .skills { columns: 1; }
  .page-hero { min-height: 80vh; padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
