/* ==========================================================================
   Forzateks — Design System v2
   Editorial typography × Swiss grid. Hairlines, sharp geometry, ghost type.
   Shared: tokens, nav, buttons, index rows, data strips, ticker, accordion,
   dark sections, footer, image treatments, reveal states.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand-red: #E8593C;
  --brand-red-light: rgba(232, 89, 60, 0.08);
  --brand-red-border: rgba(232, 89, 60, 0.2);
  --bg: #ffffff;
  --bg-soft: #f8f7f5;
  --bg-muted: #f3f2ef;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --hairline: rgba(0, 0, 0, 0.12);
  --hairline-soft: rgba(0, 0, 0, 0.07);
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --dark-card: #111118;
  --dark-card2: #1a1829;
  --dark-hairline: rgba(255, 255, 255, 0.14);
  --dark-hairline-soft: rgba(255, 255, 255, 0.08);
  --green-accent: #5a8a00;

  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html {
  /* Lenis drives smooth scrolling */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }

::selection { background: var(--brand-red); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
  width: min(1320px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 130px) 0; }
.section-soft { background: var(--bg-soft); }

/* Visible Swiss column grid (decorative, inside positioned parents) */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline-soft) 1px, transparent 1px);
  background-size: 25% 100%;
  background-position: -1px 0;
}
.dark .gridlines {
  background-image:
    linear-gradient(to right, var(--dark-hairline-soft) 1px, transparent 1px);
}

/* ---------- Typography components ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}
.dark .section-label { color: rgba(255, 255, 255, 0.6); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 820px;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.display {
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-red);
  letter-spacing: -0.02em;
}

.accent { color: var(--brand-red); }

/* Ghost (outline) type */
.ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.25);
}
.dark .ghost, .ghost-light {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

/* Headline word-reveal (spans injected by JS, animated by GSAP) */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hw-in { display: inline-block; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn-solid {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn-solid .arr { transition: transform 0.35s var(--ease-out); }
.btn-solid:hover { background: var(--brand-red); }
.btn-solid:hover .arr { transform: translateX(5px); }
.btn-solid--red { background: var(--brand-red); }
.btn-solid--red:hover { background: #fff; color: var(--text-primary); }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--brand-red);
  transition: color 0.3s ease, gap 0.35s var(--ease-out);
}
.link-line:hover { color: var(--brand-red); gap: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.35s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(17, 17, 17, 0.06); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-logo .logo-dot { color: var(--brand-red); }

.nav-meta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--brand-red);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-cta:hover { color: var(--brand-red); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 var(--gutter) 28px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile a {
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile a.nav-mobile-cta {
  color: var(--brand-red);
  border-bottom: 0;
}
.nav-mobile.open { display: flex; }

/* ---------- Image treatments ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.img-mono img {
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s ease;
}
.img-mono:hover img { filter: none; }

/* Minimal browser frame (proof imagery) */
.browser-frame {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
}
.browser-frame .bf-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline-soft);
}
.browser-frame .bf-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
}
.browser-frame .bf-bar i:first-child { background: var(--brand-red); }
.browser-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Data strip (stats fused via hairlines) ---------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.data-cell {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--hairline-soft);
}
.data-cell + .data-cell { padding-left: 24px; }
.data-cell:last-child { border-right: 0; padding-right: 0; }
.data-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.data-value.accent { color: var(--brand-red); }
.data-label {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ---------- Zoho product logo ticker (drifts left → right) ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding: 24px 0;
  background: var(--bg);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-ltr 55s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 56px;
  white-space: nowrap;
}
.ticker-item img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.ticker-item span {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.35s ease;
}
.ticker-item:hover img { filter: none; opacity: 1; }
.ticker-item:hover span { color: var(--text-primary); }
@keyframes ticker-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ---------- Index rows (services) ---------- */
.index-rows { border-top: 1px solid var(--hairline); }
.index-row {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  transition: background 0.4s ease;
}
.index-row-head {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}
.index-num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.index-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.45s var(--ease-out);
}
.index-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--text-primary);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease-out);
}
.index-arrow svg { width: 17px; height: 17px; }
.index-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-expo);
}
.index-detail-inner {
  padding: 0 0 30px 90px;
  max-width: 720px;
}
.index-detail .index-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
}
.index-detail .index-apps {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.index-detail .index-apps b {
  font-weight: 500;
  color: var(--text-secondary);
}

.index-row:hover { background: var(--bg-soft); }
.index-row:hover .index-row-head { padding-left: 14px; padding-right: 14px; }
.index-row-head { transition: padding 0.45s var(--ease-out); }
.index-row:hover .index-num { color: var(--brand-red); }
.index-row:hover .index-arrow {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  transform: rotate(-45deg);
}
.index-row:hover .index-detail { max-height: 220px; }
.index-row:hover .index-detail-inner { padding-left: 104px; }
.index-detail-inner { transition: padding 0.45s var(--ease-out); }

/* Dark inverted row (AI Solutions) */
.index-row--dark {
  background: var(--dark-card);
  border-bottom-color: var(--dark-card);
}
.index-row--dark .index-row-head { padding-left: 14px; padding-right: 14px; }
.index-row--dark .index-title { color: #fff; }
.index-row--dark .index-num { color: var(--brand-red); }
.index-row--dark .index-sub { color: rgba(255, 255, 255, 0.6); }
.index-row--dark .index-apps { color: rgba(255, 255, 255, 0.4); }
.index-row--dark .index-apps b { color: rgba(255, 255, 255, 0.65); }
.index-row--dark .index-arrow { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.index-row--dark:hover { background: var(--dark-card2); }

/* Cursor-following preview frame */
.float-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 290px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(2deg);
  will-change: transform, opacity;
}
.float-preview .browser-frame img { height: 180px; }

/* ---------- Dark sections ---------- */
.dark {
  background: var(--dark-card);
  color: #fff;
}
.dark .section-title { color: #fff; }
.dark .section-sub { color: rgba(255, 255, 255, 0.6); }

/* ---------- Process (dark, ghost numbers, hairline grid) ---------- */
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--dark-hairline);
  margin-top: 64px;
}
.process-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
}
.step {
  padding: 34px 22px 10px 0;
  border-right: 1px solid var(--dark-hairline-soft);
}
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}
.step:hover .step-num {
  -webkit-text-stroke: 1px var(--brand-red);
}
.step h3 {
  margin-top: 22px;
  font-size: 1.02rem;
  color: #fff;
}
.step p {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Industries index ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
  margin-top: 64px;
}
.ind-cell {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 34px 34px 34px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.ind-cell:nth-child(odd) { border-right: 1px solid var(--hairline-soft); }
.ind-cell:nth-child(even) { padding-left: 34px; padding-right: 0; }
.ind-cell:nth-last-child(-n+2) { border-bottom: 0; }
.ind-thumb { height: 120px; }
.ind-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
}
.ind-cell h3 {
  margin-top: 6px;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}
.ind-cell:hover h3 { color: var(--brand-red); }
.ind-cell p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- FAQ (hairline accordion) ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.accordion-item { border-bottom: 1px solid var(--hairline); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.accordion-trigger:hover { color: var(--brand-red); }
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand-red);
}
.accordion-icon::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion-icon::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-expo);
}
.accordion-body {
  padding: 0 40px 28px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.accordion-body p + p, .accordion-body ul { margin-top: 12px; }
.accordion-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.accordion-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
}
.accordion-body strong { color: var(--text-primary); font-weight: 500; }
.accordion-body a { color: var(--brand-red); font-weight: 500; }
.accordion-body a:hover { text-decoration: underline; }

/* ---------- CTA (full-bleed dark) ---------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta .display { font-size: clamp(2.2rem, 5.6vw, 4.6rem); text-transform: none; }
.cta .btn-solid { margin-top: 44px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-card);
  color: rgba(255, 255, 255, 0.6);
  padding: 90px 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 70px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.footer-logo .logo-dot { color: var(--brand-red); }
.footer-tagline { margin-top: 14px; max-width: 280px; font-size: 0.92rem; }
.footer-partner { margin-top: 26px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer-partner .dot { color: var(--brand-red); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.92rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-col a:hover { color: var(--brand-red); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--dark-hairline-soft);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--brand-red); }

.footer-ghost {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(4rem, 15.5vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  margin-bottom: -0.08em;
  user-select: none;
  pointer-events: none;
}

/* ---------- Work cards (Selected Work grids) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  margin-top: 64px;
}
.work-card { display: block; }
.work-shot { height: clamp(220px, 24vw, 340px); overflow: hidden; }
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s ease, transform 0.8s var(--ease-out);
}
.work-card:hover .work-shot img { filter: none; transform: scale(1.025); }
.bf-url {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.work-meta {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: 16px;
  padding-top: 24px;
}
.work-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.work-meta h3 { font-size: 1.2rem; transition: color 0.3s ease; }
.work-meta p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}
.work-card:hover .work-num { color: var(--brand-red); }
.work-card:hover .work-meta h3 { color: var(--brand-red); }
.work-card:hover .index-arrow {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  transform: rotate(-45deg);
}
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; gap: 44px; margin-top: 44px; }
  .work-shot { height: 220px; }
}

/* Compact variant — 3-up contact sheet, name + category only */
.work-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  row-gap: clamp(36px, 4vw, 52px);
}
.work-grid--compact .work-shot { height: clamp(140px, 14vw, 200px); }
.work-grid--compact .browser-frame { box-shadow: 0 14px 36px rgba(17, 17, 17, 0.1); }
.work-grid--compact .work-meta {
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding-top: 16px;
  align-items: center;
}
.work-grid--compact .work-num { font-size: 0.78rem; }
.work-grid--compact .work-meta h3 { font-size: 1.02rem; }
.work-tag {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-grid--compact .index-arrow { width: 34px; height: 34px; }
.work-grid--compact .index-arrow svg { width: 14px; height: 14px; }
@media (max-width: 1024px) {
  .work-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .work-grid--compact { grid-template-columns: 1fr; gap: 36px; }
  .work-grid--compact .work-shot { height: 190px; }
}

/* ---------- Reveal states (GSAP animates; .in is the fallback path) ---------- */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

/* Hairline draw-in (GSAP scaleX; falls back to visible) */
.line-draw { transform-origin: left; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-meta { display: none; }
  .nav-links { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--dark-hairline-soft); }
  .step:nth-child(even) { border-right: 0; padding-right: 0; }
  .step { padding-bottom: 30px; }
  .float-preview { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .data-strip { grid-template-columns: 1fr 1fr; }
  .data-cell { padding: 22px 16px 22px 0; }
  .data-cell + .data-cell { padding-left: 16px; }
  .data-cell:nth-child(2) { border-right: 0; }
  .data-cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-soft); }
  .index-row-head { grid-template-columns: 52px 1fr auto; padding: 24px 0; }
  .index-detail-inner, .index-row:hover .index-detail-inner { padding-left: 52px; }
  /* Touch: show detail without hover */
  .index-row .index-detail { max-height: none; }
  .index-detail-inner { padding-bottom: 24px; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-cell, .ind-cell:nth-child(even) { padding-left: 0; padding-right: 0; }
  .ind-cell:nth-child(odd) { border-right: 0; }
  .ind-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline-soft); }
  .ind-cell:last-child { border-bottom: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { border-right: 0; padding-left: 0; }
}

@media (max-width: 480px) {
  .ind-cell { grid-template-columns: 1fr; gap: 14px; }
  .ind-thumb { height: 150px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .float-preview { display: none; }
}
