/* ==========================================================================
   Techno Americana — component & layout CSS
   A faithful translation of the design-system components (GlassCard, Button,
   IconButton, Eyebrow, Badge, InfoStat, Checklist, NavBar, CompanyCard) and
   the website screens into plain CSS classes. Values map to the design tokens.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page transitions — fade each page in on load; app.js fades out on navigate.
   Pure CSS so there is no flash of unstyled/invisible content without JS. */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn 420ms var(--ease-out) both; }
body.leaving { animation: none; opacity: 0; transition: opacity 220ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.leaving { transition: none; opacity: 1; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--glass-border-soft); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Eyebrow ──────────────────────────────────────────────────────────────*/
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text-eyebrow);
  line-height: 1.4;
}
.eyebrow.sm { font-size: var(--label-size-sm); }
.eyebrow.muted { color: var(--text-muted); }
.eyebrow.accent { color: var(--accent-strong); }
.eyebrow.vertical { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ── Glass surface ────────────────────────────────────────────────────────*/
.glass {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  padding: var(--space-6);
  background: var(--glass-tint);
  border: 1px solid var(--glass-border-soft);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(140%);
  backdrop-filter: blur(var(--blur-lg)) saturate(140%);
  box-shadow: var(--shadow-glass), var(--shadow-glass-inset);
  color: var(--text-on-glass);
  transition: transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.glass--frost { background: var(--glass-frost); border-color: var(--glass-border); }
.glass--tint  { background: var(--glass-tint);  border-color: var(--glass-border-soft); }
.glass--deep  { background: var(--glass-deep);  border-color: var(--glass-border-soft); }
.glass--panel { background: var(--glass-tint-2); border-color: var(--glass-border-soft); }

.glass.p-none { padding: 0; }
.glass.p-sm   { padding: var(--space-4); }
.glass.p-md   { padding: var(--space-5); }
.glass.p-lg   { padding: var(--space-6); }
.glass.p-xl   { padding: var(--space-7); }

.glass--interactive { cursor: pointer; }
.glass--interactive:hover {
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass-lg), var(--shadow-glass-inset);
}

.radius-lg { border-radius: var(--radius-lg); }
.radius-xl { border-radius: var(--radius-xl); }

/* ── Buttons ──────────────────────────────────────────────────────────────*/
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem; min-height: 44px; padding: 0.75rem 1.5rem;
  font-family: var(--font-body); font-size: var(--label-size);
  font-weight: var(--fw-semibold); letter-spacing: var(--label-track);
  text-transform: uppercase; white-space: nowrap; border-radius: var(--radius-pill);
  cursor: pointer; color: var(--white); background: transparent;
  border: 1px solid var(--glass-border);
  transition: background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 36px; padding: 0.5rem 1rem; font-size: var(--label-size-sm); gap: 0.5rem; }
.btn--lg { min-height: 52px; padding: 1rem 2rem; font-size: var(--text-sm); gap: 0.75rem; }

.btn--solid { background: var(--old-glory-red); border-color: transparent; }
.btn--solid:hover { background: var(--red-500); }
.btn--outline { background: transparent; border-color: var(--glass-border); }
.btn--outline:hover { background: var(--glass-tint); border-color: var(--white); }
.btn--glass {
  background: var(--glass-tint); border-color: var(--glass-border-soft);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  box-shadow: var(--shadow-glass-inset);
}
.btn--glass:hover { background: var(--glass-hover); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-body); padding-inline: 0; }
.btn--ghost:hover { color: var(--white); }
.btn svg { display: block; }

/* ── Icon button ──────────────────────────────────────────────────────────*/
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  color: var(--white); cursor: pointer; background: transparent;
  border: 1px solid var(--glass-border);
  transition: background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.lg { width: 56px; height: 56px; }
.icon-btn--outline:hover { background: var(--glass-hover); border-color: var(--white); }
.icon-btn--glass {
  background: var(--glass-tint); border-color: var(--glass-border-soft);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  box-shadow: var(--shadow-glass-inset);
}
.icon-btn--glass:hover { background: var(--glass-hover); }
.icon-btn svg { display: block; }
.icon-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ── Badge ────────────────────────────────────────────────────────────────*/
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); line-height: 1;
}
.badge--index {
  font-size: var(--label-size); color: var(--text-faint);
  padding: 0 0 4px; background: transparent;
  border-bottom: 1px solid transparent;
}
.badge--index.active { color: var(--white); border-bottom-color: var(--white); }
.badge--glass {
  font-size: var(--label-size-sm); color: var(--white); text-transform: uppercase;
  padding: 0.375rem 0.75rem; background: var(--glass-tint);
  border: 1px solid var(--glass-border-soft); border-radius: var(--radius-pill);
}
.badge--solid {
  font-size: var(--label-size-sm); color: var(--white); text-transform: uppercase;
  padding: 0.375rem 0.75rem; background: var(--old-glory-red); border-radius: var(--radius-pill);
}
.badge--outline {
  font-size: var(--label-size-sm); color: var(--text-body); text-transform: uppercase;
  padding: 0.375rem 0.75rem; background: transparent;
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
}

/* ── InfoStat ─────────────────────────────────────────────────────────────*/
.info-stat { display: flex; align-items: center; gap: var(--space-4); }
.info-stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--glass-tint); border: 1px solid var(--glass-border-soft); color: var(--white);
}
.info-stat.lg .info-stat__icon { width: 44px; height: 44px; }
.info-stat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-stat__label {
  font-size: var(--label-size-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--text-muted);
}
.info-stat__value {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: var(--fw-regular); color: var(--text-primary); line-height: 1.2;
}
.info-stat.lg .info-stat__value { font-size: var(--text-h3); font-weight: var(--fw-light); }

/* ── Checklist ────────────────────────────────────────────────────────────*/
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.checklist li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-base); line-height: var(--lh-normal); color: var(--text-body);
}
.checklist .check {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 22px; height: 22px; margin-top: 2px; border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border); color: var(--white);
}

/* ── NavBar ───────────────────────────────────────────────────────────────*/
.nav-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-5) var(--container-pad); width: 100%;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 13, 28, 0.72);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  border-bottom-color: var(--glass-border-soft);
}
.nav-brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.nav-brand img { height: 26px; width: auto; display: block; }
.nav-brand span {
  font-size: var(--label-size); font-weight: var(--fw-bold);
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--white);
}
.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--label-size); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0.625rem 1.25rem; font-size: var(--label-size-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--white);
  background: transparent; border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--glass-tint); border-color: var(--white); }
.nav-toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────*/
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-color: var(--navy-900);
  /* Background.png sits next to this stylesheet in /assets/; a relative url()
     here resolves against the stylesheet, so it stays correct at any deploy path. */
  background-image:
    linear-gradient(180deg, rgba(5,13,28,0.5) 0%, rgba(5,13,28,0) 20%),
    linear-gradient(90deg, rgba(5,13,28,0.55) 0%, rgba(8,20,40,0.2) 45%, rgba(8,20,40,0) 82%),
    url('Background.png');
  background-size: cover; background-position: center;
}
.hero-rail {
  position: absolute; left: var(--container-pad); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-5); z-index: 3;
}
.hero-rail .rail-line { width: 1px; height: 90px; background: linear-gradient(var(--glass-border), transparent); }
.hero-content {
  position: relative; z-index: 2; padding: 0 var(--container-pad);
  display: flex; align-items: center; min-height: 100vh;
}
.hero-card { max-width: 520px; margin-left: clamp(64px, 7vw, 140px); }
.hero-card h1 {
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: var(--lh-tight);
  margin: var(--space-4) 0 var(--space-5); color: var(--white);
}
.hero-card p {
  font-size: var(--text-lg); line-height: var(--lh-normal);
  color: var(--neutral-100); margin: 0 0 var(--space-6); max-width: 340px;
}
.hero-card .btn .circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border);
}
.index-rail {
  position: fixed; left: var(--container-pad); bottom: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-4); z-index: 40;
  transition: opacity var(--dur-base) var(--ease-out);
}
.index-rail.rail-hidden { opacity: 0; pointer-events: none; }
.rail-item { display: flex; align-items: center; gap: var(--space-3); }
.rail-label { transition: color var(--dur-fast) var(--ease-out); }
.rail-item:hover .badge--index { color: var(--white); }
.rail-item:hover .rail-label { color: var(--white); }
.hero-scroll-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--space-5); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.hero-rail { cursor: pointer; }

/* Laptop heights: the vertically-centered hero card can collide with the
   fixed index rail (bottom-left) and the rotate pill (bottom-right). Shift
   the card up, tighten its type, and keep clear air below it. */
@media (max-height: 1000px) {
  .hero-content { padding-top: 56px; padding-bottom: 48px; }
  .hero-card h1 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); margin: var(--space-3) 0 var(--space-4); }
  .hero-card p { font-size: var(--text-base); margin-bottom: var(--space-5); }
  .hero-card.p-xl { padding: var(--space-6); }
}
@media (max-height: 720px) {
  .index-rail .rail-label { display: none; }
  .hero-content { padding-bottom: 90px; }
}

/* ── Home landing: full-page scroll-snap sections ─────────────────────────── */
/* Firm section snapping. A section taller than the viewport (e.g. the About
   letter on short screens) is still freely scrollable within itself — snap
   areas larger than the snapport permit any covering position. */
html.fullpage { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.fullpage .snap-section { scroll-snap-align: start; scroll-snap-stop: always; }

.fullpage-panel {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-gradient);
  padding: 72px 0 var(--space-4);
}
.fullpage-panel .container { width: 100%; }
/* Compact the carousel header inside the full-page panel so it fits one screen. */
.companies-panel .section-head { padding-top: var(--space-2); padding-bottom: var(--space-4); }
.companies-panel /* Home full-page panel: a compact active card (Founded/HQ facts live on the
   profile) so the whole Companies section fits one screen. */
/* Uniform carousel geometry at every viewport: numerals, card offset, and
   card text are fixed so (year + offset + card) always fits the carousel
   height below — no height breakpoints, no clipped cards at any size. */
.companies-panel .section-head h2 { font-size: clamp(1.9rem, 2.4vw, 2.4rem); }
.companies-panel .carousel-year { font-size: 2.2rem; margin-bottom: var(--space-4); }
.companies-panel .carousel-item.is-active .carousel-year { font-size: clamp(2.6rem, 4.5vw, 3.6rem); }
.companies-panel .carousel-item { transform: translateY(36px); }
.companies-panel .carousel-item.is-active { transform: translateY(0); }
.companies-panel .company-card { padding: var(--space-5); }
.companies-panel .company-card p { -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.companies-panel .carousel-item.is-active .company-card .facts,
.companies-panel .carousel-item.is-active .company-card .view { display: none; }

/* Laptop-class heights (any MacBook, most external displays with a docked
   browser): compress the full-page carousel sections so the header, cards,
   and controls always fit one viewport. Only tall monitors get full size. */
@media (max-height: 1000px) {
  .fullpage-panel { padding-top: 64px; }
  .companies-panel }

@media (prefers-reduced-motion: reduce) {
  html.fullpage { scroll-snap-type: none; }
}

/* ── Section scaffolding (About / Values / Stories / Companies) ────────────*/
.screen { min-height: 100vh; background: var(--bg-gradient); padding-top: 88px; padding-bottom: var(--space-9); }
.screen-hero {
  position: relative; padding: var(--space-9) var(--container-pad);
  background-color: var(--navy-900);
  background-image: linear-gradient(90deg, rgba(5,13,28,0.94), rgba(8,20,40,0.55) 55%, rgba(8,20,40,0.2)), var(--hero-photo);
  background-size: cover; background-position: center;
}
.section-head { text-align: center; padding: var(--space-7) var(--container-pad) var(--space-5); }
.section-head h2, .section-head h1 {
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: var(--text-display); margin: var(--space-3) 0 0; color: var(--white);
}
.display-title { font-family: var(--font-display); font-weight: var(--fw-light); font-size: var(--text-display); color: var(--white); line-height: var(--lh-snug); margin: var(--space-4) 0 0; }
.lead { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--text-body); }

/* ── Companies carousel ───────────────────────────────────────────────────*/
.companies-bg {
  background-color: var(--navy-900);
  background-image: linear-gradient(180deg, rgba(5,13,28,0.92), rgba(8,20,40,0.72)), var(--hero-photo);
  background-size: cover; background-position: center;
}
/* Abundance section backdrop — Abundance.png sits beside this stylesheet in
   /assets/, so a relative url() resolves correctly at any deploy path. The dark
   overlay keeps the glass cards and white text readable over the warm photo. */
.abundance-bg {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(180deg, rgba(5,13,28,0.82) 0%, rgba(6,15,32,0.86) 55%, rgba(5,13,28,0.9) 100%),
    url('Abundance.png');
  background-size: cover; background-position: center;
}
.carousel-block { width: 100%; }
/* On the /companies page each section carries its own full-bleed backdrop so it
   matches the home panels (e.g. the Abundance photo behind the Abundance list). */
.companies-page-section { padding: 96px 0 var(--space-9); }
/* The carousel clips only on the x-axis (cards sliding sideways); the y-axis
   is fully visible, so a card can never be cut vertically — the section
   simply grows taller when it needs to. The track is in normal flow so the
   carousel takes its height from the tallest card. */
.carousel { position: relative; overflow-x: clip; overflow-y: visible; padding-bottom: 72px;
  /* Vertical panning stays native; horizontal gestures belong to the carousel. */
  touch-action: pan-y; }
.carousel-track {
  display: flex; gap: 56px; align-items: flex-start; margin-left: 50%;
  transition: transform 520ms var(--ease-out);
}
.carousel-item {
  width: 320px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  transform: translateY(64px); opacity: 0.72;
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out);
}
.carousel-item.is-active { transform: translateY(0); opacity: 1; }

/* Frosted glass on all carousel cards, made swipe-safe: a translucent
   painted gradient sits under the live backdrop blur, so while a card is
   sliding (when the compositor may briefly skip backdrop-filter) it already
   reads as glass — the blur then settles in as a subtle softening rather
   than a hard pop. */
.carousel-item .company-card {
  /* Same bright frost treatment as the home hero card (glass--frost). */
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(140%);
  backdrop-filter: blur(var(--blur-lg)) saturate(140%);
}
.carousel-item .company-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.13));
}
.carousel-year {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 3rem; letter-spacing: -0.02em; line-height: 1; color: var(--neutral-500);
  margin-bottom: var(--space-5); transition: color 420ms var(--ease-out), font-size 420ms var(--ease-out);
}
.carousel-item.is-active .carousel-year { color: var(--white); font-size: clamp(3.5rem, 6vw, 5.5rem); }

/* Company card (composed) */
.company-card { width: 100%; box-sizing: border-box; }
.company-card .logo { height: 32px; display: flex; align-items: center; margin-bottom: var(--space-4); color: var(--white); transition: height 420ms var(--ease-out); }
.carousel-item.is-active .company-card .logo { height: 44px; }
.company-card .logo img { height: 100%; width: auto; display: block; }
/* Colored favicon fallback, shown in a rounded chip so it reads as an app mark. */
.logo-favicon {
  height: 100%; width: auto; aspect-ratio: 1; object-fit: contain; display: block;
  border-radius: 7px; padding: 3px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-soft);
}
.profile-id .logo .logo-favicon { height: 48px; border-radius: 10px; padding: 5px; }
.company-card .monogram {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track-wide); text-transform: uppercase;
  font-size: 1.5rem; color: var(--white);
}
.company-card h3 {
  margin: 0; font-family: var(--font-display); font-size: var(--text-h4);
  font-weight: var(--fw-regular); letter-spacing: var(--label-track);
  text-transform: uppercase; color: var(--text-primary);
  transition: font-size 420ms var(--ease-out);
}
.carousel-item.is-active .company-card h3 { font-size: var(--text-h3); }
.company-card .rule { width: 32px; height: 1px; background: var(--glass-border); margin: var(--space-4) 0; }
.company-card p {
  margin: 0; font-size: var(--text-base); line-height: var(--lh-normal); color: var(--text-body);
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.company-card .facts {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-top: 0; padding-top: 0; border-top: 1px solid transparent;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: opacity 340ms var(--ease-out), max-height 520ms var(--ease-out),
    margin-top 520ms var(--ease-out), padding-top 520ms var(--ease-out), border-color 520ms var(--ease-out);
}
.carousel-item.is-active .company-card .facts {
  max-height: 220px; opacity: 1; margin-top: var(--space-5);
  padding-top: var(--space-5); border-top-color: var(--glass-border-soft);
}
.company-card .fact-label {
  font-size: var(--label-size-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--text-muted);
}
.company-card .fact-value { font-size: var(--text-base); color: var(--text-primary); }
.company-card .view {
  display: flex; justify-content: flex-end; margin-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: opacity 340ms var(--ease-out), max-height 520ms var(--ease-out), margin-top 520ms var(--ease-out);
}
.carousel-item.is-active .company-card .view { max-height: 64px; opacity: 1; margin-top: var(--space-6); }
.company-card .view .circle {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-tint); color: var(--text-primary);
}

/* ── Profile ──────────────────────────────────────────────────────────────*/
.profile { position: relative; min-height: 100vh; background: var(--bg-gradient); padding-top: 88px; padding-bottom: var(--space-9); }
.backbar { padding: var(--space-5) var(--container-pad) 0; }
.backbar a {
  display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-muted);
  font-size: var(--label-size); font-weight: var(--fw-semibold);
  letter-spacing: var(--label-track); text-transform: uppercase;
}
.backbar a:hover { color: var(--white); }
.profile-inner { position: relative; padding-top: var(--space-6); }
.profile-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-8); align-items: center; }
.profile-id .logo { height: 52px; margin-bottom: var(--space-4); display: flex; align-items: center; }
.profile-id .logo img { height: 48px; width: auto; }
.profile-id .monogram { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 2.25rem; letter-spacing: var(--label-track-wide); color: var(--white); }
.profile-id h1 {
  font-family: var(--font-display); font-weight: var(--fw-light); font-size: var(--text-display);
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 var(--space-4); color: var(--white);
}
.profile-id .aka { margin: 0 0 var(--space-4); color: var(--text-faint); font-size: var(--text-sm); letter-spacing: 0.08em; }
.profile-id .rule { width: 40px; height: 1px; background: var(--glass-border); margin-bottom: var(--space-5); }
.profile-id .desc { font-size: var(--text-lg); line-height: var(--lh-normal); color: var(--text-body); max-width: 400px; margin: 0 0 var(--space-6); }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
/* Large company-website link on profiles */
.site-link {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-6);
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: 0.04em;
  color: var(--white); border-bottom: 1px solid var(--glass-border);
  padding-bottom: 6px; width: fit-content;
  transition: border-color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.site-link:hover { border-bottom-color: var(--white); gap: var(--space-4); }
.site-link svg { opacity: 0.7; }

.profile-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: 460px; background-color: var(--navy-800); box-shadow: var(--shadow-glass-lg); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit { position: absolute; inset: auto 0 0 0; margin: 0; padding: 28px 18px 12px; font-size: var(--text-xs); color: var(--text-faint); background: linear-gradient(transparent, rgba(8, 20, 40, 0.85)); }
.profile-nav-arrow { position: absolute; top: 56%; z-index: 4; }
.profile-nav-arrow.prev { left: calc(var(--container-pad) - 22px); }
.profile-nav-arrow.next { right: calc(var(--container-pad) - 22px); }
.profile-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.profile-block-text { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--text-body); margin: var(--space-4) 0 0; }
.divided { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: var(--space-5); }
.divided > * { padding: 0 var(--space-6); }
.divided > * + * { border-left: 1px solid var(--glass-border-soft); }
.impact-cell { display: flex; align-items: center; gap: var(--space-4); }
.impact-cell .value { font-family: var(--font-display); font-weight: var(--fw-light); font-size: var(--text-h2); color: var(--white); line-height: 1.05; }
.impact-cell .label { font-size: var(--text-sm); color: var(--text-muted); margin-top: 6px; line-height: var(--lh-normal); }
.impact-cell .glyph { color: var(--white); opacity: 0.9; flex: 0 0 auto; }
.cta-card { margin-top: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-card h3 { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--text-h3); margin: 0 0 var(--space-2); color: var(--white); }
.cta-card p { font-size: var(--text-base); color: var(--text-muted); margin: 0; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-8); }

/* ── About / Values / Stories ─────────────────────────────────────────────*/
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: center; padding-top: var(--space-8); }
.about-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.about-copy p { margin: 0; }
/* The About manifesto — body in the site's own hand (Manrope); only the
   signature is scripted. */
.letter { color: var(--neutral-100); }
.letter.muted-close { color: var(--text-muted); }
.made-in { display: flex; align-items: center; gap: 8px; margin: var(--space-5) 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.made-in img { height: 16px; width: auto; display: inline-block; }
.made-in a { color: var(--neutral-100); border-bottom: 1px solid var(--glass-border); transition: color var(--dur-fast) var(--ease-out); }
.made-in a:hover { color: var(--white); border-bottom-color: var(--white); }
.sig { margin-top: var(--space-2); }
.sig-line { font-family: "Mrs Saint Delafield", cursive; color: var(--text-muted); font-size: 2rem; }
.sig-name { margin-top: var(--space-1); font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 3.2rem; letter-spacing: 0.02em; color: var(--text-primary); transform: rotate(-1.5deg); transform-origin: left; }
.about-stats { display: flex; flex-direction: column; gap: var(--space-6); }
.story-feature { overflow: hidden; margin-bottom: var(--space-6); }
.story-feature .grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px; }
.story-photo { background-color: var(--navy-800); background-size: cover; background-position: center; min-height: 220px; }
.story-feature .body { padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.story-feature .body h2 { font-family: var(--font-display); font-weight: var(--fw-light); font-size: var(--text-h1); line-height: var(--lh-snug); margin: 0; color: var(--white); }
.story-feature .body p { font-size: var(--text-lg); line-height: var(--lh-normal); color: var(--text-body); margin: 0; }
.story-meta { font-size: var(--label-size-sm); font-weight: var(--fw-semibold); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--text-faint); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); }
.story-card { overflow: hidden; }
.story-card .thumb { height: 180px; background-color: var(--navy-800); background-size: cover; background-position: center; }
.story-card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.story-card h3 { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--text-h4); line-height: var(--lh-snug); margin: 0; color: var(--white); }
.story-card p { font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--text-muted); margin: 0; }
.tag-row { display: flex; gap: var(--space-3); align-items: center; }

/* ── Footer ───────────────────────────────────────────────────────────────*/
.footer { border-top: 1px solid var(--glass-border-soft); background: var(--navy-950); padding: var(--space-8) var(--container-pad) var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-7); align-items: start; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand img { height: 26px; }
.footer-brand span { font-size: var(--label-size); font-weight: var(--fw-bold); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--white); }
.footer p.blurb { font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--text-muted); max-width: 300px; margin: 0; }
.footer ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--glass-border-soft); }
.footer-bottom span { font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--text-faint); }

/* ── Reveal animation ─────────────────────────────────────────────────────*/
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .carousel-track, .carousel-item { transition: none; }
}

/* Phones: narrower cards + tighter gap so the next card peeks in from the
   right edge — the visual cue that the row swipes. */
@media (max-width: 640px) {
  .carousel-item { width: 280px; }
  .carousel-track { gap: 16px; }
}

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .profile-top { grid-template-columns: 1fr; }
  .profile-photo { height: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .profile-grid { grid-template-columns: 1fr; }
  .story-feature .grid { grid-template-columns: 1fr; }
  .divided { grid-template-columns: 1fr; }
  .divided > * { padding: var(--space-5) 0; }
  .divided > * + * { border-left: none; border-top: 1px solid var(--glass-border-soft); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: var(--space-4); padding: var(--space-5) var(--container-pad);
    background: rgba(5,13,28,0.95); border-bottom: 1px solid var(--glass-border-soft);
    -webkit-backdrop-filter: blur(var(--blur-md)); backdrop-filter: blur(var(--blur-md));
  }
  .nav-toggle { display: inline-flex; }
  .hero-card { margin-left: 0; }
  .hero-rail { display: none; }
  .index-rail { display: none; }
  .profile-facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .profile-nav-arrow { display: none; }
}

/* Home About panel: the manifesto letter, compacted so the panel reads well
   at laptop heights; the panel may exceed one screen and scroll (proximity
   snap allows it). */
.about-panel { padding-block: var(--space-8); }
.about-letter { max-width: 720px; }
.about-panel .display-title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.about-panel .sig-name { font-size: 2.8rem; }
