/* ============ Tokens ============ */
:root {
  --bg: #08080a;
  --bg-2: #111114;
  --fg: #eceae4;
  --muted: #8a8a8f;
  --line: rgba(236, 234, 228, 0.12);
  --accent: #d4ff3a;
  --accent-ink: #0b0b0b;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Keyboard focus — visible only when navigating with keyboard, not on mouse click */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible, .nav__links a:focus-visible, .quote__btn:focus-visible, .nav__burger:focus-visible { border-radius: 999px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1001;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* No JavaScript (or scripts blocked): never leave the loader covering the page */
.no-js .loader { display: none; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.dim { color: var(--muted); }

.section { padding: clamp(96px, 14vw, 200px) var(--gutter); }
.eyebrow { color: var(--muted); margin-bottom: 28px; }
.h2 {
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h2 .serif { font-size: 1.08em; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
}
.loader__count {
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 500; letter-spacing: -0.06em; line-height: 0.85;
}
.loader__bar { height: 1px; background: var(--line); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ Cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.3s;
  display: grid; place-items: center;
}
.cursor__label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); opacity: 0; transition: opacity 0.2s;
}
.cursor.is-hover { width: 48px; height: 48px; }
.cursor.is-view { width: 96px; height: 96px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, -2%); }
  80% { transform: translate(5%, 6%); } 100% { transform: translate(0, 0); }
}

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--accent-ink); }
.btn--pill { height: 44px; padding: 0 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); backdrop-filter: blur(10px); transition: color 0.3s; }
.btn__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: background 0.3s; }
.btn:hover .btn__dot { background: var(--accent-ink); }
.btn--light { background: var(--fg); color: var(--accent-ink); }

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

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: rgba(8, 8, 10, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  position: relative;
}
.logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.nav__links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--fg); transition: transform 0.4s var(--ease); }
.nav.menu-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.menu-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease); }
.mobile-menu a { font-size: 56px; letter-spacing: -0.04em; font-weight: 500; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 56px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__meta { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 32px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212,255,58,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,58,0); } }

.hero__title {
  font-size: clamp(52px, 10.4vw, 188px);
  line-height: 0.9; letter-spacing: -0.055em; font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .word { display: inline-block; }
.hero__title .serif { font-size: 1.06em; letter-spacing: -0.03em; }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__sub { max-width: 440px; color: var(--muted); font-size: 18px; }
.hero__ctas { display: flex; align-items: center; gap: 28px; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 1;
  writing-mode: vertical-rl; color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.hero__scroll span { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }

/* ============ Marquee ============ */
.marquee { border-block: 1px solid var(--line); padding: 28px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee__group span { font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.marquee__group span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; }
.marquee__group i { color: var(--accent); font-style: normal; font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Manifesto ============ */
.manifesto__text {
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500;
  max-width: 1300px;
}
.manifesto__text .w { opacity: 0.14; transition: opacity 0.2s; }

/* ============ Services ============ */
.section__head { margin-bottom: 64px; }
.services__list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); position: relative; }
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); z-index: -1;
}
.service:hover::before, .service.is-open::before { transform: scaleY(1); }
.service__row {
  display: grid; grid-template-columns: 80px 1fr 48px; align-items: center;
  padding: 36px 8px; cursor: pointer; width: 100%; text-align: left;
}
.service__num { color: var(--muted); }
.service__title {
  font-size: clamp(32px, 5.2vw, 84px); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.service:hover .service__title, .service.is-open .service__title { transform: translateX(16px); }
.service.is-open .service__title { color: var(--accent); }
.service__plus { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 0.5s var(--ease), background 0.3s; }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); }
.service__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service.is-open .service__plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.service.is-open .service__plus::before, .service.is-open .service__plus::after { background: var(--accent-ink); }
.service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__body > div { overflow: hidden; padding-left: 88px; padding-right: 8px; }
.service__body p { max-width: 560px; color: var(--muted); font-size: 19px; padding-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 36px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* ============ Work ============ */
.work { position: relative; }
.work__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 100px 0 40px; }
.work__head { padding: 0 var(--gutter); margin-bottom: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 48px; }
.work__head .eyebrow { width: 100%; margin-bottom: 0; }
.work__progress { flex: 1; min-width: 120px; height: 1px; background: var(--line); margin-bottom: 18px; }
.work__progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.work__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; }
.project { width: min(62vw, 820px); flex-shrink: 0; }
.project__media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, var(--c1) 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--c1) 50%, transparent) 0%, transparent 60%),
    var(--c2);
  display: grid; place-items: center;
}
.project__info { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 4px 0; gap: 16px; }
.project__info h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.project__info p { color: var(--muted); }

/* mock UIs */
.mock { transition: transform 0.9s var(--ease); }
.project:hover .mock { transform: scale(1.04) translateY(-6px) rotate(-1deg); }
.mock--browser { width: 72%; aspect-ratio: 16 / 10; background: rgba(10,10,12,0.85); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 80px rgba(0,0,0,0.5); overflow: hidden; display: flex; flex-direction: column; }
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mock__bar { align-items: center; }
.domain {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(70% 80% at 50% 110%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%);
}
.domain__name {
  display: inline-flex; align-items: baseline;
  font-size: clamp(30px, 4.6vw, 68px); font-weight: 600; letter-spacing: -0.05em; color: var(--fg);
}
.domain__name .serif { color: var(--c1); font-weight: 400; }
.domain__caret {
  align-self: center; width: 3px; height: 0.9em; margin-left: 6px; border-radius: 2px;
  background: var(--c1); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.domain__status { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); }
.domain__status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.mock__url {
  margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55); font-size: 10px; text-transform: none; letter-spacing: 0.02em;
}

.project--cta { width: min(40vw, 520px); }
.project__media--cta {
  --c1: transparent; --c2: transparent;
  background: none; border: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  transition: background 0.5s var(--ease), border-color 0.5s;
}
.project__media--cta .serif { font-size: clamp(40px, 4.4vw, 72px); }
.project__media--cta .mono { color: var(--muted); transition: color 0.3s; }
.project__media--cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.project__media--cta:hover .mono { color: var(--accent-ink); }

/* ============ Process ============ */
.process { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.process__left { position: sticky; top: 140px; }
.process__left .muted { max-width: 360px; margin-top: 28px; font-size: 18px; }
.step { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 44px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-size: 64px; line-height: 0.9; color: var(--accent); }
.step h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.035em; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 440px; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 0; padding-bottom: 0; }
.stat { padding: 56px 24px 56px 0; border-right: 1px solid var(--line); }
.stat:not(:first-child) { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat__num, .stat__suf { font-size: clamp(56px, 6.4vw, 110px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.stat__suf { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: clamp(36px, 4vw, 64px); margin-left: 4px; }
.stat p { color: var(--muted); margin-top: 16px; }

/* ============ Quote ============ */
.quote__slider { display: grid; }
.quote__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.quote__item.is-active { opacity: 1; visibility: visible; }
.quote__item blockquote { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; max-width: 1200px; }
.quote__item .serif { font-size: 1.06em; }
.quote__item figcaption { margin-top: 40px; color: var(--muted); }
.quote__nav { display: flex; align-items: center; gap: 20px; margin-top: 56px; }
.quote__btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.quote__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.quote__count { color: var(--muted); }

/* ============ Contact ============ */
.contact { position: relative; padding: clamp(120px, 16vw, 240px) var(--gutter) clamp(80px, 10vw, 140px); overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow {
  position: absolute; width: 70vw; height: 70vw; left: 50%; top: 60%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,255,58,0.18), transparent 60%); filter: blur(40px); pointer-events: none;
}
.contact__title { position: relative; font-size: clamp(56px, 11vw, 200px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 500; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.contact__title .line > span { display: inline-block; }
.contact__title .serif { font-size: 1.05em; }
.contact__lead { position: relative; margin-top: 40px; font-size: 18px; }
.contact__options { position: relative; margin-top: 40px; border-top: 1px solid var(--line); }
.contact__options li { border-bottom: 1px solid var(--line); }
.copt {
  position: relative; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px;
  padding: 28px 8px; isolation: isolate; transition: color 0.4s, padding 0.6s var(--ease);
}
.copt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.copt:hover { color: var(--accent-ink); padding-left: 24px; padding-right: 24px; }
.copt:hover::before { transform: scaleY(1); }
.copt__label { color: var(--muted); transition: color 0.4s; }
.copt:hover .copt__label { color: var(--accent-ink); }
.copt__value { font-size: clamp(26px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.copt__arrow {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: var(--accent); color: var(--accent-ink); transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.copt:hover .copt__arrow { background: var(--accent-ink); color: var(--accent); transform: rotate(45deg); }

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px; border-radius: 999px;
  background: #25d366; color: #062b14; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* ============ Training ============ */
.training { border-top: 1px solid var(--line); }
.training__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.training__intro { font-size: 19px; max-width: 480px; }
.training__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard {
  position: relative; padding: 36px 32px 40px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); overflow: hidden;
  transition: border-color 0.5s, translate 0.6s var(--ease);
}
.tcard::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,255,58,0.22), transparent 65%);
  opacity: 0; transition: opacity 0.6s;
}
.tcard:hover { border-color: rgba(212,255,58,0.4); translate: 0 -6px; }
.tcard:hover::after { opacity: 1; }
.tcard__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); margin-bottom: 64px; }
.tcard h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 12px; }
.tcard p { color: var(--muted); }
.training__topics { margin-top: 72px; }
.topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.topics li {
  padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.02em; font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.topics li.serif { font-weight: 400; }
.topics li:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.training__cta { margin-top: 56px; }

/* ============ Footer ============ */
.footer { padding: 0 var(--gutter) 28px; }
.footer__top { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
.footer__top p + p { margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: var(--accent); }
.footer__word {
  font-size: clamp(64px, 18.4vw, 360px); padding-right: 0.06em; font-weight: 600; letter-spacing: -0.07em; line-height: 0.8;
  text-align: center; white-space: nowrap; padding: 24px 0 40px; pointer-events: none; user-select: none;
  background: linear-gradient(to bottom, var(--fg) 30%, rgba(236,234,228,0.05));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__word .serif { font-weight: 400; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav__links, .nav .btn--pill { display: none; }
  .nav__burger { display: flex; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .hero__meta .hero__time { display: none; }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .process__left { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 40px 16px 40px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 20px !important; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .training__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .training__grid { grid-template-columns: 1fr; }
  .tcard__num { margin-bottom: 32px; }

  /* Work becomes a vertical stack */
  .work__pin { height: auto; padding: 96px 0; }
  .work__track { flex-direction: column; width: auto; gap: 48px; }
  .project, .project--cta { width: 100%; }
  .work__progress { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(40px, 11.6vw, 64px); }
  .service__row { grid-template-columns: 36px 1fr 40px; gap: 12px; padding: 28px 0; }
  .service__title { font-size: clamp(26px, 7.4vw, 40px); }
  .service:hover .service__title, .service.is-open .service__title { transform: none; }
  .project__info { flex-direction: column; gap: 6px; }
  .footer__word { font-size: 17vw; padding-right: 0.08em; }
  .service__plus { width: 40px; height: 40px; }
  .service__body > div { padding-left: 48px; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; }
  .step__num { font-size: 44px; }
  .hero__ctas { gap: 20px; flex-wrap: wrap; }
  .copt { grid-template-columns: 1fr auto; row-gap: 6px; padding: 22px 0; }
  .copt:hover { padding-left: 12px; padding-right: 12px; }
  .copt__label { grid-column: 1; }
  .copt__value { grid-column: 1; font-size: clamp(22px, 6.4vw, 30px); overflow-wrap: anywhere; }
  .copt__arrow { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .wa-float { width: 56px; padding: 0; justify-content: center; bottom: 16px; }
  .wa-float span { display: none; }
  .topics li { padding: 10px 16px; }
  .footer__top { grid-template-columns: 1fr; }
  .mock--browser { width: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .manifesto__text .w { opacity: 1; }
}
