/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ── Section padding ──────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-alt { background: var(--paper-2); }

/* ── Typography helpers ───────────────────────────────────── */
.section-title {
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.section-title.light { color: #fff; }
.section-intro {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ink-500);
  max-width: 580px;
  margin-bottom: 3rem;
}
.section-intro.light { color: var(--ink-300); }

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-600);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.eyebrow-light           { color: var(--brand-300); }
.eyebrow-light::before   { background: var(--brand-300); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  background: oklch(0.985 0.003 300 / 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.logo3d {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  text-shadow:
    1px 1px 0 var(--brand-700),
    2px 2px 0 var(--brand-700),
    3px 3px 0 var(--brand-700),
    4px 4px 0 var(--brand-700),
    5px 5px 12px oklch(0.18 0.018 300 / 0.38);
}
.logo-io { color: var(--brand-600); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  transition: background 0.16s, color 0.16s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-600);
  background: var(--brand-100);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary,
.btn-dark,
.btn-ghost,
.btn-light,
.btn-on-dark-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 4px 20px oklch(0.52 0.235 305 / 0.38);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink-900);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(0.18 0.018 300 / 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-100);
}

.btn-light {
  background: var(--paper);
  color: var(--ink-900);
}
.btn-light:hover { background: var(--paper-2); }

.btn-on-dark-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid oklch(1 0 0 / 0.22);
}
.btn-on-dark-ghost:hover {
  border-color: oklch(1 0 0 / 0.55);
  background: oklch(1 0 0 / 0.07);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-sm);
}

/* Arrow animation */
.btn-arrow { position: relative; }
.btn-arrow .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn-arrow:hover .arrow { transform: translateX(4px); }

/* ── Chip / tag ───────────────────────────────────────────── */
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-500);
  background: var(--paper-2);
  display: inline-flex;
  align-items: center;
}
.chip-brand {
  color: var(--brand-600);
  background: var(--brand-100);
  border-color: var(--brand-300);
}
.chip-mono {
  color: var(--ink-500);
  background: transparent;
  border-color: var(--line-dk);
  color: var(--ink-300);
}

/* ── Service icon tile ────────────────────────────────────── */
.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--blend);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* ── Image placeholder ────────────────────────────────────── */
.ph {
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    var(--line) 8px,
    var(--line) 9px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ── Dark / ink band ──────────────────────────────────────── */
.band-ink {
  background: var(--blend-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band-ink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, oklch(0.52 0.235 305 / 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Section CTA row ──────────────────────────────────────── */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding-top: clamp(48px, 7vw, 96px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dk);
}
.footer-brand .logo3d { color: #fff; font-size: 1rem; }
.footer-tagline {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--ink-300);
  max-width: 260px;
  line-height: 1.6;
}
.footer-inner h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1rem;
}
.footer-inner a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-300);
  margin-bottom: 0.55rem;
  transition: color 0.16s;
}
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  padding-block: 1.25rem;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}

/* ── Footer contact links (icon + text) ──────────────────── */
.footer-contact-link {
  display: flex !important;
  align-items: center;
  gap: 7px;
}
.footer-contact-link svg { flex-shrink: 0; opacity: 0.65; }

/* ── Tech stack grid ─────────────────────────────────────── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 3rem;
  justify-content: center;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 2rem 1.75rem;
  min-width: 160px;
  flex: 1;
  max-width: 220px;
  text-align: center;
}
.tech-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}
.tech-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.tech-desc {
  font-size: 0.78rem;
  color: var(--ink-400);
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 880px) {
  .site-nav   { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px oklch(0.18 0.018 300 / 0.12);
    padding: 0.75rem clamp(20px, 5vw, 64px) 1.25rem;
    z-index: 199;
    gap: 0;
  }
  .site-nav.open a {
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav.open a:last-child { border-bottom: none; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Canvas hero overlay ──────────────────────────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Scanline texture ─────────────────────────────────────── */
.scanlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 100% 56px;
  pointer-events: none;
  z-index: 2;
}

/* ── HUD data elements ────────────────────────────────────── */
.hud {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  user-select: none;
}
.hud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
  flex-shrink: 0;
  animation: hud-pulse 2.4s ease-in-out infinite;
}
.hud-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* Positioned HUD blocks inside hero */
.hero-hud-tr {
  position: absolute;
  top: 1.5rem;
  right: clamp(20px, 5vw, 64px);
  z-index: 4;
}
.hero-hud-bl {
  position: absolute;
  bottom: clamp(80px, 12vw, 120px);
  left: clamp(20px, 5vw, 64px);
  z-index: 4;
}
.hero-hud-br {
  position: absolute;
  bottom: clamp(80px, 12vw, 120px);
  right: clamp(20px, 5vw, 64px);
  z-index: 4;
}

/* ── Cross / plus decorative markers ─────────────────────── */
.cross-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
}
.cross-mark::before,
.cross-mark::after {
  content: '';
  position: absolute;
}
.cross-mark::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.cross-mark::after {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.cross-light::before,
.cross-light::after { background: oklch(1 0 0 / 0.22); }
.cross-brand::before,
.cross-brand::after { background: var(--brand-400); opacity: 0.45; }
.cross-ink::before,
.cross-ink::after   { background: var(--ink-300); opacity: 0.5; }

/* ── Ticker / marquee strip ───────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line-dk);
  padding-block: 0.75rem;
  background: var(--ink-900);
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-300);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-sep { color: var(--brand-300); margin-inline: 0.9rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hud-dot      { animation: none; }
}

/* ── Count-up number animation ────────────────────────────── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Section divider label ────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Inline data tag (spec/metric) ───────────────────────── */
.data-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
}

/* ── Subtle border grid on dark sections ──────────────────── */
.band-ink .container { position: relative; z-index: 5; }

/* ═══════════════════════════════════════════════════════════
   EDITORIAL / PREMIUM LAYER
   (inspired by established agency typography patterns)
   ═══════════════════════════════════════════════════════════ */

/* ── Word-split reveal animation ──────────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--wd, 0s);
}
[data-split-active] .word-inner { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .word-inner { transition: none; transform: none; }
}

/* ── Outline / stroke text accent ─────────────────────────── */
.text-stroke {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent !important;
}
.text-stroke-brand {
  -webkit-text-stroke: 1.5px var(--brand-600);
  color: transparent;
}

/* ── Statement / philosophy divider row ───────────────────── */
.statement-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 4.5vw, 52px);
}
.statement-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.statement-text {
  font-size: clamp(20px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.2;
  max-width: 800px;
}
.statement-text em { font-style: italic; color: var(--brand-600); }
.statement-text .stroke { -webkit-text-stroke: 1.5px var(--ink-700); color: transparent; }

/* ── Editorial large step number ──────────────────────────── */
.step-editorial-num {
  display: block;
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.88;
  -webkit-text-stroke: 1px var(--line);
  color: transparent;
  margin-bottom: 1.25rem;
  transition: -webkit-text-stroke-color 0.3s;
  user-select: none;
}
.process-step:hover .step-editorial-num {
  -webkit-text-stroke-color: var(--brand-400);
}

/* ── Large display quote / pull text ──────────────────────── */
.pull-text {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-900);
}

/* ── Horizontal rule with label ───────────────────────────── */
.ruled-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ruled-label::before,
.ruled-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ruled-label::before { display: none; }

/* ── Capability count strip ───────────────────────────────── */
.cap-strip {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 3rem;
}
.cap-item {
  flex: 1;
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cap-item:last-child { border-right: none; }
.cap-item-num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.cap-item-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .cap-strip { flex-direction: column; }
  .cap-item  { border-right: none; border-bottom: 1px solid var(--line); }
  .cap-item:last-child { border-bottom: none; }
}
