/* ==========================================================================
   NexPro Labs — pages.css
   Page-specific components for the dedicated pages:
   services · work · process · about · contact

   Inherits ALL tokens + base from style.css (load style.css FIRST).
   Reuses where possible: .container .section .kicker .section-head
   .section-title .section-lead .btn .reveal .spec .faq-* .section--dark

   1) Page hero / breadcrumbs   2) Stat bar + count-up
   3) Glass + grain helpers     4) Service cards
   5) Deep-dive accordion       6) Tech badges + checklist
   7) Pricing tiers             8) Video showcase (video-ready zone)
   9) CTA band                  10) Work: filters + case studies
   11) Process timeline         12) About: story/values/team/logos/quotes/awards
   13) Contact: split/pills/file/map/availability
   14) Stagger reveal           15) Responsive
   ========================================================================== */

/* ============ 1. PAGE HERO ============ */
.page-hero {
  padding-block: clamp(2.4rem, 6vw, 5rem) clamp(2.6rem, 6vw, 4.5rem);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.page-hero::before {
  /* soft radial wash — the only "gradient", kept subtle + on-palette */
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 20%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--ink-3); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.crumbs .sep { opacity: 0.6; }

.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.3rem;
}
.page-hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 17ch;
  text-wrap: balance;
}
.page-hero-title .hl { color: var(--accent); }

.page-hero-lead {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  max-width: 52ch;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }

/* ---- 404 / error page ---- */
.error-page { min-height: 66vh; display: grid; align-items: center; text-align: center; }
.error-page .container { display: grid; justify-items: center; }
.error-page .page-hero-title,
.error-page .page-hero-lead { margin-left: auto; margin-right: auto; }
.error-page .page-hero-lead { max-width: 46ch; }
.error-page .page-hero-actions { justify-content: center; }
.error-code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5.5rem, 4rem + 16vw, 13rem); line-height: 0.86;
  letter-spacing: -0.05em; color: var(--accent);
  margin-bottom: clamp(0.6rem, 2vw, 1.2rem);
}
.error-links {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.3rem; justify-content: center; align-items: center;
  margin-top: clamp(2rem, 4vw, 2.8rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.error-links > span { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; }
.error-links a { color: var(--ink-2); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.error-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ============ 2. STAT BAR + COUNT-UP ============ */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  border-top: 2px solid var(--line-2);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.stat { display: grid; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-num .unit { color: var(--accent); }
.stat-label {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-3);
  max-width: 22ch;
}

/* ============ 3. GLASS + GRAIN HELPERS ============ */
.glass {
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 18px;
}
.section--soft { background: var(--paper-2); }

/* shared lead-in for a sub-section header inside a page section */
.block-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block-head .kicker { margin-bottom: 1rem; }
.block-title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -0.03em; }
.block-lead { margin-top: 1rem; color: var(--ink-2); font-size: clamp(1.02rem, 1rem + 0.3vw, 1.15rem); max-width: 54ch; }

/* ============ 4. SERVICE CARDS ============ */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.svc-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--paper-2);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, background-color 0.3s;
}
.svc-card::after {
  content: "";
  position: absolute; inset: auto -30% -60% auto; width: 70%; height: 80%;
  background: radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2));
  box-shadow: 0 26px 50px -28px rgba(0,0,0,0.45);
}
.svc-card:hover::after { opacity: 1; }
.svc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.svc-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ink); color: var(--paper);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-index { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink-3); }
.svc-card h3 { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.7rem); letter-spacing: -0.025em; }
.svc-card p { color: var(--ink-2); font-size: 1rem; }
.svc-card-link {
  margin-top: 0.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  width: fit-content;
}
.svc-card-link .arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.svc-card:hover .svc-card-link { color: var(--accent); }
.svc-card:hover .svc-card-link .arrow { transform: translate(3px, -3px); }

/* ============ 5. DEEP-DIVE ACCORDION (<details>) ============ */
.deep-list { border-top: 2px solid var(--line-2); }
.deep {
  border-bottom: 1px solid var(--line-2);
}
.deep > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) 0.2rem;
  cursor: pointer;
  list-style: none;
}
.deep > summary::-webkit-details-marker { display: none; }
.deep-num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--accent);
  align-self: start; padding-top: 0.4rem;
}
.deep-head-main { display: grid; gap: 0.4rem; }
.deep-title { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); letter-spacing: -0.03em; transition: transform 0.35s var(--ease); }
.deep-sub { color: var(--ink-2); font-size: 1rem; max-width: 60ch; }
.deep > summary:hover .deep-title { transform: translateX(5px); color: var(--accent); }
.deep-toggle { position: relative; width: 26px; height: 26px; flex: none; align-self: start; margin-top: 0.5rem; }
.deep-toggle::before, .deep-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: currentColor; transition: transform 0.3s var(--ease);
}
.deep-toggle::before { width: 18px; height: 2px; }
.deep-toggle::after { width: 2px; height: 18px; }
.deep[open] .deep-toggle::after { transform: scaleY(0); }
.deep[open] .deep-num { color: var(--ink); }

.deep-body {
  padding: 0.4rem 0.2rem clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  animation: deep-in 0.5s var(--ease);
}
@keyframes deep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.ps-card { padding: 1.4rem 1.5rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.ps-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.ps-label.is-problem { color: var(--ink-3); }
.ps-label.is-problem::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); }
.ps-label.is-solution { color: var(--accent); }
.ps-label.is-solution::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ps-card p { color: var(--ink-2); font-size: 1rem; }

.deep-cols { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.deep-cols h4, .deliverables h4 {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem;
}

/* ============ 6. CHECKLIST + TECH BADGES ============ */
.check-list { display: grid; gap: 0.85rem; }
.check-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start;
  color: var(--ink-2); font-size: 1.02rem;
}
.check-list li::before {
  content: ""; margin-top: 0.2em; width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d83a17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  color: var(--ink-2); transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.badge svg, .badge img { width: 16px; height: 16px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* deliverables reuse .spec styling but allow inside accordion */
.deliverables .spec { border-top: 2px solid var(--line-2); }

/* ============ 7. PRICING TIERS ============ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.tier {
  display: grid; gap: 1.1rem; align-content: start;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -28px rgba(0,0,0,0.4); }
.tier--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; }
.tier--featured .tier-name,
.tier--featured .tier-price { color: var(--paper); }
.tier--featured .tier-desc,
.tier--featured .tier-features li { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.tier-flag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.tier-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; }
.tier-price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); display: block; margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.tier--featured .tier-price small { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.tier-desc { color: var(--ink-2); font-size: 0.96rem; }
.tier-features { display: grid; gap: 0.6rem; }
.tier-features li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.tier-features li::before { content: "→"; color: var(--accent); font-weight: 700; }
.tier .btn { margin-top: 0.3rem; }

/* ============ 8. VIDEO SHOWCASE (video-ready zone) ============ */
.video-showcase { position: relative; z-index: 2; }
.video-card {
  position: relative;
  padding: clamp(0.7rem, 2vw, 1.2rem);
  border-radius: 22px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--ink);
  display: grid;
  place-items: center;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame::before {
  /* faint film-grid texture on the placeholder */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, #fff 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, #fff 6%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; opacity: 0.5;
}
.video-play {
  position: relative; z-index: 2;
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}
.video-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--paper) 60%, transparent);
  animation: pulse-ring 2.6s infinite;
}
.video-play svg { width: 30%; height: 30%; margin-left: 8%; }
.video-play:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--paper) 55%, transparent); }
  70% { box-shadow: 0 0 0 26px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.video-caption {
  position: absolute; left: clamp(1.4rem, 3vw, 2rem); bottom: clamp(1.4rem, 3vw, 2rem); z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.2rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.video-badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: color-mix(in srgb, #000 35%, transparent); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.video-showcase.is-playing .video-play,
.video-showcase.is-playing .video-caption,
.video-showcase.is-playing .video-frame::before { display: none; }

/* ============ 9. CTA BAND ============ */
.cta-band { position: relative; z-index: 2; }
.cta-band-inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(2.4rem, 6vw, 5rem);
  background: var(--night);
  color: #f0ece1;
  display: grid;
  gap: 1.4rem;
  text-align: center;
  justify-items: center;
}
.cta-band-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 80% at 15% 0%, color-mix(in srgb, #ff7a4d 26%, transparent), transparent 60%),
    radial-gradient(60% 90% at 100% 100%, color-mix(in srgb, #ff7a4d 18%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-band-inner > * { position: relative; z-index: 1; }
.cta-band-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #ff7a4d; }
.cta-band-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.3rem + 3.4vw, 4rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 18ch; }
.cta-band-text { color: color-mix(in srgb, #f0ece1 80%, transparent); max-width: 50ch; font-size: clamp(1.02rem, 1rem + 0.3vw, 1.18rem); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }
/* secondary link sits on the dark CTA card → force light text + hairline */
.cta-band-actions .btn-text { color: #f0ece1; border-color: rgba(240, 236, 225, 0.4); }
.cta-band-actions .btn-text:hover { color: #fff; border-color: var(--accent); }

/* ============ 10. WORK — FILTERS + CASE STUDIES ============ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.filter-btn:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-count { color: var(--ink-3); font-size: 0.84rem; margin-left: auto; align-self: center; }

.case-list { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); }
.case {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.case:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.case:nth-child(even) .case-media { order: 2; }
.case[hidden] { display: none; }
.case.is-filtering { opacity: 0; transform: scale(0.96) translateY(10px); }

.case-media {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--paper-2); aspect-ratio: 16 / 10;
  padding-top: 36px;                                /* room for the browser chrome bar */
  box-shadow: 10px 10px 0 0 var(--ink);
  transition: box-shadow 0.45s var(--ease), transform 0.5s var(--ease);
}
/* CSS-only browser mockup — chrome bar + traffic-light dots */
.case-media::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 3;
  background-color: var(--paper-2);
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(circle 4px at 18px 18px, #ff5f57 98%, transparent 100%),
    radial-gradient(circle 4px at 36px 18px, #febc2e 98%, transparent 100%),
    radial-gradient(circle 4px at 54px 18px, #28c840 98%, transparent 100%);
  background-repeat: no-repeat;
}
/* faux address bar */
.case-media::after {
  content: ""; position: absolute; top: 12px; left: 74px; right: 16px; height: 12px; z-index: 3;
  border-radius: 6px; background: color-mix(in srgb, var(--ink) 9%, var(--paper-2));
}
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s var(--ease); }
.case-media:hover { box-shadow: 16px 16px 0 0 var(--accent); transform: perspective(1400px) rotateX(1.6deg) rotateY(-2.6deg) translate(-2px, -3px); }
.case-media:hover img { transform: scale(1.04); }
.case-cat {
  position: absolute; top: calc(36px + 0.7rem); left: 0.9rem; z-index: 4;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.case-info { display: grid; gap: 0.7rem; align-content: center; }
.case-num { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-3); }
.case-name { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); letter-spacing: -0.035em; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0.2rem 0 0.4rem; }
.case-meta div { display: grid; gap: 0.1rem; }
.case-meta dt { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.case-meta dd { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.case-desc { color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.case-metric {
  flex: 1 1 120px; padding: 0.9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper-2);
}
.case-metric b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); letter-spacing: -0.03em; color: var(--ink); }
.case-metric span { font-size: 0.78rem; color: var(--ink-3); }
.case-visit { display: inline-grid; gap: 0.15rem; margin-top: 0.6rem; width: fit-content; }
.case-visit-label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.case-url { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); border-bottom: 2px solid var(--line-2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.case-visit:hover .case-url { color: var(--accent); border-color: var(--accent); }
.no-results { display: none; padding: 3rem 0; text-align: center; color: var(--ink-3); font-family: var(--font-display); font-size: 1.2rem; }
.no-results.show { display: block; }

/* ============ 11. PROCESS TIMELINE ============ */
.timeline { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line-2);
}
.timeline::after {
  /* progress fill, height driven by JS via --progress */
  content: ""; position: absolute; left: 23px; top: 8px; width: 2px;
  height: var(--progress, 0%);
  background: var(--accent); transition: height 0.2s linear;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tl-step {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
}
.tl-marker {
  position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line-2);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink-3);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.tl-step.in .tl-marker { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.05); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-body { display: grid; gap: 1.1rem; padding-top: 0.2rem; }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.2rem; }
.tl-phase { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tl-time {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--ink-3); padding: 0.2rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
}
.tl-time svg { width: 13px; height: 13px; }
.tl-title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); letter-spacing: -0.03em; }
.tl-desc { color: var(--ink-2); font-size: 1.05rem; max-width: 56ch; }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); margin-top: 0.4rem; }
.tl-panel { padding: 1.3rem 1.5rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.tl-panel h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.tl-art {
  display: grid; place-items: center; min-height: 130px; border-radius: 14px;
  border: 1px dashed var(--line-2); color: var(--ink-3);
}
.tl-art svg { width: 64px; height: 64px; opacity: 0.7; }

/* ============ 12. ABOUT ============ */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.2; }
.story-lead .hl { color: var(--accent); }
.story-body { display: grid; gap: 1.1rem; color: var(--ink-2); font-size: 1.06rem; }
.story-body p strong { color: var(--ink); font-weight: 600; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.value {
  display: grid; gap: 0.8rem; align-content: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper-2);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.value:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.value h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.value p { color: var(--ink-2); font-size: 0.96rem; }

.team-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.team-photo {
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-3);
  box-shadow: 12px 12px 0 0 var(--ink);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .ph { display: grid; gap: 0.6rem; justify-items: center; padding: 1rem; text-align: center; }
.team-photo .ph svg { width: 56px; height: 56px; opacity: 0.6; }
.bio-role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.bio h3 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.bio p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 1rem; max-width: 52ch; }
.bio-sign { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-top: 0.4rem; }

/* Tech toolkit — brand-coloured pill badges */
.tech-cloud { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
}
.tech-pill:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 24px -16px rgba(0,0,0,0.45); }
.tech-chip {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.84rem; letter-spacing: -0.02em;
  line-height: 1;
}
.tech-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.quote {
  display: grid; gap: 1.1rem; align-content: start;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper-2);
}
.quote-stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.95rem; }
.quote p { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.4; color: var(--ink); }
.quote-by { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.quote-meta { font-size: 0.8rem; color: var(--ink-3); }

.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.award {
  display: grid; gap: 0.5rem; padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line-2); border-radius: 16px; text-align: center; justify-items: center;
}
.award svg { width: 40px; height: 40px; color: var(--accent); }
.award b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.award span { font-size: 0.82rem; color: var(--ink-3); }

/* ============ 13. CONTACT ============ */
.contact-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.availability {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px;
  margin-bottom: 1.6rem;
}
.availability .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #18b364; box-shadow: 0 0 0 3px rgba(24,179,100,0.22); animation: blink 2.4s ease-in-out infinite; }

.cform { display: grid; gap: 1.4rem; }
.cform .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cform label.field-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; display: block; }
.cform .field { display: grid; gap: 0.5rem; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform textarea, .cform select {
  width: 100%; padding: 0.85rem 0; font: inherit; font-size: 1.05rem;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 2px solid var(--line-2);
  transition: border-color 0.2s; border-radius: 0;
}
.cform select { padding-right: 1.5rem; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8576' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 18px;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-3); }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; border-color: var(--accent); }

.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.18s var(--ease);
}
.pill:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.file-drop {
  display: grid; gap: 0.5rem; justify-items: center; text-align: center;
  padding: clamp(1.4rem, 3vw, 2rem); border: 2px dashed var(--line-2); border-radius: 14px;
  color: var(--ink-3); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--ink-2); }
.file-drop svg { width: 30px; height: 30px; }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop strong { color: var(--ink); font-family: var(--font-display); }
.file-name { font-size: 0.85rem; color: var(--accent); font-weight: 600; }

.map-embed {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--paper-2);
  display: grid; place-items: center; text-align: center;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed .map-ph { display: grid; gap: 0.6rem; justify-items: center; color: var(--ink-3); padding: 1.5rem; }
.map-embed .map-ph svg { width: 46px; height: 46px; color: var(--accent); }
.map-embed .map-pin {
  position: absolute; left: 50%; top: 46%; translate: -50% -100%;
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--accent); box-shadow: 0 6px 16px -4px rgba(0,0,0,0.5);
}
.map-embed .map-pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }

.hours-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.hours-list dt { color: var(--ink-2); }
.hours-list dd { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.hours-list div.is-today dd { color: var(--accent); }

.contact-channels { display: grid; gap: 0.8rem; margin: 1.6rem 0; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--paper-2); transition: transform 0.25s var(--ease), border-color 0.25s;
}
.channel:hover { transform: translateY(-3px); border-color: var(--accent); }
.channel-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.channel-icon svg { width: 22px; height: 22px; }
.channel-meta { display: grid; gap: 0.1rem; }
.channel-meta span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.channel-meta b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }

/* ============ 14. STAGGER REVEAL ============ */
.stagger > .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ============ 15. RESPONSIVE ============ */
@media (max-width: 980px) {
  .svc-cards { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .ps-grid { grid-template-columns: 1fr; }
  .deep-cols { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .team-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .channel--whatsapp { justify-content: center; }
  .channel--whatsapp .channel-meta { text-align: center; }
  .form-note--whatsapp { text-align: center; }
}
@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; gap: 1.4rem; }
  .case:nth-child(even) .case-media { order: 0; }
  .case-media { box-shadow: 8px 8px 0 0 var(--ink); }
  .team-photo { box-shadow: 8px 8px 0 0 var(--ink); }
}
@media (max-width: 560px) {
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr 1fr; }
  .cform .field-row { grid-template-columns: 1fr; }
  .deep > summary { grid-template-columns: auto 1fr; }
  .deep-toggle { display: none; }
  .timeline::before, .timeline::after { left: 18px; }
  .tl-step { grid-template-columns: 38px 1fr; }
  .tl-marker { width: 38px; height: 38px; font-size: 0.9rem; }
  .filter-count { width: 100%; margin-left: 0; }
}

/* ==========================================================================
   16. PAGE MOTION (works with animations.js; all initial-hidden states live
   inside no-preference so reduced-motion renders everything visible). The
   global reduced-motion block in style.css §19 is the backstop.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* ---- Services: page-hero title rises line-by-line. The h1 keeps .reveal
     (for the IO .in trigger + fade) but its own translate is neutralised so
     only the inline-block spans move — no compounding, i18n-safe (no inner DOM). */
  .page-hero-title.reveal { transform: none; }
  .page-hero-title.reveal > span { display: inline-block; opacity: 0; transform: translateY(0.6em); filter: blur(4px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
  .page-hero-title.reveal > span:nth-child(2) { transition-delay: 0.12s; }
  .page-hero-title.reveal.in > span { opacity: 1; transform: none; filter: blur(0); }

  /* Word-level cascade upgrade — animations.js splits each title line into
     .anim-word spans (numbered via --wi) and adds .is-split. The line-level
     rise above stays as the fallback when splitting hasn't run. i18n rewrites
     the lines on language switch; animations.js re-splits right after. */
  .page-hero-title.reveal.is-split > span { opacity: 1; transform: none; filter: none; transition: none; }
  .page-hero-title.is-split .anim-word {
    display: inline-block;
    opacity: 0; transform: translateY(0.55em) rotate(1.2deg); filter: blur(6px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
    transition-delay: calc(var(--wi, 0) * 55ms);
  }
  .page-hero-title.is-split.in .anim-word { opacity: 1; transform: none; filter: blur(0); }

  /* ---- Services: pricing tiers enter as a lightly-stacked deck. Overrides the
     base .reveal translate with translateY + scale; featured arrives last and
     overshoots via a springy cubic-bezier. --i comes from .stagger. */
  .tiers .tier.reveal { transform: translateY(60px) scale(0.95); transition: opacity 0.7s var(--ease), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
  .tiers .tier.reveal.in { transform: none; }
  .tiers .tier--featured.reveal { transition-delay: calc(var(--i, 0) * 70ms + 90ms); transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

  /* ---- Services CTA band: soft drifting aurora blobs behind the headline.
     Only transform animates (GPU); blur/opacity are static. overflow:hidden on
     .cta-band-inner clips them to the rounded card; screen blend makes them glow. */
  .cta-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .cta-band-inner > .cta-aurora { z-index: 0; }
  .cta-aurora span { position: absolute; border-radius: 50%; filter: blur(80px); mix-blend-mode: screen; }
  .cta-aurora span:nth-child(1) { width: 300px; height: 300px; left: 4%; top: 6%; background: color-mix(in srgb, var(--accent) 60%, transparent); animation: cta-drift-1 14s ease-in-out infinite alternate; }
  .cta-aurora span:nth-child(2) { width: 240px; height: 240px; right: 6%; bottom: 2%; background: color-mix(in srgb, #ff7a4d 50%, transparent); animation: cta-drift-2 18s ease-in-out infinite alternate; }
  .cta-aurora span:nth-child(3) { width: 260px; height: 260px; left: 42%; top: 38%; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: cta-drift-3 22s ease-in-out infinite alternate; }
  @keyframes cta-drift-1 { to { transform: translate(40px, 30px) scale(1.15); } }
  @keyframes cta-drift-2 { to { transform: translate(-34px, -22px) scale(1.10); } }
  @keyframes cta-drift-3 { to { transform: translate(26px, -28px) scale(0.92); } }

  /* ---- Work: case media reveals with a bottom→top clip wipe. We bundle the
     full transition here (clip-path + transform + box-shadow) because .case-media
     declares its own `transition` shorthand which would otherwise drop the
     clip-path tween. `round 14px` keeps the card's rounded corners; the shorter
     transform tween keeps the cursor tilt ([data-tilt]) responsive. */
  .case-media.reveal-clip--top {
    clip-path: inset(100% 0 0 0 round 14px);
    transition: box-shadow 0.45s var(--ease), transform 0.22s var(--ease), clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .case-media.reveal-clip--top.in { clip-path: inset(0% 0 0 0 round 14px); }

  /* ---- Process: timeline marker pops with a slight overshoot on reveal */
  .tl-step.in .tl-marker { animation: tl-marker-pop 0.5s var(--ease); }
  @keyframes tl-marker-pop { 0% { transform: scale(1); } 55% { transform: scale(1.14); } 100% { transform: scale(1.05); } }

  /* ---- Process: step content slides in directionally (odd←left, even←right) */
  .tl-step .tl-body { opacity: 0; transform: translateX(-30px); filter: blur(4px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
  .tl-step:nth-child(even) .tl-body { transform: translateX(30px); }
  .tl-step.in .tl-body { opacity: 1; transform: none; filter: blur(0); }

  /* ---- Process: pulsing dot rides the progress line (injected by animations.js,
     follows --progress set on .timeline by pages.js) */
  .tl-progress-dot {
    position: absolute; left: 23px; top: var(--progress, 0%); width: 10px; height: 10px;
    margin: -5px 0 0 -4px; border-radius: 50%; background: var(--accent); z-index: 3; pointer-events: none;
    transition: top 0.2s linear; animation: tl-dot-pulse 2s ease-out infinite;
  }
  @keyframes tl-dot-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
    70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  }

  /* ---- About: value cards enter with a soft bento pop (overrides base .reveal) */
  .values .value.reveal { transform: translateY(20px) scale(0.9); }
  .values .value.reveal.in { transform: none; }

  /* ---- About: team photo slow Ken Burns drift (container clips via overflow) */
  .team-photo img { animation: ken-burns 20s ease-in-out infinite; }
  @keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1.5%, 1%); }
    100% { transform: scale(1) translate(0, 0); }
  }

  /* ---- About: tech pills burst in small→full, staggered (--i from animations.js).
     The cloud container only fades so it doesn't slide while the pills pop. */
  .tech-cloud.reveal { transform: none; }
  .tech-cloud[data-stagger] .tech-pill { opacity: 0; transform: scale(0.6) translateY(12px); transition: opacity 0.5s var(--ease), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 40ms); }
  .tech-cloud[data-stagger].in .tech-pill { opacity: 1; transform: none; }

  /* ---- About: quotes rise with a subtle perspective tilt */
  .quotes { perspective: 1000px; }
  .quotes .quote.reveal { transform: translateY(30px) rotateX(8deg); transform-origin: top center; }
  .quotes .quote.reveal.in { transform: none; }

  /* ---- About: award names shimmer on hover (shimmer-sweep keyframe in style.css) */
  .award:hover b {
    background: linear-gradient(90deg, var(--ink), var(--accent), var(--ink));
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
    color: transparent; animation: shimmer-sweep 2s linear infinite;
  }

  /* ---- Contact: page-load curtain. The element has no styles outside this block,
     so under reduced motion it is an empty, zero-height div (effectively absent).
     Panels split apart then stay off-screen (forwards); never block clicks. */
  .curtain { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
  .curtain span { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--accent); }
  .curtain-l { left: 0; animation: curtain-l 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
  .curtain-r { right: 0; animation: curtain-r 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
  @keyframes curtain-l { from { transform: translateX(0); } to { transform: translateX(-101%); } }
  @keyframes curtain-r { from { transform: translateX(0); } to { transform: translateX(101%); } }

  /* ---- Contact: form fields stagger up (container only fades; --i from data-stagger) */
  .cform.reveal { transform: none; }
  .cform[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .cform[data-stagger].in > * { opacity: 1; transform: none; }

  /* ---- Contact: submit button sheen sweep on hover (magnetic from animations.js) */
  .cform button[type="submit"] { position: relative; overflow: hidden; }
  .cform button[type="submit"]::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s var(--ease); pointer-events: none;
  }
  .cform button[type="submit"]:hover::after { left: 120%; }

  /* ---- Contact: channels do a playful wobble on hover */
  .channel-icon { transition: transform 0.3s var(--ease); }
  .channel:hover { animation: channel-wobble 0.45s var(--ease); }
  .channel:hover .channel-icon { transform: rotate(-6deg); }
  @keyframes channel-wobble {
    0% { transform: translateY(-3px); }
    50% { transform: translateY(-3px) perspective(600px) rotateY(6deg); }
    100% { transform: translateY(-3px); }
  }
}

/* ============ 17. 3D PROCESS FLIP TRANSITION ============ */
.process-flip-stage {
  position: relative;
  overflow: hidden;
  background: var(--night);
  padding-block: var(--section-y);
}
.process-flip-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.process-page {
  position: relative;
  width: 100%;
}
.process-card-inner {
  background: var(--night-soft);
  border: 1px solid rgba(240, 236, 225, 0.1);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3rem);
  color: #f0ece1;
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.process-page .tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.process-page .tl-phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff7a4d;
}
.process-page .tl-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #b7b2a2;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(240, 236, 225, 0.16);
  border-radius: 999px;
}
.process-page .tl-time svg {
  width: 13px;
  height: 13px;
}
.process-page .tl-title {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  letter-spacing: -0.03em;
}
.process-page .tl-desc {
  color: #b7b2a2;
  font-size: 1.05rem;
  max-width: 56ch;
}
.process-page .tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 0.4rem;
}
.process-page .tl-panel {
  padding: 1.3rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 236, 225, 0.08);
}
.process-page .tl-panel h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #807b6c;
  margin-bottom: 1rem;
}
.process-page .check-list li::before {
  color: #ff7a4d;
}

@media (max-width: 980px) {
  .process-page .tl-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .process-flip-stage {
    height: 100vh;
    padding-block: 0;
  }
  .process-flip-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    display: block;
    padding: 0;
    gap: 0;
  }
  .process-page {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform-origin: top center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    padding-top: var(--header-h);
  }
  .process-page[data-step="1"] { z-index: 4; }
  .process-page[data-step="2"] { z-index: 3; }
  .process-page[data-step="3"] { z-index: 2; }
  .process-page[data-step="4"] { z-index: 1; }

  .process-card-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
  }
}

