/* ==========================================================================
   Ashburn Taylor — pages.css
   Hero, sections, grids, reveal
   ========================================================================== */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(7px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out), filter .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* Heading clip-wipe (Spade-style) on revealed section heads */
.section-head h2, .svc-block__head h2, .page-head h1 { will-change: clip-path; }
[data-reveal] .section-head h2 { } /* placeholder */
.section-head[data-reveal] h2,
[data-reveal].section-head h2 {
  clip-path: inset(0 0 102% 0);
  transition: clip-path .95s var(--ease-out) .15s;
}
.section-head[data-reveal].in h2,
[data-reveal].section-head.in h2 { clip-path: inset(-12% 0 -12% 0); }

/* Section eyebrow "blue line" draws in on reveal (only inside revealed blocks) */
[data-reveal] .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out) .15s; }
[data-reveal].in .eyebrow::before { transform: scaleX(1); }

/* Brand gradient divider line */
.brand-line {
  height: 3px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--mint) 25%, var(--cyan) 75%, transparent);
  border-radius: 3px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .9s var(--ease-out);
}
[data-reveal].in .brand-line, .brand-line.in { transform: scaleX(1); }

/* Hero scroll-down cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: var(--on-dark-mute); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color .25s var(--ease);
}
.scroll-cue:hover { color: var(--mint); }
/* circuit-style scroll cue: a thin trace with a node square at the end + a pulse */
.scroll-cue__line {
  position: relative; width: 1.5px; height: 56px; margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.24));
}
.scroll-cue__line::before {            /* node square at the end of the line */
  content: ''; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.34); background: rgba(120,170,200,0.10);
}
.scroll-cue__line::after {             /* light pulse travelling down to the node */
  content: ''; position: absolute; left: 50%; top: 0;
  width: 2px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  box-shadow: 0 0 7px rgba(54,205,253,0.85);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: translate(-50%, -14px); opacity: 0; }
  16%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translate(-50%, 44px); opacity: 0; }
}

/* Directional reveals */
[data-reveal="right"] { transform: translateX(48px) scale(0.97); }
[data-reveal="left"]  { transform: translateX(-48px) scale(0.97); }
[data-reveal="right"].in, [data-reveal="left"].in { transform: none; }

/* Boxes inside a grid pop in with a scale + a left-to-right cascade */
.grid > [data-reveal] { transform: translateY(44px) scale(0.95); }
.grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.grid > [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.grid > [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.grid > [data-reveal]:nth-child(4) { transition-delay: 270ms; }
.grid > [data-reveal]:nth-child(5) { transition-delay: 120ms; }
.grid > [data-reveal]:nth-child(6) { transition-delay: 210ms; }
.grid > [data-reveal]:nth-child(7) { transition-delay: 300ms; }
.grid > [data-reveal]:nth-child(8) { transition-delay: 390ms; }
.grid > [data-reveal]:nth-child(9) { transition-delay: 240ms; }
.grid > [data-reveal].in { transform: none; }

/* ========================================================================
   HERO
   ======================================================================== */
/* Centered, full-bleed dark hero (mirrors the original brand hero) */
.hero {
  position: relative;
  text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 12vw, 9.5rem);
  padding-bottom: clamp(5rem, 10vw, 7.5rem);
  overflow: hidden;
  background: var(--slate);
  background-image:
    radial-gradient(900px 520px at 82% -12%, rgba(52,245,197,0.16), transparent 60%),
    radial-gradient(760px 520px at 6% 118%, rgba(54,205,253,0.14), transparent 60%);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* the interactive grid (gridfx) provides the hero grid lines + ripple; fade at edges */
.hero .grid-fx {
  -webkit-mask: radial-gradient(120% 90% at 50% 30%, #000 32%, transparent 78%);
          mask: radial-gradient(120% 90% at 50% 30%, #000 32%, transparent 78%);
}
.hero .gfx-cell { border-color: rgba(255,255,255,0.06); }
/* interior page heads share the same interactive tile grid as the hero */
.page-head .grid-fx {
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 98%);
          mask: linear-gradient(180deg, #000 55%, transparent 98%);
}
.page-head .gfx-cell { border-color: rgba(255,255,255,0.055); }
.page-head .hero__grid-bg::after {
  background:
    radial-gradient(620px 360px at 26% 20%, rgba(52,245,197,0.12), transparent 65%),
    radial-gradient(520px 340px at 80% 90%, rgba(54,205,253,0.10), transparent 65%);
}
/* full-width slate sections (e.g. the CPU architecture band) share the tile grid */
.section.section--slate[data-gridfx] > .wrap { position: relative; z-index: 1; }
.section.section--slate .grid-fx {
  -webkit-mask: radial-gradient(120% 120% at 50% 45%, #000 42%, transparent 88%);
          mask: radial-gradient(120% 120% at 50% 45%, #000 42%, transparent 88%);
}
.section.section--slate .gfx-cell { border-color: rgba(255,255,255,0.05); }
.section.section--slate .hero__grid-bg::after { display: none; }
/* static brand glow behind the grid (no movement) */
.hero__grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 460px at 28% 30%, rgba(52,245,197,0.16), transparent 65%),
    radial-gradient(560px 440px at 76% 70%, rgba(54,205,253,0.15), transparent 65%);
}
.hero__center {
  position: relative; z-index: 1;
  max-width: 1000px; margin-inline: auto;
}
.hero__logo { height: clamp(46px, 6vw, 68px); width: auto; margin: 0 auto 1.8rem; }
.hero h1 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(2.5rem, 6.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto 1.7rem;
  max-width: 16ch;
}
.hero h1 .amp { color: var(--cyan); font-style: normal; }
.hero__lead {
  color: var(--on-dark-soft);
  font-size: clamp(1.2rem, 3.6vw, 1.32rem);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 2.4rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats strip beneath the hero (light) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  text-align: center;
}
.hero-stats .stat { position: relative; padding: 0 clamp(1rem, 3vw, 2.4rem); }
.hero-stats .stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 6px; bottom: 6px;
  width: 1px; background: var(--hairline-2);
}
@media (max-width: 560px){
  .hero-stats { flex-direction: column; gap: 1.6rem; }
  .hero-stats .stat:not(:last-child)::after { display: none; }
}

/* ========================================================================
   GRID UTILITIES
   ======================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split (text + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.split--narrow { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) {
  .hero__grid, .split, .split--narrow { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin-inline: auto; }
}

/* Branded stat panel (replaces stock illustrations) */
.stat-panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 120% at 12% 0%, rgba(52,245,197,.20), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(54,205,253,.18), transparent 55%),
    linear-gradient(160deg, #2f455c, #1b2a39);
  color: #fff;
  box-shadow: var(--shadow);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
}
.stat-panel__bg {
  position: absolute; inset: 0; opacity: .6;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(100% 80% at 72% 18%, #000, transparent 75%);
          mask: radial-gradient(100% 80% at 72% 18%, #000, transparent 75%);
}
.stat-panel > * { position: relative; z-index: 1; }
.stat-panel .eyebrow { color: var(--mint); margin-bottom: 1.2rem; }
.stat-panel__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.6rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.03em;
}
.stat-panel p { color: var(--on-dark-soft); margin-top: 1.1rem; max-width: 30ch; font-size: 1.06rem; }

/* Image frame for split visuals */
.framed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}
.framed img { width: 100%; height: auto; display: block; }
.plain-illus img { width: 100%; height: auto; }

/* ========================================================================
   PHASE NAV (Discover / Engage / Deliver stepper)
   ======================================================================== */
.phasenav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.phasenav a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.3rem; border-radius: 100px;
  border: 1px solid var(--hairline-2); background: #fff;
  font-family: var(--font-display); font-weight: 600; color: var(--body);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.phasenav a b { color: var(--mint-deep); font-weight: 700; }
.phasenav a:hover { border-color: var(--mint); transform: translateY(-2px); }
.phasenav a[aria-current="page"] { background: var(--slate); color: #fff; border-color: var(--slate); }
.phasenav a[aria-current="page"] b { color: var(--mint); }

/* Phase intro: lead text + a highlighted callout */
.phase-callout {
  margin-top: 1.6rem; padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--mint);
  background: var(--accent-grad-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-weight: 500;
}

/* ========================================================================
   PROCESS / PHASES
   ======================================================================== */
.phase {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.phase:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint); }
.phase__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--mint-deep), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.9rem;
}
.phase h3 { margin-bottom: 0.5rem; }

.process { display: grid; gap: 0; }
.process__step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.8rem 0; border-top: 1px solid var(--hairline); align-items: start;
}
.process__step:last-child { border-bottom: 1px solid var(--hairline); }
/* when a process list is the last thing in a service block, its closing border
   doubles up with the block's own divider — drop the redundant one */
.svc-block .process .process__step:last-child { border-bottom: 0; }
.process__idx {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--slate);
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint);
}
.process__step h3 { margin-bottom: 0.4rem; }
.process__step p { max-width: 64ch; }

/* ========================================================================
   SERVICE DETAIL BLOCK (services page)
   ======================================================================== */
.svc-block { scroll-margin-top: 5.5rem; }
.svc-block + .svc-block { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hairline); }
.svc-block__head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.svc-block__icon {
  width: 64px; height: 64px; flex: none;
  border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--hairline);
  display: grid; place-items: center;
}
.svc-block__icon img { width: 38px; height: 38px; mix-blend-mode: multiply; }

/* ========================================================================
   BENEFITS
   ======================================================================== */
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint); }
.benefit__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px;
  background: var(--accent-grad-soft);
  display: grid; place-items: center; color: var(--mint-deep);
}
.benefit__icon svg { width: 21px; height: 21px; }
.benefit h4 { margin-bottom: 0.25rem; }
.benefit p { color: var(--body); font-size: 0.92rem; }

/* ========================================================================
   CASE STUDIES
   ======================================================================== */
.case {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.case + .case { margin-top: 1.6rem; }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint); }
.case__aside {
  border-right: 1px solid var(--hairline);
  padding-right: clamp(1rem, 3vw, 2.4rem);
  position: sticky; top: 100px;
}
.case__sector {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint-deep);
  padding: 0.4rem 0.85rem; border-radius: 100px;
  background: var(--accent-grad-soft); border: 1px solid var(--hairline-2);
  margin-bottom: 1.4rem;
}
.case__profile { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.case__profile li { color: var(--body); font-size: 0.98rem; }
.case__profile b { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.15rem; margin-right: 0.4rem; }
.case__tech { color: var(--muted); font-size: 0.9rem; }
.case__body h3 { margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; }
  .case__aside { border-right: 0; border-bottom: 1px solid var(--hairline); padding-right: 0; padding-bottom: 1.4rem; }
}

/* ========================================================================
   CTA BAND (slate)
   ======================================================================== */
.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin: 0.8rem auto 1rem; max-width: 20ch; }
.cta-band .lead { margin: 0 auto 1.8rem; max-width: 52ch; text-wrap: balance; }

/* keep phrases together on one line where wrapping looks awkward */
.nowrap { white-space: nowrap; }
/* a wider lead that should sit on ~2 lines */
.lead--2line { max-width: 68ch; text-wrap: balance; }
/* heading that should sit on a single line on desktop (wraps on small screens) */
.section-head--oneline { max-width: 1000px; }
@media (min-width: 1000px) { .section-head--oneline h2 { white-space: nowrap; } }
/* lead/subtitle that should sit on a single line on desktop (wraps on small screens) */
.lead--1line { max-width: none; }
@media (min-width: 1000px) { .lead--1line { white-space: nowrap; } }
.cta-band__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Interactive grid FX (cells light up around the cursor) */
[data-gridfx] { position: relative; overflow: hidden; }
.grid-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gfx-grid { position: absolute; top: -1px; left: -1px; display: grid; }
.gfx-cell {
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background-color: rgba(var(--c, 110, 235, 255), var(--a, 0));
  transition: background-color .5s var(--ease);
}
.cta-band > .grid-fx { z-index: 0; }
.cta-band > *:not(.grid-fx) { position: relative; z-index: 1; }

/* ========================================================================
   PAGE HEADER (interior pages, slate)
   ======================================================================== */
.page-head {
  position: relative;
  padding-top: clamp(7.5rem, 13vw, 10rem);
  padding-bottom: clamp(2.8rem, 5vw, 4rem);
  overflow: hidden;
}
.page-head .crumb { margin-bottom: 1rem; }
.page-head h1 { margin: 1rem 0 1rem; max-width: 18ch; font-weight: 400; }
.page-head .lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.crumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.on-dark .crumb, .on-dark .crumb span { color: var(--on-dark-mute); }
.crumb a:hover { color: var(--mint); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid var(--hairline);
}
.contact-detail__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--accent-grad-soft);
  display: grid; place-items: center; color: var(--mint-deep);
}
.contact-detail__icon svg { width: 21px; height: 21px; }
.contact-detail h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; font-weight: 600; }
.contact-detail a, .contact-detail p { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-detail a:hover { color: var(--mint-deep); }

.form-card { padding: clamp(1.5rem, 3vw, 2.2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 1rem; }

@media (max-width: 560px){
  .hero__stats { grid-template-columns: 1fr 1fr; max-width: none; }
  .hero__stats .stat:not(:last-child)::after { display: none; }
}

/* ---------- Mobile clean-ups ---------- */
/* CTA bands have generous padding — trim the sides on phones so content has room */
@media (max-width: 560px){
  .cta-band { padding-inline: 1.5rem; }
}
/* the hero scroll cue collides with the CTA buttons on small screens — hide it */
@media (max-width: 760px){
  .scroll-cue { display: none; }
}
/* "Also included" capability tags: tidy 2-column grid on mobile (was a sparse list) */
@media (max-width: 600px){
  .roles:has(.role-tag) { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .roles:has(.role-tag) .role-tag {
    text-align: center; font-size: 0.84rem; padding: 0.7rem 0.5rem;
    border-radius: 10px; background: var(--accent-grad-soft); border-color: var(--hairline);
  }
}
