/* ============================================================
   Yoshiki Video — Design Tokens & Global Styles
   Minimal / Monochrome / Professional (Vercel & Notion-inspired)
============================================================ */

:root {
  /* Colors */
  --bg:            #FAFAFA;
  --bg-elev:       #FFFFFF;
  --bg-invert:     #0A0A0A;
  --bg-invert-2:   #141414;
  --text:          #111111;
  --text-sub:      #6B7280;
  --text-invert:   #FAFAFA;
  --text-invert-sub:#A1A1AA;
  --primary:       #1E40AF;
  --primary-hover: #1D3E9E;
  --primary-weak:  #DBEAFE;
  --border:        #E5E7EB;
  --border-strong: #D4D4D8;
  --border-invert: #27272A;

  /* Type */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-56: 56px;
  --fs-72: 72px;
  --fs-96: 96px;

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-norm:  1.6;
  --lh-loose: 1.75;

  /* Spacing (8pt-ish) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --s-32: 128px; --s-40: 160px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.28s;
  --dur-slow: 0.5s;

  /* Layout */
  --maxw: 1200px;
  --maxw-tight: 960px;
  --nav-h: 64px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-norm);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

/* Shared containers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-tight {
  width: 100%;
  max-width: var(--maxw-tight);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section {
  padding: var(--s-24) 0;
}
.section-sm { padding: var(--s-16) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: var(--s-3);
}
.section-sub {
  color: var(--text-sub);
  margin-top: var(--s-4);
  font-size: var(--fs-18);
  max-width: 640px;
  line-height: var(--lh-loose);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 48px;
  padding: 0 var(--s-6);
  border-radius: var(--r-full);
  font-size: var(--fs-15);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 var(--s-5); font-size: var(--fs-14); }
.btn-primary {
  background: var(--text);
  color: #fff;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}
.btn-accent {
  background: var(--primary);
  color: #fff;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
@media (hover: hover) {
  .btn-accent:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
  }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--bg-elev);
    border-color: var(--text);
    transform: translateY(-1px);
  }
}
.btn-invert {
  background: #fff;
  color: #000;
}
@media (hover: hover) {
  .btn-invert:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
}
.btn-invert-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
@media (hover: hover) {
  .btn-invert-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.04); }
}

.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Utility */
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "tnum" 1;
}
.hairline {
  border-top: 1px solid var(--border);
}

/* =========================================
   Navigation
========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 60;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: var(--fs-16);
}
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::after {
  content: "";
  width: 0; height: 0;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-links a {
  font-size: var(--fs-14);
  color: var(--text-sub);
  transition: color 0.2s ease-out;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); }
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.nav-menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
}

/* =========================================
   Hero
========================================= */
.hero {
  min-height: 88vh;
  padding: calc(var(--nav-h) + var(--s-16)) 0 var(--s-16);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30,64,175,0.04), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 90%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 12px 6px 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-13);
  color: var(--text-sub);
  box-shadow: var(--shadow-sm);
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.hero-meta .tag {
  background: var(--text);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin-top: var(--s-6);
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16ch;
}
.hero h1 .accent {
  color: var(--primary);
  display: inline-block;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--primary-weak);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  margin-top: var(--s-6);
  color: var(--text-sub);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 46ch;
  line-height: var(--lh-loose);
}
.hero-ctas {
  margin-top: var(--s-10);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: var(--s-16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.hero-stat .n {
  font-size: var(--fs-32);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-stat .l {
  color: var(--text-sub);
  font-size: var(--fs-13);
  margin-top: 2px;
}

/* Hero trust badge — "100+ 納品実績" */
.hero-trust {
  margin-top: var(--s-16);
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-7) var(--s-5) var(--s-6);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.hero-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 0% 0%, rgba(99,102,241,0.10), transparent 60%);
  pointer-events: none;
}
.hero-trust-num {
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #1f2937 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}
.hero-trust-num .plus {
  font-size: 0.55em;
  vertical-align: top;
  margin-left: 2px;
  opacity: 0.85;
}
.hero-trust-text { position: relative; z-index: 1; }
.hero-trust-lead {
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-trust-sub {
  margin-top: 4px;
  font-size: var(--fs-13);
  color: var(--text-sub);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .hero-trust {
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    border-radius: 14px;
  }
  .hero-trust-num { font-size: 56px; }
  .hero-trust-lead { font-size: 15px; }
  .hero-trust-sub { font-size: 12px; }
}

/* Hero preview reel (floating small cards on the right) */
.hero-reel {
  position: absolute;
  right: calc((100vw - var(--maxw)) / 2 + var(--s-6));
  right: max(var(--s-6), calc((100vw - var(--maxw)) / 2 + var(--s-6)));
  top: 50%;
  transform: translateY(-40%);
  width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  z-index: 1;
  opacity: 0.98;
}
.hero-reel .tile {
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-reel .tile.landscape {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}
.hero-reel .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.08), transparent 60%);
}
.hero-reel .tile .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-reel .tile .play svg { filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6)); }
.hero-reel .tile .label {
  position: absolute;
  left: 10px; bottom: 10px;
  color: #fff;
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  opacity: 0.9;
}
@media (max-width: 1100px) {
  .hero-reel { display: none; }
}

/* Marquee */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: var(--s-5) 0;
  background: var(--bg-elev);
}
.marquee {
  display: flex;
  gap: var(--s-16);
  animation: scroll 36s linear infinite;
  white-space: nowrap;
}
.marquee span {
  color: var(--text-sub);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.marquee .sep {
  width: 6px; height: 6px; background: var(--border-strong); border-radius: 50%;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   About
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-16);
  align-items: start;
}
.avatar {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #0A0A0A;
}
.avatar svg { display: block; }
.about-body h3 {
  font-size: var(--fs-32);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.about-body h3 .kana {
  font-size: var(--fs-16);
  color: var(--text-sub);
  font-weight: 400;
  letter-spacing: 0;
}
.about-body .lead {
  margin-top: var(--s-5);
  font-size: var(--fs-18);
  line-height: var(--lh-loose);
  color: var(--text);
  max-width: 58ch;
}
.about-body p.sub {
  margin-top: var(--s-4);
  color: var(--text-sub);
  max-width: 62ch;
  line-height: var(--lh-loose);
}
.about-meta {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-meta .cell {
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-right: 1px solid var(--border);
}
.about-meta .cell:last-child { border-right: none; }
.about-meta .k {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.about-meta .v {
  font-size: var(--fs-15);
  color: var(--text);
  font-weight: 500;
}
.tools {
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-13);
  color: var(--text);
}
.tool-chip .sw {
  width: 10px; height: 10px; border-radius: 3px;
}

/* =========================================
   Works (Dark)
========================================= */
.works {
  background: var(--bg-invert);
  color: var(--text-invert);
  padding: var(--s-24) 0 var(--s-24);
  position: relative;
  overflow: hidden;
}
.works::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(30,64,175,0.15), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(30,64,175,0.08), transparent 70%);
  pointer-events: none;
}
.works .section-title { color: var(--text-invert); }
.works .section-sub { color: var(--text-invert-sub); }
.works .eyebrow { color: var(--text-invert-sub); }
.works-inner { position: relative; z-index: 1; }

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-invert);
  border-radius: var(--r-full);
  position: relative;
}
.tab {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border-radius: var(--r-full);
  color: var(--text-invert-sub);
  font-size: var(--fs-14);
  font-weight: 500;
  transition: color var(--dur-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.tab .count {
  font-size: var(--fs-12);
  color: var(--text-invert-sub);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.tab.active {
  color: #000;
}
.tab.active .count {
  background: rgba(0,0,0,0.1);
  color: #000;
}
.tab-slider {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  background: #fff;
  border-radius: var(--r-full);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.works-grid {
  margin-top: var(--s-12);
  display: grid;
  gap: var(--s-6);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.works-grid.fading {
  opacity: 0;
  transform: translateY(4px);
}
.works-grid.horizontal {
  grid-template-columns: repeat(3, 1fr);
}
.works-grid.vertical {
  grid-template-columns: repeat(4, 1fr);
}

.work-card {
  background: var(--bg-invert-2);
  border: 1px solid var(--border-invert);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease-out,
              box-shadow 0.25s ease-out,
              border-color 0.25s ease-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .work-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
  }
  .work-card:hover .work-thumb img {
    transform: scale(1.04);
    filter: brightness(0.78);
  }
  .work-card:hover .overlay { opacity: 1; }
  .work-card:hover .play-btn {
    transform: scale(1);
    opacity: 1;
  }
}
.work-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
}
.work-thumb.ratio-16-9 { aspect-ratio: 16/9; }
.work-thumb.ratio-9-16 { aspect-ratio: 9/16; }
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out, filter 0.25s ease-out;
}
.work-thumb .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.work-thumb .play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease-out;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.work-thumb .duration {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: var(--fs-12);
  font-family: "JetBrains Mono", monospace;
  backdrop-filter: blur(6px);
}
.work-body {
  padding: var(--s-5);
}
.work-title {
  font-size: var(--fs-15);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: #fff;
  letter-spacing: -0.005em;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-invert-sub);
  font-size: var(--fs-13);
}
.work-meta .genre {
  color: #fff;
  font-weight: 500;
}
.work-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: currentColor;
  opacity: 0.5;
}

/* Modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  padding: var(--s-6);
}
.modal-back.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  width: min(1000px, 100%);
  max-width: 1000px;
  max-height: calc(100vh - 120px);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.modal-box.portrait {
  width: min(380px, 100%);
  max-width: 380px;
}
.modal-back.open .modal-box {
  transform: scale(1);
  opacity: 1;
}
.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}
.modal-box.portrait .modal-video { aspect-ratio: 9 / 16; }
.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--dur-fast) var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.22); }

/* =========================================
   Services
========================================= */
.services-grid {
  margin-top: var(--s-12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  transition: transform 0.25s ease-out,
              box-shadow 0.25s ease-out,
              border-color 0.25s ease-out;
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
  }
}
.service-card.featured {
  background: var(--bg-invert);
  color: #fff;
  border-color: var(--bg-invert);
}
.service-card.featured .service-name,
.service-card.featured .service-price .num { color: #fff; }
.service-card.featured .service-desc,
.service-card.featured .service-price .yen,
.service-card.featured .service-meta .k { color: var(--text-invert-sub); }
.service-card.featured .service-meta .v { color: #fff; }
.service-card.featured ul li { color: #E5E7EB; }
.service-card.featured ul li::before { background: var(--primary); color: #fff; }
.service-card.featured .service-meta { border-color: rgba(255,255,255,0.12); }

.service-card.featured .pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

.service-name {
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.service-desc {
  color: var(--text-sub);
  font-size: var(--fs-14);
  line-height: var(--lh-loose);
}
.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.service-price .yen { color: var(--text-sub); font-size: var(--fs-14); }
.service-price .num {
  font-size: var(--fs-40);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.service-price .unit { color: var(--text-sub); font-size: var(--fs-14); margin-left: 6px; }

.service-meta {
  display: flex;
  gap: var(--s-6);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-meta .cell { display: flex; flex-direction: column; gap: 3px; }
.service-meta .k { font-size: var(--fs-12); color: var(--text-sub); letter-spacing: 0.04em; }
.service-meta .v { font-size: var(--fs-14); color: var(--text); font-weight: 500; }

.service-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.service-card ul li {
  font-size: var(--fs-14);
  line-height: var(--lh-norm);
  color: var(--text);
  padding-left: 26px;
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary-weak);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3.5 7.5 L6 10 L10.5 4.5' stroke='%231E40AF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* =========================================
   Flow (7 steps)
========================================= */
.flow-track {
  margin-top: var(--s-12);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--border-strong) 0 6px,
    transparent 6px 12px
  );
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  padding: 0 var(--s-3);
  text-align: center;
}
.flow-step .node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease-out,
              border-color 0.25s ease-out,
              background 0.25s ease-out,
              color 0.25s ease-out;
}
@media (hover: hover) {
  .flow-step:hover .node {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
    transform: scale(1.08);
  }
}
.flow-step .n {
  font-size: var(--fs-12);
  color: var(--text-sub);
  margin-top: var(--s-3);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}
.flow-step .t {
  margin-top: 6px;
  font-size: var(--fs-15);
  font-weight: 600;
}
.flow-step .d {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: var(--fs-13);
  line-height: var(--lh-norm);
}

/* =========================================
   FAQ
========================================= */
.faq-list {
  margin-top: var(--s-10);
  max-width: 820px;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  font-size: var(--fs-18);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-q .q-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.faq-item.open .q-icon {
  transform: rotate(45deg);
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}
.faq-item.open .faq-a {
  max-height: 600px;
}
.faq-a-inner {
  padding: 0 0 var(--s-6);
  color: var(--text-sub);
  line-height: var(--lh-loose);
  max-width: 70ch;
}

/* =========================================
   Contact — Option A (parallel cards) and B (form)
========================================= */
.contact-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  margin-top: var(--s-6);
  position: relative;
}
.contact-toggle button {
  padding: 8px 18px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--r-full);
  transition: color var(--dur-base) var(--ease);
  position: relative;
  z-index: 1;
}
.contact-toggle button.active { color: #fff; }
.contact-toggle .slider {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  background: var(--text);
  border-radius: var(--r-full);
  transition: transform var(--dur-base) var(--ease), width var(--dur-base) var(--ease);
}

.contact-panel {
  margin-top: var(--s-10);
  position: relative;
}
.contact-A {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-10);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transition: transform 0.25s ease-out,
              border-color 0.25s ease-out,
              box-shadow 0.25s ease-out;
}
@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--text);
    box-shadow: var(--shadow-lg);
  }
}
.contact-card .icon-box {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card h3 {
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-card p { color: var(--text-sub); font-size: var(--fs-14); line-height: var(--lh-loose); }
.contact-card .meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4);
  background: var(--bg);
  border-radius: var(--r-md);
  font-size: var(--fs-13);
  color: var(--text-sub);
}
.contact-card .meta .row { display: flex; justify-content: space-between; }
.contact-card .meta .row .v { color: var(--text); font-weight: 500; }
.contact-card .btn { align-self: flex-start; }

.contact-B {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-8);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-10);
}
.contact-B .side h3 {
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-B .side p { margin-top: var(--s-3); color: var(--text-sub); line-height: var(--lh-loose); }
.contact-B .side .direct {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.direct-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-14);
}
.direct-row .k {
  font-size: var(--fs-12);
  color: var(--text-sub);
  width: 52px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.direct-row .v { color: var(--text); font-weight: 500; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: span 2; }
.field label {
  font-size: var(--fs-13);
  color: var(--text);
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.field label .req {
  font-size: var(--fs-11);
  background: var(--primary-weak);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.field label .opt {
  font-size: var(--fs-11);
  background: #F4F4F5;
  color: var(--text-sub);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--fs-14);
  color: var(--text);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.radio-chip input { display: none; }
.radio-chip:hover { border-color: var(--text); }
.radio-chip.on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.side-note {
  margin-top: var(--s-6);
  padding: var(--s-4);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.side-note-title {
  font-size: var(--fs-13);
  font-weight: 600;
  margin-bottom: 4px;
}
.side-note-body {
  font-size: var(--fs-13);
  color: var(--text-sub);
  line-height: var(--lh-norm);
  margin: 0;
}
.input, .textarea, .select {
  font-family: inherit;
  font-size: var(--fs-14);
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  width: 100%;
}
.input::placeholder, .textarea::placeholder { color: #9CA3AF; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.14);
  background: #fff;
}
.textarea { resize: vertical; min-height: 120px; line-height: var(--lh-norm); }

.form-actions {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-3);
}
.form-actions .note {
  font-size: var(--fs-12);
  color: var(--text-sub);
}

.option-badge {
  position: absolute;
  top: -28px;
  right: 0;
  font-size: var(--fs-12);
  color: var(--text-sub);
  letter-spacing: 0.04em;
}
.option-badge strong { color: var(--text); }

/* =========================================
   Footer
========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-16) 0 var(--s-8);
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-8);
}
.footer-brand { max-width: 340px; }
.footer-brand p {
  margin-top: var(--s-4);
  color: var(--text-sub);
  font-size: var(--fs-14);
  line-height: var(--lh-loose);
}
.footer-col h5 {
  font-size: var(--fs-12);
  color: var(--text-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text);
  font-size: var(--fs-14);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: var(--s-16);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.footer-bottom .copyright {
  font-size: var(--fs-13);
  color: var(--text-sub);
}
.footer-bottom .geo {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--fs-12);
  color: var(--text-sub);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.footer-bottom .geo .pin {
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
}
@media (hover: hover) {
  .footer-socials a:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
    transform: translateY(-2px);
  }
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 240px 1fr; gap: var(--s-10); }
  .works-grid.horizontal { grid-template-columns: repeat(2, 1fr); }
  .works-grid.vertical { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
  .flow-track { grid-template-columns: 1fr; gap: var(--s-5); }
  .flow-track::before { display: none; }
  .flow-step { text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
  .flow-step .node { margin: 0; }
  .flow-step-body { padding-top: 2px; }
  .contact-A { grid-template-columns: 1fr; }
  .contact-B { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ----- Tablet & Mobile (<768px) ----- */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }
  .container, .container-tight { padding: 0 var(--s-4); }
  .section { padding: var(--s-16) 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-cta .btn-sm { display: none; }
  .nav.scrolled { background: rgba(250,250,250,0.88); }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + var(--s-10)) 0 var(--s-12);
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -0.025em;
    margin-top: var(--s-5);
    max-width: 100%;
  }
  .hero h1 .accent::after { height: 6px; bottom: 2px; }
  .hero-sub {
    font-size: 16px;
    line-height: 1.75;
    margin-top: var(--s-5);
  }
  .hero-meta { font-size: 12px; }
  .hero-meta .tag { font-size: 11px; }
  .hero-ctas {
    margin-top: var(--s-8);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-ctas .btn { width: 100%; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
    margin-top: var(--s-10);
    padding-top: var(--s-6);
  }
  .hero-stat .n { font-size: 24px; }
  .hero-stat .l { font-size: 12px; }
  .hero-reel { display: none; }

  /* Marquee */
  .marquee-wrap { padding: var(--s-4) 0; }
  .marquee { gap: var(--s-10); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .avatar { max-width: 160px; margin: 0 auto; }
  .about-body { text-align: left; }
  .about-body h3 { font-size: 24px; }
  .about-body .lead { font-size: 16px; margin-top: var(--s-4); }
  .about-body p.sub { font-size: 14px; }
  .about-meta { grid-template-columns: 1fr; margin-top: var(--s-6); }
  .about-meta .cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--s-4) 0;
  }
  .about-meta .cell:last-child { border-bottom: none; }

  /* Section titles */
  .section-title { font-size: 28px; line-height: 1.2; }
  .section-sub { font-size: 15px; margin-top: var(--s-3); }

  /* Works */
  .works { padding: var(--s-16) 0; }
  .works-header { gap: var(--s-5); }
  .works-grid { gap: 12px; margin-top: var(--s-8); }
  .works-grid.horizontal { grid-template-columns: 1fr; }
  .works-grid.vertical { grid-template-columns: repeat(2, 1fr); }
  .tabs { align-self: flex-start; }
  .tab { padding: 9px 16px; font-size: 13px; }
  .work-body { padding: var(--s-4); }
  .work-title { font-size: 14px; }
  .work-meta { font-size: 12px; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    margin-top: var(--s-8);
  }
  .service-card { padding: var(--s-6); gap: var(--s-4); }
  .service-name { font-size: 18px; }
  .service-price .num { font-size: 32px; }

  /* Flow */
  .flow-track {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--s-8);
    position: relative;
  }
  .flow-track::before { display: none; }
  .flow-step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--s-4);
    align-items: flex-start;
    padding: 0 0 var(--s-6) 0;
    position: relative;
  }
  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      var(--border-strong) 0 4px,
      transparent 4px 8px
    );
  }
  .flow-step .node {
    width: 48px; height: 48px;
    margin: 0;
    flex-shrink: 0;
  }
  .flow-step-body { padding-top: 4px; }
  .flow-step .n { margin-top: 0; font-size: 11px; }
  .flow-step .t { margin-top: 4px; font-size: 16px; }
  .flow-step .d { font-size: 14px; }

  /* FAQ */
  .faq-list { margin-top: var(--s-6); }
  .faq-q { padding: var(--s-5) 0; font-size: 16px; gap: var(--s-3); }
  .faq-a-inner { font-size: 14px; }

  /* Contact */
  .contact-A { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: var(--s-6); }
  .contact-card h3 { font-size: 20px; }
  .contact-card .btn { width: 100%; }
  .contact-B {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding: var(--s-6);
  }
  .contact-B .side h3 { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .field.wide { grid-column: span 1; }
  .form-actions {
    grid-column: span 1;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--s-3);
  }
  .form-actions .btn { width: 100%; }
  .radio-chip { padding: 10px 14px; font-size: 13px; }
  .option-badge {
    position: static;
    display: block;
    margin-bottom: var(--s-4);
    font-size: 11px;
  }
  .contact-toggle button { padding: 8px 14px; font-size: 12px; }

  /* Footer */
  .footer { padding: var(--s-10) 0 var(--s-6); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-bottom {
    margin-top: var(--s-10);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-3);
  }
  .footer-bottom .copyright { font-size: 12px; }
}

/* ----- Mobile Small (<480px) ----- */
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .works-grid.horizontal { grid-template-columns: 1fr; }
  .works-grid.vertical { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Mobile Nav Overlay ----- */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,250,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-head {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-body {
  flex: 1;
  padding: var(--s-8) var(--s-5);
  display: flex;
  flex-direction: column;
}
.mobile-nav-body a {
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--dur-fast) var(--ease);
}
.mobile-nav-body a:hover { color: var(--primary); }
.mobile-nav-body a .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-sub);
}
.mobile-nav-cta {
  margin-top: auto;
  padding: var(--s-5) 0 var(--s-8);
}
.mobile-nav-cta .btn { width: 100%; height: 52px; }
.mobile-nav-foot {
  padding: 0 var(--s-5) var(--s-6);
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}
