/* ============================================================
   ScaleCorridor Group — Marketing site
   "THE CORRIDOR" — dark architectural wayfinding system
   Tokens come from styles.css; this file is the art direction.
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #fff;
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--steel-300); color: var(--navy-950); }

.scg-site { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
a { color: inherit; text-decoration: none; }

/* ---- Atmospheric base: every dark section gets a faint vignette ---- */
.dark { background: var(--navy-950); color: #fff; position: relative; }
.dark-2 { background: var(--navy-900); color: #fff; position: relative; }
.light { background: var(--ink-50); color: var(--ink-900); position: relative; }

/* ============================================================
   WAYFINDING SIGNAGE — mono labels, station numbers
   ============================================================ */
.sign {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-300);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sign::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--steel-500);
}
.sign.no-tick::before { display: none; }
.light .sign { color: var(--steel-600); }
.light .sign::before { background: var(--steel-400); }

.station-no {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--steel-400);
}

/* ============================================================
   TYPE
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.h-xl { font-size: clamp(44px, 8.5vw, 132px); }
.h-lg { font-size: clamp(38px, 5.6vw, 84px); }
.h-md { font-size: clamp(30px, 3.6vw, 56px); }
.h-sm { font-size: clamp(24px, 2.4vw, 36px); }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--steel-200);
  font-weight: 400;
}
.light .lede { color: var(--ink-600); }
.muted { color: var(--steel-300); }
.light .muted { color: var(--ink-500); }

.section { padding: clamp(80px, 12vw, 168px) 0; }
.section-sm { padding: clamp(56px, 7vw, 96px) 0; }

/* gradient sheen on key headlines */
.sheen {
  background: linear-gradient(96deg, #fff 0%, #fff 55%, var(--steel-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   REVEAL — transform-only entrance tied to static [data-reveal].
   Resting state is ALWAYS visible (no opacity/clip), so content can
   never be hidden if an animation fails to start; it just slides in.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { animation: revIn .8s var(--ease-out) both; }
  [data-reveal][data-delay="1"] { animation-delay: .09s; }
  [data-reveal][data-delay="2"] { animation-delay: .18s; }
  [data-reveal][data-delay="3"] { animation-delay: .27s; }
  [data-reveal][data-delay="4"] { animation-delay: .38s; }
  [data-reveal][data-delay="5"] { animation-delay: .50s; }
  @keyframes revIn { from { transform: translateY(22px); } to { transform: translateY(0); } }

  /* kinetic line slide */
  .kin { display: block; }
  .kin > span { display: block; animation: kinIn .9s var(--ease-out) both; }
  .kin[data-delay="1"] > span { animation-delay: .10s; }
  .kin[data-delay="2"] > span { animation-delay: .22s; }
  .kin[data-delay="3"] > span { animation-delay: .34s; }
  @keyframes kinIn { from { transform: translateY(40px); } to { transform: translateY(0); } }
}

/* ============================================================
   CORRIDOR HERO FIELD — receding perspective frames + light
   ============================================================ */
.corridor-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.corridor-field .vp {
  position: absolute; left: 50%; top: 46%;
  width: 240px; height: 240px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(199,207,216,0.55) 0%, rgba(111,128,144,0.18) 30%, transparent 70%);
  filter: blur(6px);
  transition: transform .5s var(--ease-out);
}
.corridor-field .frame {
  position: absolute; left: 50%; top: 46%;
  border: 1px solid rgba(168,186,207,0.16);
  border-radius: 2px;
  transform: translate(-50%,-50%) scale(var(--s));
  box-shadow: 0 0 60px rgba(108,151,185,0.04) inset;
}
@media (prefers-reduced-motion: no-preference) {
  .corridor-field .frame { animation: walk 9s linear infinite; animation-delay: var(--d); }
  @keyframes walk {
    0%   { transform: translate(-50%,-50%) scale(0.04); opacity: 0; }
    12%  { opacity: .9; }
    100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
  }
  .corridor-field .vp { animation: pulse 4.5s var(--ease-standard) infinite; }
  @keyframes pulse { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
}
/* floor grid lines for ground plane */
.corridor-field .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background-image: linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(168,186,207,0.10) 100%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}

/* ============================================================
   SPINE — fixed scroll-progress rail with station ticks
   ============================================================ */
.spine { position: fixed; left: 26px; top: 0; bottom: 0; width: 2px; z-index: 40; display: flex; align-items: center; pointer-events: none; }
.spine .track { position: relative; width: 1px; height: min(60vh, 520px); margin: 0 auto; background: rgba(168,186,207,0.18); }
.spine .fill { position: absolute; top: 0; left: 0; width: 100%; background: linear-gradient(var(--steel-200), var(--steel-400)); height: var(--progress, 0%); transition: height .15s linear; }
.spine .tick { position: absolute; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--navy-950); border: 1px solid var(--steel-500); pointer-events: auto; }
.spine .tick .lbl { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--steel-400); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.spine .tick.active { background: var(--steel-200); border-color: var(--steel-200); box-shadow: 0 0 12px rgba(199,207,216,0.6); }
.spine .tick.active .lbl { opacity: 1; color: var(--steel-200); }
.spine .tick.passed { background: var(--steel-500); border-color: var(--steel-500); }
@media (max-width: 1180px) { .spine { display: none; } }

/* ============================================================
   PANELS / CARDS on dark
   ============================================================ */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,207,216,0.5), transparent);
  opacity: 0; transition: opacity .4s;
}
.panel:hover::after { opacity: 1; }
.hair { border: 0; border-top: 1px solid rgba(255,255,255,0.10); margin: 0; }
.light .hair { border-color: var(--border-subtle); }

/* ============================================================
   BUTTONS — art-directed for dark
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 15px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: #fff; color: var(--navy-950); }
.btn-primary:hover { background: var(--steel-200); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.26); }
.btn-ghost:hover { border-color: #fff; }
.light .btn-primary { background: var(--navy-800); color: #fff; }
.light .btn-primary:hover { background: var(--navy-700); }
.light .btn-ghost { color: var(--navy-800); border-color: var(--border-default); }
.light .btn-ghost:hover { border-color: var(--navy-800); }
.btn-lg { font-size: 16px; padding: 18px 30px; }

/* link with arrow */
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--steel-200); font-size: 15px; cursor: pointer; transition: gap .25s, color .25s; }
.tlink:hover { gap: 12px; color: #fff; }
.light .tlink { color: var(--navy-700); }
.light .tlink:hover { color: var(--navy-900); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .row { display: flex; gap: 56px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee .row { animation: slide 32s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
.marquee .item { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; color: var(--steel-400); white-space: nowrap; }
.marquee .item.dot { color: var(--steel-600); }
.marquee .item.logo { display: inline-flex; align-items: center; gap: 14px; }
.marquee .logo-mark { display: inline-flex; }
.marquee .logo-mark svg { width: 1.1em; height: 1.1em; display: block; }
.marquee .logo-word { line-height: 1; }
.marquee .logo-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 14px 24px; }
.marquee .logo-chip img { height: 34px; width: auto; display: block; }

/* ============================================================
   GENERIC UTILITIES
   ============================================================ */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chip {
  font-size: 13px; color: var(--steel-200); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}
.light .chip { color: var(--ink-700); background: var(--white); border-color: var(--border-subtle); }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-hero { padding: clamp(86px, 12vw, 150px) 0 clamp(74px, 10vw, 118px); overflow: hidden; }
.case-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 74% 18%, #000, transparent 58%);
  mask-image: radial-gradient(circle at 74% 18%, #000, transparent 58%);
}
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 72px); align-items: end; position: relative; }
.case-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.case-brief { padding: 28px; }
.case-brief-row { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.case-brief-row:first-child { padding-top: 0; }
.case-brief-row:last-child { border-bottom: 0; padding-bottom: 0; }
.case-brief-row span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-500); }
.case-brief-row b { font-size: 18px; line-height: 1.35; color: #fff; }

.case-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-metric { border-top: 2px solid var(--navy-800); padding-top: 18px; }
.case-metric .display { font-size: clamp(42px, 5vw, 78px); color: var(--navy-800); line-height: .95; }
.case-metric p { margin: 14px 0 0; color: var(--ink-600); line-height: 1.55; font-size: 15px; }

.case-two-col { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 84px); align-items: start; }
.case-list { display: grid; gap: 14px; }
.case-list-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.case-list-item span { font-family: var(--font-mono); color: var(--steel-500); font-size: 13px; }
.case-list-item p { margin: 0; color: var(--steel-200); line-height: 1.58; font-size: clamp(17px, 1.4vw, 21px); }

.case-phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-phase { padding: 26px; min-height: 300px; display: flex; flex-direction: column; }
.case-phase-top { display: flex; align-items: center; justify-content: space-between; color: var(--steel-400); }
.case-phase-top span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.case-phase h3 { margin: 58px 0 14px; font-family: var(--font-display); font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.case-phase p { margin: 0; color: var(--steel-300); line-height: 1.6; font-size: 14.5px; }
.case-index-card {
  background: var(--white);
  border-color: var(--border-subtle);
  min-height: 360px;
}
.case-index-card .case-phase-top { color: var(--ink-400); }
.case-index-card h2 {
  margin: 38px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.case-index-card p { color: var(--ink-600); font-size: 16px; }
.case-index-card .case-card-eyebrow {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.case-index-card .case-card-meta {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-500);
}
.case-index-card .btn { margin-top: 18px; width: fit-content; }

.case-outcomes { margin-top: 28px; display: grid; gap: 14px; }
.case-outcomes p { margin: 0; padding-left: 18px; border-left: 2px solid var(--navy-800); color: var(--ink-600); line-height: 1.55; }
.case-cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.case-cap-list div { background: var(--white); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 20px; display: grid; gap: 22px; min-height: 138px; }
.case-cap-list span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-400); }
.case-cap-list b { font-family: var(--font-display); font-size: 22px; line-height: 1.05; color: var(--ink-900); letter-spacing: -0.02em; }
.case-cta { padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }

@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .footer-grid,
  .case-hero-grid,
  .case-two-col,
  .case-index-grid,
  .case-phase-grid,
  .case-metrics,
  .case-cap-list { grid-template-columns: 1fr; }
  .case-cta { align-items: flex-start; flex-direction: column; }
  .case-phase { min-height: 0; }
  .case-phase h3 { margin-top: 34px; }
  header nav { display: none !important; }
}
