/* ─── TATYPE FOUNDRY : UNCONVENTIONAL & MAGICAL ───────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #09090b;
  --fg: #fafafa;
  --accent: #27C24C;
  --border: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(39, 194, 76, 0.8);
  --muted: #a1a1aa;
  
  /* Geist for UI precision */
  --ui-sans: 'Geist Sans', sans-serif;
  --ui-mono: 'Geist Mono', monospace;
  
  /* User's fonts for magic hero moments */
  --hero-serif: 'Lunasha-Bold', serif;
}

html {
  scroll-behavior: smooth;
  cursor: crosshair; /* Unconventional precision cursor */
}

body {
  font-family: var(--ui-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: var(--accent);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4%;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(20px);
  z-index: 1000;
  mix-blend-mode: difference;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  border-radius: 100px; /* Pill shape */
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--ui-sans);
  font-size: 0.8rem;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(39, 194, 76, 0.3);
}

/* ── KINETIC HERO ── */
.catalog-hero {
  padding: 12rem 0 4rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.marquee {
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  font-family: var(--hero-serif);
  font-size: clamp(6rem, 15vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  animation: scroll 30s linear infinite;
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

.marquee-content span {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  transition: all 0.3s;
}
.marquee-content span:hover {
  color: var(--accent);
  -webkit-text-stroke: 2px var(--accent);
}
.marquee-content strong {
  color: var(--fg);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.hero-sub {
  text-align: center;
  margin-top: 4rem;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 4% 0;
  position: sticky;
  top: 80px; /* Below the nav */
  z-index: 900;
}

.filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: var(--ui-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ── ASYMMETRICAL CATALOG GRID ── */
.font-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding: 4rem 4% 10rem;
}

.font-card {
  --fc-size: 80px;
  --fc-leading: 1.1;
  --fc-tracking: 0em;
  
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.font-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Light Mode Override for Cards */
.font-card.light {
  background: #fafafa;
  color: #09090b;
  border-color: rgba(0,0,0,0.1);
}
.font-card.light:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.font-card.light .btn-ghost {
  border-color: rgba(0,0,0,0.2);
  color: #09090b;
}
.font-card.light .font-card-preview {
  color: #09090b;
}
.font-card.light .fc-name {
  color: #09090b;
}
.font-card.light .card-controls {
  border-bottom-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.02);
}

/* Grid spanning logic for dynamic masonry look */
.card-full { grid-column: span 12; }
.card-half { grid-column: span 6; }
@media (max-width: 900px) {
  .card-half { grid-column: span 12; }
}

.font-card-header {
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.fc-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.trust-signal {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--ui-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.trust-signal a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all 0.3s;
}
.trust-signal a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.font-card.light .trust-signal a {
  color: #09090b;
  text-decoration-color: rgba(0,0,0,0.2);
}
.font-card.light .trust-signal a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.font-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fc-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--ui-sans);
  transition: letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.font-card:hover .fc-name {
  letter-spacing: 0.05em;
}

.fc-styles {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.fc-lang {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.fc-lang.tamil {
  background: rgba(39, 194, 76, 0.15);
  color: var(--accent);
}

.btn-ghost {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s;
}
.font-card:hover .btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
}

/* The Magic Tester Area */
.font-card-preview {
  padding: 4rem 2.5rem;
  font-size: var(--fc-size);
  line-height: var(--fc-leading);
  letter-spacing: var(--fc-tracking);
  outline: none;
  border: none;
  width: 100%;
  color: var(--fg);
  word-wrap: break-word;
  white-space: pre-wrap;
  background: transparent;
  flex: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center left;
  cursor: text;
}
.font-card:focus-within .font-card-preview {
  transform: scale(1.01);
}
.font-card-preview:empty:before {
  content: attr(placeholder);
  color: rgba(255,255,255,0.1);
}

/* ── CARD CONTROLS ── */
.card-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.2);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.control-group label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.control-group input[type="range"] {
  width: 100px;
  accent-color: var(--accent);
}
.ctrl-style {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: var(--ui-sans);
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.font-card.light .ctrl-style {
  color: #09090b;
  border-color: rgba(0,0,0,0.2);
}

.ctrl-invert {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--ui-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto; /* Push to the far right */
}
.ctrl-invert:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.font-card.light .ctrl-invert {
  color: #09090b;
  border-color: rgba(0,0,0,0.2);
}
.font-card.light .ctrl-invert:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── DETAIL PAGE ── */
.detail-hero {
  min-height: 80vh;
  padding: 12rem 4% 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at center 0%, rgba(39, 194, 76, 0.1) 0%, transparent 50%);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.dh-name {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-family: var(--ui-sans);
}

.dh-meta {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.85rem;
}

.detail-tester {
  flex: 1;
  font-size: clamp(4rem, 12vw, 15rem);
  line-height: 0.9;
  outline: none;
  width: 100%;
  text-align: center;
  transition: color 0.3s;
}
.detail-tester:focus {
  color: var(--accent);
}

.detail-info {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 6rem;
  padding: 8rem 4%;
}

@media (max-width: 1024px) {
  .detail-info { grid-template-columns: 1fr; }
}

.info-h {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 700;
}

.info-p {
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  font-family: var(--ui-serif);
}

.licensing-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 12px;
  position: sticky;
  top: 120px;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  margin: 1rem 0 2.5rem;
  color: var(--fg);
  line-height: 1;
  font-family: var(--ui-sans);
  letter-spacing: -0.04em;
}

.license-list {
  list-style: none;
  margin-bottom: 3rem;
}

.license-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.license-list li span:first-child { color: var(--fg); font-weight: 600; }
.license-list li span:last-child { color: var(--muted); }

.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.glyph-cell {
  background: var(--bg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--fg);
  transition: all 0.3s;
}
.glyph-cell:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* ── ABOUT PAGE ── */
.about-hero {
  padding: 12rem 4% 6rem;
  text-align: center;
}

.about-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--fg);
}

.about-story {
  padding: 4rem 4% 8rem;
  display: flex;
  justify-content: center;
}

.story-column {
  max-width: 700px;
  width: 100%;
}

.story-lead {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 3rem;
}

.story-column p {
  font-family: var(--ui-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.story-column h2 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--fg);
  margin: 4rem 0 1.5rem;
  letter-spacing: -0.02em;
}

.about-cta {
  padding: 4rem 4% 8rem;
  display: flex;
  justify-content: center;
}

.cta-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 4rem;
  border-radius: 12px;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.cta-box h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 100px;
  text-transform: uppercase;
  font-family: var(--ui-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: transparent;
  color: var(--fg);
}

/* ── TRUST STRIP ── */
.trust-strip {
  padding: 8rem 4% 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ts-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

.ts-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
}

.ts-logos span, .ts-logos img {
  font-size: 1.25rem;
  font-family: var(--ui-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0.2;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  display: flex;
  align-items: center;
}

.ts-logos img {
  height: 24px;
  filter: invert(1);
}

.ts-logos span:hover, .ts-logos img:hover {
  opacity: 1;
}

/* ── FOOTER ── */
.site-footer {
  padding: 8rem 4% 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 14vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 6rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  font-family: var(--ui-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col ul a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
  max-width: 300px;
  margin-top: 1.5rem;
}

.footer-logo-img {
  height: 32px;
  display: block;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--ui-sans);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.2);
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.newsletter-form button:hover {
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4%;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--ui-sans);
  position: relative;
  z-index: 2;
}

/* ── OVERSIZED WATERMARK ── */
.footer-watermark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18vw;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  opacity: 0.05;
  white-space: nowrap;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  width: 100%;
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════ */

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* ── NAV MOBILE ── */
  nav {
    padding: 1rem 5%;
    mix-blend-mode: normal;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75vw;
    max-width: 320px;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2.5rem 3rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1.25rem 0;
  }

  /* ── HERO MOBILE ── */
  .catalog-hero {
    padding: 7rem 0 2rem;
  }

  .marquee-content {
    font-size: clamp(4rem, 18vw, 8rem);
  }

  .hero-sub {
    font-size: 1rem;
    padding: 0 5%;
    margin-top: 2rem;
  }

  /* ── FILTER BAR MOBILE ── */
  .filter-bar {
    gap: 0.5rem;
    padding: 1.5rem 5% 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    top: 60px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-btn {
    white-space: nowrap;
    padding: 0.6rem 1.1rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* ── FONT GRID MOBILE ── */
  .font-grid {
    padding: 2rem 4% 6rem;
    gap: 1.25rem;
  }

  .card-full, .card-half {
    grid-column: span 12;
  }

  /* ── CARD HEADER MOBILE ── */
  .font-card-header {
    padding: 1rem 1.25rem;
  }

  .fc-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .fc-name {
    font-size: 1.4rem;
  }

  .btn-ghost {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    align-self: flex-start;
  }

  /* ── CARD CONTROLS MOBILE ── */
  .card-controls {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .control-group {
    gap: 0.5rem;
  }

  .control-group input[type="range"] {
    width: 70px;
  }

  .ctrl-invert {
    margin-left: 0;
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }

  /* ── FONT PREVIEW MOBILE ── */
  .font-card-preview {
    padding: 2rem 1.25rem;
    font-size: clamp(32px, 10vw, var(--fc-size));
    min-height: 180px;
  }

  /* ── ABOUT MOBILE ── */
  .about-hero {
    padding: 7rem 5% 3rem;
  }

  .about-headline {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .about-story {
    padding: 2rem 5% 5rem;
  }

  .story-lead {
    font-size: 1.2rem;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  /* ── CONTACT MOBILE ── */
  .contact-hero {
    padding: 7rem 5% 2rem;
  }

  .contact-headline {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .contact-body {
    padding: 2rem 5% 5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── TRUST STRIP MOBILE ── */
  .trust-strip {
    padding: 4rem 5% 3rem;
    gap: 1.5rem;
  }

  .ts-logos {
    gap: 2rem;
  }

  .ts-logos span, .ts-logos img {
    font-size: 1rem;
  }

  .ts-logos img {
    height: 18px;
  }

  /* ── FOOTER MOBILE ── */
  .site-footer {
    padding: 4rem 5% 0;
    padding-bottom: 18vw;
  }

  .footer-watermark {
    font-size: 24vw;
  }
}

/* ── VERY SMALL SCREENS ── */
@media (max-width: 400px) {
  .fc-name { font-size: 1.2rem; }
  .control-group input[type="range"] { width: 55px; }
  .font-card-preview { font-size: clamp(24px, 9vw, 48px); }
}

