/* =========================================================
   Code In Motion — Apple-Inspired Clean & Minimal Design System
   Font: Roboto & Roboto Mono
   Aesthetic: Ultra-clean, generous whitespace, small crisp fonts,
              smooth rounded surfaces, frosted glass & subtle hairlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  /* Apple Neutral Canvas & Surface Palette */
  --bg: #ffffff;
  --bg-subtle: #fbfbfd;
  --surface: #f5f5f7;
  --surface-hover: #ebebed;
  --surface-card: #ffffff;
  --surface-dark: #161617;
  --surface-dark-card: #222225;

  /* Typography Colors */
  --ink: #1d1d1f;              /* Apple primary text */
  --ink-secondary: #6e6e73;    /* Apple secondary/muted */
  --ink-tertiary: #86868b;     /* Apple caption/micro */
  --ink-light: #f5f5f7;

  /* Borders & Hairlines */
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Apple Brand Blue */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #0062c4;
  --blue-subtle: rgba(0, 113, 227, 0.08);
  --blue-glow: rgba(0, 113, 227, 0.22);
  --accent: #0071e3;

  /* Fonts */
  --sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --serif: var(--sans); /* Clean sans across all headings for consistent Apple minimalism */

  /* Curves & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Animation & Layout */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --container-w: 1180px;

  /* Unified Spacing System (Apple Vertical Rhythm) */
  --header-gap: clamp(48px, 6.5vh, 76px);
  --page-top-padding: calc(var(--nav-h) + var(--header-gap));
  --section-space: clamp(64px, 7.5vw, 96px);
  --section-space-sm: clamp(36px, 4.5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Eliminate noisy grain completely for pure Apple sheen */
.noise {
  display: none !important;
}

/* Scroll progress indicator */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1200;
  pointer-events: none;
  transition: transform 0.1s linear;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Layout Wrappers */
.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: var(--section-space);
}

.phead + .section,
.phead + .wrap.section,
.section-first {
  padding-top: var(--section-space-sm);
}

main > .section:last-of-type,
main > .wrap.section:last-of-type,
.section-last {
  padding-bottom: clamp(64px, 8vw, 100px);
}

/* =========================================================
   Typography & Micro Labels (Apple-Scale)
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.idx {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-tertiary);
  letter-spacing: 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.h1 {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.h2 em, .h1 em {
  font-style: normal;
  color: var(--ink-secondary);
}

.h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.micro {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.form-note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* =========================================================
   Buttons & Links (Apple Pill Style)
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg, .btn i {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.btn:hover {
  background: #333336;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn:hover svg, .btn:hover i {
  transform: translateX(3px);
}

.btn.sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--blue-glow);
}

.btn.light {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn.light:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.btn.ghost, .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid transparent;
}

.btn.ghost:hover, .btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--ink);
  box-shadow: none;
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.2s var(--ease), color 0.2s;
}

.tlink svg, .tlink i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.tlink:hover {
  color: var(--blue-hover);
  gap: 9px;
}

.tlink:hover svg, .tlink:hover i {
  transform: translateX(2px);
}

/* =========================================================
   Header (Apple Frosted Glass)
   ========================================================= */

#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

#siteHeader.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.hbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo sup {
  font-size: 9px;
  font-weight: 400;
  color: var(--ink-tertiary);
  margin-left: -2px;
}

.mark {
  width: 26px;
  height: 26px;
  background: url('../images/logo-mark.png') center / contain no-repeat;
  display: inline-block;
  /* Spin driven by js/logo.js: fast start, long gentle stop */
  transition: transform 2.4s cubic-bezier(0.12, 0.85, 0.18, 1);
  will-change: transform;
}

.dnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dnav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
}

.dnav a:hover {
  color: var(--ink);
}

.dnav a.on {
  color: var(--ink);
  font-weight: 500;
}

.dnav a.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.hact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hact .btn {
  background: var(--blue);
  color: #fff;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
}

.hact .btn:hover {
  background: var(--blue-hover);
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
}

.burger svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .dnav { display: none; }
  .burger { display: flex; }
  .hact .btn { display: none; }
}

/* =========================================================
   Mobile Menu (Apple Sheet Style)
   ========================================================= */

.mmenu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 950;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mmenu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mm-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 12px;
}

.mm-links a {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}

.mm-links a span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-tertiary);
}

.mm-links a.cta {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 16px;
  justify-content: center;
}

.mm-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-tertiary);
  font-size: 12px;
  text-align: center;
}

/* =========================================================
   Clean Apple-Inspired Hero Section (index.html)
   ========================================================= */

.hero {
  padding-top: var(--page-top-padding, 124px);
  padding-bottom: clamp(48px, 6vw, 76px);
  text-align: center;
}

.hero-inner {
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.hero-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.hero-pill-badge {
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
  text-align: center;
  max-width: 960px;
}

.hero-title .hero-line {
  display: block;
}

@media (min-width: 720px) {
  .hero-title .hero-line {
    white-space: nowrap;
  }
}

.hero-title-gradient {
  background: linear-gradient(135deg, #1d1d1f 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 17.5px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-actions .btn {
  padding: 13px 28px;
  font-size: 15px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease);
}

.hero-link:hover {
  color: var(--blue);
}



/* =========================================================
   Interactive In-Place Hero Quote Card (Apple Style)
   ========================================================= */

.hero-quote-container {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  margin-top: clamp(20px, 3.5vw, 32px);
  padding-inline: clamp(10px, 2vw, 20px);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.hero-quote-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.hero-quote-card:hover,
.hero-quote-card.expanded,
.hero-quote-card:focus-within {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 20px 48px rgba(0, 113, 227, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hero-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.25);
  display: inline-block;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.hero-textarea {
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hero-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.hero-textarea::placeholder {
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* Expandable Reveal Container */
.hero-expandable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              transform 0.28s ease,
              margin-top 0.3s ease,
              padding-top 0.3s ease,
              border-color 0.3s ease;
}

.hero-quote-card.expanded .hero-expandable {
  max-height: 700px;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 20px;
  padding-top: 20px;
  border-top-color: var(--border);
}

.hero-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-fields-row .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-fields-row .field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.hero-fields-row .field input {
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-fields-row .field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.hero-fields-row .field.invalid input,
.hero-input-wrap.invalid .hero-textarea {
  border-color: #ff3b30;
  background: #fff8f8;
}

.hero-input-wrap .ferr,
.hero-fields-row .field .ferr {
  font-size: 11px;
  color: #ff3b30;
  display: none;
}

.hero-input-wrap.invalid .ferr,
.hero-fields-row .field.invalid .ferr {
  display: block;
}


/* Form Actions Row */
.hero-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-form-actions .btn-primary {
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
}

.hero-form-secondary {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.hero-form-guarantee {
  color: var(--ink-muted);
}

.hero-cases-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 500;
  transition: gap 0.2s;
}

.hero-cases-link:hover {
  gap: 8px;
  text-decoration: underline;
}

.hero-cases-link svg,
.hero-cases-link i {
  width: 13px;
  height: 13px;
}

/* Inline Hero Success Box */
.hero-success-box {
  text-align: center;
  padding: clamp(24px, 4vw, 40px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-success-box .checkmark {
  width: 52px;
  height: 52px;
  stroke: #34c759;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-success-box h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-success-box .ref {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.hero-success-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 540px;
  margin: 0;
}

.hero-success-box strong {
  color: var(--ink);
}

@media (max-width: 680px) {
  .hero-fields-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hero-form-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hero-form-secondary {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

/* =========================================================
   Clean Capability Strip (Subtle Ticker)
   ========================================================= */

.ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
  padding: 14px 0;
}

.ttrack {
  display: flex;
  width: max-content;
  animation: tick 48s linear infinite;
}

.ticker:hover .ttrack {
  animation-play-state: paused;
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

.titem {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
  margin-right: 48px;
}

.tstar {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 48px;
  flex-shrink: 0;
}

/* =========================================================
   Stats Section (Minimal Apple Figures)
   ========================================================= */

.stats-wrap {
  padding-block: clamp(44px, 5.5vw, 68px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  padding: 12px 16px;
}

.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}

.stat-num sup {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 500;
  color: var(--blue);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 8px;
  display: block;
}

.stats.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .stats.three {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Why Code In Motion (Apple Bento Grid)
   ========================================================= */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.bento-card.wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface) 0%, #ebeef3 100%);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 28px;
}

.bento-icon svg, .bento-icon i {
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
}

/* =========================================================
   Process Steps (How It Works)
   ========================================================= */

.proc-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
}

.proc-left {
  position: sticky;
  top: 100px;
  align-self: start;
}

.proc-left p {
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 16px 0 28px;
  max-width: 38ch;
}

.step-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: transform 0.2s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  padding-top: 4px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}

.step p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52ch;
}

@media (max-width: 860px) {
  .proc-grid {
    grid-template-columns: 1fr;
  }
  .proc-left {
    position: static;
  }
}

/* =========================================================
   Portfolio Cards (Client Dossiers)
   ========================================================= */

.roster-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.roster-head p {
  color: var(--ink-secondary);
  font-size: 15px;
  max-width: 44ch;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}

.client:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.client-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-secondary);
}

.redact-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: var(--surface-hover);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-tertiary);
  padding-inline: 12px;
  align-self: flex-start;
  user-select: none;
}

.client-desc {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 3em;
}

.client-nums {
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.client-nums .micro {
  display: block;
  margin-bottom: 2px;
}

.client-nums b {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.client-prog {
  margin-top: 4px;
}

.client-prog-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-tertiary);
  margin-bottom: 6px;
}

.prog {
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.prog i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 0%);
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: width 1s var(--ease);
}

.roster-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.roster-foot p {
  font-size: 12px;
  color: var(--ink-tertiary);
  max-width: 65ch;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .roster-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   What's Covered vs Actuals (Comparison Specs)
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 24px;
}

.split-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}

.split-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.split-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.split-item:last-child {
  border-bottom: none;
}

.split-item svg, .split-item i {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.split-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.split-item span {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.split-note {
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin-top: 28px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

/* =========================================================
   Pull Quote (Minimal Testimonial)
   ========================================================= */

.pull {
  padding-block: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.pull-q {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 32em;
  margin-inline: auto;
  text-wrap: balance;
}

.pull-att {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 24px;
}

/* =========================================================
   Call To Action Band (Apple Space-Black Card)
   ========================================================= */

.band-wrap {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.band {
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.band-in {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.band .eyebrow {
  color: #86868b;
}

.band-h {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 22ch;
  text-wrap: balance;
}

.band-h em {
  font-style: normal;
  color: #86868b;
}

.band-sub {
  font-size: 16px;
  color: #a1a1a6;
  max-width: 50ch;
  line-height: 1.5;
}

.band .btn {
  background: #ffffff;
  color: var(--ink);
  padding: 14px 32px;
  font-size: 15px;
  margin-top: 10px;
}

.band .btn:hover {
  background: #f0f0f2;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.band .micro {
  color: #6e6e73;
  margin-top: 8px;
}

/* =========================================================
   Footer (Minimal Clean Navigation)
   ========================================================= */

footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: 40px;
  background: var(--bg-subtle);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

.f-brand p {
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.6;
  max-width: 32ch;
  margin: 14px 0 18px;
}

.f-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.f-col a {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.f-col a:hover {
  color: var(--blue);
}

.f-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--ink-tertiary);
}

#utcClock {
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 860px) {
  .f-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Forms (Apply & Contact)
   ========================================================= */

.phead {
  padding-top: var(--page-top-padding, 124px);
  padding-bottom: clamp(20px, 3vw, 36px);
}

.phead .sec-head {
  border-top: none;
  padding-top: 0;
  margin-bottom: 12px;
}

.phead h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.phead .lede {
  color: var(--ink-secondary);
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  max-width: 62ch;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Legal Pages (Terms of use & Privacy policy) */
.updated {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-top: -2px;
  margin-bottom: clamp(32px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.legal-wrap {
  max-width: 860px;
  border-top: 1px solid var(--border);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.legal-sec {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 24px;
  padding: clamp(26px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  max-width: 860px;
}

.phead > .wrap > .legal-sec:first-of-type {
  border-top: 1px solid var(--border);
}

.legal-sec .n {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  padding-top: 3px;
  line-height: 1.3;
}

.legal-sec h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

.legal-sec p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.68;
  margin-bottom: 12px;
}

.legal-sec p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .legal-sec {
    grid-template-columns: 36px 1fr;
    column-gap: 16px;
    padding: 22px 0;
  }
  
  .legal-sec .n {
    font-size: 12.5px;
  }
}

.faq-section {
  max-width: 960px;
  margin-inline: auto;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.apply-aside {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.mini-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mini-step b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.mini-step p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.mini-step p strong {
  color: var(--ink);
  font-weight: 500;
}

.aside-note {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Fields & Input Controls */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.fsec {
  margin-bottom: 32px;
}

.fsec-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.fsec-tag .t {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field .ferr {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  color: #ff3b30;
  opacity: 0;
  transition: opacity 0.2s;
}

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #ff3b30;
}

.field.invalid .ferr {
  opacity: 1;
}


.stamp {
  display: none; /* remove clutter */
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-foot .micro {
  max-width: 32ch;
  line-height: 1.6;
}

/* Contact Grid */
.cgrid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:first-child {
  border-top: 1px solid var(--border);
}

.info-row .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}

.info-row .v {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 860px) {
  .apply-grid, .cgrid { grid-template-columns: 1fr; gap: 32px; }
  .apply-aside {
    position: static;
    margin-top: 24px;
    padding: 22px;
  }
  .frow { grid-template-columns: 1fr; gap: 0; }
}

/* Form Success State Screen */
.success {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success .checkmark {
  width: 56px;
  height: 56px;
  stroke: #34c759;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.success p {
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

/* =========================================================
   Accordions (FAQs & Case Dossiers)
   ========================================================= */

.faq-group {
  margin-bottom: 48px;
}

.faq-group-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.acc {
  border-top: 1px solid var(--border);
}

.acc:last-child {
  border-bottom: 1px solid var(--border);
}

.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  text-align: left;
  cursor: pointer;
}

.acc-q {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.acc-head:hover .acc-q {
  color: var(--blue);
}

.acc-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.acc-ico span {
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.acc-ico span:first-child {
  width: 12px;
  height: 1.5px;
}

.acc-ico span:last-child {
  width: 1.5px;
  height: 12px;
}

.acc.open .acc-ico {
  background: var(--blue);
}

.acc.open .acc-ico span {
  background: #ffffff;
}

.acc.open .acc-ico span:last-child {
  transform: rotate(90deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.acc.open .acc-body {
  max-height: 800px;
}

.acc-body-in {
  padding-bottom: 24px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
  max-width: 65ch;
}

.acc-body-in p {
  margin-bottom: 12px;
}

.acc-body-in p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Blog Posts & Articles
   ========================================================= */

.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto 40px;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-top: 1px solid var(--border);
  transition: padding-left 0.2s var(--ease);
}

.post-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.post-row:hover {
  padding-left: 8px;
}

.post-date, .post-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}

.post-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s;
}

.post-row:hover .post-title {
  color: var(--blue);
}

.post-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.post-row:hover .post-arrow {
  background: var(--blue);
  color: #fff;
}

.post-arrow svg {
  width: 14px;
  height: 14px;
}

.article {
  max-width: 680px;
  margin-inline: auto;
  padding-bottom: 80px;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.art-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-tertiary);
  display: block;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article p {
  font-size: 15px;
  line-height: 1.7;
  color: #333336;
  margin-bottom: 1.5em;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 16px;
}

.art-end {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
}

/* =========================================================
   Case Studies Dossiers
   ========================================================= */

.case {
  border-top: 1px solid var(--border);
}

.case:last-child {
  border-bottom: 1px solid var(--border);
}

.case-head {
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  width: 100%;
  text-align: left;
}

.case-idx {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.case-name {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}

.case-head:hover .case-name {
  color: var(--blue);
}

.case-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-secondary);
  text-align: right;
  letter-spacing: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 12px 4px 40px;
  align-items: start;
}

.case-story p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.case-story p:last-of-type {
  margin-bottom: 0;
}

.case-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.case-stat b {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.case-stat span {
  font-size: 11px;
  color: var(--ink-secondary);
  display: block;
  margin-top: 4px;
}

.case-tags {
  font-size: 12px;
  padding: 10px 0;
  border-block: 1px solid var(--border);
  margin: 18px 0;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.case-plan {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.cases-foot-note {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cases-foot-note p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 65ch;
}

@media (max-width: 860px) {
  .case-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 18px 4px;
  }
  .case-idx {
    display: none; /* Number is already in case-name (e.g. Nº 001) */
  }
  .case-name {
    font-size: 1.3rem;
    flex: 1;
    min-width: 140px;
  }
  .case-meta {
    width: 100%;
    order: 3;
    text-align: left;
    margin-top: 2px;
    font-size: 12px;
  }
  .case-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 6px 0 28px !important;
  }
  .case-story p {
    font-size: 14px;
    line-height: 1.6;
  }
  .case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }
  .case-stat b {
    font-size: 1.35rem;
  }
  .case-stat span {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .case-head {
    padding: 14px 2px;
  }
  .case-name {
    font-size: 1.2rem;
  }
  .case-stats {
    gap: 8px;
  }
  .case-stat b {
    font-size: 1.15rem;
  }
  .case-stat span {
    font-size: 10px;
  }
}

/* =========================================================
   Toast Notification
   ========================================================= */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--surface-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  box-shadow: var(--shadow-dark);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast svg, .toast i {
  width: 15px;
  height: 15px;
  color: #34c759;
}

/* Subtle scroll reveal animation */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Synthetic Media Studio — video tiles, pricing, model stack
   ========================================================= */

/* Video tiles (portfolio + homepage reel) */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reel-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.reel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}

.reel:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.reel[hidden] {
  display: none;
}

.reel-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c3440 55%, #23395b 100%);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.reel-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-ph b {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
}

.reel.has-video .reel-ph {
  display: none;
}

.reel-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
  pointer-events: none;
}

.reel-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: 2px;
}

.reel:hover .reel-play {
  transform: scale(1.08);
}

.reel-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: var(--radius-pill);
}

.reel-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.reel-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.reel-brief {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.reel-brief::before {
  content: 'Brief — ';
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.reel-specs {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-secondary);
}

.reel-specs b {
  color: var(--ink);
  font-weight: 600;
}

.reel-tools {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* Portfolio filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.filter-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Lightbox player */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.lightbox.open {
  display: flex;
}

.lightbox video {
  width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: var(--radius-md);
  background: #000000;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* Pricing tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.tier {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid transparent;
}

.tier.feature {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

.tier-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.tier-badge {
  font-size: 10px;
  color: var(--blue);
  background: var(--blue-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.tier-price {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.tier-price small {
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-secondary);
}

.tier p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.tier-eg {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

/* Price calculator */
.calc {
  margin-top: 20px;
  background: var(--surface-dark);
  color: var(--ink-light);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.calc h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.calc-row {
  margin-bottom: 20px;
}

.calc-row:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #a1a1a6;
  margin-bottom: 10px;
}

.calc-label output {
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 600;
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.seg {
  display: inline-flex;
  background: var(--surface-dark-card);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.seg button {
  border: 0;
  background: transparent;
  color: #a1a1a6;
  font: 600 13px var(--mono);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.seg button.on {
  background: #ffffff;
  color: var(--ink);
}

.calc-out {
  border-left: 1px solid var(--border-dark);
  padding-left: clamp(24px, 4vw, 48px);
}

.calc-total {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  margin: 6px 0 12px;
}

.calc-note {
  font-size: 12.5px;
  color: #a1a1a6;
  line-height: 1.55;
  margin-bottom: 18px;
}

.calc .btn {
  background: #ffffff;
  color: var(--ink);
}

.calc .btn:hover {
  background: var(--ink-light);
  color: var(--ink);
}

/* Inline estimate on the order form */
.estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--blue-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.estimate b {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.frow.three {
  grid-template-columns: repeat(3, 1fr);
}

/* Model stack */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 36px;
}

.model {
  background: #ffffff;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-role {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.model b {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.model p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

@media (max-width: 900px) {
  .reel-grid,
  .tier-grid,
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc {
    grid-template-columns: 1fr;
  }
  .calc-out {
    border-left: 0;
    border-top: 1px solid var(--border-dark);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 600px) {
  .reel-grid,
  .reel-grid.two,
  .tier-grid,
  .model-grid,
  .frow.three {
    grid-template-columns: 1fr;
  }
  .seg button {
    padding: 8px 12px;
  }
}

/* =========================================================
   Split hero: copy + form left, promo video right
   Mobile order: copy → video → form
   ========================================================= */
.hero-split {
  max-width: var(--container-w);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "copy video"
    "form form";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}

.hero-split .hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Title sizes to this column, not the viewport */
  container-type: inline-size;
}

/* Sized so "Studio-quality AI video." (~9.8em) always fits on one line;
   the second line wraps into balanced halves when the column is narrow. */
.hero-split .hero-title {
  text-align: left;
  width: 100%;
  font-size: clamp(1.75rem, 3.6vw, 3.2rem);
  font-size: clamp(1.75rem, 9.6cqi, 3.5rem);
}

.hero-split .hero-title .hero-line {
  white-space: normal;
  text-wrap: balance;
}

/* Keep the gradient spanning the text itself, not the whole column */
.hero-split .hero-title-gradient {
  width: fit-content;
}

.hero-split .hero-sub {
  margin-inline: 0;
  margin-bottom: 0;
  text-wrap: pretty;
}

.hero-split .hero-quote-container {
  grid-area: form;
  max-width: none;
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  padding-inline: 0;
}

.hero-video {
  grid-area: video;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* No frame: the video sits directly on the page */
  background: transparent;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video controls: one frosted pill, quiet until you need it */
.hero-video-ctrls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(15, 30, 60, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  opacity: 0.82;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-video:hover .hero-video-ctrls,
.hero-video-ctrls:focus-within {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 30, 60, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-ctrl {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.hero-ctrl + .hero-ctrl::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.hero-ctrl:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
}

.hero-ctrl:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.hero-ctrl[aria-pressed="true"] {
  color: var(--blue);
}

.hero-ctrl svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

@media (hover: none) {
  .hero-video-ctrls {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "video"
      "form";
    grid-template-rows: auto;
  }
  .hero-video {
    margin-top: clamp(24px, 4vw, 32px);
  }
  .hero-split .hero-quote-container {
    margin-top: clamp(24px, 4vw, 32px);
  }
}

/* Pricing page: example price table */
.ptable {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ptable-row {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 1fr 1fr;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-secondary);
}

.ptable-row:first-child {
  border-top: 0;
}

.ptable-row span:first-child {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}

.ptable-row b {
  color: var(--blue);
  font-weight: 600;
}

.ptable-head {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.ptable-head span:first-child {
  color: var(--ink-tertiary);
}

.offer-terms {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-tertiary);
}

@media (max-width: 600px) {
  .ptable-row {
    grid-template-columns: 0.6fr 1fr 1fr;
    padding: 14px 16px;
  }
  .ptable-row span:nth-child(2) {
    display: none;
  }
}

/* Format pages: links to sibling formats */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chips-label {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-right: 4px;
}

.chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-subtle);
}
