/* ============================================================
   ForwardEdge Solutions — design system
   Palette derived from the brand logo (teal-green) + ink navy.
   ============================================================ */

:root {
  --teal-900: #0a4d3c;
  --teal-700: #0f6e56;
  --teal-500: #1d9e75;
  --teal-300: #5dcaa5;
  --teal-100: #e1f5ee;

  --ink: #0e1b22;
  --ink-soft: #1b2d36;
  --slate: #51626b;
  --slate-light: #7a8a92;

  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  --bg-tint: #eef5f2;
  --line: #e3ebe8;

  --white: #ffffff;

  --grad: linear-gradient(135deg, #0f6e56 0%, #1d9e75 100%);
  --grad-dark: linear-gradient(135deg, #0a3f31 0%, #0f6e56 100%);

  --shadow-sm: 0 1px 2px rgba(14, 27, 34, 0.06), 0 2px 8px rgba(14, 27, 34, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 27, 34, 0.10);
  --shadow-lg: 0 20px 50px rgba(14, 27, 34, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: #d8e2e1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 600;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal-500); display: inline-block; }
.section--ink .eyebrow { color: var(--teal-300); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 60ch; }
.section--ink .lead { color: #b9c7c5; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; line-height: 1;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(15,110,86,.28); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,110,86,.36); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: #fff; color: var(--teal-700); }
.btn--white { background:#fff; color: var(--teal-700); }
.btn--white:hover { color: var(--teal-900); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav-logo img { height: 68px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal-500); transition: width .22s ease;
}
.nav-links a:not(.btn):hover { color: var(--teal-700); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-700); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { padding: 6px 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(8,28,22,.92) 0%, rgba(10,40,32,.78) 42%, rgba(13,60,48,.45) 100%); }
.hero__inner { position: relative; z-index: 2; padding: clamp(90px, 16vh, 170px) 0 clamp(70px, 12vh, 130px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--teal-300); }
.hero p { color: #d6e5e1; font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 54ch; }
.hero .btn-row { margin-top: 30px; }
.hero--sm .hero__inner { padding: clamp(70px, 12vh, 120px) 0; }
.hero--sm h1 { max-width: 22ch; }

/* ---------- Press strip ---------- */
.press { border-bottom: 1px solid var(--line); background: #fff; }
.press__row {
  display: grid;
  grid-template-columns: minmax(190px, .28fr) 1fr;
  align-items: center;
  gap: 20px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.press__label { display: block; }
.press__label-kicker {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 700;
}
.press__label-copy {
  display: block;
  margin-top: 6px;
  color: var(--slate);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
}
.press__item { font-weight: 700; color: #95a5a2; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; }

.logo-marquee {
  --marquee-duration: 38s;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-marquee--compact {
  --marquee-duration: 32s;
  margin-top: 18px;
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logoMarquee var(--marquee-duration) linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.logo-cloud--compact { margin-top: 18px; }
.logo-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 18px 30px;
  padding-right: 30px;
}
.logo-marquee--compact .logo-set { gap: 16px 24px; padding-right: 24px; }
@keyframes logoMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.press__row.reveal { transition-delay: .08s; }
.logo-tile {
  flex: 0 0 var(--logo-tile-w, 142px);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: .95;
  transition: opacity .18s ease, transform .18s ease;
}
.logo-tile--modern { --logo-tile-w: 154px; }
.logo-tile--wide { --logo-tile-w: 218px; height: 34px; }
.logo-tile--fox { --logo-tile-w: 134px; height: 58px; }
.logo-tile--sun { --logo-tile-w: 188px; height: 42px; }
.logo-tile--hit { --logo-tile-w: 162px; height: 42px; }
.logo-tile--himss { --logo-tile-w: 118px; height: 52px; }
.logo-tile:hover img { opacity: 1; transform: translateY(-1px); }

.feature-panel {
  padding: 24px;
  border: 1px solid rgba(29, 158, 117, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcfa 0%, #fff 100%);
  box-shadow: 0 12px 30px rgba(14, 27, 34, .06);
  overflow: hidden;
  min-width: 0;
}
.feature-panel.reveal { transition-delay: .1s; }
.feature-panel h3 { margin-bottom: 8px; }
.feature-panel p:not(.eyebrow) { color: var(--slate); font-size: .96rem; }

.recognition-block { display: grid; gap: clamp(28px, 4vw, 44px); }
#recognition { scroll-margin-top: 110px; }
.recognition-block__intro { max-width: 68ch; }
.recognition-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.recognition-stat {
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 14px 18px;
  border: 1px solid rgba(29, 158, 117, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.recognition-stat strong {
  color: var(--green);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1;
}
.recognition-stat span {
  color: var(--slate);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.recognition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 46px); }
.recognition-panel h3 { margin-bottom: 12px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.cred-list { display: grid; gap: 0; }
.recognition-panel .cred:first-child { padding-top: 0; }
.recognition-panel .cred:last-child { border-bottom: 0; padding-bottom: 0; }
.recognition-block .feature-panel { max-width: none; }
@media (max-width: 820px){ .recognition-grid { grid-template-columns: 1fr; } }
.logo-marquee--compact .logo-tile,
.logo-cloud--compact .logo-tile { flex-basis: var(--logo-tile-compact-w, var(--logo-tile-w, 142px)); height: 46px; }
.logo-marquee--compact .logo-tile--modern,
.logo-cloud--compact .logo-tile--modern { --logo-tile-compact-w: 146px; }
.logo-marquee--compact .logo-tile--wide,
.logo-cloud--compact .logo-tile--wide { --logo-tile-compact-w: 190px; height: 32px; }
.logo-marquee--compact .logo-tile--fox,
.logo-cloud--compact .logo-tile--fox { --logo-tile-compact-w: 126px; height: 54px; }
.logo-marquee--compact .logo-tile--sun,
.logo-cloud--compact .logo-tile--sun { --logo-tile-compact-w: 176px; height: 40px; }
.logo-marquee--compact .logo-tile--hit,
.logo-cloud--compact .logo-tile--hit { --logo-tile-compact-w: 152px; height: 40px; }
.logo-marquee--compact .logo-tile--himss,
.logo-cloud--compact .logo-tile--himss { --logo-tile-compact-w: 112px; height: 50px; }
@media (max-width: 760px){
  .press__row { grid-template-columns: 1fr; text-align: center; }
  .press__label-copy { max-width: 28ch; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-track { animation: none; }
  .logo-set[aria-hidden="true"] { display: none; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.section--ink .stat__num { background: linear-gradient(135deg,#5dcaa5,#9fe1cb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; font-size: .92rem; color: var(--slate); }
.section--ink .stat__label { color: #b9c7c5; }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-300); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }
a.card { color: inherit; }
a.card .card__more { margin-top: 16px; font-weight: 600; color: var(--teal-700); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
a.card:hover .card__more { gap: 11px; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-100); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; fill: var(--teal-700); }

/* ---------- Tech / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  padding: 9px 16px; border-radius: 999px; background: var(--bg-tint);
  color: var(--ink-soft); border: 1px solid var(--line);
}
.section--ink .chip { background: rgba(255,255,255,.06); color: #d8e2e1; border-color: rgba(255,255,255,.14); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 14px; }
.step__n { font-family: var(--mono); font-weight: 700; color: var(--teal-500); font-size: .9rem; letter-spacing: .1em; }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--slate); margin: 0; font-size: .97rem; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 36px; } }
.split--bio { grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr); gap: clamp(34px, 5vw, 60px); }
.split--media-right { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 860px){ .split--bio, .split--media-right { grid-template-columns: 1fr; } }

.monogram {
  aspect-ratio: 1/1; width: 100%; max-width: 360px; border-radius: 24px;
  background: var(--grad-dark); display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden; margin: 0 auto;
}
.monogram::after { content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(93,202,165,.35), transparent 60%); }
.monogram span { position: relative; z-index:1; font-size: clamp(4rem,12vw,6.5rem); font-weight: 800; letter-spacing: -.04em; }
.monogram small { position:absolute; bottom: 22px; z-index:1; font-family: var(--mono); font-size:.7rem; letter-spacing:.25em; opacity:.85; }

.media-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  justify-self: center;
}
@media (max-width: 860px){ .media-frame--portrait { width: min(100%, 320px); } }

/* ---------- Definition lists / credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 30px; }
@media (max-width: 640px){ .cred-grid { grid-template-columns: 1fr; } }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cred svg { width: 20px; height: 20px; fill: var(--teal-500); flex: 0 0 auto; margin-top: 3px; }
.cred b { display:block; color: var(--ink); font-size: .98rem; }
.cred span { color: var(--slate); font-size: .9rem; }

/* ---------- Quote / testimonial slots ---------- */
.quote-card {
  background:#fff; border:1px dashed var(--teal-300); border-radius: var(--radius);
  padding: 30px 28px; color: var(--slate);
}
.quote-card .q { font-size:1.05rem; color: var(--ink-soft); font-style: italic; }
.quote-card .who { margin-top:16px; font-size:.88rem; color: var(--slate-light); font-family: var(--mono); }

/* ---------- CTA band (full-width) ---------- */
.cta { background: var(--grad-dark); color:#fff; text-align:center; position:relative; overflow:hidden; }
.cta .container { position:relative; z-index:1; padding-top: clamp(56px,8vw,92px); padding-bottom: clamp(56px,8vw,92px); }
.cta::after{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 78% 0%, rgba(93,202,165,.24), transparent 55%); }
.cta h2 { color:#fff; max-width: 22ch; margin: 0 auto .5em; }
.cta p { color:#cfe3dd; max-width: 54ch; margin: 0 auto 30px; font-size: clamp(1.02rem,1.5vw,1.18rem); }
.cta-note { background:#fff; }
.cta-note p { text-align:center; color:var(--slate-light); font-size:.8rem; font-family:var(--mono); margin:0; padding: 28px 24px; }

/* ---------- Stack columns (formatted words, no tiles) ---------- */
.stack-cols { display:grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
@media (max-width:760px){ .stack-cols { grid-template-columns:1fr; gap:28px; } }
.stack-cols h4 { font-family:var(--mono); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--teal-300); margin:0 0 14px; font-weight:600; }
.stack-cols ul { list-style:none; margin:0; padding:0; }
.stack-cols li { color:#cdd9d7; padding:7px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:.98rem; }
.stack-cols li:last-child { border-bottom:0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { font-weight:600; font-size:.9rem; color: var(--ink-soft); margin-bottom:6px; display:block; }
.form input, .form textarea, .form select {
  width:100%; font-family: var(--font); font-size:1rem; color: var(--ink);
  padding: 13px 15px; border:1.5px solid var(--line); border-radius: 12px; background:#fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline:none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(29,158,117,.14);
}
.form textarea { resize: vertical; min-height: 140px; }

.contact-cards { display:grid; gap:18px; }
.contact-line { display:flex; gap:14px; align-items:flex-start; }
.contact-line svg { width:22px; height:22px; fill: var(--teal-700); flex:0 0 auto; margin-top:3px; }
.contact-line b { display:block; }
.contact-line a, .contact-line span { color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#aebbb8; padding: 64px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer img { height: 40px; margin-bottom: 16px; }
.site-footer h4 { color:#fff; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; font-family: var(--mono); font-weight:600; margin:0 0 16px; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin-bottom:10px; }
.site-footer a { color:#aebbb8; font-size:.95rem; }
.site-footer a:hover { color:#fff; }
.footer-tag { font-family:"Playfair Display", serif; font-style: italic; color: var(--teal-300); font-size:1.2rem; margin: 6px 0 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:46px; padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:#7d8d8a; }
.social { display:inline-flex; gap:12px; }
.social a { width:38px; height:38px; border:1px solid rgba(255,255,255,.18); border-radius:10px; display:grid; place-items:center; }
.social svg { width:18px; height:18px; fill:#aebbb8; }
.social a:hover { background: var(--teal-700); border-color: var(--teal-700); }
.social a:hover svg { fill:#fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

.grad-text { background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- Case studies ---------- */
.case-list { display: grid; gap: 28px; }
.case {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.case__head { display:flex; flex-wrap:wrap; gap:18px 30px; align-items:flex-start; justify-content:space-between; }
.case__head h3 { margin: 6px 0 0; max-width: 24ch; }
.case__metric { text-align:right; }
.case__metric .n { font-size: clamp(1.8rem,3.4vw,2.6rem); font-weight:800; letter-spacing:-.03em;
  background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }
.case__metric .l { font-size:.8rem; color:var(--slate); display:block; margin-top:4px; max-width:22ch; }
@media (max-width:640px){ .case__metric { text-align:left; } }
.car { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 26px; }
@media (max-width:760px){ .car { grid-template-columns:1fr; gap:18px; } }
.car h4 { font-family: var(--mono); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--teal-700); margin:0 0 8px; }
.car p { color: var(--slate); font-size:.96rem; margin:0; }

/* ── Principles terminal display ─────────────────────────────── */
.prx {
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: clamp(36px,6vw,72px) clamp(28px,5vw,64px) clamp(32px,5vw,56px);
  overflow: hidden;
  isolation: isolate;
}
.prx-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(29,158,117,.16) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0;
}
/* sweep scan-line */
.prx::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29,158,117,.05), transparent);
  animation: prxSweep 5s linear infinite;
  pointer-events: none; z-index: 1;
}
@keyframes prxSweep { to { left: 145%; } }
.prx-meta, .prx-stage, .prx-track, .prx-nav { position: relative; z-index: 2; }

/* meta row */
.prx-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(16px,3vw,32px);
}
.prx-label {
  font-family: var(--mono); font-size: .70rem; letter-spacing: .22em;
  text-transform: uppercase; color: #1d9e75; font-weight: 600;
}
.prx-counter {
  font-family: var(--mono); font-size: .78rem;
  color: rgba(255,255,255,.28); letter-spacing: .10em;
}
.prx-stage { margin-bottom: clamp(20px,4vw,40px); min-height: 8rem; }
.prx-word {
  font-family: var(--mono); font-weight: 600; line-height: 1;
  font-size: clamp(3rem,9vw,7rem); letter-spacing: -.02em;
  background: linear-gradient(115deg,#ffffff 0%,#5dcaa5 50%,#1d9e75 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(29,158,117,.38));
  margin-bottom: 18px; word-break: break-all;
}
.prx-desc {
  font-size: clamp(.90rem,1.4vw,1.04rem); color: #6f9e96;
  max-width: 56ch; line-height: 1.65; margin: 0; min-height: 3.3em;
  transition: opacity .20s ease;
}
.prx-desc--fade { opacity: 0; }
.prx-track { display: flex; gap: 5px; margin-bottom: 24px; }
.prx-seg {
  flex: 1; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.09); overflow: hidden; cursor: pointer;
}
.prx-seg:hover { background: rgba(255,255,255,.18); }
.prx-seg-fill { height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg,#1d9e75,#5dcaa5); }
.prx-seg.done .prx-seg-fill { width: 100%; }
.prx-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.prx-nav-btn {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.10); background: transparent;
  color: rgba(255,255,255,.26); cursor: pointer; transition: all .18s ease;
}
.prx-nav-btn:hover { color: rgba(255,255,255,.65); border-color: rgba(29,158,117,.40); }
.prx-nav-btn.active { color: #5dcaa5; border-color: #1d9e75; background: rgba(29,158,117,.10); }
@media (max-width: 600px) { .prx-word { letter-spacing: -.03em; } }

/* ── Press logo strip ───────────────────────────────────────── */
.press__logo {
  opacity: 0.82;
  transition: opacity .2s ease;
  max-width: 160px;
  object-fit: contain;
}
.press__logo:hover { opacity: 1; }

/* ── Hero animations ────────────────────────────────────────── */
/* Background Ken Burns scale-in */
@keyframes heroBgScale {
  from { transform: scale(1.10); }
  to   { transform: scale(1.00); }
}
.hero__bg--animate {
  animation: heroBgScale 7s cubic-bezier(.22,1,.36,1) both;
  transform-origin: center center;
}

/* Eyebrow / paragraph / button-row fade-up */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade {
  opacity: 0;
  animation: heroFadeUp .70s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--fd, 0s);
}

/* Individual character roll-in */
@keyframes charIn {
  from {
    opacity: 0;
    transform: translateY(52px) rotateX(-60deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}
.hero-char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  animation: charIn .30s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--ci, 0) * 14ms + 0.12s);
}
#heroH1 { perspective: 600px; }
