/* ============================================================
   American Mastery Academy — institutional site
   Dark cinematic + editorial light sections
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --bg-light: #f4f2ee;
  --bg-light-2: #ebe7df;
  --ink: #f5f3ef;
  --ink-dim: #9a958c;
  --ink-mute: #6b665e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --line-light: rgba(0,0,0,0.08);
  --accent: #c89b6a;        /* refined bronze */
  --accent-soft: #b78554;
  --accent-glow: rgba(200,155,106,0.35);
  --ink-dark: #1a1814;
  --ink-dark-dim: #5d574c;

  --fs-display: clamp(48px, 8vw, 148px);
  --fs-h1: clamp(40px, 6vw, 96px);
  --fs-h2: clamp(32px, 4.2vw, 64px);
  --fs-h3: clamp(22px, 2.2vw, 32px);
  --fs-body: 17px;
  --fs-small: 13px;

  --radius: 20px;
  --radius-lg: 32px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* Typography */
.display, h1, h2, h3, h4 {
  font-family: 'Instrument Serif', 'Söhne', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.sans, p, span, a, li, button, input, label, .mono, .eyebrow {
  font-family: 'Söhne', 'Inter', -apple-system, sans-serif;
}
.mono {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-dim);
}

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ---------------- Top bar ---------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.topbar.light {
  background: rgba(244,242,238,0.85);
  border-bottom-color: var(--line-light);
  color: var(--ink-dark);
}
.topbar.light .nav a { color: var(--ink-dark-dim); }
.topbar.light .nav a:hover { color: var(--ink-dark); }
.topbar.light .brand .logo-mark { color: var(--ink-dark); }
.topbar.light .brand .logo-mark em { color: var(--accent-soft); }
.topbar.light .lang-btn { color: var(--ink-dark-dim); border-color: rgba(0,0,0,0.15); }
.topbar.light .lang-btn.active { color: var(--ink-dark); border-color: var(--ink-dark); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark em { font-style: normal; color: var(--accent); font-weight: 500; }
.logo-glyph {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav {
  display: flex; gap: 34px;
  font-size: 13px; font-weight: 500;
}
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav { display: none; } }

.lang-switch {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.lang-btn.active {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  border-color: var(--line-strong);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,155,106,0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(200,155,106,0.08), transparent 60%),
    #050505;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
  font-size: 12px;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-meta .sep { width: 1px; height: 14px; background: var(--line-strong); }
.hero-meta span.mono { color: var(--ink-dim); }

.hero h1 {
  font-size: var(--fs-display);
  max-width: 1300px;
  margin-bottom: 48px;
}
.hero h1 .serif { font-style: italic; color: var(--accent); }
.hero h1 .block { display: block; }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-dim);
  max-width: 640px;
  margin-bottom: 64px;
  line-height: 1.5;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.hero-stats .stat .num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-stats .stat .num em {
  font-style: italic;
  color: var(--accent);
}
.hero-stats .stat .lbl {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  background: transparent;
  color: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--ink-dark);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #18140d; }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.05); }
.btn-ghost.dark { border-color: rgba(0,0,0,0.2); color: var(--ink-dark); }
.btn-ghost.dark:hover { border-color: var(--ink-dark); background: rgba(0,0,0,0.05); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- Marquee press ticker ---------------- */
.press-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg);
}
.press-ticker-track {
  display: flex;
  gap: 64px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
}
.press-ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.press-ticker-item strong { color: var(--ink); font-weight: 500; }
.press-ticker-item .divider { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Generic section ---------------- */
.section {
  padding: 140px 0;
  position: relative;
}
.section.light {
  background: var(--bg-light);
  color: var(--ink-dark);
}
.section.light .eyebrow { color: var(--ink-dark-dim); }
.section.light .section-sub { color: var(--ink-dark-dim); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .section { padding: 80px 0; }
}

.section-title {
  font-size: var(--fs-h2);
}
.section-title .serif-it {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 480px;
  line-height: 1.55;
}

/* ---------------- How it works (animated flow) ---------------- */
.flow-wrap {
  background: linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.flow-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(200,155,106,0.08), transparent 70%);
  pointer-events: none;
}
.flow-canvas {
  position: relative;
  height: 480px;
  width: 100%;
}
@media (max-width: 900px) { .flow-canvas { height: 380px; } }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
.flow-step { position: relative; }
.flow-step .n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.flow-step h4 {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ---------------- Feature grid ---------------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feat-card.big { grid-column: span 7; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; }
.feat-card.med { grid-column: span 5; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; }
.feat-card.sm { grid-column: span 4; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 900px) {
  .feat-card.big, .feat-card.med, .feat-card.sm { grid-column: span 12; }
}

.feat-card h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  margin-bottom: 16px;
  line-height: 1.05;
}
.feat-card p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; max-width: 460px; }
.feat-card .tag {
  position: absolute; top: 24px; right: 24px;
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(200,155,106,0.08);
  border: 1px solid rgba(200,155,106,0.3);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------------- Portugal launch ---------------- */
.launch-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  background: #0a0a0a;
  border: 1px solid var(--line);
}
.launch-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%),
    url('https://images.unsplash.com/photo-1555881400-74d7acaacd8b?q=80&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}
.launch-hero-content { position: relative; z-index: 2; max-width: 720px; }
.launch-hero-content h3 {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95;
  margin-bottom: 24px;
}
.launch-hero-content .serif-it { font-style: italic; color: var(--accent); }
.launch-hero-content p {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 520px;
  line-height: 1.55;
}

.launch-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.launch-meta-item {
  background: var(--bg-2);
  padding: 36px 32px;
}
.launch-meta-item .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.launch-meta-item .v {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.launch-meta-item .v em { font-style: italic; color: var(--accent); }
@media (max-width: 900px) {
  .launch-meta-row { grid-template-columns: 1fr; }
}

/* ---------------- Structure (corporate) ---------------- */
.struct-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .struct-wrap { grid-template-columns: 1fr; } }
.struct-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.struct-card .flag-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dark-dim);
}
.struct-card .flag-row .dash { flex: 1; height: 1px; background: rgba(0,0,0,0.15); }
.struct-card h4 {
  font-size: clamp(28px, 3vw, 44px);
  margin: 32px 0 20px;
  color: var(--ink-dark);
}
.struct-card h4 em { font-style: italic; color: var(--accent-soft); }
.struct-card .role {
  font-size: 13px;
  color: var(--ink-dark-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.struct-card p {
  color: var(--ink-dark-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 460px;
}

.struct-card .spec-list {
  margin-top: 28px;
  display: flex; flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 20px;
}
.struct-card .spec-list .row {
  display: flex; justify-content: space-between;
  font-size: 13px;
}
.struct-card .spec-list .row .k { color: var(--ink-dark-dim); }
.struct-card .spec-list .row .v { color: var(--ink-dark); font-weight: 500; }

.bridge {
  grid-column: span 2;
  padding: 48px;
  background: var(--ink-dark);
  color: var(--ink);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.bridge h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
}
.bridge h5 em { font-style: italic; color: var(--accent); }
.bridge p { color: var(--ink-dim); font-size: 15px; margin-top: 12px; }
.bridge .badge {
  background: var(--accent);
  color: #18140d;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
}
@media (max-width: 900px) { .bridge { grid-column: span 1; grid-template-columns: 1fr; } }

/* ---------------- Team ---------------- */
.team-intro {
  max-width: 780px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  font-family: 'Instrument Serif', Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 80px;
}
.team-intro em { color: var(--accent); font-style: italic; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .3s var(--ease);
}
.team-card:hover { border-color: var(--line-strong); }
.team-card .role {
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent);
}
.team-card .count {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
}
.team-card .count em { font-style: italic; color: var(--accent); }
.team-card .desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.team-card .stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.team-card .stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--ink-dim);
  border: 1px solid var(--line);
}

/* ---------------- Roadmap ---------------- */
.roadmap {
  position: relative;
  padding-top: 20px;
}
.roadmap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) { .roadmap-track { grid-template-columns: 1fr; } }
.roadmap::before {
  content: "";
  position: absolute;
  top: 58px; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 10%, var(--accent) 40%, var(--line-strong) 40%, var(--line-strong) 100%);
}
@media (max-width: 900px) { .roadmap::before { display: none; } }

.r-item {
  position: relative;
  padding-top: 40px;
}
.r-item::before {
  content: "";
  position: absolute;
  top: 34px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
}
.r-item.done::before { background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.r-item.current::before { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
.r-item .when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-bottom: 12px;
  display: block;
  padding-top: 16px;
}
.r-item.current .when { color: var(--accent); }
.r-item .what {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
  max-width: 200px;
}

/* ---------------- Contact / CTA ---------------- */
.cta-final {
  background: var(--bg-light);
  color: var(--ink-dark);
  border-radius: var(--radius-lg);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(200,155,106,0.18), transparent 60%);
}
.cta-final-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end; }
@media (max-width: 900px) { .cta-final-inner { grid-template-columns: 1fr; gap: 40px; } .cta-final { padding: 60px 32px; } }
.cta-final h3 {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.98;
  color: var(--ink-dark);
  margin-bottom: 20px;
}
.cta-final h3 em { font-style: italic; color: var(--accent-soft); }
.cta-final p {
  font-size: 16px;
  color: var(--ink-dark-dim);
  max-width: 440px;
  line-height: 1.5;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.2);
}
.contact-card .eyebrow { color: var(--ink-dark-dim); margin-bottom: 20px; }
.contact-card .channel {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.contact-card .channel:last-child { border-bottom: none; }
.contact-card .channel .lbl { font-size: 12px; color: var(--ink-dark-dim); text-transform: uppercase; letter-spacing: 0.15em; }
.contact-card .channel .val { font-size: 14px; color: var(--ink-dark); font-weight: 500; }
.contact-card .channel .val a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--ink-dark-dim); }

/* ---------------- Footer ---------------- */
footer.footer {
  background: #050505;
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-col h6 {
  font-family: 'Söhne', 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-brand h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-brand h5 em { color: var(--accent); font-style: italic; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 320px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Lang switching — use !important to beat component-level display rules */
body.en [lang-pt],
body.pt [lang-en] { display: none !important; }
