/* ============================================================
   JAMES FOO — HOMEPAGE EXPERIENCE
   Loader · hero field · marquee · work stack · philosophy rail
   ============================================================ */

body.home {
  padding-top: 0; /* hero runs under the transparent nav */
}

/* Paper grain — subtle tactile texture over everything */
body.home::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow--night { color: var(--night-text-2); }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--night);
  color: var(--night-text);
  display: none; /* only shown when JS is available */
  align-items: center;
  justify-content: center;
}

.js .loader { display: flex; }

.loader-word {
  display: block;
  width: clamp(230px, 42vw, 430px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.lw-stroke {
  stroke: var(--night-text);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lw-swash {
  stroke: var(--signal);
  stroke-width: 5;
  stroke-linecap: round;
}

.lw-pen {
  fill: var(--signal);
  opacity: 0; /* revealed by JS when the pen touches down */
}

/* no-JS / no-GSAP: the word simply shows, fully written */
.js .loader .lw-stroke,
.js .loader .lw-swash { visibility: hidden; }

.loader-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night-text-2);
  margin-top: 1.25rem;
  text-align: center;
  opacity: 0;
}

.loader-count {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--night-text-2);
}

body.is-loading { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hm-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hm-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--nav-h) + 2rem);
}

.hm-hero-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  background: rgba(251, 249, 243, 0.6);
  backdrop-filter: blur(6px);
  margin-bottom: clamp(1.5rem, 3.5vh, 3rem);
}

.hm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3FB68B;
  box-shadow: 0 0 0 0 rgba(63, 182, 139, 0.5);
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 182, 139, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(63, 182, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 182, 139, 0); }
}

.hm-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 5.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.75rem);
}

.hm-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hm-line-inner {
  display: inline-block;
  will-change: transform;
}

.hm-line--big { font-size: 1.18em; }

.hm-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.hm-humans {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hm-underline {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.14em;
  color: var(--signal);
  overflow: visible;
}

.hm-underline path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
}

.hm-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}

.hm-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hm-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.75rem;
  margin-top: auto;
}

.hm-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hm-scroll-line {
  width: 1px;
  height: 34px;
  background: var(--ink-3);
  overflow: hidden;
  position: relative;
}

.hm-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  animation: scroll-drip 1.8s var(--ease-out) infinite;
}

@keyframes scroll-drip {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* Hero entrance states (animated in by home.js) */
.js .hm-line-inner { transform: translateY(115%); }
.js [data-hero-fade] { opacity: 0; transform: translateY(22px); }

/* ============================================================
   MARQUEE
   ============================================================ */
.hm-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--paper-raise);
}

.hm-marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
}

.hm-marquee-seg {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-right: 0.5em;
}

.hm-marquee-seg i {
  font-style: normal;
  color: var(--signal);
  font-size: 0.75em;
  vertical-align: 0.1em;
  padding: 0 0.35em;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.hm-section-head {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hm-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin-top: 1rem;
}

.hm-section-title em { font-style: italic; }

.hm-section-index {
  position: absolute;
  right: 0;
  bottom: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ============================================================
   WORK — sticky stacking cards
   ============================================================ */
.hm-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.hm-card {
  --stack-offset: 0px;
  position: sticky;
  top: calc(var(--nav-h) + 14px + var(--stack-offset));
  display: block;
}

.hm-card-inner {
  background: var(--night);
  border-radius: 22px;
  border: 1px solid rgba(244, 241, 232, 0.09);
  display: grid;
  grid-template-columns: 42fr 58fr;
  min-height: min(72vh, 640px);
  overflow: hidden;
  transform-origin: center top;
  transition: border-color 0.4s ease;
  box-shadow: 0 -12px 50px rgba(22, 20, 15, 0.18);
}

.hm-card:hover .hm-card-inner { border-color: var(--card-accent, var(--signal)); }

.hm-card-info {
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  color: var(--night-text);
}

.hm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

.hm-card-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--night-text-2);
}

.hm-card-index::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--card-accent, var(--signal));
  margin-right: 10px;
  vertical-align: 0.22em;
}

.hm-card-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-text-2);
  border: 1px solid var(--night-line);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.hm-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}

.hm-card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--night-text-2);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

/* Headline outcome metrics — the hiring-manager hook */
.hm-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  margin: 0.4rem 0 1.4rem;
}

.hm-metric {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 14px;
  border-left: 2px solid var(--card-accent, var(--signal));
}

.hm-metric-value {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--card-accent, var(--signal));
}

/* struck-through value = "this cost no longer exists" */
.hm-metric-value s {
  text-decoration-thickness: 0.09em;
  text-decoration-color: var(--night-text);
}

/* Playful animated metric icons */
.hm-metric-value--icon { display: inline-flex; }

.hm-icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  overflow: visible; /* let sparkles & launch escape the box */
}
/* Transform origins are handled by GSAP (svgOrigin) — no CSS transform-box
   here, which would fight GSAP's SVG matrix and dislocate the shapes. */

.hm-metric-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-text-2);
  max-width: 17ch;
  line-height: 1.55;
}

.hm-card-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.hm-card-stats li {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-text);
  background: var(--night-raise);
  border: 1px solid var(--night-line);
  padding: 6px 12px;
  border-radius: 100px;
}

.hm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--night-text);
}

.hm-card-link i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.hm-card:hover .hm-card-link i {
  background: var(--card-accent, var(--signal));
  border-color: var(--card-accent, var(--signal));
  color: var(--night);
  transform: translateX(5px);
}

.hm-card-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 75% 20%, color-mix(in srgb, var(--card-accent, #E8930C) 16%, transparent), transparent 65%),
    var(--night-raise);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.hm-card-visual img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(1);
  transition: transform 0.8s var(--ease-out);
}

.hm-card:hover .hm-card-visual img {
  transform: translateY(4px) scale(1.025);
}

/* Abstract motifs — NDA-safe stand-ins for client screens */
.hm-motif {
  width: min(72%, 440px);
  height: auto;
  color: var(--card-accent, var(--signal));
  transition: transform 0.8s var(--ease-out);
}

.hm-card:hover .hm-motif {
  transform: scale(1.04) rotate(-1deg);
}

.hm-nda {
  position: absolute;
  bottom: 1.4rem;
  right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-text-2);
  opacity: 0.75;
}

.hm-card--sous .hm-card-inner { background: #0F3B23; }
.hm-card--sous .hm-card-visual {
  background: radial-gradient(ellipse 90% 80% at 70% 25%, rgba(236, 231, 216, 0.12), transparent 65%), #0C301D;
}
.hm-card--sous .hm-card-stats li { background: rgba(236, 231, 216, 0.08); }

.hm-sous-logo {
  width: min(64%, 360px);
  aspect-ratio: 542 / 214;
  background: #ECE7D8;
  -webkit-mask: url('images/souspantry-logo.png') center / contain no-repeat;
  mask: url('images/souspantry-logo.png') center / contain no-repeat;
  transition: transform 0.8s var(--ease-out);
}

.hm-card:hover .hm-sous-logo { transform: scale(1.04); }

/* ============================================================
   CLIENTS — editorial name wall
   ============================================================ */
.hm-clients {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

/* rolling logo wall — ink silhouettes, colour on hover */
.hm-logos {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.hm-logos-row {
  overflow: hidden;
  padding: 14px 0 34px; /* room for the hover caption */
}

.hm-logos-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hm-logos-seg {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
  padding-right: clamp(3rem, 6vw, 5.5rem);
}

.hm-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  cursor: default;
}

.hm-logo img {
  height: 46px;
  width: auto;
  /* grayscale (not blackout): knockout logos like the MTA disc keep
     their white letterforms legible; hover restores full colour */
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s ease, transform 0.4s var(--ease-out);
}

.hm-logo--wide img { height: 36px; }

.hm-logo:hover img {
  filter: none;
  transform: translateY(-3px) scale(1.06);
}

.hm-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.42;
  transition: opacity 0.35s ease, transform 0.4s var(--ease-out), color 0.35s ease;
  white-space: nowrap;
}

.hm-badge b {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.hm-badge i {
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hm-logo:hover .hm-badge {
  opacity: 1;
  transform: translateY(-3px);
}

.hm-logo--more .hm-badge b { color: var(--signal); font-size: 0.8125rem; letter-spacing: 0; }
.hm-logo--more:hover .hm-badge { color: var(--signal); }

.hm-logo figcaption {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
  pointer-events: none;
}

.hm-logo:hover figcaption { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hm-logos-track { transform: none !important; }
}

/* ============================================================
   PHILOSOPHY — pinned horizontal rail
   ============================================================ */
.hm-philosophy {
  background: var(--night);
  color: var(--night-text);
  position: relative;
}

.hm-philosophy-pin {
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  background: var(--night); /* opaque even while pinned (fixed) */
}

.hm-philosophy-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  padding: clamp(4rem, 10vh, 6rem) var(--gutter);
  will-change: transform;
  width: max-content;
}

.hm-ph-panel {
  width: min(78vw, 480px);
  flex-shrink: 0;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background: var(--night-raise);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(62vh, 520px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.hm-ph-panel:hover { border-color: rgba(232, 147, 12, 0.55); }

.hm-ph-panel--intro {
  width: min(88vw, 640px);
  background: transparent;
  border: none;
  justify-content: center;
  padding-left: 0;
}

.hm-ph-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 1.5rem;
}

.hm-ph-heading em { font-style: italic; color: var(--signal); }

.hm-ph-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--night-text-2);
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.hm-ph-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--night-text-2);
}

.hm-ph-verse em { color: var(--signal); font-style: italic; }

.hm-ph-cue {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-text-2);
  margin-top: 2.5rem;
}

.hm-ph-num {
  position: absolute;
  top: 1.4rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 6.5vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 232, 0.22);
  transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}

.hm-ph-panel:hover .hm-ph-num {
  color: var(--signal);
  -webkit-text-stroke-color: transparent;
}

.hm-ph-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1rem;
}

.hm-ph-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--night-text);
  max-width: 40ch;
}

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.hm-about {
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.hm-about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hm-about-media {
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
}

.hm-about-media img {
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease-out);
}

.hm-about-media:hover img { transform: scale(1.03); }

.hm-about-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 1.5rem 0 2.25rem;
}

.hm-about-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hm-stat { display: flex; flex-direction: column; gap: 4px; }

.hm-stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hm-stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   OUTRO / MEGA FOOTER
   ============================================================ */
.hm-outro {
  background: var(--night);
  color: var(--night-text);
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 12vw, 9rem);
}

.hm-outro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(232, 147, 12, 0.1), transparent 70%);
  pointer-events: none;
}

.hm-outro-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hm-outro-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6.6vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 1.25rem 0 2.75rem;
}

.hm-outro-title em { font-style: italic; color: var(--signal); }

.js [data-outro-line] { transform: translateY(115%); display: inline-block; }

.hm-outro-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hm-outro-marquee {
  position: relative;
  border-top: 1px solid var(--night-line);
  padding: 1.4rem 0;
  overflow: hidden;
}

.hm-marquee-track--outro .hm-marquee-seg {
  display: inline-flex;
  align-items: center;
  font-style: normal;
}

.hm-marquee-track--outro .hm-marquee-seg img {
  display: block;
  height: clamp(1.9rem, 4.6vw, 3.8rem);
  width: auto;
  margin-right: clamp(1.4rem, 3vw, 2.4rem);
  filter: invert(1);
  opacity: 0.22;
}

.footer--home {
  background: transparent;
  border-top: 1px solid var(--night-line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hm-card-inner { grid-template-columns: 1fr; min-height: unset; }
  .hm-card-visual { order: -1; min-height: 260px; max-height: 320px; }
  .hm-card-visual img { max-height: 280px; }
  .hm-about-inner { grid-template-columns: 1fr; }
  .hm-about-media { max-width: 440px; }
}

@media (max-width: 640px) {
  .hm-hero-meta .eyebrow:last-child { display: none; }
  .hm-br { display: none; }
  .hm-card-top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hm-section-index { display: none; }
}

/* Reduced motion: static, everything visible */
@media (prefers-reduced-motion: reduce) {
  .js .hm-line-inner,
  .js [data-hero-fade],
  .js [data-outro-line] {
    transform: none !important;
    opacity: 1 !important;
  }
  .loader { display: none !important; }
  .hm-field { display: none; }
  .hm-marquee-track { transform: none !important; }
  .hm-philosophy-track { width: auto; flex-wrap: wrap; }
  .hm-ph-panel { width: 100%; }
  .hm-philosophy-pin { min-height: unset; }
}
