/* ────────────────────────────────────────────────────────────────────────
   Fun Tech Studio — classic site
   Light cyberpunk · clean light base · neon cyan/magenta accents · unified scale
   ──────────────────────────────────────────────────────────────────────── */

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

:root {
  /* Palette */
  --bg:           #f4f5f7;
  --bg-elev:      #ffffff;
  --bg-soft:      #ecedef;
  --grid-line:    rgba(15, 23, 42, 0.05);
  --line:         rgba(15, 23, 42, 0.10);
  --line-strong:  rgba(15, 23, 42, 0.22);

  --text:         #0a0e1a;
  --text-soft:    #475569;
  --text-mute:    #94a3b8;

  --cyan:         #06b6d4;
  --cyan-strong:  #0891b2;
  --magenta:      #ec4899;
  --lime:         #84cc16;
  --violet:       #7c3aed;

  --fts-red:    #e74c3c;
  --fts-orange: #e67e22;
  --fts-yellow: #f1c40f;
  --fts-green:  #2ecc71;
  --fts-blue:   #3498db;
  --fts-purple: #9b59b6;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --nav-h: 64px;
  --max-w: 1120px;

  /* Unified type scale — single source of truth so sections feel consistent */
  --fs-hero:    clamp(48px, 8vw, 96px);
  --fs-display: clamp(36px, 5vw, 56px);
  --fs-h3:      clamp(22px, 2.4vw, 28px);
  --fs-lede:    clamp(18px, 1.7vw, 21px);
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-meta:    12px;

  /* Spacing rhythm */
  --section-pad: clamp(80px, 10vw, 140px);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.35) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.35) 80%, transparent 100%);
}

::selection { background: var(--cyan); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(244, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 28px; height: 28px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-dot { color: var(--cyan); }

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
  background: none;
  border: none;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger .caret { transition: transform 180ms ease; }
.dropdown[data-open="true"] .dropdown-trigger,
.dropdown:hover .dropdown-trigger {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}
.dropdown[data-open="true"] .dropdown-trigger .caret,
.dropdown:hover .dropdown-trigger .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px;
  padding: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.dropdown[data-open="true"] .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
}
.dropdown::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 12px;
  pointer-events: auto;
}
.dd-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 160ms ease;
  text-decoration: none;
  color: inherit;
}
.dd-item:hover {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06), rgba(236, 72, 153, 0.04));
}
.dd-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dd-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.dd-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.dd-badge-win     { color: var(--cyan); }
.dd-badge-android { color: var(--magenta); }
.dd-badge-soon    { color: var(--fts-orange); }
.dd-meta {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
}
.dd-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}
.dd-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cyan);
}
.dd-all:hover { color: var(--cyan-strong); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════
   SHARED — sections, containers, headings
   ═══════════════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-pad) 28px;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.container-narrow { max-width: 760px; }
.center { text-align: center; }

.section-head { margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.18em;
  color: var(--cyan-strong);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text);
  max-width: 18ch;
}

.center .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}

.grad {
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 28px 100px;
  overflow: hidden;
}

#woven-canvas-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}
#woven-canvas-mount canvas {
  display: block;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 28%, rgba(6, 182, 212, 0.08), transparent 38%),
    radial-gradient(circle at 78% 65%, rgba(236, 72, 153, 0.07), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 940px;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 700ms ease 0.4s forwards;
}
.kicker-bar {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan));
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--text);
  margin: 0;
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.2, 0.65, 0.3, 0.9),
              transform 720ms cubic-bezier(0.2, 0.65, 0.3, 0.9);
}
.hero-title .char.visible { opacity: 1; transform: translateY(0); }
.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  opacity: 0;
  animation: glitch 7s infinite;
}
.hero-title::before { color: var(--cyan);    transform: translate(-1.5px, 0); mix-blend-mode: multiply; }
.hero-title::after  { color: var(--magenta); transform: translate( 1.5px, 0); mix-blend-mode: multiply; }
@keyframes glitch {
  0%, 96%, 100% { opacity: 0; }
  97%           { opacity: 0.55; transform: translate(-2px, 0); }
  97.5%         { opacity: 0.5;  transform: translate( 2px, 0); }
  98%           { opacity: 0; }
}

.hero-sub {
  margin: 28px auto 0;
  max-width: 560px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease 1.6s, transform 900ms ease 1.6s;
}
.hero-sub em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
  border-bottom: 1.5px solid var(--cyan);
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }

.hero-actions {
  margin-top: 38px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transition: opacity 800ms ease 2.2s;
}
.hero-actions.visible { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 220ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
.btn-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.36);
  transform: translateY(-1px);
}

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════ */
.section-about .section-title { margin-bottom: 32px; }
.about-lede {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}
.about-mid {
  margin-top: 16px;
  font-size: var(--fs-lede);
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════
   MISSION
   ═══════════════════════════════════════════════════════════════════════ */
.section-mission {
  padding: clamp(70px, 8vw, 110px) 28px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-quote {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.32;
  color: var(--text);
  letter-spacing: -0.018em;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCTS — clean text cards, no images, no pricing
   ═══════════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 260ms ease,
              border-color 260ms ease;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.7;
  transition: opacity 260ms ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}
.product-card:hover::before { opacity: 1; }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.platform-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}
.platform-dot-pink { background: var(--magenta); }

.product-flag {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fts-orange);
  border: 1px solid var(--fts-orange);
  border-radius: 3px;
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
}

.product-desc {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
  min-height: calc(1.65em * 3);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  min-height: 32px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elev);
  transition: all 200ms ease;
}
.product-cta:hover {
  background: var(--text);
  color: #fff;
  transform: translateX(3px);
}
.product-cta-disabled {
  border-color: var(--line);
  color: var(--text-mute);
  cursor: not-allowed;
  background: var(--bg-soft);
}
.product-cta-disabled:hover {
  background: var(--bg-soft);
  color: var(--text-mute);
  transform: none;
}
.product-cta-disabled .pulse {
  width: 8px; height: 8px;
  background: var(--fts-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.18);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.9); }
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTACT — minimal: big mailto link, no card, no copy button
   ═══════════════════════════════════════════════════════════════════════ */
.section-contact {
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.08), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.07), transparent 45%);
  pointer-events: none;
}
.section-contact > .container { position: relative; z-index: 1; }

.contact-lede {
  margin: 18px auto 56px;
  font-size: var(--fs-lede);
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 460px;
}

.contact-mailto {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 6px 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  border-bottom: 2px solid var(--text);
  transition: color 220ms ease, border-color 220ms ease;
  word-break: break-all;
}
.contact-mailto:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.contact-mailto .mailto-arrow {
  flex-shrink: 0;
  transition: transform 220ms ease;
}
.contact-mailto:hover .mailto-arrow {
  transform: translateX(6px);
}

.contact-note {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER — expanded layout
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 56px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 14px;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin: 0 auto 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-col { gap: 18px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 260px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-nav a {
  color: var(--text-soft);
  transition: color 180ms ease, transform 180ms ease;
  display: inline-block;
}
.footer-nav a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}
.footer-nav a[aria-current="page"] { color: var(--text); font-weight: 500; }

.footer-social {
  display: inline-flex;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  background: var(--bg);
  transition: all 200ms ease;
}
.social-link:hover {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.footer-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE-HERO — used by blog / privacy / terms / 404-style pages
   ═══════════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: clamp(80px, 10vw, 130px) 28px clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(6, 182, 212, 0.07), transparent 40%),
    radial-gradient(circle at 78% 60%, rgba(236, 72, 153, 0.06), transparent 42%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.page-lede {
  max-width: 56ch;
  font-size: var(--fs-lede);
  color: var(--text-soft);
  line-height: 1.55;
}

/* Active nav link */
.nav-link-active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════
   BLOG — index list + single post
   ═══════════════════════════════════════════════════════════════════════ */
/* ── Filter tabs ── */
.blog-filters {
  padding: 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-wrap: wrap;
}
.filter-tab {
  appearance: none;
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.is-active {
  background: var(--text);
  color: #fff;
}

/* ── Posts grid ── */
.section-posts { padding: clamp(48px, 6vw, 80px) 28px clamp(80px, 10vw, 140px); }

.post-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.post-item { display: flex; }
.post-item[hidden] { display: none; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 280ms ease,
              box-shadow 280ms ease;
}
/* Gradient accent strip along the top — category colour drives the tint */
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--cyan), var(--magenta));
  opacity: 0.55;
  transition: opacity 280ms ease;
}
.post-card[data-tint="studio"]::before,
.post-item[data-category="studio"]  .post-card::before { background: linear-gradient(to right, var(--cyan), var(--cyan-strong)); }
.post-item[data-category="build-log"] .post-card::before { background: linear-gradient(to right, var(--magenta), #db2777); }
.post-item[data-category="product"]   .post-card::before { background: linear-gradient(to right, var(--violet), #7c3aed); }

/* Arrow indicator (top-right) — replaces the cover glyph */
.post-card::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 22px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--text-mute);
  border-right: 1.5px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform 260ms ease, border-color 260ms ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
}
.post-card:hover::before { opacity: 1; }
.post-card:hover::after {
  border-color: var(--cyan);
  transform: rotate(45deg) translate(2px, -2px);
}
.post-card-disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* ── Body ── */
.post-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 28px 24px;
  gap: 12px;
}

.post-flag {
  position: absolute;
  top: 22px;
  right: 44px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fts-orange);
  border: 1px solid var(--fts-orange);
  border-radius: 999px;
}

.post-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.post-category.cat-studio  { color: var(--cyan-strong); }
.post-category.cat-build   { color: var(--magenta); }
.post-category.cat-product { color: var(--violet); }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
}

.post-excerpt {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
}

.post-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.post-foot time { text-transform: uppercase; }
.post-dot { opacity: 0.6; }

/* ── Empty state ── */
.post-empty {
  text-align: center;
  padding: 56px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-cover { height: 150px; }
}

/* ── Single post page ── */
.post {
  padding: clamp(40px, 5vw, 70px) 28px clamp(80px, 10vw, 120px);
}
.post-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  transition: color 200ms ease;
}
.post-back:hover { color: var(--cyan); }

.post-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 14px 0 18px;
}
.post-deck {
  font-size: var(--fs-lede);
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.post-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
}
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 42px 0 14px;
}
.post-body p {
  margin-bottom: 18px;
}
.post-body p strong { color: var(--text); font-weight: 700; }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--cyan-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
.post-body a:hover { color: var(--magenta); }
.post-rule {
  margin: 36px 0;
  border: none;
  height: 1px;
  background: var(--line);
}
.post-signoff {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-footer .post-back { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   LEGAL PAGES — privacy / terms
   ═══════════════════════════════════════════════════════════════════════ */
.legal-updated {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.legal {
  padding: clamp(56px, 6vw, 96px) 28px clamp(80px, 10vw, 140px);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.legal-callout {
  margin-bottom: 48px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.legal-callout strong { color: var(--text); font-weight: 600; }

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  color: var(--text);
}

.legal p {
  margin-bottom: 16px;
  color: var(--text-soft);
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-soft);
}
.legal ul li { margin-bottom: 8px; }

.legal a {
  color: var(--cyan-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}
.legal a:hover { color: var(--magenta); }
.legal strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Ultra-narrow phones */
@media (max-width: 540px) {
  :root {
    --fs-hero:    clamp(40px, 11vw, 56px);
    --fs-display: clamp(28px, 8vw, 38px);
    --section-pad: 56px;
  }
  .container, .container-narrow { padding: 0 18px; }
  .hero { padding: 24px 18px 64px; min-height: auto; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section { padding: var(--section-pad) 0; }
  .section-title { letter-spacing: -0.01em; }
  .product-card {
    padding: 24px 20px 22px;
    border-radius: 14px;
    align-items: center;
    text-align: center;
  }
  .product-meta { width: 100%; justify-content: space-between; }
  .product-name { font-size: 24px; }
  .product-tagline,
  .product-desc { min-height: 0; }
  .product-tags { min-height: 0; margin-bottom: 18px; justify-content: center; }
  .product-cta { align-self: center; }
  .footer-inner { padding: 0 18px; }
  .footer-bar { flex-direction: column; gap: 8px; padding: 18px; }
  .page-hero { padding: 32px 18px 24px; }
  .post { padding: 32px 18px 80px; }
}

@media (max-width: 760px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--bg-elev);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }
  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 12px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .dropdown[data-open="true"] .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown[data-open="true"] .dropdown-menu { display: block; }
  .nav-burger { display: inline-flex; }
  .hero { padding: 32px 20px 80px; }
  .product-card { padding: 28px 24px 26px; }
  .contact-mailto { gap: 12px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .char,
  .hero-sub,
  .hero-actions { transition: none; opacity: 1; transform: none; }
  .hero-title::before,
  .hero-title::after { animation: none; }
  .pulse { animation: none; }
}
