/* ==========================================================================
   SNU ROCKET TEAM HANARO — hanaro.snu.ac.kr
   Design system: midnight navy · blush pink · launch yellow · Space Grotesk + Pretendard
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk/SpaceGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk/SpaceGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #080b14;
  --bg-1: #111827;
  --bg-2: #253046;
  --navy: #253046;
  --navy-deep: #111827;
  --navy-soft: #34415d;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-1: #f8f8fb;
  --text-2: #c2c8d6;
  --text-3: #929bae;

  --flame: #fe9c9c;
  --flame-soft: #ffb7b7;
  --ember: #f8b62b;
  --ion: #8fb0ff;

  --grad-flame: linear-gradient(120deg, #fe9c9c 0%, #ffc0aa 52%, #f8b62b 100%);
  --grad-metal: linear-gradient(180deg, #ffffff 0%, #dce2ef 100%);
  --grad-navy: linear-gradient(145deg, rgba(37, 48, 70, 0.96), rgba(17, 24, 39, 0.96));

  --font-display: 'Space Grotesk', 'Pretendard Variable', sans-serif;
  --font-body: 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
    system-ui, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic',
    sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 20px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(254, 156, 156, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link (keyboard users) */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--grad-flame);
  color: #182033;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Global backdrop ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body::before {
  /* deep space gradient wash */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(37, 48, 70, 0.68), transparent 64%),
    radial-gradient(1000px 700px at 10% 110%, rgba(254, 156, 156, 0.08), transparent 60%),
    var(--bg-0);
}

body::after {
  /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(88px, 12vw, 150px);
  position: relative;
}

.section + .section {
  padding-top: 0;
}

/* Section header */
.sec-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame-soft);
  margin-bottom: 18px;
}

.sec-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-flame);
  box-shadow: 0 0 12px rgba(254, 156, 156, 0.8);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.sec-title em {
  font-style: normal;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sec-desc {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  word-break: keep-all;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s, border-color 0.35s, color 0.35s;
}

.btn-primary {
  background: var(--grad-flame);
  color: #182033;
  box-shadow: 0 8px 32px rgba(254, 156, 156, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(254, 156, 156, 0.5);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn .arrow {
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--flame);
  filter: drop-shadow(0 0 10px rgba(254, 156, 156, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}

.nav-links a:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-1);
}

.nav-links a.active::after {
  content: '';
  display: block;
  margin: 2px auto 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 8px var(--flame);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad-flame);
  color: #182033;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(254, 156, 156, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254, 156, 156, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95; /* below .nav so the brand and close button stay clickable */
  background: rgba(4, 6, 13, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: var(--text-1);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.25s;
}

.mobile-menu a small {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--flame-soft);
}

.mobile-menu a.active::before {
  content: '';
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

body.menu-open .mobile-menu a {
  transform: translateY(0);
  opacity: 1;
}

body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.25s; }

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh; /* fallback for browsers without svh */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 96px;
  overflow: hidden;
}

.hero::after {
  /* launch-pad glow */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -32vh;
  transform: translateX(-50%);
  width: min(1100px, 130vw);
  height: 60vh;
  background: radial-gradient(closest-side, rgba(254, 156, 156, 0.28), rgba(254, 156, 156, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 34px;
  max-width: calc(100vw - 40px);
  flex-wrap: wrap;
  line-height: 1.45;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 10px var(--flame);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15.5vw, 11.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: var(--grad-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  margin-top: 18px;
}

.hero-tagline em {
  font-style: normal;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  max-width: 560px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.hero-meta span {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--flame), transparent);
  animation: cue 2s var(--ease-out) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  padding-inline: 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.marquee-track span::after {
  content: '✦';
  color: var(--flame);
  font-size: 0.8em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Bento stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 156, 156, 0.45);
  box-shadow: 0 18px 48px rgba(254, 156, 156, 0.12);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--grad-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num .unit {
  font-size: 0.45em;
  color: var(--flame-soft);
  -webkit-text-fill-color: var(--flame-soft);
  font-weight: 600;
}

.stat-label {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1rem;
}

.stat-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.875rem;
  word-break: keep-all;
}

/* ---------- Feature cards (what we do) ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 156, 156, 0.4);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(254, 156, 156, 0.15);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(254, 156, 156, 0.08);
  color: var(--flame-soft);
  margin-bottom: 22px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.card .en {
  font-family: var(--font-display);
  font-size: 0.71875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-soft);
  display: block;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  word-break: keep-all;
}

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 85% -10%, rgba(122, 149, 255, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 156, 156, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.project-card .ghost {
  position: absolute;
  top: -6px;
  right: 6px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
}

.project-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(254, 156, 156, 0.4);
  background: rgba(254, 156, 156, 0.1);
  color: var(--flame-soft);
  font-family: var(--font-display);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.project-card .ko {
  margin-top: 6px;
  color: var(--text-2);
  font-weight: 600;
}

.project-card p.desc {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.9375rem;
  max-width: 480px;
  word-break: keep-all;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.spec-row span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--flame-soft);
}

.card-link .arrow {
  transition: transform 0.35s var(--ease-out);
}

.project-card:hover .card-link .arrow,
.card-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Project detail panels (projects.html) ---------- */
.project-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4.5vw, 56px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  position: relative;
  overflow: hidden;
}

.project-panel + .project-panel {
  margin-top: 28px;
}

.project-panel .ghost {
  position: absolute;
  right: -10px;
  bottom: -26px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.project-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 14px 0 6px;
}

.project-panel .ko {
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 18px;
}

.project-panel p {
  color: var(--text-2);
  word-break: keep-all;
}

.project-panel p + p {
  margin-top: 12px;
}

.spec-table {
  align-self: center;
  width: 100%;
  border-top: 1px solid var(--line);
}

.spec-table > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.spec-table dt {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 600;
  flex: none;
}

.spec-table dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
  letter-spacing: 0.02em;
}

.mission-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.mission-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text-2);
  font-size: 0.9375rem;
  word-break: keep-all;
}

.mission-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(254, 156, 156, 0.7);
}

/* ---------- Journey / cycle steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 156, 156, 0.4);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--flame-soft);
  display: block;
  margin-bottom: 40px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step h3 span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.step p {
  color: var(--text-2);
  font-size: 0.9375rem;
  word-break: keep-all;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-left: 8px;
  padding-left: clamp(28px, 4vw, 48px);
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--flame) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 100%);
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(28px, 4vw, 48px) - 5px);
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--flame);
  box-shadow: 0 0 12px rgba(254, 156, 156, 0.6);
}

.tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tl-item h3 {
  margin-top: 8px;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tl-item p {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 640px;
  font-size: 0.9688rem;
  word-break: keep-all;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(96px, 14vw, 170px) var(--gutter);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(900px 480px at 50% 120%, rgba(254, 156, 156, 0.22), transparent 70%),
    radial-gradient(700px 400px at 85% -20%, rgba(122, 149, 255, 0.1), transparent 60%);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.cta-band h2 em {
  font-style: normal;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cta-band p {
  margin: 20px auto 0;
  max-width: 520px;
  color: var(--text-2);
  word-break: keep-all;
}

.cta-band .btn {
  margin-top: 40px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(72px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px);
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  word-break: keep-all;
}

.page-hero h1 em {
  font-style: normal;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero .lead {
  margin-top: 24px;
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  word-break: keep-all;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq details[open] {
  border-color: rgba(254, 156, 156, 0.35);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.03125rem;
  word-break: keep-all;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--flame-soft);
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 0.9688rem;
  word-break: keep-all;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 156, 156, 0.4);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.contact-card .card-icon {
  margin-bottom: 0;
  flex: none;
}

.contact-card .label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}

.contact-card .value {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-top: 3px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 110px) 0 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(254, 156, 156, 0.04));
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  user-select: none;
  pointer-events: none;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 56px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.9375rem;
  max-width: 340px;
  word-break: keep-all;
}

.footer h3,
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 0.9688rem;
  font-weight: 500;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--flame-soft);
}

.footer-links .addr {
  color: var(--text-2);
  font-size: 0.9688rem;
  font-style: normal;
  word-break: keep-all;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.8438rem;
}

.footer-bottom .tag {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

/* ---------- Reveal animation ---------- */
/* hidden state is opt-in only after the deferred script has actually loaded */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

html.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats,
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  html.js-ready .nav-links,
  html.js-ready .nav-cta {
    display: none;
  }

  html.js-ready .nav-toggle {
    display: flex;
  }

  /* no-JS fallback: keep the regular links usable instead of a dead hamburger */
  html:not(.js-ready) .nav,
  html:not(.js-ready) .nav-inner {
    height: auto;
  }

  html:not(.js-ready) .nav-inner {
    flex-wrap: wrap;
    padding-block: 12px;
    row-gap: 4px;
  }

  html:not(.js-ready) .nav-links {
    flex-wrap: wrap;
    gap: 0;
  }

  html:not(.js-ready) .nav-cta {
    display: none;
  }
}

@media (min-width: 821px) {
  /* safety net: never show the mobile overlay on desktop widths */
  .mobile-menu {
    display: none;
  }

  body.menu-open {
    overflow: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .stats,
  .grid-4,
  .grid-3,
  .grid-2,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-num {
    font-size: clamp(1.75rem, 9.5vw, 2.75rem);
  }

  .project-card {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 400px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation-duration: 200s;
  }

  .hero-eyebrow .dot,
  .scroll-cue::after {
    animation: none;
  }

  .btn,
  .card,
  .stat,
  .step,
  .project-card,
  .contact-card {
    transition: none;
  }
}

/* ==========================================================================
   2026 brand refinement — source palette: #FE9C9C · #253046 · #F8B62B
   ========================================================================== */

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

body:not(.home) #starfield {
  display: none;
}

.nav-cta {
  background: var(--ember);
  box-shadow: 0 4px 20px rgba(248, 182, 43, 0.25);
}

.nav-cta:hover {
  box-shadow: 0 8px 30px rgba(248, 182, 43, 0.38);
}

.hero {
  display: block;
  text-align: left;
  padding: calc(var(--nav-h) + 54px) 0 78px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 14% auto auto 48%;
  width: min(620px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 156, 156, 0.17), transparent 66%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  left: 26%;
  bottom: -38vh;
  background: radial-gradient(closest-side, rgba(248, 182, 43, 0.18), rgba(254, 156, 156, 0.07) 46%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--nav-h) - 132px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.hero-lockup {
  width: min(100%, 690px);
  height: auto;
  margin: 8px 0 0;
  mix-blend-mode: screen;
}

.hero-tagline {
  margin-top: 28px;
  max-width: 650px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-tagline strong {
  color: var(--flame);
  font-weight: inherit;
}

.hero-desc {
  margin-top: 24px;
  max-width: 620px;
}

.hero-actions,
.hero-meta {
  justify-content: flex-start;
}

.hero-meta {
  margin-top: 34px;
}

.hero-meta span {
  border-color: rgba(248, 182, 43, 0.24);
  color: #d8ddeb;
  background: rgba(37, 48, 70, 0.52);
}

.hero-visual {
  position: relative;
  min-height: min(68vh, 720px);
  margin: 0;
  border: 1px solid rgba(254, 156, 156, 0.28);
  border-radius: 34px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 11, 20, 0.9) 100%);
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(248, 182, 43, 0.4);
  border-radius: 23px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 720px);
  object-fit: cover;
  object-position: center;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  bottom: clamp(28px, 4vw, 46px);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.hero-signal {
  position: absolute;
  z-index: 3;
  top: 32px;
  right: 32px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee {
  border-color: rgba(248, 182, 43, 0.25);
  background: rgba(37, 48, 70, 0.35);
}

.marquee-track span::after {
  color: var(--ember);
}

.evidence-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--ember);
  background: rgba(37, 48, 70, 0.46);
  color: var(--text-2);
  font-size: 0.9rem;
}

.evidence-note a {
  color: var(--ember);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discipline-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.78fr) minmax(0, 1fr);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--grad-navy);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.discipline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 156, 156, 0.45);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.discipline-card:nth-child(even) img {
  order: 2;
}

.discipline-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 38px);
}

.discipline-copy .en {
  margin-bottom: 10px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.discipline-copy h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.discipline-copy p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.94rem;
  word-break: keep-all;
}

.project-card {
  justify-content: flex-start;
  padding: 0;
  background: var(--grad-navy);
}

.project-card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.project-card:hover .project-card-media img {
  transform: scale(1.035);
}

.project-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 42px);
}

.project-card .card-link {
  margin-top: auto;
  padding-top: 24px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(38px, 7vw, 94px);
}

.page-hero-visual {
  position: relative;
  min-height: 360px;
  margin: 0;
  border: 1px solid rgba(248, 182, 43, 0.3);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.page-hero-visual figcaption,
.project-panel-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.78);
  color: #dfe4ef;
  font-size: 0.75rem;
  backdrop-filter: blur(10px);
}

.project-panel {
  grid-template-areas:
    'media media'
    'copy specs';
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--grad-navy);
}

.project-panel-media {
  grid-area: media;
  position: relative;
  height: clamp(260px, 38vw, 500px);
  margin: calc(-1 * clamp(28px, 4.5vw, 56px));
  margin-bottom: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-panel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(17, 24, 39, 0.88));
  pointer-events: none;
}

.project-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-project-media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(254, 156, 156, 0.2), transparent 38%),
    linear-gradient(135deg, #253046, #111827);
}

.brand-project-media img {
  width: min(280px, 42vw);
  height: min(280px, 42vw);
  min-height: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.project-panel-copy {
  grid-area: copy;
}

.project-panel .spec-table {
  grid-area: specs;
}

.project-panel h2,
.project-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 14px 0 6px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.result-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 20, 0.34);
}

.result-item .label {
  display: block;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 650;
}

.result-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.source-links a {
  padding: 8px 12px;
  border: 1px solid rgba(254, 156, 156, 0.28);
  border-radius: 999px;
  color: var(--flame-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.source-links a:hover {
  border-color: var(--flame);
  background: rgba(254, 156, 156, 0.08);
}

.status-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(248, 182, 43, 0.38);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 48, 70, 0.92), rgba(17, 24, 39, 0.92));
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(248, 182, 43, 0.75);
}

.status-panel h2 {
  font-size: 1.25rem;
}

.status-panel p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-section-head {
  margin-top: clamp(72px, 10vw, 120px);
}

.support-card {
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-navy);
}

.support-card .num {
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.support-card h3 {
  margin-top: 22px;
  font-size: 1.2rem;
}

.support-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.brand-emblem {
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.footer {
  background: linear-gradient(180deg, rgba(37, 48, 70, 0.18), rgba(37, 48, 70, 0.62));
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual img {
    min-height: 560px;
  }

  .page-hero-visual {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: calc(var(--nav-h) + 34px);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 480px;
  }

  .discipline-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .project-panel {
    grid-template-areas:
      'media'
      'copy'
      'specs';
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-lockup {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }

  .hero-tagline {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 430px;
  }

  .hero-visual {
    border-radius: 24px;
  }

  .discipline-card {
    grid-template-columns: 1fr;
  }

  .discipline-card img,
  .discipline-card:nth-child(even) img {
    order: 0;
    height: 220px;
  }

  .status-panel {
    grid-template-columns: auto 1fr;
  }

  .status-panel .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  body::after {
    opacity: 0.025;
  }
}

@media (max-width: 400px) {
  .hero-eyebrow {
    letter-spacing: 0.12em;
  }

  .hero-meta span:nth-child(n + 3) {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .card:hover,
  .stat:hover,
  .step:hover,
  .project-card:hover,
  .contact-card:hover,
  .discipline-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: none;
  }
}

@media print, (forced-colors: active) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title,
  .sec-title em,
  .stat-num,
  .page-hero h1 em,
  .cta-band h2 em {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}
