/* ============================================================
   OWNGAME stylesheet
   Design system: off-black / off-white / deep cobalt blue.
   Display: Bodoni Moda (variable). Body/UI: Manrope (variable).
   Self-hosted fonts (see /fonts), no external requests at runtime.
   ============================================================ */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/bodonimoda-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/bodonimoda-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/manrope.woff2') format('woff2');
}

/* ---------------------------------------------------------------
   0. Tokens
   --------------------------------------------------------------- */
:root {
  --ink: #0b0c0e;
  --ink-soft: #17191d;
  --paper: #faf9f6;
  --paper-dim: #f0efe9;
  --line: rgba(11, 12, 14, 0.12);
  --line-soft: rgba(11, 12, 14, 0.08);
  --blue: #17297a;
  --blue-bright: #2d4bd6;
  --blue-pale: #e7eaf6;
  --white: #ffffff;

  --text-1: var(--ink);
  --text-2: rgba(11, 12, 14, 0.66);
  --text-3: rgba(11, 12, 14, 0.46);
  --text-on-dark-1: var(--paper);
  --text-on-dark-2: rgba(250, 249, 246, 0.66);
  --text-on-dark-3: rgba(250, 249, 246, 0.42);

  --font-display: 'Bodoni Moda', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1360px;
  --gutter: clamp(24px, 5vw, 64px);

  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.28s;
  --dur-med: 0.6s;
  --dur-slow: 0.9s;

  color-scheme: light;
}

/* ---------------------------------------------------------------
   1. Reset
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

/* Focus visibility: accessibility, never remove outlines silently */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------------------------------------------------------------
   2. Typography
   --------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow--on-dark {
  color: var(--text-on-dark-3);
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

em, .em {
  font-style: italic;
  line-height: 1.15;
  padding-bottom: 0.08em;
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 46ch;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 58ch;
}

/* ---------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-ghost--on-dark {
  color: var(--paper);
  border: 1px solid rgba(250, 249, 246, 0.28);
}

.btn-ghost--on-dark:hover {
  border-color: var(--paper);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
}

.btn-on-dark:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}

.text-link:hover {
  border-color: var(--ink);
  gap: 12px;
}

.text-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   4. Reveal-on-scroll
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------
   5. Navigation
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: 0.03em;
}

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

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right var(--dur-med) var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  width: 20px;
  height: 20px;
  color: var(--text-1);
  opacity: 0.86;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 100%;
  height: 100%;
}

.nav-toggle {
  display: none;
  width: 22px;
  height: 16px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 7px; }
.nav-toggle span:nth-child(3) { top: 14px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 99;
  background: var(--paper);
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 20px;
}

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  padding-top: 76px;
  background: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px);
  padding-top: clamp(28px, 5vw, 48px);
  max-width: 640px;
}

.hero-copy .display-1 {
  margin-top: 20px;
}

.hero-copy .lede {
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 78% 8%, rgba(45, 75, 214, 0.5), transparent 55%),
    linear-gradient(165deg, #0d1220 0%, #0b0c0e 46%, #12162a 100%);
  isolation: isolate;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-visual .mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  transform: translate(-50%, -50%);
  color: rgba(250, 249, 246, 0.14);
  animation: floatMark 9s var(--ease) infinite;
}

.hero-visual .mark svg {
  width: 100%;
  height: auto;
}

@keyframes floatMark {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .mark {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   7. Manifesto / brand story
   --------------------------------------------------------------- */
.manifesto {
  background: var(--ink);
  color: var(--text-on-dark-1);
  padding: clamp(96px, 13vw, 168px) 0;
}

.manifesto-inner {
  max-width: 880px;
}

.manifesto .display-2 {
  color: var(--text-on-dark-1);
  margin-top: 18px;
}

.manifesto-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 44px;
}

.manifesto-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-on-dark-2);
}

/* ---------------------------------------------------------------
   8. Category bento
   --------------------------------------------------------------- */
.section {
  padding: clamp(88px, 11vw, 144px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head .display-2 {
  margin-top: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, minmax(240px, auto));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  isolation: isolate;
  transition: transform var(--dur-med) var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card:nth-child(1) {
  grid-row: 1 / 3;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform var(--dur-slow) var(--ease);
}

.category-card:hover::before {
  transform: scale(1.045);
}

.category-card--fragrance::before {
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(45, 75, 214, 0.55), transparent 55%),
    linear-gradient(200deg, #0e1326 0%, #0b0c0e 60%);
}

.category-card--footwear::before {
  background:
    radial-gradient(100% 100% at 90% 100%, rgba(45, 75, 214, 0.4), transparent 60%),
    linear-gradient(160deg, #14171d 0%, #0b0c0e 70%);
}

.category-card--clothing::before {
  background:
    radial-gradient(100% 100% at 0% 100%, rgba(45, 75, 214, 0.32), transparent 55%),
    linear-gradient(200deg, #f0efe9 0%, #dfded6 100%);
}

.category-card--clothing {
  color: var(--ink);
}

.category-card--clothing .category-icon {
  color: rgba(11, 12, 14, 0.5);
}

.category-card--clothing .text-link {
  border-color: rgba(11, 12, 14, 0.2);
}

.category-card--clothing .text-link:hover {
  border-color: var(--ink);
}

.category-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 78px;
  height: 78px;
  color: rgba(250, 249, 246, 0.5);
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-card:not(.category-card--clothing) {
  color: var(--text-on-dark-1);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.category-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 30ch;
  opacity: 0.78;
}

.category-card .text-link {
  margin-top: 20px;
  color: inherit;
}

.category-card--clothing .text-link {
  color: var(--ink);
}

.category-card:not(.category-card--clothing) .text-link {
  border-color: rgba(250, 249, 246, 0.3);
}

.category-card:not(.category-card--clothing) .text-link:hover {
  border-color: var(--paper);
}

/* ---------------------------------------------------------------
   9. Product edit
   --------------------------------------------------------------- */
.edit-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 21vw);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.edit-scroller::-webkit-scrollbar {
  height: 5px;
}

.edit-scroller::-webkit-scrollbar-thumb {
  background: var(--line);
}

.product-card {
  scroll-snap-align: start;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--pc-a, #12162a) 0%, var(--pc-b, #0b0c0e) 100%);
  isolation: isolate;
}

.product-media .product-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 249, 246, 0.32);
  transition: transform var(--dur-slow) var(--ease);
}

.product-media .product-icon svg {
  width: 42%;
  height: auto;
}

.product-card:hover .product-icon {
  transform: scale(1.08) translateY(-4px);
}

.product-card--light .product-media {
  background: linear-gradient(155deg, var(--pc-a, #efeee7) 0%, var(--pc-b, #dedcd2) 100%);
}

.product-card--light .product-icon {
  color: rgba(11, 12, 14, 0.28);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
}

.product-card--light .product-tag {
  color: var(--text-3);
}

.product-info {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-cat {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-3);
}

.product-price {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.edit-foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-hint {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-hint svg {
  width: 30px;
  height: 10px;
}

/* ---------------------------------------------------------------
   10. Values
   --------------------------------------------------------------- */
.values {
  background: var(--paper-dim);
}

.values-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-card {
  background: var(--paper-dim);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.value-card:first-child {
  background: var(--ink);
  color: var(--text-on-dark-1);
}

.value-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--blue-bright);
  line-height: 1;
}

.value-card:first-child .value-index {
  color: #5d78ff;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 30px;
  letter-spacing: -0.005em;
}

.value-card p {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}

.value-card:first-child p {
  color: var(--text-on-dark-2);
}

/* ---------------------------------------------------------------
   11. Signup
   --------------------------------------------------------------- */
.signup {
  background: var(--blue);
  color: var(--text-on-dark-1);
  position: relative;
  overflow: hidden;
}

.signup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.signup-inner {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(80px, 10vw, 128px) 0;
}

.signup .display-2 {
  color: var(--text-on-dark-1);
  margin-top: 16px;
}

.signup .lede {
  margin: 20px auto 0;
  color: var(--text-on-dark-2);
  max-width: 42ch;
}

.signup-form {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin-inline: auto;
}

.signup-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}

.signup-field label {
  font-size: 12px;
  color: var(--text-on-dark-3);
}

.signup-field input {
  background: rgba(250, 249, 246, 0.08);
  border: 1px solid rgba(250, 249, 246, 0.3);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: var(--text-on-dark-1);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.signup-field input::placeholder {
  color: var(--text-on-dark-3);
}

.signup-field input:focus-visible {
  outline: none;
  border-color: var(--paper);
  background: rgba(250, 249, 246, 0.13);
}

.signup-form .btn {
  align-self: flex-end;
  flex-shrink: 0;
}

.signup-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-on-dark-3);
}

.signup-success {
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-on-dark-1);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.signup-success.is-visible {
  display: flex;
}

.signup-success svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.signup-error {
  margin-top: 10px;
  font-size: 12.5px;
  color: #ffd4d4;
  text-align: left;
  display: none;
}

.signup-error.is-visible {
  display: block;
}

/* ---------------------------------------------------------------
   12. Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-2);
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 249, 246, 0.12);
}

.footer-brand .wordmark {
  color: var(--text-on-dark-1);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 32ch;
  color: var(--text-on-dark-3);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 249, 246, 0.18);
  border-radius: 50%;
  color: var(--text-on-dark-2);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.footer-social a:hover {
  border-color: var(--paper);
  color: var(--text-on-dark-1);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-1);
}

.footer-col ul {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-on-dark-3);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--text-on-dark-1);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-on-dark-3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--text-on-dark-1);
}

/* ---------------------------------------------------------------
   13. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .manifesto-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 46vh;
  }

  .hero-copy {
    padding-top: clamp(48px, 8vw, 64px);
    max-width: none;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .category-card:nth-child(1) {
    grid-row: auto;
  }

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

  .value-card {
    min-height: 200px;
  }
}

@media (max-width: 680px) {
  .container {
    padding-inline: 20px;
  }

  .site-header {
    height: 68px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-copy {
    padding: 32px 20px 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

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

  .manifesto,
  .section {
    padding: 64px 0;
  }

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

  .signup-form {
    flex-direction: column;
  }

  .signup-form .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .edit-foot {
    justify-content: center;
    text-align: center;
  }
}
