/* ============================================================
   ATHENA / LUCKEYSYSTEMS — "engineer's field manual"
   cream paper · forest-green ink · one gold accent
   ============================================================ */

:root {
  --paper: #f3ede3;
  --paper-deep: #ece4d4;
  --ink: #0f1c16;
  --ink-70: rgba(15, 28, 22, 0.70);
  --ink-45: rgba(15, 28, 22, 0.45);
  --ink-20: rgba(15, 28, 22, 0.20);
  --ink-12: rgba(15, 28, 22, 0.12);
  --gold: #d9c48a;
  --gold-deep: #b89b54;
  --green-mid: #2e5a46;
  --hairline: 1px solid var(--ink-20);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-px: "Silkscreen", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper-deep); }

/* ---------- atmosphere ---------- */

.atmo { position: fixed; inset: 0; pointer-events: none; }

.atmo-grain {
  z-index: 50;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.atmo-constellation {
  z-index: 0;
  color: var(--ink);
  opacity: 0.055;
}
.atmo-constellation svg { width: 100%; height: 100%; }
.const-marks g { transform-box: fill-box; }

/* ---------- frame & shared ---------- */

.frame {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  border-left: var(--hairline);
  border-right: var(--hairline);
  background:
    linear-gradient(var(--ink-12) 1px, transparent 1px) 0 -1px / 100% 72px,
    transparent;
  background-attachment: local;
}

.px-label {
  font-family: var(--font-px);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.px-label b { color: var(--gold-deep); }
.dim { color: var(--ink-45); }
.gold { color: var(--gold-deep); }

.section { border-top: var(--hairline); padding: 0 0 5.5rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  border-bottom: var(--hairline);
  margin-bottom: 3rem;
  background: var(--paper);
}
.section-head .px-label:first-child::before {
  content: "✳ ";
  color: var(--gold-deep);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: var(--hairline);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.5rem 0.9rem 2rem;
  border-right: var(--hairline);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.4, 1); }
.brand:hover .brand-mark { transform: rotate(120deg); }
.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  font-stretch: 90%;
}

.site-nav { display: flex; align-items: stretch; }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  border-right: var(--hairline);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-px);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  transition: background 0.15s;
}
.site-nav a:hover { background: var(--ink); color: var(--paper); }
.site-nav .cursor {
  display: none;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.5em;
  background: var(--gold);
  animation: blink 0.85s steps(1) infinite;
}
.site-nav a:hover .cursor { display: inline-block; }

@keyframes blink { 50% { opacity: 0; } }

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 2rem;
  border-left: var(--hairline);
}
.gh-link { color: var(--ink); opacity: 0.65; transition: opacity 0.15s; display: flex; }
.gh-link:hover { opacity: 1; }

.nav-toggle {
  display: none;
  font-family: var(--font-px);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  border: none;
  border-left: var(--hairline);
  background: transparent;
  color: var(--ink);
  padding: 0 1.4rem;
  cursor: pointer;
}
.nav-open .nav-toggle { background: var(--ink); color: var(--gold); }

/* ---------- hero ---------- */

.hero { padding: 5.5rem 2.5rem 4.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 4rem;
  align-items: start;
}

.gold-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  padding: 0.5em 0.9em;
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 800;
  font-stretch: 87%;
  line-height: 0.97;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 56ch;
  margin-top: 1.8rem;
  font-size: 1.12rem;
  color: var(--ink-70);
}
.hero-sub strong { color: var(--ink); }

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
}

.install-block { display: flex; flex-direction: column; gap: 0.5rem; }
.install-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 4px 4px 0 var(--ink-20);
}
.install-row code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.85em 1.1em;
  max-width: 52ch;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.copy-btn { flex-shrink: 0; }
.copy-btn {
  font-family: var(--font-px);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  border: none;
  border-left: 1.5px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  padding: 0 1.2em;
  cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--gold-deep); }
.copy-btn.copied { background: var(--ink); color: var(--gold); }

.btn-solid {
  display: inline-block;
  font-family: var(--font-px);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1em 1.7em;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-solid:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--gold);
}
.btn-solid.big { font-size: 0.8rem; padding: 1.3em 2em; }

/* spec plate (hero figure) */

.spec-plate {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 2.2rem 1.8rem 1.4rem;
  box-shadow: 6px 6px 0 var(--ink-12);
  position: relative;
}
.spec-plate::before {
  content: "✳";
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  color: var(--gold-deep);
  font-size: 0.8rem;
}
.plate-mark {
  display: block;
  width: 58%;
  margin: 0 auto 1.6rem;
  color: var(--ink);
  animation: spin 80s linear infinite;
}
.plate-rule { border-top: 1.5px solid var(--ink); margin-bottom: 1rem; }
.plate-data div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42em 0;
  border-bottom: 1px dashed var(--ink-20);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.plate-data div:last-child { border-bottom: none; }
.plate-data dt { color: var(--ink-45); }
.plate-data dd { font-weight: 500; }
.plate-data dd.gold { color: var(--gold-deep); font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin-slow { animation: spin 60s linear infinite; }

/* ---------- ticker ---------- */

.ticker {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--ink);
  color: var(--gold);
  overflow: hidden;
  padding: 0.55rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-px);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- terminal ---------- */

.terminal {
  margin: 0 2.5rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--ink-12);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(243, 237, 227, 0.18);
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); opacity: 0.45; }
.t-dot:first-child { opacity: 0.9; }
.t-title {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(243, 237, 227, 0.55);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.t-mem { margin-left: auto; color: var(--gold); }
.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 1.4rem 1.6rem 1.8rem;
  min-height: 21em;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .tc-prompt { color: var(--gold); }
.terminal-body .tc-dim { color: rgba(243, 237, 227, 0.45); }
.terminal-body .tc-ok { color: #8fd0a9; }
.terminal-body .tc-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-bottom: -0.12em;
  background: var(--gold);
  animation: blink 0.85s steps(1) infinite;
}

.caption {
  margin: 1.2rem 2.5rem 0;
  max-width: 72ch;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-45);
}
.caption::before { content: "FIG 002 / "; color: var(--gold-deep); }

/* ---------- products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.4rem 2.5rem 2rem;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  position: relative;
  transition: background 0.2s;
}
.product:nth-child(2n) { border-right: none; }
.product:nth-child(n + 3) { border-bottom: none; }
.product:hover { background: var(--paper-deep); }
.product:hover .p-num { color: var(--gold-deep); }

.product header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.p-num {
  font-family: var(--font-px);
  font-size: 1.6rem;
  color: var(--ink-20);
  transition: color 0.2s;
}
.p-kind { color: var(--ink-45); }

.product h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: 0.01em;
}

.product p { color: var(--ink-70); font-size: 0.98rem; max-width: 58ch; }
.product p b { color: var(--ink); }
.product p code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ink-12);
  padding: 0.1em 0.35em;
}

.p-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.p-tags li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink-20);
  padding: 0.3em 0.7em;
  color: var(--ink-70);
}

.product footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--ink-20);
}
.product footer a {
  font-family: var(--font-px);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
  background: var(--gold);
  padding: 0.55em 0.9em;
  transition: background 0.15s, color 0.15s;
}
.product footer a:hover { background: var(--ink); color: var(--gold); }

/* ---------- ecosystem ---------- */

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.eco-cell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 2.5rem;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.eco-cell:nth-child(3n) { border-right: none; }
.eco-cell:nth-child(n + 4) { border-bottom: none; }
.eco-cell:hover { background: var(--ink); color: var(--paper); }
.eco-cell:hover .eco-name::after { content: " ▌"; color: var(--gold); animation: blink 0.85s steps(1) infinite; }
.eco-name { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; }
.eco-desc { font-size: 0.85rem; opacity: 0.65; line-height: 1.5; }

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.principle {
  padding: 2rem 2rem 2.4rem;
  border-right: var(--hairline);
}
.principle:last-child { border-right: none; }
.pr-num {
  font-family: var(--font-px);
  font-size: 1.3rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 1rem;
}
.principle h4 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.principle p { font-size: 0.88rem; color: var(--ink-70); }

/* ---------- foundation ---------- */

.foundation {
  background: var(--ink);
  color: var(--paper);
  border-top: 1.5px solid var(--ink);
}
.foundation .section-head {
  background: transparent;
  border-bottom: 1px solid rgba(243, 237, 227, 0.18);
}
.foundation .section-head .px-label { color: var(--gold); }
.foundation .section-head .dim { color: rgba(243, 237, 227, 0.4); }

.foundation-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  padding: 1rem 2.5rem 0;
  align-items: start;
}

.foundation-mark {
  width: 52px;
  color: var(--gold);
  margin-bottom: 1.6rem;
  animation: spin 60s linear infinite;
}

.foundation-lead h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  font-stretch: 87%;
  line-height: 1.04;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.foundation-lead h2 em { font-weight: 300; font-style: italic; }

.foundation-lead p {
  color: rgba(243, 237, 227, 0.7);
  font-size: 1.02rem;
  max-width: 52ch;
}
.foundation-lead p strong { color: var(--paper); }

.foundation-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.btn-solid.invert {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--gold-deep);
}
.btn-solid.invert:hover { box-shadow: 2px 2px 0 var(--gold-deep); }

.foundation-seal { color: rgba(243, 237, 227, 0.4); }

.charter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(243, 237, 227, 0.18);
}
.charter-cell {
  padding: 1.7rem 1.8rem 1.9rem;
  border-right: 1px solid rgba(243, 237, 227, 0.18);
  border-bottom: 1px solid rgba(243, 237, 227, 0.18);
  transition: background 0.15s;
}
.charter-cell:nth-child(2n) { border-right: none; }
.charter-cell:nth-child(n + 3) { border-bottom: none; }
.charter-cell:hover { background: rgba(243, 237, 227, 0.05); }

.ch-num {
  font-family: var(--font-px);
  font-size: 1.2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.charter-cell h4 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.charter-cell p {
  font-size: 0.84rem;
  color: rgba(243, 237, 227, 0.6);
  line-height: 1.6;
}

/* ---------- closing ---------- */

.closing {
  border-top: var(--hairline);
  text-align: center;
  padding: 6rem 2rem 6.5rem;
  position: relative;
  overflow: hidden;
}
.closing-mark {
  width: 64px;
  color: var(--gold-deep);
  margin-bottom: 2rem;
}
.closing h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 800;
  font-stretch: 87%;
  line-height: 1.02;
  margin-bottom: 2.6rem;
}
.closing h2 em { font-weight: 300; font-style: italic; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.footer-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem 2.5rem;
}
.footer-mark { width: 72px; color: var(--paper); }
.footer-word { width: min(420px, 60vw); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 3.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col .px-label { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(243, 237, 227, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
}
.footer-col a:hover { color: var(--gold); }
.footer-note p { font-size: 0.8rem; color: rgba(243, 237, 227, 0.45); line-height: 1.6; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2.5rem;
  border-top: 1px solid rgba(243, 237, 227, 0.15);
  color: rgba(243, 237, 227, 0.6);
}
.footer-base .dim { color: var(--gold); }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.scroll-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .scroll-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2n) { border-right: none; }
  .principle { border-bottom: var(--hairline); }
  .principle:nth-child(n + 3) { border-bottom: none; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .eco-cell { border-right: var(--hairline) !important; border-bottom: var(--hairline) !important; }
  .eco-cell:nth-child(2n) { border-right: none !important; }
  .eco-cell:nth-child(n + 5) { border-bottom: none !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 420px; }
  .foundation-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    box-shadow: 0 10px 24px rgba(15, 28, 22, 0.12);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 1rem 1.4rem;
    border-right: none;
    border-top: var(--hairline);
  }
  .brand { padding-right: 1.4rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product { border-right: none !important; border-bottom: var(--hairline) !important; }
  .product:last-child { border-bottom: none !important; }
  .hero { padding: 3.5rem 1.4rem 3rem; }
  .section-head, .caption { padding-left: 1.4rem; padding-right: 1.4rem; margin-left: 0; margin-right: 0; }
  .terminal { margin: 0 1.4rem; }
  .product, .eco-cell { padding-left: 1.4rem; padding-right: 1.4rem; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: none; border-bottom: var(--hairline) !important; }
  .principle:last-child { border-bottom: none !important; }
  .charter { grid-template-columns: 1fr; }
  .charter-cell { border-right: none !important; border-bottom: 1px solid rgba(243, 237, 227, 0.18) !important; }
  .charter-cell:last-child { border-bottom: none !important; }
  .foundation-inner { padding: 1rem 1.4rem 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
  .install-row code { max-width: 100%; }
  .hero-actions { width: 100%; }
  .install-block { width: 100%; }
  .section-head { flex-wrap: wrap; row-gap: 0.35rem; }
  .hero-figure { max-width: 100%; }
  .footer-lockup { gap: 1.2rem; padding: 3rem 1.4rem 2rem; }
  .footer-mark { width: 48px; }
  .footer-cols { padding: 1.5rem 1.4rem 2.5rem; }
  .closing { padding: 4.5rem 1.4rem 5rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .eco-grid { grid-template-columns: 1fr; }
  .eco-cell { border-right: none !important; border-bottom: var(--hairline) !important; }
  .eco-cell:last-child { border-bottom: none !important; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand { padding-left: 1.2rem; padding-right: 1.2rem; }
  .header-meta { padding: 0 1.2rem; }
  .header-meta .px-label { display: none; }
  .nav-toggle { padding: 0 1.1rem; }

  h1 { font-size: clamp(2.1rem, 11.5vw, 2.8rem); }
  .hero { padding: 2.8rem 1.2rem 2.5rem; }
  .hero-sub { font-size: 1.02rem; }
  .gold-tag { margin-bottom: 1.5rem; line-height: 1.8; }

  .terminal { margin: 0 1rem; box-shadow: 5px 5px 0 var(--ink-12); }
  .terminal-body {
    font-size: 0.72rem;
    padding: 1rem 1.1rem 1.4rem;
    min-height: 17em;
  }
  .t-mem { display: none; }

  .section-head, .caption { padding-left: 1.2rem; padding-right: 1.2rem; }
  .product, .eco-cell { padding-left: 1.2rem; padding-right: 1.2rem; }
  .principle { padding: 1.6rem 1.2rem 2rem; }
  .charter-cell { padding: 1.4rem 1.2rem 1.6rem; }
  .foundation-inner { padding: 1rem 1.2rem 0; }

  .btn-solid.big { font-size: 0.58rem; padding: 1.2em 1.4em; }
  .footer-lockup { flex-direction: column; gap: 1.4rem; }
  .footer-word { width: min(320px, 78vw); }
}
