/* ==========================================================================
   TechNinja Design — Stylesheet
   ========================================================================== */

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 100;
}

:root {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --surface: #101317;
  --surface-2: #15191e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f3f5;
  --muted: #979da7;
  --dim: #7a808a;
  --accent: #ff3b30;
  --accent-strong: #e2261c;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 59, 48, 0.12);
  --accent-line: rgba(255, 59, 48, 0.38);
  --ok: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-jp: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.i { width: 1em; height: 1em; flex: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 56px;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head > div { max-width: 720px; }
.section-head .lead { margin: 0; max-width: 46ch; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }

.display {
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.text-grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 59, 48, 0.65);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(255, 59, 48, 0.8);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-sm { padding: 11px 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 8, 10, 0.74);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.45));
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.9s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(calc(var(--rot, 0deg) + 180deg)); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  position: relative;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px));
  padding-bottom: clamp(72px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 25%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.glow-1 {
  top: -220px;
  right: -140px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.42), transparent 65%);
}
.glow-2 {
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 65%);
}
.hero-kanji {
  position: absolute;
  right: -3vw;
  bottom: -8vw;
  color: transparent;
  font-family: var(--font-jp);
  font-size: clamp(18rem, 36vw, 34rem);
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(48px, 5vw, 80px);
}

.hero-copy h1 { position: relative; margin: 22px 0 26px; }
.hero-copy .lead { margin-bottom: 0; }

.katana {
  position: absolute;
  left: -6%;
  top: 52%;
  width: 112%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, #fff 50%, var(--accent) 82%, transparent);
  box-shadow: 0 0 18px var(--accent), 0 0 42px rgba(255, 59, 48, 0.6);
  transform-origin: left center;
  transform: rotate(-9deg) scaleX(0);
  opacity: 0;
  pointer-events: none;
  animation: slash 1.2s 0.75s var(--ease) forwards;
}
@keyframes slash {
  0%   { transform: rotate(-9deg) scaleX(0); opacity: 1; }
  55%  { transform: rotate(-9deg) scaleX(1); opacity: 1; }
  100% { transform: rotate(-9deg) scaleX(1) translateX(4%); opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 17px; height: 17px; color: var(--accent); }

/* hero visual */
.hero-visual { position: relative; width: 100%; max-width: 560px; justify-self: end; }

.browser {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #15181d, #0d0f13);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(1400px) rotateY(-11deg) rotateX(5deg);
  transition: transform 0.9s var(--ease);
}
.hero-visual:hover .browser { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2b2f36; }
.browser-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }
.browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.browser-url svg { width: 11px; height: 11px; color: var(--ok); }

.browser-body { display: grid; gap: 18px; padding: 20px; }

.sk-nav { display: flex; align-items: center; gap: 10px; }
.sk-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.sk-link { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.sk-link:first-of-type { margin-left: auto; }
.sk-btn { width: 58px; height: 20px; border-radius: 99px; background: rgba(255, 59, 48, 0.85); }

.sk-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 18px;
  padding-block: 10px;
}
.sk-line {
  display: block;
  height: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.24));
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
}
.sk-line.w-90 { width: 92%; }
.sk-line.w-70 { width: 72%; }
.sk-line.w-45 { width: 48%; height: 6px; opacity: 0.6; margin-top: 16px; }
.sk-line.w-60 { width: 62%; height: 6px; opacity: 0.6; }
.sk-cta { display: block; width: 42%; height: 22px; margin-top: 18px; border-radius: 99px; background: var(--accent); }
@keyframes shimmer { to { background-position: -200% 0; } }

.sk-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 138, 61, 0.45), transparent 60%),
    linear-gradient(135deg, #2b0f0c, #140908);
}
.sk-media svg {
  width: 54%;
  color: var(--accent);
  filter: drop-shadow(0 0 22px rgba(255, 59, 48, 0.7));
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-cards span {
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(16, 19, 23, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.86rem; }
.float-card small { color: var(--muted); font-size: 0.72rem; }
.fc-1 { left: -34px; bottom: 20%; }
.fc-2 { right: -22px; top: 16%; animation-delay: -2s; }
.fc-3 { right: 10%; bottom: -24px; padding: 11px 16px; font-weight: 600; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0);
  animation: ring-fill 1.8s 0.9s var(--ease) both;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface);
}
.ring b { position: relative; color: var(--ok); font-family: var(--font-mono); font-size: 0.72rem; }
@keyframes ring-fill { from { --p: 0; } to { --p: 100; } }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee-track > span { padding-right: 36px; }
.marquee-track .sep { color: var(--accent); font-size: 0.7em; align-self: center; }
.marquee-track .outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (services) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: block;
  padding: 34px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease), background-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 59, 48, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-num {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 59, 48, 0.26);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; font-size: 1.42rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.99rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}
.card-link .arrow { color: var(--accent); transition: transform 0.25s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(5px); }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 38px 26px 8px 0;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-2);
  transform: rotate(45deg);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.step:hover::before { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.step-num { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; }
.step-kanji { color: var(--dim); font-family: var(--font-jp); font-size: 0.95rem; letter-spacing: 0.12em; }
.step h3 { margin-bottom: 10px; font-size: 1.5rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.work-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.work-card {
  padding: 12px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color 0.35s, transform 0.45s var(--ease);
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.work-card.is-hidden { display: none; }

.art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10.5;
  padding: 7% 8%;
  border-radius: 16px;
  background: var(--a-bg);
  overflow: hidden;
  container-type: inline-size;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 7cqw;
  width: 100%;
  height: 100%;
  padding: 5cqw 5.5cqw;
  border-radius: 2.4cqw;
  background: var(--a-surface);
  color: var(--a-fg);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.65);
  transition: transform 0.7s var(--ease);
}
.work-card:hover .mini { transform: translateY(-5px) scale(1.025); }

.mini-nav { display: flex; align-items: center; gap: 3cqw; }
.mini-nav b { width: 12cqw; height: 2.2cqw; border-radius: 1cqw; background: var(--a-fg); }
.mini-nav i { width: 6cqw; height: 1.3cqw; border-radius: 1cqw; background: var(--a-fg); opacity: 0.35; }
.mini-nav i:first-of-type { margin-left: auto; }

.mini-body {
  display: grid;
  flex: 1;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 5cqw;
  min-height: 0;
}
.mini-copy { display: flex; flex-direction: column; justify-content: center; }
.mini-copy strong {
  display: block;
  margin-bottom: 3.5cqw;
  font-family: var(--a-font, var(--font-display));
  font-size: 7.4cqw;
  font-style: var(--a-style, normal);
  font-weight: 800;
  letter-spacing: var(--a-track, -0.02em);
  line-height: 0.95;
  text-transform: var(--a-case, none);
}
.mini-copy i {
  display: block;
  width: 92%;
  height: 1.3cqw;
  margin-bottom: 1.7cqw;
  border-radius: 1cqw;
  background: var(--a-fg);
  opacity: 0.28;
}
.mini-copy i.short { width: 62%; }
.mini-btn { display: block; width: 44%; height: 4.2cqw; margin-top: 2.2cqw; border-radius: 99px; background: var(--a-accent); }
.mini-shape { position: relative; width: 100%; height: 100%; }
.mini-shape svg { width: 100%; height: 100%; }

.art--kumo {
  --a-bg: linear-gradient(135deg, #d29a6c, #6b3c22);
  --a-surface: #f6eee4;
  --a-fg: #3b2416;
  --a-accent: #c2662d;
  --a-font: Georgia, "Times New Roman", serif;
  --a-track: -0.01em;
}
.art--kumo .mini-shape {
  background: radial-gradient(circle closest-side, #3b2416 0 50%, #a8592a 51% 60%, #e8d6c1 61% 95%, transparent 96%);
}

.art--shiro {
  --a-bg: linear-gradient(135deg, #2a3a7a, #0a0f24);
  --a-surface: #0f1532;
  --a-fg: #e6eaff;
  --a-accent: #6c8cff;
  --a-font: var(--font-body);
}
.art--shiro .mini-shape {
  border-bottom: 1px solid rgba(230, 234, 255, 0.22);
  background:
    linear-gradient(#6c8cff, #6c8cff) 0% 100% / 13% 42% no-repeat,
    linear-gradient(#a9b8ff, #a9b8ff) 25% 100% / 13% 68% no-repeat,
    linear-gradient(#6c8cff, #6c8cff) 50% 100% / 13% 52% no-repeat,
    linear-gradient(#a9b8ff, #a9b8ff) 75% 100% / 13% 88% no-repeat,
    linear-gradient(#6c8cff, #6c8cff) 100% 100% / 13% 64% no-repeat;
}

.art--raven {
  --a-bg: linear-gradient(135deg, #e4e4e0, #a9a9a4);
  --a-surface: #ffffff;
  --a-fg: #111111;
  --a-accent: #111111;
  --a-font: Georgia, "Times New Roman", serif;
  --a-case: uppercase;
  --a-track: 0.06em;
}
.art--raven .mini-copy strong { font-size: 5.6cqw; font-weight: 400; }
.art--raven .mini-shape {
  background:
    linear-gradient(#141414, #141414) 100% 100% / 64% 74% no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 20%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 20%);
}

.art--pulse {
  --a-bg: linear-gradient(135deg, #d4ff4f, #4fcf1a);
  --a-surface: #0b0b0b;
  --a-fg: #f4f4f4;
  --a-accent: #c6ff3d;
  --a-style: italic;
  --a-case: uppercase;
}
.art--pulse .mini-shape {
  border-radius: 1.6cqw;
  background: repeating-linear-gradient(-45deg, #c6ff3d 0 9%, transparent 9% 18%);
  transform: skewX(-8deg);
}

.art--nori {
  --a-bg: linear-gradient(135deg, #24493a, #0c1b13);
  --a-surface: #f3eee3;
  --a-fg: #1f3b2d;
  --a-accent: #c8372d;
  --a-font: var(--font-jp);
  --a-track: 0.02em;
}
.art--nori .mini-shape {
  background:
    radial-gradient(circle closest-side at 50% 40%, #c8372d 0 62%, transparent 63%),
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(31, 59, 45, 0.55) 5px 7px) 0 100% / 100% 30% no-repeat;
}

.art--atlas {
  --a-bg: linear-gradient(135deg, #3a8bff, #0b3b8c);
  --a-surface: #f4f8ff;
  --a-fg: #0b2559;
  --a-accent: #2f80ff;
  --a-font: var(--font-body);
}

.work-meta { padding: 22px 12px 18px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.work-tags span {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-tags span.tag-concept { border-color: var(--accent-line); color: var(--accent); }
.work-meta h3 { margin-bottom: 8px; font-size: 1.4rem; }
.work-meta p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: rgba(255, 255, 255, 0.32); color: var(--text); }
.filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ---------- Split / features ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(44px, 6vw, 100px);
}
.split-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.split-sticky .lead { margin-top: 24px; }
.split-sticky .btn { margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease);
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Values (ninja code) ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.06), transparent 50%), var(--surface);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease);
}
.value:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.value::after {
  content: attr(data-kanji);
  position: absolute;
  right: -14px;
  bottom: -42px;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-jp);
  font-size: 10rem;
  line-height: 1;
  pointer-events: none;
}
.value-kanji {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-jp);
  font-size: 3.2rem;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(255, 59, 48, 0.4);
}
.value-romaji { display: block; margin-bottom: 18px; color: var(--dim); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
.value h3 { margin-bottom: 10px; font-size: 1.35rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Chips / stack ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 17px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }

.stack-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stack-group {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stack-group h3 {
  margin-bottom: 18px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stack-group .chip { padding: 8px 13px; font-size: 0.8rem; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.cta-band {
  position: relative;
  padding: clamp(44px, 7vw, 96px);
  border: 1px solid var(--accent-line);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 59, 48, 0.32), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(255, 138, 61, 0.12), transparent 60%),
    linear-gradient(135deg, #160807, #0c0e11 60%);
  overflow: hidden;
  isolation: isolate;
}
.cta-band .lead { margin-top: 22px; }
.cta-band .hero-actions { margin-top: 32px; }
.cta-star {
  position: absolute;
  top: 50%;
  right: -90px;
  z-index: -1;
  width: clamp(280px, 38vw, 460px);
  color: var(--accent);
  opacity: 0.12;
  transform: translateY(-50%);
  animation: spin-centered 40s linear infinite;
}
@keyframes spin-centered {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 8vw, 120px));
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .display { max-width: 15ch; margin: 22px 0 26px; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .chips { margin-top: 36px; }
.page-hero .hero-kanji { font-size: clamp(14rem, 28vw, 26rem); bottom: -10vw; }

/* ---------- Service details ---------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.sd-num { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.12em; }
.sd-num .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.sd-num .card-icon svg { width: 22px; height: 22px; }
.sd-head h2 { margin: 20px 0 18px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.sd-head p { margin: 0; color: var(--muted); }
.sd-body h3 {
  margin-bottom: 20px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; font-size: 0.98rem; }
.checklist svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); flex: none; }
.sd-tools { margin-top: 30px; }
.sd-tools .chip { padding: 7px 13px; font-size: 0.78rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.plan.is-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.015) 45%), var(--surface);
  box-shadow: 0 30px 80px -40px rgba(255, 59, 48, 0.5);
}
.plan-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.7rem; }
.plan-for { margin: 8px 0 24px; color: var(--muted); font-size: 0.97rem; }
.plan-time {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.plan-time span { color: var(--dim); }
.plan ul { display: grid; flex: 1; align-content: start; gap: 13px; margin: 0 0 32px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 11px; font-size: 0.96rem; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); flex: none; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.06rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 24px;
}
.form-card {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
.form-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.form-card > p { margin-bottom: 30px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label,
.chips-field legend { font-size: 0.9rem; font-weight: 700; }
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.18); }
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23979da7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field select option { background: var(--surface); }

.chips-field { margin: 0 0 22px; padding: 0; border: 0; }
.chips-field legend { margin-bottom: 12px; padding: 0; }
.check-chip { position: relative; display: inline-block; }
.check-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-chip span {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.check-chip:hover span { border-color: rgba(255, 255, 255, 0.32); color: var(--text); }
.check-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.check-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.form-note { margin: 0; color: var(--dim); font-size: 0.85rem; }
.form-status { margin: 18px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--ok); }
.form-status.is-error { color: #ff7a70; }

.info-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.info-card + .info-card { margin-top: 18px; }
.info-card h3 { margin-bottom: 14px; font-size: 1.2rem; }
.info-card p { color: var(--muted); font-size: 0.97rem; }
.info-email {
  display: block;
  margin: 6px 0 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}
.info-email:hover { color: var(--accent); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { border-color: rgba(255, 255, 255, 0.32); color: var(--text); }
.copy-btn svg { width: 15px; height: 15px; }

.next-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { position: relative; padding-left: 46px; counter-increment: step; }
.next-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.next-steps strong { display: block; margin-bottom: 2px; font-size: 0.98rem; }
.next-steps span { color: var(--muted); font-size: 0.92rem; }

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 16px 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.nf-code {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(7rem, 24vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.nf-star {
  width: 0.78em;
  height: 0.78em;
  margin-inline: 0.04em;
  color: var(--accent);
  filter: drop-shadow(0 0 30px rgba(255, 59, 48, 0.6));
  animation: spin 3.5s linear infinite;
}
.notfound h1 { margin: 12px 0 16px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.notfound .lead { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: 40px;
}
.footer-brand p { max-width: 36ch; margin: 22px 0 18px; color: var(--muted); font-size: 0.96rem; }
.footer-email {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: color 0.2s, border-color 0.2s;
}
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-col h4 {
  margin-bottom: 18px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted); font-size: 0.96rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col p { margin-bottom: 18px; color: var(--muted); font-size: 0.96rem; }
.footer-col .btn { color: var(--text); }

.footer-wordmark {
  margin-top: 72px;
  color: transparent;
  font-family: var(--font-display);
  font-size: min(9.2vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.85;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .values,
  .stack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; margin-top: 12px; }
  .cards-grid,
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .step { padding-bottom: 32px; }
  .split,
  .service-detail,
  .contact-grid { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px 16px 40px;
    background: rgba(7, 8, 10, 0.98);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a {
    padding: 14px 10px;
    border-radius: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
  }
  .nav-cta { margin: 0; padding-block: 16px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .container { padding-inline: 16px; }
  .cards-grid,
  .work-grid,
  .work-grid--2,
  .features,
  .values,
  .stack-groups,
  .process,
  .footer-grid { grid-template-columns: 1fr; }
  .form-row,
  .checklist { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .browser { transform: none; }
  .hero-visual:hover .browser { transform: none; }
  .fc-1 { left: -6px; bottom: 14%; }
  .fc-2 { right: -6px; top: 10%; }
  .fc-3 { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-band { border-radius: 24px; padding: 40px 22px; }
  .faq summary { padding: 18px 20px; }
  .faq .answer { padding: 0 20px 20px; }
  .info-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .katana { display: none; }
}
