:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --radius: 16px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.65 "Inter", system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 15px; border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #1e293b; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); }
.link { color: var(--accent); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--body); font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 112px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 80% 30%, #bae6fd 0%, transparent 65%),
    radial-gradient(600px 380px at 100% 100%, #c7d2fe 0%, transparent 60%),
    radial-gradient(500px 300px at 0% 100%, #e0f2fe 0%, transparent 70%),
    linear-gradient(180deg, #f8fbff, #f1f5f9);
}
/* faint grid, faded out toward the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-visual { position: relative; height: 440px; }
.shot {
  position: absolute; border-radius: 14px; background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 24px 48px -16px rgba(15,23,42,.28);
}
.shot-1 { width: 88%; top: 0; right: 0; transform: rotate(2deg); }
.shot-2 { width: 72%; bottom: 20px; left: 0; transform: rotate(-3deg); }
.shot-3 {
  display: flex; align-items: center; gap: 12px;
  right: 4%; bottom: 0; padding: 14px 18px 14px 14px;
}
.shot-3 img { border-radius: 9px; }
.shot-3 strong { display: block; font-family: var(--head); color: var(--ink); font-size: 15px; }
.shot-3 span { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15ch; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 58ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 48px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--head); font-size: 32px; color: var(--ink); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }

/* Case studies */
.case {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-flip .case-media { order: 2; }
.case-media {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-alt);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.case-media:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 20px 40px -12px rgba(15,23,42,.25); }
.case-media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.case-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-title img { border-radius: 10px; }
.case-title h3 { font-size: 28px; }
.tag { font-size: 14px; color: var(--muted); }
.features { margin: 20px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { position: relative; padding-left: 26px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230284c7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.stack { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.mono-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #d4a017, #a87a0c); color: #fff;
  font: 700 22px/1 Georgia, serif;
}

/* SpeakA3 illustration */
.media-speaka3 { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.media-speaka3 svg { width: 100%; aspect-ratio: 1200 / 630; }
.tree-lines { stroke: #a5b4fc; }
.tree-nodes rect { fill: #fff; stroke: #c7d2fe; stroke-width: 1.5; }
.tree-nodes .me { fill: #4f46e5; stroke: #4338ca; }
.me-label { fill: #fff; font: 600 13px "Inter", sans-serif; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps span { font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }

/* CTA */
.cta {
  background: var(--ink); color: #cbd5e1; border-radius: 24px;
  padding: 72px 48px; text-align: center;
  background-image: radial-gradient(500px 220px at 50% 0%, rgba(56,189,248,.25), transparent 70%);
}
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.cta p { margin: 16px auto 32px; max-width: 48ch; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.cta .cta-sign { margin: 28px auto 0; font-size: 14px; color: #94a3b8; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .case-flip .case-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .stats { gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; }
}
/* Animations (only when html.anim is set, i.e. JS on and motion allowed) */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shot-in { from { opacity: 0; translate: 40px 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes blink { 50% { opacity: 0; } }

.anim .hero .eyebrow { animation: fade-up .6s ease both; }
.anim .hero .lead,
.anim .hero-cta,
.anim .stats { animation: fade-up .7s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero .lead { animation-delay: 1s; }
.anim .hero-cta { animation-delay: 1.1s; }
.anim .stats { animation-delay: 1.2s; }

.caret {
  display: inline-block; width: .08em; height: .9em; margin-left: .06em;
  background: var(--accent); vertical-align: -0.08em;
  animation: blink 1s steps(1) infinite;
}
.typed-done .caret { animation: blink 1s steps(1) 3 forwards; }

.anim .shot { animation: shot-in .9s cubic-bezier(.2,.7,.2,1) both, float 7s ease-in-out infinite; }
.anim .shot-1 { animation-delay: .2s, 1.1s; }
.anim .shot-2 { animation-delay: .35s, 2.2s; }
.anim .shot-3 { animation-delay: .5s, 3.2s; }

.anim .hero h1 { visibility: hidden; }
.anim .hero h1.typing { visibility: visible; }

/* backwards fill: once done, normal styles (and hover transitions) take over */
.anim :is(.section-head, .case, .card, .steps li, .cta):not(.in) { opacity: 0; }
.anim .in { animation: fade-up .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) backwards; }

.case-media img { transition: transform .5s ease; }
a.case-media:hover img { transform: scale(1.03); }
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: #bae6fd; box-shadow: 0 16px 32px -16px rgba(15,23,42,.2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .case-media { transition: none; }
}
