/* ══════════════════════════════════════════════════════════
   Applied AI Team — site styles
   ══════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --ink: #eaeaea;
  --ink-dim: #9a9aa0;
  --muted: #6b6b72;
  --line: rgba(234, 234, 234, 0.12);
  --line-soft: rgba(234, 234, 234, 0.07);
  --acid: #d4f934;
  --acid-ink: #0a0a0b;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset / base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.loading { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

@media (pointer: fine) {
  body, a, button, [data-hover] { cursor: none; }
}

/* ── Shared label / titles ────────────────────────────── */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 0 var(--pad) 48px;
}
.label-dot {
  width: 6px; height: 6px;
  background: var(--acid);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 var(--pad);
}
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.accent-dot { color: var(--acid); }

/* ── Reveal primitives ────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms),
              transform 0.9s var(--ease-out) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

.ch { display: inline-block; transform: translateY(115%); transition: transform 0.9s var(--ease-out) calc(var(--i) * 24ms); }
.ch-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.chars-in .ch { transform: none; }

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

/* ── Cursor ───────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--acid);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(234, 234, 234, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s;
}
.cursor-label {
  font-size: 9px;
  color: var(--acid-ink);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--acid);
}
.cursor-ring.is-view {
  width: 84px; height: 84px;
  background: var(--acid);
  border-color: var(--acid);
}
.cursor-ring.is-view .cursor-label { opacity: 1; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Progress bar ─────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 250;
}
.progress-bar span {
  display: block; height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Preloader ────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.pre-center { text-align: center; }
.pre-logo {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pre-logo span { color: var(--acid); font-size: 0.4em; vertical-align: super; }
.pre-tag { color: var(--muted); margin-top: 18px; }
.pre-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
}
.pre-bar span {
  display: block; height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}
.pre-count {
  position: absolute;
  right: var(--pad); bottom: calc(var(--pad) - 12px);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.preloader.done {
  transform: translateY(-100%);
  transition: transform 0.9s var(--ease-io) 0.1s;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.hidden { transform: translateY(-100%); }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { display: block; width: clamp(132px, 18vw, 186px); height: auto; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--ink-dim); transition: color 0.3s; }
.nav-links a:hover { color: var(--ink); }

/* roll-up hover links */
.roll { display: inline-block; overflow: hidden; }
.roll-inner { display: inline-block; position: relative; transition: transform 0.45s var(--ease-out); }
.roll-inner span { display: block; }
.roll-inner span[aria-hidden] { position: absolute; top: 100%; left: 0; color: var(--acid); }
.roll:hover .roll-inner, .roll:focus-visible .roll-inner { transform: translateY(-100%); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px;
  height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 450;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.4s var(--ease-out), border-color 0.4s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  background: var(--acid);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--acid-ink); border-color: var(--acid); }
.btn:hover::before { transform: translateY(0); }
.btn-arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

.btn-primary { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-primary::before { background: var(--ink); }
.btn-primary:hover { color: var(--acid-ink); border-color: var(--ink); }

.btn-ghost { background: transparent; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 20px 38px; font-size: 16px; }

/* ── Mobile menu ──────────────────────────────────────── */
.menu {
  position: fixed; inset: 0;
  background: var(--bg-2);
  z-index: 190;
  display: flex; align-items: center;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu.open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-io);
}
.menu-inner { width: 100%; padding: 0 var(--pad); }
.menu-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.menu-link .mono { color: var(--acid); }
.menu-link em {
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: -0.03em;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.menu-link:hover em { transform: translateX(12px); color: var(--acid); }
.menu-meta {
  display: flex; justify-content: space-between;
  margin-top: 40px; color: var(--muted);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 110px var(--pad) 0;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, var(--bg) 8%, transparent);
  pointer-events: none;
}
.hero-meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-content { position: relative; z-index: 2; padding-top: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  margin-bottom: 34px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 249, 52, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(212, 249, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 249, 52, 0); }
}

.hero-title {
  font-size: clamp(3rem, 10.5vw, 10rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}
.hero-title .serif-accent {
  text-transform: none;
  color: var(--acid);
  letter-spacing: -0.02em;
  padding-right: 0.04em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out) calc(0.05s + var(--i) * 0.09s);
}
body.hero-in .line-inner { transform: none; }

[data-hero-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
body.hero-in [data-hero-fade] { opacity: 1; transform: none; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  padding: 44px 0 52px;
}
.hero-sub {
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  right: var(--pad); bottom: 52px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.scroll-line span {
  display: block; width: 100%; height: 100%;
  background: var(--acid);
  animation: scrollLine 2.2s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ── Marquee ──────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}
.marquee-group span {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  color: var(--acid);
  font-size: 0.8rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── About / fill text ────────────────────────────────── */
.about { padding: clamp(120px, 18vh, 220px) 0; }
.fill-text {
  margin: 0 var(--pad);
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  font-weight: 430;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.fill-text .fw {
  opacity: 0.14;
  transition: opacity 0.5s linear;
}
.fill-text .fw.on { opacity: 1; }
.fill-text em { color: var(--acid); }

/* ── Principles (verbs) ───────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
}
.principle {
  padding: clamp(36px, 4vw, 64px) var(--pad);
  border-left: 1px solid var(--line-soft);
}
.principle:first-child { border-left: none; }
.principle-num { color: var(--acid); margin-bottom: 22px; }
.principle-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 480;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.principle-body { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.55; }

/* ── Services ─────────────────────────────────────────── */
.services {
  position: relative;
  padding: clamp(120px, 16vh, 200px) 0;
  border-top: 1px solid var(--line-soft);
}
.services .section-title { margin-bottom: clamp(60px, 8vw, 110px); }
.svc-row {
  border-top: 1px solid var(--line-soft);
}
.svc-row:last-child { border-bottom: 1px solid var(--line-soft); }
.svc-link {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto 60px;
  align-items: center;
  gap: 24px;
  padding: clamp(30px, 3.6vw, 48px) var(--pad);
  isolation: isolate;
  overflow: hidden;
}
.svc-link::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-io);
  z-index: -1;
}
.svc-row:hover .svc-link::before { transform: scaleY(1); }
.svc-idx { color: var(--muted); transition: color 0.4s; }
.svc-title {
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease-out), color 0.4s;
}
.svc-tags { color: var(--muted); text-align: right; transition: color 0.4s; }
.svc-arrow {
  font-size: 1.5rem;
  justify-self: end;
  opacity: 0;
  transform: translate(-12px, 12px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out), color 0.4s;
}
.svc-row:hover .svc-title { transform: translateX(18px); color: var(--acid-ink); }
.svc-row:hover .svc-idx { color: var(--acid-ink); opacity: 0.6; }
.svc-row:hover .svc-tags { color: var(--acid-ink); opacity: 0.6; }
.svc-row:hover .svc-arrow { opacity: 1; transform: none; color: var(--acid-ink); }

/* floating service preview */
.svc-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; min-height: 220px;
  border-radius: 18px;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.svc-preview::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.82) 30%, rgba(10,10,11,0.15));
  z-index: 0;
}
.svc-preview-label {
  position: relative; z-index: 1;
  color: var(--acid);
  font-size: 9px;
  margin-bottom: 12px;
  letter-spacing: 0.16em;
}
.svc-preview-text {
  position: relative; z-index: 1;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.45;
}
.g1 { background: conic-gradient(from 210deg at 30% 20%, #0e2f1c, #d4f934 38%, #0a0a0b 72%); }
.g2 { background: radial-gradient(circle at 70% 30%, #4f46e5, #0a0a0b 65%), linear-gradient(120deg, #d4f93433, transparent); }
.g3 { background: linear-gradient(135deg, #164e63, #22d3ee 55%, #0a0a0b 110%); }
.g4 { background: radial-gradient(circle at 30% 70%, #7c2d12, #fb923c 48%, #0a0a0b 95%); }
.g5 { background: conic-gradient(from 40deg at 70% 60%, #3b0764, #c084fc 40%, #0a0a0b 75%); }
.g6 { background: linear-gradient(160deg, #052e16, #34d399 45%, #0a0a0b 100%); }
@media (pointer: coarse) { .svc-preview { display: none; } }

/* ── Work ─────────────────────────────────────────────── */
.work {
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.work-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(40px, 6vh, 70px);
  padding: 90px 0 60px;
  overflow: hidden;
}
.work-head { position: relative; }
.work-head .section-title { margin-top: 0; }
.work-head .label { margin-bottom: 40px; }
.work-hint {
  position: absolute;
  right: var(--pad); bottom: 12px;
  color: var(--muted);
  animation: hintNudge 2.4s var(--ease-io) infinite;
}
@keyframes hintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}
.work-track {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.card {
  position: relative;
  width: clamp(320px, 36vw, 520px);
  height: clamp(440px, 60vh, 600px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px;
  background: var(--bg-2);
}
.card-art {
  position: absolute; inset: 0;
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: saturate(0.85) brightness(0.8);
}
.card:hover .card-art { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.92) 12%, rgba(10,10,11,0.15) 55%, rgba(10,10,11,0.45));
}
.card-ghost {
  position: absolute;
  top: 8px; right: 18px;
  font-size: clamp(7rem, 12vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  line-height: 1;
}
.card-top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between;
  color: rgba(234, 234, 234, 0.75);
}
.card-bottom { position: relative; z-index: 2; }
.card-bottom h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 480;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.card-bottom p {
  color: rgba(234, 234, 234, 0.65);
  font-size: 0.98rem;
  max-width: 38ch;
  margin-bottom: 24px;
}
.card-metric {
  display: flex; align-items: baseline; gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 18px;
}
.card-metric-num {
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--acid);
}
.card-metric .mono { color: rgba(234,234,234,0.55); }

.art-1 { background: conic-gradient(from 200deg at 30% 30%, #052e16, #d4f934 30%, #14532d 52%, #0a0a0b 80%); }
.art-2 { background: radial-gradient(circle at 65% 35%, #312e81, #6366f1 42%, #0a0a0b 78%); }
.art-3 { background: linear-gradient(150deg, #083344 10%, #06b6d4 48%, #164e63 72%, #0a0a0b); }
.art-4 { background: conic-gradient(from 20deg at 70% 70%, #1e1b4b, #0ea5e9 35%, #020617 70%); }
.art-5 { background: radial-gradient(circle at 35% 65%, #831843, #f472b6 40%, #0a0a0b 85%); }

.card-more {
  background: transparent;
  border-style: dashed;
  align-items: stretch;
}
.card-more-link {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
}
.card-more-title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ── Process ──────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(120px, 16vh, 200px) 0;
  border-top: 1px solid var(--line-soft);
}
.process-left .label { margin-left: var(--pad); }
.process-left .section-title { margin-bottom: 28px; }
.process-sticky { position: sticky; top: 120px; }
.process-sub {
  margin: 0 var(--pad);
  color: var(--ink-dim);
  max-width: 40ch;
  font-size: 1.05rem;
}
.step {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: clamp(34px, 4vw, 52px) var(--pad);
  border-top: 1px solid var(--line-soft);
  transition: background-color 0.4s;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step:hover { background: rgba(255, 255, 255, 0.025); }
.step-num { color: var(--acid); padding-top: 8px; }
.step-body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 470;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.step-body p { color: var(--ink-dim); max-width: 44ch; }
.step-time {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonials {
  padding: clamp(120px, 16vh, 200px) 0;
  border-top: 1px solid var(--line-soft);
}
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); padding: 0 var(--pad); }
.quote p {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 28px;
}
.quote em { color: var(--acid); }
.quote cite { color: var(--muted); font-style: normal; }

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(140px, 22vh, 260px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta .label { justify-content: center; margin-bottom: 40px; }
.cta-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(340px, 46vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 249, 52, 0.16), rgba(212, 249, 52, 0.04) 45%, transparent 70%);
  filter: blur(20px);
  animation: orbBreathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbBreathe {
  0%, 100% { scale: 1; opacity: 0.8; }
  50% { scale: 1.15; opacity: 1; }
}
.cta-title {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 32px;
}
.cta-title .serif-accent { color: var(--acid); }
.cta-sub {
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}
.cta-actions {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cta-hint {
  margin-top: 40px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* ── Inquiry form ─────────────────────────────────────── */
.skip {
  position: absolute; left: 16px; top: -60px;
  z-index: 500;
  background: var(--acid); color: var(--acid-ink);
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: top 0.25s var(--ease-out);
}
.skip:focus { top: 16px; }

.contact-form-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.inquiry-form { display: flex; flex-direction: column; gap: 22px; }
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inquiry-form label {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.inquiry-form input,
.inquiry-form textarea {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.inquiry-form textarea { resize: vertical; min-height: 120px; }
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: var(--muted); }
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--acid);
  background: rgba(212, 249, 52, 0.04);
  box-shadow: 0 0 0 3px rgba(212, 249, 52, 0.12);
}
.inquiry-form input[readonly],
.inquiry-form textarea[readonly] { opacity: 0.6; }
.field-hint { font-size: 12px; color: var(--muted); margin: 0; }
.bot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 6px; }
.form-status { font-size: 14px; min-height: 20px; margin: 0; color: var(--ink-dim); }
.form-status[data-state="error"] { color: #ff9c9c; }
.inquiry-confirmation {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  background: rgba(212, 249, 52, 0.03);
}
.inquiry-confirmation .eyebrow { color: var(--acid); margin-bottom: 16px; }
.inquiry-confirmation h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 480; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.inquiry-confirmation p { color: var(--ink-dim); }
@media (max-width: 640px) { .form-pair { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 var(--pad) clamp(60px, 8vw, 110px);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--muted); margin-bottom: 10px; }
.footer-col a, .footer-col span { color: var(--ink-dim); font-size: 15px; }
.footer-col a { transition: color 0.3s, transform 0.3s var(--ease-out); width: fit-content; }
.footer-col a:hover { color: var(--acid); transform: translateX(6px); }
.footer-col-right { align-items: flex-end; text-align: right; }
.footer-time {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.footer-logo {
  display: block;
  width: min(82%, 1000px);
  height: auto;
  margin: 0 auto;
}
.footer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding: 22px var(--pad);
  color: var(--muted);
  margin-top: -6px;
  position: relative;
  background: var(--bg);
}
.to-top { transition: color 0.3s; }
.to-top:hover { color: var(--acid); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-link { grid-template-columns: 60px 1fr 50px; }
  .svc-tags { display: none; }
  .process { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .process-left .section-title { margin-bottom: 20px; }
  .process-sub { margin-bottom: 40px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle { border-left: none; border-top: 1px solid var(--line-soft); }
  .principle:first-child, .principle:nth-child(2) { border-top: none; }
  .principle:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .quotes { grid-template-columns: 1fr; }
  .hero-meta-mid { display: none; }
  .hero-scroll { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-right { align-items: flex-start; text-align: left; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-time { justify-self: start; }
}

@media (max-width: 640px) {
  .svc-link { grid-template-columns: 1fr 40px; }
  .svc-idx { display: none; }
  .svc-row:hover .svc-title { transform: none; }
  .card { width: min(84vw, 420px); height: 480px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* JS-driven horizontal fallback (no sticky support) */
.work.js-hscroll .work-pin { position: relative; min-height: 100vh; }
.work.js-hscroll .work-track {
  overflow-x: auto;
  width: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.work.js-hscroll .work-track::-webkit-scrollbar { display: none; }
.work.js-hscroll .work-hint { display: none; }

@media (max-width: 860px) {
  .nav { padding: 14px var(--pad); }
  .nav.scrolled { padding-top: 10px; padding-bottom: 10px; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain, .marquee-track { animation: none; }
}

/* Applied AI Team · light editorial theme */
:root {
  color-scheme: light;
  --bg: #f7f6ed;
  --bg-2: #edeee1;
  --paper: #fffef8;
  --ink: #181d16;
  --ink-dim: #414b3e;
  --muted: #52604d;
  --line: #a9b2a0;
  --line-soft: #d6dacb;
  --green: #395319;
  --acid: #d5ee85;
  --acid-ink: #18220f;
  --section-y: clamp(72px, 11vw, 155px);
}
:focus-visible { outline-color: var(--green); }
[hidden], .preloader, .cursor-dot, .cursor-ring { display: none !important; }
body, a, button, [data-hover] { cursor: auto; }
a[href], button:not(:disabled) { cursor: pointer; }
body.menu-open { overflow: hidden; }
main section[id] { scroll-margin-top: 78px; }
.grain { animation: none; opacity: 0.035; }
.nav, .nav.scrolled { background: rgba(247,246,237,.94); border-bottom-color: var(--line-soft); }
.nav.scrolled { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.hidden { transform: none; }
.nav .btn { background: var(--paper); }
.menu { overflow-y: auto; align-items: flex-start; padding-top: max(82px, 12vh); }
.menu-link { padding-block: 10px; }
.menu-link em { font-size: clamp(2rem, 8vw, 3.6rem); }
.menu-meta { padding-bottom: 26px; }
.label-dot, .pulse-dot, .progress-bar span, .scroll-line span { background: var(--green); }
.hero-title .serif-accent, .accent-dot, .fill-text em, .principle-num,
.marquee-group i, .menu-link .mono, .menu-link:hover em, .roll-inner span[aria-hidden],
.step-num, .quote em, .cta-title .serif-accent, .inquiry-confirmation .eyebrow,
.footer-col a:hover, .to-top:hover { color: var(--green); }
.hero {
  background: radial-gradient(ellipse at 78% 29%, #e4e9ce 0, transparent 57%), var(--bg);
}
.hero-fade { height: 57%; opacity: .9; }
.hero-scroll { bottom: 138px; }
.hero-foot { padding-bottom: clamp(30px, 6vw, 66px); }
.hero-badge { background: rgba(255,254,248,.78); }
.btn { min-height: 44px; font-weight: 520; }
.btn-primary { border-color: #7f9b47; }
.btn-primary:hover { color: var(--paper); border-color: var(--ink); }
.btn[aria-disabled=true], .btn:disabled { opacity: .5; cursor: default; }
.marquee { background: var(--bg-2); }
.about,.services,.testimonials,.cta { padding-block: var(--section-y); }
.process { padding-block: var(--section-y); }
.fill-text .fw { opacity: 1; color: var(--muted); }
.fill-text .fw.on { color: inherit; }
[data-reveal]:not(.will-reveal), [data-reveal]:focus-within { opacity: 1; transform: none; }
.ch-word .ch { transform: none; }
.will-reveal:not(.chars-in) .ch { transform: translateY(115%); }
.svc-link { min-height: 72px; }
.svc-row:focus-within { background: var(--bg-2); }
.svc-arrow { opacity: 1; transform: none; }
.svc-preview { border-color: var(--line); box-shadow: 0 22px 64px #26361724; }
.svc-preview::after { background: linear-gradient(to top, #f8f9e9 7%, #f8f9e9a0 58%, transparent); }
.svc-preview-label { color: var(--green); }
.g1,.art-1 { --art: #bfd781; }
.g2,.art-2 { --art: #d0daaa; }
.g3,.art-3 { --art: #c1d8c4; }
.g4,.art-4 { --art: #d8dcae; }
.g5,.art-5 { --art: #b9c8a8; }
.svc-preview,.card-art { background: radial-gradient(ellipse at 83% 13%, var(--art,#d5e6a6), transparent 70%), var(--paper); }
.work { background: var(--bg-2); }
.work-pin { position: static; min-height: auto; padding-block: var(--section-y); gap: clamp(26px, 5vw, 62px); }
.work-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.work-head .label { grid-column: 1 / -1; }
.work-controls { display: flex; gap: 8px; margin-right: var(--pad); }
.work-controls button { background: var(--paper); width: 46px; height: 46px; padding: 0; justify-content: center; }
.work-track {
  overflow-x: auto; width: 100%; will-change: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-color: #7a886c var(--bg-2); padding-bottom: 12px;
}
.card { scroll-snap-align: start; height: clamp(370px, 40vw, 480px); background: var(--paper); }
.card-art { filter:none; }
.card:hover .card-art { filter:none; }
.card-art::after { background: linear-gradient(to top, var(--paper) 8%, rgba(255,254,248,0.52) 55%, transparent); }
.card-ghost { -webkit-text-stroke-color: #4a5b3970; }
.card-top, .card-bottom p, .card-metric .mono { color: var(--ink-dim); }
.card-metric { border-top-color: var(--line); }
.card-metric-num { color: var(--green); }
.card-more { background: transparent; }
.step:hover { background: #e4e9d9; }
.testimonials { background: var(--bg-2); }
.cta-orb { background: radial-gradient(circle, #dcebb9, #e8efd5 47%, transparent 70%); }
.contact-form-wrap { padding: clamp(18px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 24px; box-shadow: 0 12px 55px #39442310; }
.inquiry-form input, .inquiry-form textarea { background: var(--bg); }
.inquiry-form input:focus, .inquiry-form textarea:focus { background: var(--paper); border-color: var(--green); box-shadow: 0 0 0 3px #58783926; }
.form-status[data-state="error"] { color: #9e2925; }
.inquiry-confirmation { background: #f1f5e8; }
@media(max-width:860px) {
  .hero { padding-top: 100px; }
  .hero-foot { gap: 20px; padding-top: 28px; }
  .nav-right .btn { display: inline-flex; }
  .nav-right { gap: 8px; }
}
@media(max-width:640px) {
  .work-head { grid-template-columns: 1fr; }
  .work-controls { margin: 18px var(--pad) 0; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 4.4rem); }
  .hero-cta { flex-wrap: wrap; gap: 8px; }
  .hero-cta .btn { padding-inline: 14px; }
  .svc-link { grid-template-columns: minmax(0,1fr) 32px; }
  .form-pair { gap: 16px; }
  .card { min-width: 0; width: min(84vw, 420px); padding: 18px; }
}
@media(prefers-reduced-motion:reduce) {
  .will-reveal, .will-reveal .ch { opacity:1; transform:none !important; }
  .marquee-track { transform:none; }
}
.btn-arrow { display: inline-flex; align-items: center; }
@media(max-width:640px) {
  .hero { min-height: auto; padding-top: 94px; }
  .hero-scroll { display: none; }
  .about, .services { padding-block: 44px; }
  .hero-content { padding-top: 30px; }
  .hero-badge { margin-bottom: 24px; }
}

.card[id] { scroll-margin-block-start: 92px; }
.card[id]:target { border-color: var(--green); }
.svc-arrow { display: grid; place-items: center; }

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
