/* ============================================================
   SHIGOTO.ME V3 "Atelier Tech"
   Big-tech atmosphere · luxury minimalism · motion-first
   ============================================================ */

:root {
  /* Surfaces */
  --bg-deep: #07070a;
  --bg-base: #0a0a0d;
  --bg-surface: #111114;
  --bg-elev:   #16161a;

  /* Text */
  --text-pure: #ffffff;
  --text-off:  #e6e6ea;
  --text-muted:#8a8a96;
  --text-dim:  #4a4a55;
  --text-faint:#2a2a32;

  /* Borders */
  --border-hair:  rgba(255,255,255,0.06);
  --border-soft:  rgba(255,255,255,0.10);
  --border-hard:  rgba(255,255,255,0.18);

  /* Accents (overridden by tweaks) */
  --accent:        #e6e6ea;       /* primary text accent */
  --accent-glow:   rgba(230,230,234,0.45);
  --accent-soft:   rgba(230,230,234,0.10);

  /* Brand red (for tweak option / logo nod) */
  --brand-red: #ff2d2d;

  /* Layout */
  --container: 1320px;
  --header-h:  72px;
  --rad-sm: 4px;
  --rad-md: 10px;
  --rad-lg: 18px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-off);
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  font-feature-settings: 'ss01','cv11';
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* Subtle grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; transition: color .25s var(--ease-out); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--text-pure);
}

.eyebrow {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.04em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; padding: 140px 0; }
section.tight { padding: 90px 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .5s var(--ease-out), background .3s, box-shadow .3s, color .3s;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn.primary {
  background: var(--text-pure);
  color: var(--bg-deep);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.btn.primary:hover {
  box-shadow: 0 10px 40px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.btn.ghost {
  background: transparent;
  color: var(--text-pure);
  border: 1px solid var(--border-soft);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-hard);
}
.btn .arrow {
  display: inline-block;
  transition: transform .4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Header ---------- */
header.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
header.site-header.scrolled {
  background: rgba(7,7,10,0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-hair);
}
header.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand-mark {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.brand-mark .glyph {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark .glyph::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 60%, var(--accent) 0%, var(--accent) 35%, transparent 36%);
  opacity: 0.95;
}
.brand-mark .glyph::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px; background: var(--accent);
}
.brand-mark .name { display: flex; flex-direction: column; line-height: 1; }
.brand-mark .name .jp { font-size: 9px; color: var(--text-muted); letter-spacing: 0.18em; }
.brand-mark .name .en { font-size: 13px; color: var(--text-pure); letter-spacing: 0.12em; font-weight: 700; margin-top: 3px; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  padding: 4px;
}
.nav-primary a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all .3s;
  font-weight: 500;
}
.nav-primary a:hover { color: var(--text-pure); }
.nav-primary a.active {
  background: rgba(255,255,255,0.06);
  color: var(--text-pure);
}

.header-right {
  display: flex; align-items: center; gap: 16px;
}
.lang-pill {
  display: flex; align-items: center; gap: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.lang-pill button {
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s;
}
.lang-pill button.active { color: var(--text-pure); }
.lang-pill button:hover { color: var(--text-off); }
.lang-pill .sep { color: var(--text-faint); }

.header-cta {
  font-size: 12px;
  padding: 9px 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-hair) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 75%);
}
.hero-bg .aurora {
  position: absolute;
  width: 80vw; height: 80vw;
  max-width: 1100px; max-height: 1100px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    var(--accent-soft) 60deg,
    transparent 140deg,
    var(--accent-soft) 200deg,
    transparent 280deg,
    var(--accent-soft) 320deg,
    transparent 360deg
  );
  filter: blur(80px);
  opacity: 0.6;
  animation: aurora-spin 24s linear infinite;
}
@keyframes aurora-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-bg .scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(7,7,10,0.95) 100%);
}
.hero-bg .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(7,7,10,0.6) 80%);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-chip .pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: #1ed47a; /* fixed status green */
  position: relative;
}
.meta-chip .pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: #1ed47a;
  opacity: 0.35;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(48px, 8.5vw, 132px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.hero h1 .row { display: block; }
.hero h1 strong {
  font-weight: 500;
  font-style: italic;
  font-family: 'Instrument Serif', 'Cormorant Garamond', serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.05em;
  position: relative;
}
.hero h1 .word-shimmer {
  background: linear-gradient(120deg, #fff 0%, #fff 40%, var(--accent) 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stamp {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-stamp::before, .hero-stamp::after {
  content: ""; width: 40px; height: 1px; background: var(--border-hair);
}

/* ---------- Marquee (clients) ---------- */
.marquee-wrap {
  padding: 56px 0;
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
  background: rgba(255,255,255,0.01);
  position: relative;
  overflow: hidden;
}
.marquee-label {
  position: absolute;
  top: 12px; left: 32px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  align-items: center;
}
.marquee:hover { animation-play-state: paused; }
.marquee .item {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 20px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 16px;
  transition: color .3s;
}
.marquee .item:hover { color: var(--text-off); }
.marquee .item .sep {
  width: 8px; height: 8px;
  border: 1px solid var(--text-faint);
  transform: rotate(45deg);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-deep), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-deep), transparent); }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 200;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.section-head h2 strong {
  font-weight: 500;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--accent);
}
.section-head .lede {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 56ch;
  padding-bottom: 8px;
}
.section-head .head-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head .head-index {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Capabilities grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border-hair);
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.cap {
  background: var(--bg-base);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background .4s;
}
.cap:hover { background: var(--bg-surface); }
.cap.span-4 { grid-column: span 4; }
.cap.span-6 { grid-column: span 6; }
.cap.span-8 { grid-column: span 8; }
.cap.span-12 { grid-column: span 12; }

.cap .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap h3 {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-pure);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cap .sub {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.cap p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 28px;
}
.cap .features {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.cap .features li {
  font-size: 13px;
  color: var(--text-off);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-hair);
}
.cap .features li:first-child { border-top: 0; }
.cap .features .mark {
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.cap .features .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  opacity: 0.35;
}
.cap .features .mark::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.cap .corner {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.cap .badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Stats ---------- */
.stats-band {
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hair);
}
.stat {
  background: var(--bg-deep);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat .value {
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-pure);
  font-variant-numeric: tabular-nums;
}
.stat .value .unit {
  font-size: 0.5em;
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 4px;
}
.stat .delta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ---------- Product preview window ---------- */
.product-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.product-copy h3 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.product-copy h3 strong {
  font-weight: 500; font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--accent);
}
.product-copy p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.product-copy .pillrow {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.product-copy .pillrow span {
  padding: 6px 12px;
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-off);
}
.product-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hair);
}
.product-tabs button {
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all .25s;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.product-tabs button:hover { color: var(--text-off); }
.product-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.window {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.8),
    0 30px 60px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}
.window::before {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(180deg, var(--accent-soft), transparent 40%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hair);
  background: rgba(255,255,255,0.02);
}
.win-bar .dots {
  display: flex; gap: 6px;
}
.win-bar .dots span {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--text-faint);
}
.win-bar .addr {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}
.win-body {
  padding: 28px 32px;
  min-height: 460px;
  display: grid;
  gap: 20px;
}

/* Window panels */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  padding: 16px;
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-md);
  background: rgba(255,255,255,0.015);
}
.kpi .k { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.kpi .v { font-size: 28px; font-weight: 300; color: var(--text-pure); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: var(--accent); margin-top: 4px; }

.chart {
  height: 180px;
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-md);
  background: rgba(255,255,255,0.015);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.chart .ch-head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.chart svg { flex: 1; width: 100%; }
.chart .line { stroke: var(--accent); stroke-width: 1.5; fill: none; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.chart .area { fill: var(--accent); opacity: 0.08; }
.chart .axis { stroke: var(--border-hair); stroke-width: 1; }
.chart .dot { fill: var(--accent); }

/* Candidate list */
.candlist {
  display: grid; gap: 8px;
}
.cand {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-md);
  background: rgba(255,255,255,0.015);
  transition: background .25s, border-color .25s;
}
.cand:hover { background: rgba(255,255,255,0.04); border-color: var(--border-soft); }
.cand .avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,0.1));
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--bg-deep);
  font-weight: 700;
}
.cand .meta { display: flex; flex-direction: column; }
.cand .name { font-size: 13px; color: var(--text-pure); }
.cand .role { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.cand .match {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.cand .status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-off);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Code panel */
.code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 16px 18px;
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-md);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}
.code .ln { color: var(--text-faint); margin-right: 16px; }
.code .kw { color: var(--accent); }
.code .str { color: #b8c7ff; }
.code .com { color: var(--text-dim); }
.code .fn { color: #ffd58c; }
.code .pn { color: var(--text-off); }

/* ---------- Process timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 24px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), var(--border-soft), transparent);
}
.step {
  padding-top: 60px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: 18px; left: 0;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  background: var(--bg-deep);
  border-radius: 999px;
}
.step::after {
  content: "";
  position: absolute;
  top: 22px; left: 4px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.step .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}
.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-lg);
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  transition: border-color .4s, transform .5s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testi:hover {
  border-color: var(--border-soft);
  transform: translateY(-4px);
}
.testi .quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 80px;
  line-height: 0.4;
  color: var(--accent);
  height: 30px;
}
.testi blockquote {
  font-size: 16px;
  color: var(--text-off);
  line-height: 1.6;
  flex: 1;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hair);
}
.testi .who .a {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--text-faint), var(--text-dim));
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-pure);
}
.testi .who .info { line-height: 1.3; }
.testi .who .nm { font-size: 13px; color: var(--text-pure); }
.testi .who .co { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; }

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--border-hair);
  background: radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0%, transparent 70%), var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-hair) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 60%);
  opacity: 0.6;
}
.cta .container { position: relative; text-align: center; }
.cta .label { color: var(--accent); margin-bottom: 32px; }
.cta h2 {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.cta h2 strong {
  font-weight: 500;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--accent);
}
.cta .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer.site-foot {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-hair);
  background: var(--bg-base);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.foot-grid h5 {
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-weight: 500;
}
.foot-grid a {
  display: block;
  font-size: 13px;
  color: var(--text-off);
  padding: 6px 0;
}
.foot-grid a:hover { color: var(--accent); }
.foot-desc { color: var(--text-muted); font-size: 13px; max-width: 32ch; margin-top: 16px; }
.foot-bot {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-hair);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-bot .links { display: flex; gap: 24px; }

/* ---------- Reveal animation ----------
   Default state is VISIBLE so the page can never be stuck blank
   (some sandboxed iframes freeze the document timeline, which
   would otherwise leave entrance animations stuck at from-state).
   The .pre-reveal class is added by JS before mount to hide
   elements that should animate in then .in is added when in
   view, and removed when the safety net fires. */
.reveal { opacity: 1; transform: none; }
.pre-reveal.reveal { opacity: 0; transform: translateY(24px); }
.pre-reveal.reveal.in {
  opacity: 1;
  transform: translateY(0);
  animation: revealIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, border-color .2s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 56px; height: 56px; background: rgba(255,255,255,0.05); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .product-shell { grid-template-columns: 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cap.span-4, .cap.span-6, .cap.span-8 { grid-column: span 12; }
}

@media (max-width: 720px) {
  section { padding: 90px 0; }
  .container { padding: 0 20px; }
  .nav-primary { display: none; }
  .header-cta { display: none; }
  .stats { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Additions Craft section, Modal, Activity feed, Cloud KPIs
============================================================ */

/* Kanji chip in hero */
.meta-chip.kanji {
  color: var(--text-off);
  border-color: var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.meta-chip.kanji::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  margin-right: 2px;
}

/* Activity feed */
.activity {
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-md);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
}
.act-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-hair);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.act-head .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.act-head .live-dot .pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  position: relative;
}
.act-head .live-dot .pulse::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.35;
  animation: pulse 1.8s ease-out infinite;
}
.act-list {
  display: grid;
}
.act-row {
  display: grid;
  grid-template-columns: 70px 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--border-hair);
  font-size: 12.5px;
  animation: actFade .6s var(--ease-out) backwards;
}
.act-row:first-child { border-top: 0; }
@keyframes actFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.act-time { color: var(--text-dim); font-size: 11px; }
.act-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  color: var(--text-off);
  justify-self: start;
}
.act-tag[data-kind="MATCH"], .act-tag[data-kind="マッチ"] {
  border-color: var(--accent);
  color: var(--accent);
}
.act-tag[data-kind="HIRE"], .act-tag[data-kind="採用"], .act-tag[data-kind="CONTR."] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.act-text {
  color: var(--text-off);
  font-size: 13px;
  line-height: 1.4;
}

/* Cloud KPIs row 2 */
.cloud-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ============================================================
   Craft section こだわり
============================================================ */
.craft {
  position: relative;
  overflow: hidden;
  padding: 180px 0;
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 50%, var(--bg-deep) 100%);
}
.craft-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-hair) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.craft-shell {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  position: relative;
}
.craft-lead {
  position: sticky;
  top: 120px;
  align-self: start;
}
.kanji-wall {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(180deg, var(--text-pure) 0%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 24px 0 24px;
  position: relative;
}
.kanji-wall::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8%;
  width: 60%; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.craft-lead h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  max-width: 18ch;
}
.craft-lead h2 strong {
  font-weight: 500;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--accent);
}
.craft-body {
  padding-top: 60px;
}
.craft-quote {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-pure);
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 1px solid var(--accent);
  max-width: 56ch;
}
.craft-text {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 20px;
}
.craft-pillars {
  margin-top: 64px;
  display: grid;
  gap: 1px;
  background: var(--border-hair);
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.pillar {
  background: var(--bg-base);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.pillar-num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}
.pillar h4 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-pure);
}
.pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 68ch;
  margin: 0;
}

/* ============================================================
   Contact Modal
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,7,10,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: overlayFade .3s ease;
}
@keyframes overlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--rad-lg);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  position: relative;
  box-shadow:
    0 60px 120px -20px rgba(0,0,0,0.8),
    0 30px 80px -20px rgba(0,0,0,0.6);
  animation: modalRise .5s var(--ease-out);
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-side {
  padding: 48px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 50%), var(--bg-base);
  border-right: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.modal-side::after {
  content: "こだわり";
  position: absolute;
  bottom: -20px; right: -10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 120px;
  font-weight: 300;
  color: var(--text-pure);
  opacity: 0.025;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.modal-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
  filter: brightness(0) invert(1);
}
.modal-symbol {
  width: 36px; height: 36px;
  position: relative;
  margin-bottom: 24px;
}
.modal-symbol::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 60%, var(--accent) 0%, var(--accent) 35%, transparent 36%);
}
.modal-symbol::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 10px;
  height: 1px; background: var(--accent);
}
.modal-side h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}
.modal-lede {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-meta {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hair);
  position: relative;
  z-index: 1;
}
.modal-meta > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 16px;
}
.modal-meta .mono {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}
.modal-meta > div > span:last-child {
  font-size: 13px;
  color: var(--text-off);
}
.modal-form-side {
  padding: 48px 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color .25s, background .25s;
}
.modal-close:hover {
  color: var(--text-pure);
  background: rgba(255,255,255,0.06);
}
.modal-form {
  display: grid;
  gap: 20px;
}
.modal-form label {
  display: grid;
  gap: 8px;
}
.modal-form label .mono {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.modal-form input,
.modal-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-pure);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 0;
  transition: border-color .25s;
  resize: vertical;
  outline: none;
}
.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: var(--text-dim);
}
.modal-form input:focus,
.modal-form textarea:focus {
  border-bottom-color: var(--accent);
}
.modal-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.modal-fine {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: -4px;
}
.modal-sent {
  text-align: center;
  padding: 60px 20px;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.modal-check {
  width: 64px; height: 64px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 8px;
  box-shadow: 0 0 30px var(--accent-glow);
}
.modal-sent h4 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.modal-sent p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 32ch;
}
.modal-sent .btn { margin-top: 12px; }

/* Honeypot (visually hidden, focusable=no) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Inline error inside modals */
.modal-error {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 90, 90, 0.4);
  background: rgba(255, 90, 90, 0.08);
  color: #ffb4b4;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.modal-wide { max-width: 1080px; }

/* ============================================================
   Booking Modal
============================================================ */
.bk-side {
  min-height: 540px;
}
.bk-meta {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 12px;
}
.bk-meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-off);
}
.bk-meta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--border-hair);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex: 0 0 28px;
}
.bk-selected {
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  position: relative;
  z-index: 1;
}
.bk-selected .mono {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.bk-selected-when {
  color: var(--text-pure);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bk-main {
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

/* Stepper */
.bk-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-right: 36px; /* room for close button */
}
.bk-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  transition: color .25s;
  white-space: nowrap;
}
.bk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}
.bk-step-name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bk-step.active { color: var(--text-pure); }
.bk-step.active .bk-step-num {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.bk-step.done .bk-step-num {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.bk-step-sep {
  flex: 1;
  height: 1px;
  background: var(--border-hair);
  min-width: 14px;
}

/* Panels */
.bk-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Calendar header */
.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.bk-cal-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-pure);
  letter-spacing: -0.01em;
  text-transform: capitalize;
}
.bk-cal-nav {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  color: var(--text-off);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s;
  line-height: 1;
}
.bk-cal-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Calendar grid */
.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bk-cal-dow {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hair);
}
.bk-cal-dow span {
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 0;
}
.bk-cell {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all .18s;
  padding: 0;
  display: grid;
  place-items: center;
}
.bk-cell.empty {
  background: transparent;
  border: 0;
  cursor: default;
  pointer-events: none;
}
.bk-cell.disabled,
.bk-cell.past {
  color: var(--text-dim);
  opacity: 0.4;
  cursor: not-allowed;
}
.bk-cell.free {
  color: var(--text-pure);
  border-color: var(--border-soft);
  background: rgba(255,255,255,0.02);
}
.bk-cell.free::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.bk-cell.free:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.bk-cell.free:hover::after {
  background: var(--bg-deep);
  box-shadow: none;
}
.bk-cal-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.bk-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.bk-legend {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bk-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.bk-dot-free { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.bk-dot-none { background: var(--text-dim); }

/* Slots */
.bk-slots-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.bk-slots-title {
  font-size: 15px;
  color: var(--text-pure);
  text-align: center;
}
.bk-back {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  justify-self: start;
  transition: color .25s;
}
.bk-back:hover { color: var(--accent); }
.bk-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}
.bk-slot-btn {
  padding: 14px 10px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-pure);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .18s;
}
.bk-slot-btn:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}

/* Details form */
.bk-form {
  display: grid;
  gap: 18px;
}
.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Done step */
.bk-done {
  text-align: center;
  padding: 32px 20px 12px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.bk-done .modal-check {
  margin-bottom: 6px;
}
.bk-done h4 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.bk-done p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 42ch;
  margin: 0;
}
.bk-done-when {
  font-size: 16px !important;
  color: var(--text-pure) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 100% !important;
}
.bk-done-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .craft-shell { grid-template-columns: 1fr; gap: 40px; }
  .craft-lead { position: static; }
  .craft-body { padding-top: 0; }
  .modal { grid-template-columns: 1fr; max-width: 540px; }
  .modal-wide { max-width: 580px; }
  .modal-side { padding: 32px 28px; border-right: 0; border-bottom: 1px solid var(--border-hair); }
  .modal-form-side { padding: 32px 28px; }
  .bk-side, .bk-main { min-height: 0; }
  .bk-selected { margin-top: 18px; }
  .bk-stepper { padding-right: 0; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
  .bk-stepper::-webkit-scrollbar { display: none; }
  .bk-step-name { display: none; }
  .bk-row { grid-template-columns: 1fr; gap: 14px; }
  .cloud-row { grid-template-columns: 1fr 1fr; }
  .act-row { grid-template-columns: 60px 1fr; }
  .act-row .act-tag { display: none; }
}

/* ============================================================
   Team section
============================================================ */
.team-sec {
  position: relative;
  border-top: 1px solid var(--border-hair);
}
.team-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
.team-quote {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
}
.team-quote .quote-mark.serif {
  position: absolute;
  top: -28px;
  left: 16px;
  font-family: 'Instrument Serif', serif;
  font-size: 96px;
  line-height: 0.5;
  color: var(--accent);
  font-style: italic;
}
.team-quote p {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-pure);
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.team-prose {
  display: grid;
  gap: 24px;
}
.team-prose p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0;
}
.team-creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hair);
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.cred {
  background: var(--bg-base);
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  transition: background .3s;
}
.cred:hover { background: var(--bg-surface); }
.cred .mono {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  padding-top: 8px;
}
.cred-v {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.cred-l {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .team-body { grid-template-columns: 1fr; gap: 40px; }
  .team-creds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .team-creds { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (privacy, terms, commercial)
   ============================================================ */
.legal-body {
  background: var(--bg-deep);
  min-height: 100vh;
}
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(7, 7, 10, 0.8);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.legal-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.legal-header-right .lang-pill a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s;
}
.legal-header-right .lang-pill a.active { color: var(--text-pure); }
.legal-header-right .lang-pill a:hover { color: var(--text-off); }
.legal-back-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
  transition: color .2s;
  letter-spacing: 0.04em;
}
.legal-back-link:hover { color: var(--text-pure); }

.legal-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border-hair);
  background: radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0%, transparent 60%);
}
.legal-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.legal-hero h1 strong { font-weight: 600; }
.legal-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
  margin-top: 20px;
  line-height: 1.5;
}

.legal-content { padding: 80px 0 120px; }
.legal-narrow { max-width: 820px; }

.legal-updated {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 36px;
}

.legal-note {
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-off);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.legal-prose h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-pure);
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-off);
  margin: 0;
}
.legal-prose p + p { margin-top: 16px; }

.legal-dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--border-hair);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.legal-dl dt,
.legal-dl dd {
  padding: 20px 24px;
  border-top: 1px solid var(--border-hair);
  background: var(--bg-base);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.legal-dl dt:first-of-type,
.legal-dl dt:first-of-type + dd {
  border-top: 0;
}
.legal-dl dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent), var(--bg-base);
  border-right: 1px solid var(--border-hair);
}
.legal-dl dd {
  color: var(--text-pure);
}

.legal-foot {
  border-top: 1px solid var(--border-hair);
  padding: 32px 0;
  background: var(--bg-base);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.legal-foot .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-foot .links {
  display: flex;
  gap: 24px;
}
.legal-foot .links a {
  color: var(--text-muted);
  transition: color .2s;
}
.legal-foot .links a:hover,
.legal-foot .links a.active {
  color: var(--text-pure);
}

@media (max-width: 720px) {
  .legal-header-right .legal-back-link { display: none; }
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dt {
    border-right: 0;
    padding-bottom: 4px;
  }
  .legal-dl dd {
    border-top: 0;
    padding-top: 4px;
    padding-bottom: 20px;
  }
  .legal-dl dt:first-of-type + dd { padding-top: 4px; }
  .legal-foot .container { flex-direction: column; align-items: flex-start; }
}
