/* ============================================
   DESIGN INNOVATIVE — Modern Redesign
   Tokens, typography, layout, components.
============================================ */

:root {
  /* Accent (teal — matches logo) */
  --accent: oklch(0.74 0.11 195);
  --accent-soft: oklch(0.74 0.11 195 / 0.18);
  --accent-glow: oklch(0.74 0.11 195 / 0.35);

  /* Transitions */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --e-inout: cubic-bezier(.65,.02,.3,.98);

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* containers */
  --container: 1360px;

  --font-sans: 'Space Grotesk', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-jp:   'Noto Sans JP', 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== Theme: Dark (default) ===== */
[data-theme="dark"] {
  --bg:        oklch(0.14 0.01 250);
  --bg-soft:   oklch(0.17 0.01 250);
  --bg-elev:   oklch(0.19 0.012 250);
  --fg:        oklch(0.97 0.005 250);
  --fg-muted:  oklch(0.72 0.01 250);
  --fg-dim:    oklch(0.52 0.01 250);
  --line:      oklch(1 0 0 / 0.08);
  --line-2:    oklch(1 0 0 / 0.14);
  --hairline:  oklch(1 0 0 / 0.05);
  --card:      oklch(0.18 0.012 250 / 0.5);
  --scrim:     oklch(0.08 0.01 250 / 0.6);
  color-scheme: dark;
}

/* ===== Theme: Light ===== */
[data-theme="light"] {
  --bg:        oklch(0.985 0.004 250);
  --bg-soft:   oklch(0.96 0.005 250);
  --bg-elev:   oklch(0.99 0.003 250);
  --fg:        oklch(0.14 0.01 250);
  --fg-muted:  oklch(0.38 0.01 250);
  --fg-dim:    oklch(0.58 0.01 250);
  --line:      oklch(0 0 0 / 0.1);
  --line-2:    oklch(0 0 0 / 0.16);
  --hairline:  oklch(0 0 0 / 0.06);
  --card:      oklch(0.99 0.003 250 / 0.6);
  --scrim:     oklch(1 0 0 / 0.6);
  color-scheme: light;
}

/* ===== Accents ===== */
[data-accent="lime"]  { --accent: oklch(0.88 0.18 125); --accent-soft: oklch(0.88 0.18 125 / 0.18); --accent-glow: oklch(0.88 0.18 125 / 0.35); }
[data-accent="amber"] { --accent: oklch(0.78 0.16 70);  --accent-soft: oklch(0.78 0.16 70 / 0.18);  --accent-glow: oklch(0.78 0.16 70 / 0.35); }
[data-accent="white"] { --accent: var(--fg); --accent-soft: oklch(0.9 0.01 250 / 0.18); --accent-glow: oklch(0.9 0.01 250 / 0.3); }

/* ============================================
   RESET
============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0.01em;
  transition: background 0.4s var(--e-out), color 0.4s var(--e-out);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }

/* ============================================
   CURSOR FX
============================================ */
.cursor-spot {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(
    420px circle at var(--mx, -200px) var(--my, -200px),
    var(--accent-soft),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 0.3s;
}
[data-theme="light"] .cursor-spot { mix-blend-mode: multiply; opacity: 0.7; }
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-100px, -100px);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.12s var(--e-out), width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot.hover { width: 44px; height: 44px; background: transparent; border: 1px solid var(--accent); transform: translate(calc(var(--cx,0px) - 22px), calc(var(--cy,0px) - 22px)); }
@media (hover: none) { .cursor-spot, .cursor-dot { display: none; } }
[data-motion="none"] .cursor-spot, [data-motion="none"] .cursor-dot { display: none; }

/* ============================================
   NOISE + GRID
============================================ */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] .noise { opacity: 0.045; mix-blend-mode: multiply; }

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.8;
  max-width: var(--container);
  left: 50%; transform: translateX(-50%);
}

/* ============================================
   HEADER
============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 65%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg);
}
.brand-mark { width: 36px; height: 36px; color: var(--fg); object-fit: contain; flex-shrink: 0; }
img.brand-mark { filter: drop-shadow(0 0 0 transparent); }
[data-theme="dark"] img.brand-mark {
  /* subtle glow lifts the dark-blue parts of the logo on dark bg */
  filter: drop-shadow(0 0 10px oklch(0.74 0.11 195 / 0.35));
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-name { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-dim); letter-spacing: 0.15em; }

.site-nav {
  display: flex; gap: 2px;
  justify-self: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--fg-muted);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-link .nav-index {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-dim);
  transition: color 0.25s;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { background: var(--fg); color: var(--bg); }
.nav-link.active .nav-index { color: var(--bg); opacity: 0.55; }
.nav-link.cta-link { color: var(--accent); }
.nav-link.cta-link.active { background: var(--accent); color: var(--bg); }

.header-meta { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--line-2); }
.theme-track {
  width: 38px; height: 20px;
  border-radius: 999px;
  background: var(--bg-elev);
  position: relative;
  border: 1px solid var(--line);
}
.theme-thumb {
  position: absolute; top: 1px; left: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--fg);
  transition: transform 0.3s var(--e-inout), background 0.3s;
}
[data-theme="light"] .theme-thumb { transform: translateX(18px); background: var(--accent); }
.theme-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--fg-muted); }

.menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.4px; background: var(--fg); transition: transform 0.3s, top 0.3s; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* ===== Drawer (mobile) ===== */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 88px 28px 32px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s var(--e-inout);
  pointer-events: none;
}
.drawer.open { transform: translateY(0); pointer-events: auto; }
.drawer-link {
  display: flex; align-items: baseline; gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--font-sans);
}
.drawer-link em { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); font-style: normal; min-width: 32px; }
.drawer-link span { margin-left: auto; font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.drawer-foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; color: var(--fg-dim); font-size: 11px; }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero > * { position: relative; z-index: 2; }

.hero-topbar {
  position: absolute; top: 92px; left: 5%; right: 5%;
  z-index: 3;
  display: flex; gap: 10px; align-items: center;
  font-size: 10.5px; color: var(--fg-dim); letter-spacing: 0.15em;
}
.hero-topbar .dot { color: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%, 60%, 100% { opacity: 1; } 70%, 90% { opacity: 0.2; } }

.hero-content { max-width: 1240px; width: 100%; margin: auto 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.hero-eyebrow .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); opacity: 0; }
.hero-title em { font-family: var(--font-mono); font-style: italic; font-weight: 400; color: var(--accent); }

.hero-title .line > span.in { animation: riseIn 1s var(--e-out) forwards; }
.hero-title .line:nth-child(2) > span.in { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span.in { animation-delay: 0.24s; }
@keyframes riseIn { to { transform: translateY(0); opacity: 1; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); }
.reveal.in { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.hero-jp {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--fg-muted);
  line-height: 2;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-botbar {
  position: absolute; bottom: 32px; left: 5%; right: 5%;
  z-index: 3;
  display: flex; justify-content: space-between; gap: 32px;
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.15em;
}
.hb-col { display: inline-flex; gap: 10px; align-items: center; }
.hb-key { color: var(--accent); }
.hb-stats { gap: 24px; }
.hb-stats b { color: var(--fg); font-family: var(--font-mono); font-weight: 600; margin-right: 4px; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.15s var(--e-out);
  will-change: transform;
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
[data-accent="white"] .btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 0 0 6px var(--accent-soft); }

.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--xl { padding: 18px 28px; font-size: 15px; }

/* ============================================
   MARQUEE
============================================ */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 36px);
  letter-spacing: -0.01em;
}
.marquee-track {
  display: inline-flex; gap: 36px;
  white-space: nowrap;
  animation: slide 40s linear infinite;
}
.marquee-track .sep { color: var(--accent); }
[data-motion="none"] .marquee-track { animation: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================
   BLOCKS
============================================ */
.block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 5% 60px;
  position: relative;
}

.block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; display: block; margin-bottom: 14px; }
.block-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.block-title em { font-family: var(--font-mono); font-weight: 400; font-style: italic; color: var(--fg-muted); font-size: 0.7em; display: block; margin-top: 8px; letter-spacing: 0; }

.block-foot { display: flex; justify-content: flex-end; padding-top: 40px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  padding: 10px 0;
  color: var(--fg);
  position: relative;
}
.arrow-link .arrow-line { width: 48px; height: 1px; background: var(--fg); display: inline-block; transition: width 0.3s var(--e-out); }
.arrow-link .arrow-head { width: 10px; height: 10px; border-top: 1px solid var(--fg); border-right: 1px solid var(--fg); transform: rotate(45deg); margin-left: -8px; }
.arrow-link:hover .arrow-line { width: 72px; background: var(--accent); }
.arrow-link:hover .arrow-head { border-color: var(--accent); }

/* ============================================
   SERVICES
============================================ */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
  position: relative;
}
.service:hover { background: var(--bg-soft); }
.service header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.service header span { font-size: 11px; color: var(--fg-dim); }
.service h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.service h3 .soon { font-family: var(--font-mono); font-size: 10px; color: var(--accent); border: 1px solid var(--accent); padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.1em; }
.service p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.85; margin-bottom: 24px; }
.service .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service .tags li { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; }

/* ============================================
   BAND (parallax strip)
============================================ */
.band {
  position: relative;
  margin: 120px 0;
  min-height: 360px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.6) contrast(1.05) brightness(0.55);
  will-change: transform;
  transform: scale(1.1);
}
[data-theme="light"] .band-img { filter: grayscale(0.4) contrast(1.05) brightness(0.9); }
.band::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 70%, transparent), color-mix(in oklab, var(--bg) 30%, transparent));
  z-index: 1;
}
.band-inner { position: relative; z-index: 2; text-align: center; color: var(--fg); padding: 60px 20px; }
.band-eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--fg-dim); display: block; margin-bottom: 18px; }
.band-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.band-title em { font-family: var(--font-mono); font-style: italic; font-weight: 400; color: var(--accent); }
.band-copy { margin-top: 22px; font-size: 14px; color: var(--fg-muted); }

/* ============================================
   MVV (index overview)
============================================ */
.mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mvv-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.mvv-card:hover { background: var(--bg-soft); }
.mvv-card header { margin-bottom: 24px; }
.mvv-card header span { display: block; color: var(--fg-dim); font-size: 10.5px; margin-bottom: 6px; }
.mvv-card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.mvv-card .mvv-en { color: var(--fg); font-size: 16px; margin-bottom: 16px; line-height: 1.5; font-family: var(--font-sans); font-weight: 500; }
.mvv-card .mvv-jp { color: var(--fg-muted); font-size: 13px; line-height: 1.9; }
.values-list { display: flex; flex-direction: column; gap: 10px; }
.values-list li { font-size: 14px; color: var(--fg); padding-left: 20px; position: relative; }
.values-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--accent); }

/* ============================================
   SHOWCASE (selected work)
============================================ */
.showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.shot {
  grid-column: span 2;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform 0.5s var(--e-out), border-color 0.3s;
}
.shot--lg { grid-column: span 3; }
.shot:hover { border-color: var(--accent); }
.shot-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-elev); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out), filter 0.4s; filter: grayscale(0.2); }
.shot:hover .shot-img img { transform: scale(1.06); filter: grayscale(0); }
.shot-meta { padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shot-meta span { color: var(--fg-dim); font-size: 10.5px; }
.shot-meta h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ============================================
   STACK
============================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stack-cell {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}
.stack-cell:hover { background: var(--bg-soft); }
.stack-cell .num { position: absolute; top: 10px; left: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); }
.stack-cell .logo-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--e-out);
}
.stack-cell:hover .logo-wrap { transform: translateY(-4px); }
.stack-cell img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(0.6); transition: filter 0.3s; }
.stack-cell:hover img { filter: grayscale(0); }
.stack-cell .label { font-family: var(--font-mono); font-size: 11px; color: var(--fg); letter-spacing: 0.05em; }

/* ============================================
   CTA
============================================ */
.cta {
  max-width: var(--container);
  margin: 120px auto 0;
  padding: 120px 5%;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 800px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
}
.cta-title span { display: block; }
.cta-title em { display: block; font-family: var(--font-mono); font-style: italic; font-weight: 400; color: var(--accent); }
.cta-sub { color: var(--fg-muted); margin-bottom: 36px; }

/* ============================================
   PAGE (non-index) heads
============================================ */
.page-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 5% 50px;
}
.page-head .crumb { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; margin-bottom: 24px; display: block; }
.page-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.page-title em { font-family: var(--font-mono); font-style: italic; font-weight: 400; color: var(--accent); }
.page-sub { color: var(--fg-muted); font-size: 15px; max-width: 540px; }

/* ============================================
   WORK: pricing / flow
============================================ */
.soon-card {
  padding: 60px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
}
.soon-visual { display: flex; flex-direction: column; gap: 10px; }
.soon-line { width: 120px; height: 1px; background: var(--fg-dim); position: relative; overflow: hidden; }
.soon-line::after { content: ''; position: absolute; inset: 0; background: var(--accent); width: 30%; animation: soonSlide 2s var(--e-inout) infinite; }
.soon-line:nth-child(2)::after { animation-delay: 0.3s; }
.soon-line:nth-child(3)::after { animation-delay: 0.6s; }
@keyframes soonSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
.soon-card p { color: var(--fg-muted); font-size: 15px; }

.soon-inline { color: var(--accent); font-style: normal; font-family: var(--font-mono); font-size: 0.55em; }

.price-tables {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.price-table {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  background: var(--bg-soft);
}
.price-table--full { grid-column: 1 / -1; }
.price-table-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price-table-head .mono { color: var(--accent); }
.price-table-head h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 600; }
.price-list { display: flex; flex-direction: column; }
.price-list > div {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.price-list > div:last-child { border-bottom: none; }
.price-list dt { font-size: 14px; color: var(--fg); }
.price-list dd { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--fg); }
.price-list dd small { font-size: 11px; color: var(--fg-dim); margin-left: 4px; font-weight: 400; }
.price-table .note { display: block; margin-top: 16px; color: var(--fg-dim); font-size: 12px; line-height: 1.8; }
.price-note { color: var(--fg-muted); font-size: 14px; line-height: 1.9; }

.flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: flow;
}
.flow-step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.flow-step:hover { background: var(--bg-soft); }
.flow-num { color: var(--accent); font-size: 14px; letter-spacing: 0.15em; display: block; margin-bottom: 18px; }
.flow-step h4 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.flow-step p { font-size: 13px; color: var(--fg-muted); line-height: 1.85; }

/* ============================================
   ABOUT (big mvv)
============================================ */
.about-layout { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.about-side { position: sticky; top: 100px; }
.about-side .mono { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; display: block; margin-bottom: 14px; }
.about-side h3 { font-family: var(--font-sans); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.about-side p { color: var(--fg-muted); font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
.about-facts { display: flex; flex-direction: column; gap: 12px; }
.about-facts li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.about-facts li em { color: var(--accent); font-style: normal; font-size: 11px; }

.about-mvv { display: flex; flex-direction: column; gap: 2px; }
.mvv-big {
  padding: 40px 36px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.mvv-big::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
}
.mvv-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.mvv-head .mono { color: var(--accent); font-size: 12px; }
.mvv-head h2 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.mvv-big .mvv-en { color: var(--fg); font-family: var(--font-sans); font-weight: 500; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.4; margin-bottom: 20px; max-width: 700px; }
.mvv-big .mvv-jp { color: var(--fg-muted); font-size: 15px; line-height: 2; }

.values-big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 10px; }
.values-big li { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.values-big li .mono { color: var(--fg-dim); font-size: 10.5px; }
.values-big li b { font-family: var(--font-sans); font-weight: 600; font-size: 16px; }
.values-big li small { color: var(--fg-muted); font-size: 12px; }

/* ============================================
   PORTFOLIO
============================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg-muted);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.filter-btn .mono { font-size: 10px; letter-spacing: 0.1em; }
.filter-btn small { font-size: 11.5px; }
.filter-btn:hover { color: var(--fg); border-color: var(--line-2); }
.filter-btn.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.portfolio-grid .pf-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.3s, transform 0.5s var(--e-out);
  opacity: 1;
}
.portfolio-grid .pf-item.hidden { display: none; }
.portfolio-grid .pf-item:hover { border-color: var(--accent); }
.pf-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elev); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out), filter 0.4s; filter: grayscale(0.15); }
.pf-item:hover .pf-thumb img { transform: scale(1.05); filter: grayscale(0); }
.pf-cat { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 80%, transparent); color: var(--fg); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.pf-meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-meta .n { color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px; }
.pf-meta .view { color: var(--accent); font-size: 12px; }
.portfolio-note { display: block; margin-top: 40px; color: var(--fg-dim); text-align: center; font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal[aria-hidden="false"] { display: flex; align-items: center; justify-content: center; }
.modal-back { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(12px); }
.modal-card { position: relative; max-width: min(1100px, 92vw); max-height: 88vh; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.modal-card img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--r-sm); }
.modal-meta { display: flex; justify-content: space-between; color: var(--fg-muted); font-size: 12px; padding: 0 4px; }
.modal-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 20px; display: grid; place-items: center; }

/* ============================================
   SKILL
============================================ */
.skill-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.skill-row:last-child { border-bottom: 1px solid var(--line); }
.skill-left .mono { color: var(--accent); font-size: 11px; letter-spacing: 0.2em; display: block; margin-bottom: 18px; }
.skill-left h2 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
.skill-left p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.95; margin-bottom: 20px; max-width: 560px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags li { font-family: var(--font-mono); font-size: 11px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-muted); }

.skill-bars { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.bar { display: grid; grid-template-columns: 120px 1fr 32px; gap: 16px; align-items: center; font-size: 12px; }
.bar .mono { color: var(--fg-muted); font-size: 11px; }
.bar b { display: block; height: 4px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; position: relative; }
.bar b i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent), var(--fg) 25%)); border-radius: 999px; transition: width 1.4s var(--e-out); }
.bar.in b i { width: var(--w); }
.bar > span:last-child { text-align: right; color: var(--fg); }

/* ============================================
   CONTACT
============================================ */
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 100px; }
.contact-main { min-width: 0; }
.contact-panel[hidden] { display: none !important; }
.contact-main[data-state="input"] #contactForm { display: flex; }
.contact-main[data-state="confirm"] #contactConfirm { display: flex; }
.contact-main[data-state="success"] #contactSuccess { display: flex; }
.contact-fact { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact-fact:last-child { border-bottom: none; }
.contact-fact .mono { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; display: block; margin-bottom: 10px; }
.contact-fact h4 { font-family: var(--font-sans); font-size: 22px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.contact-fact p { color: var(--fg-muted); font-size: 13px; line-height: 1.8; }
.contact-social { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.contact-social a { display: inline-flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg); }
.contact-social .arr { color: var(--fg-dim); transition: transform 0.3s, color 0.3s; }
.contact-social a:hover .arr { transform: translate(3px, -3px); color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 28px; padding: 40px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.field label .mono { color: var(--accent); font-size: 11px; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--fg-muted); transition: all 0.2s; }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:hover span { color: var(--fg); border-color: var(--line-2); }

.field-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.submit-hint { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; }

.form-note { color: var(--accent); font-size: 13px; text-align: right; min-height: 1em; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.foot-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 5% 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .brand-mark { width: 56px; height: 56px; flex-shrink: 0; }
.foot-brand h3 { font-family: var(--font-sans); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; margin-bottom: 10px; }
.foot-brand p { color: var(--fg-muted); font-size: 13px; line-height: 1.9; max-width: 320px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-col h4 { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; margin-bottom: 18px; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: var(--fg-muted); transition: color 0.25s; }
.foot-col a:hover { color: var(--fg); }
.foot-cta p { color: var(--fg-muted); font-size: 13px; margin-bottom: 14px; }

.foot-bot {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 5% 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}
.foot-giant {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(42px, 10vw, 148px);
  letter-spacing: -0.05em;
  line-height: 0.82;
  color: color-mix(in srgb, var(--fg) 4%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 12%, transparent);
  opacity: 0.7;
  user-select: none;
  position: static;
  z-index: 0;
  pointer-events: none;
  max-width: 100%;
}
.foot-giant span {
  display: block;
  color: color-mix(in srgb, var(--fg) 10%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 8%, transparent);
  margin-left: 0.22em;
}
[data-theme="light"] .foot-giant {
  color: color-mix(in srgb, var(--fg) 6%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 14%, transparent);
}
[data-theme="light"] .foot-giant span {
  color: color-mix(in srgb, var(--fg) 14%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 10%, transparent);
}
.foot-credit {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  padding-bottom: 6px;
}

/* ============================================
   TWEAKS PANEL
============================================ */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 260px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 300;
  backdrop-filter: blur(14px);
}
.tweaks header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tweaks header .mono { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; }
.tweaks header button { color: var(--fg-dim); font-size: 18px; }
.tweak { margin-bottom: 14px; }
.tweak label { display: block; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.15em; margin-bottom: 6px; font-family: var(--font-mono); text-transform: uppercase; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.seg button { flex: 1; padding: 6px 8px; font-size: 11px; border-radius: 6px; color: var(--fg-muted); transition: all 0.2s; }
.seg button.active { background: var(--fg); color: var(--bg); }

/* ============================================
   PAGE TRANSITIONS
============================================ */
.page[hidden] { display: none; }
.page { animation: pageIn 0.6s var(--e-out); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--e-out), transform 0.9s var(--e-out); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
============================================ */

/* --- Laptop / small desktop --- */
@media (max-width: 1280px) {
  :root { --container: 1180px; }
  .hero-title { font-size: clamp(42px, 8.6vw, 120px); }
  .foot-cols { gap: 24px; }
}

/* --- Tablet (landscape) --- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .services, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv { grid-template-columns: 1fr; }
  .price-tables { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot--lg { grid-column: span 1; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-side, .contact-side { position: static; }
  .skill-row { grid-template-columns: 1fr; gap: 30px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(4, 1fr); }
  .site-header { grid-template-columns: auto 1fr auto; }
  .hero { padding: 120px 6% 90px; }
  .block { padding: 100px 6% 50px; }
}

/* --- Tablet (portrait) --- */
@media (max-width: 860px) {
  .site-header { height: 64px; padding: 0 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 12px; letter-spacing: 0.1em; }
  .brand-sub { font-size: 9px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero { min-height: 100svh; padding: 100px 6% 110px; }
  .hero-topbar { top: 80px; }
  .hero-title { font-size: clamp(40px, 10vw, 84px); margin-bottom: 28px; }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-jp { margin-bottom: 28px; }
  .hero-botbar { bottom: 20px; gap: 16px; }
  .hb-stats { gap: 14px; }
  .marquee { font-size: clamp(18px, 3.6vw, 28px); }
  .page-hero { padding: 140px 6% 40px; }
  .foot-bot { grid-template-columns: 1fr; align-items: flex-start; }
  .foot-giant { font-size: clamp(48px, 14vw, 110px); }
  .foot-credit { align-items: flex-start; text-align: left; padding-bottom: 0; }
}

/* --- Mobile --- */
@media (max-width: 680px) {
  :root { --container: 100%; }
  .site-header { padding: 0 16px; height: 60px; grid-template-columns: auto 1fr auto; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { gap: 2px; }
  .brand-name { font-size: 11px; letter-spacing: 0.08em; }
  .brand-sub { display: none; }
  .theme-toggle { padding: 4px 4px 4px 4px; gap: 0; }
  .theme-label { display: none; }
  .menu-btn { width: 34px; height: 34px; }
  .header-meta { gap: 8px; }

  .drawer { padding: 80px 20px 24px; }
  .drawer-link { font-size: 22px; padding: 16px 0; }
  .drawer-link span { font-size: 11px; }

  .hero { padding: 90px 5% 120px; }
  .hero-topbar { top: 72px; font-size: 9px; gap: 6px; flex-wrap: wrap; }
  .hero-title { font-size: clamp(38px, 12vw, 64px); line-height: 0.95; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 10px; padding: 5px 10px; }
  .hero-jp { font-size: 13px; line-height: 1.9; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: 13px; flex: 1 1 auto; justify-content: center; }
  .hero-botbar { bottom: 16px; font-size: 8.5px; gap: 10px; flex-wrap: wrap; }
  .hb-stats { display: none; }

  .block { padding: 72px 5% 36px; }
  .block-head { grid-template-columns: 1fr; gap: 16px; }
  .services, .stack-grid, .flow, .showcase { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { padding: 22px; gap: 22px; }
  .field input, .field textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
  .field-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .field-actions .btn { justify-content: center; }
  .values-big { grid-template-columns: 1fr; }

  .foot-top { padding: 60px 5% 32px; gap: 40px; }
  .foot-brand .brand-mark { width: 48px; height: 48px; }
  .foot-brand h3 { font-size: 16px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-col h4 { margin-bottom: 12px; }
  .foot-bot { grid-template-columns: 1fr; align-items: flex-start; gap: 20px; padding: 20px 5%; }
  .foot-giant { font-size: 20vw; }
  .foot-credit { align-items: flex-start; }

  .tweaks { right: 12px; bottom: 12px; left: 12px; width: auto; padding: 14px; }
}

/* ============================================================
   Contact — Confirm / Success panels
============================================================ */
.contact-confirm,
.contact-success {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}

.confirm-head .eyebrow { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; display: block; margin-bottom: 10px; }
.confirm-head h3 { font-family: var(--font-sans); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.confirm-head p  { color: var(--fg-muted); font-size: 14px; line-height: 1.8; }

.confirm-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.confirm-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.confirm-list > div:last-child { border-bottom: none; }
.confirm-list dt { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; padding-top: 2px; }
.confirm-list dd { font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; }

.confirm-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-success { align-items: center; text-align: center; padding: 60px 40px; }
.success-icon { font-size: 48px; color: var(--accent); line-height: 1; }
.contact-success h3 { font-family: var(--font-sans); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.contact-success p { color: var(--fg-muted); font-size: 14px; line-height: 2; }

@media (max-width: 600px) {
  .contact-confirm, .contact-success { padding: 22px; gap: 20px; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 4px; }
  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { justify-content: center; }
}

/* --- Extra-small phones --- */
@media (max-width: 380px) {
  .brand-name { font-size: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .hero-title { font-size: 40px; }
  .foot-cols { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* --- Landscape short viewport (phones) --- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 560px; padding-top: 90px; padding-bottom: 70px; }
  .hero-botbar { display: none; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
