/* Sakure Softworks website v2: design tokens (W-06, 2026-10-24)
   Light base, dark hero and band sections. All text pairs meet WCAG 2.2 AA;
   the measured ratios are listed in design/README.md.
   Self-hosted font only (Inter, OFL-1.1, see LICENSES.md). No external requests. */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Raw palette ---------- */
  /* Sakure blue: #1f6feb refined into a calm scale */
  --blue-50:  #eef4ff;
  --blue-100: #e8f0ff;
  --blue-200: #c9d8ff;
  --blue-300: #8db4ff;
  --blue-400: #5a93f7;
  --blue-500: #1f6feb;   /* brand reference colour (focus ring, gradients, icons) */
  --blue-600: #1a62d6;   /* primary button fill: white text 5.58:1 */
  --blue-700: #1a5ac8;   /* links and blue text on light: 6.29:1 on white */
  --blue-800: #1553b8;   /* primary hover: white text 7.09:1 */
  --blue-900: #17244a;

  /* Ink (cool neutrals) */
  --ink-950: #070b16;    /* dark hero background */
  --ink-900: #0b1220;    /* headings on light */
  --ink-850: #0e1527;    /* dark raised surface */
  --ink-800: #141d33;    /* dark card */
  --ink-700: #23304d;    /* dark border */
  --ink-600: #3d4a60;
  --ink-500: #56627a;    /* muted text on light: 6.13:1 on white */
  --ink-400: #8a96ab;    /* decorative only, never text */
  --ink-300: #c6cedb;
  --ink-200: #e3e8f0;    /* hairline border on light */
  --ink-150: #eef1f6;
  --ink-100: #f6f8fb;    /* subtle section background */
  --ink-50:  #ffffff;
  --slate-700: #334155;  /* body text on light: 10.35:1 */
  --mist-100: #eef2fa;   /* text on dark: 17.52:1 on ink-950 */
  --mist-300: #a3b0c8;   /* muted text on dark: 8.99:1 */

  /* Accents (sparingly) */
  --amber-400: #f5b544;  /* highlights on dark only: 10.83:1 */
  --amber-700: #8a5300;  /* amber text on amber-50: 5.90:1 */
  --amber-50:  #fff6e5;
  --green-700: #0f7a55;  /* success text on green-50: 4.79:1 */
  --green-50:  #e8f6ef;
  --teal-400:  #34d3c0;  /* illustration accent only */
  --violet-400:#8b7cf6;  /* illustration accent only */

  /* ---------- Semantic tokens (light, default) ---------- */
  --bg:            var(--ink-50);
  --bg-subtle:     var(--ink-100);
  --bg-tint:       var(--blue-50);
  --surface:       var(--ink-50);
  --surface-raised:var(--ink-50);
  --fg:            var(--ink-900);
  --fg-body:       var(--slate-700);
  --fg-muted:      var(--ink-500);
  --fg-link:       var(--blue-700);
  --fg-accent:     var(--blue-700);
  --border:        var(--ink-200);
  --border-strong: var(--ink-300);
  --primary:       var(--blue-600);
  --primary-hover: var(--blue-800);
  --on-primary:    #ffffff;
  --focus:         var(--blue-500);
  --badge-bg:      var(--blue-100);
  --badge-fg:      var(--blue-700);
  --icon-bg:       var(--blue-50);
  --icon-fg:       var(--blue-600);

  /* ---------- Type ---------- */
  --font-sans: "Inter", "Noto Sans", "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Ubuntu Sans Mono", Menlo, Consolas, monospace;
  --font-features: "cv11", "ss01", "ss03";   /* Inter: single-storey a, open digits, round quotes */

  /* Fluid scale, ~1.25 on phone growing to ~1.333 on desktop */
  --text-xs:   0.8125rem;                                   /* 13px: captions, eyebrows */
  --text-sm:   0.875rem;                                    /* 14px: meta, badges */
  --text-base: 1rem;                                        /* 16px: body */
  --text-md:   1.125rem;                                    /* 18px: lead small */
  --text-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);/* 18-21px: lead */
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);      /* 20-24px: card titles */
  --text-2xl:  clamp(1.5rem, 1.25rem + 1vw, 2rem);          /* 24-32px: h3 */
  --text-3xl:  clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);   /* 30-44px: h2 */
  --text-4xl:  clamp(2.375rem, 1.6rem + 3.3vw, 4.25rem);    /* 38-68px: h1 / hero */

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-body:  1.6;
  --tracking-tight: -0.025em;
  --tracking-snug:  -0.015em;
  --tracking-wide:  0.08em;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    680;

  --measure: 62ch;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */
  --space-20: 5rem;    /* 80 */
  --space-24: 6rem;    /* 96 */
  --space-32: 8rem;    /* 128 */
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter:    clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --container: 1200px;
  --container-wide: 1320px;

  /* ---------- Radius ---------- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ---------- Shadow (cool, layered, soft) ---------- */
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05), 0 2px 6px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 18, 32, 0.04), 0 8px 24px -6px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 4px 8px rgba(11, 18, 32, 0.04), 0 24px 48px -12px rgba(11, 18, 32, 0.18);
  --shadow-xl: 0 8px 16px rgba(11, 18, 32, 0.06), 0 40px 80px -20px rgba(11, 18, 32, 0.28);
  --shadow-glow: 0 0 0 1px rgba(141, 180, 255, 0.18), 0 20px 60px -10px rgba(31, 111, 235, 0.45);
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--focus);

  /* ---------- Motion ---------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 400ms;
  --dur-reveal: 700ms;
  --lift: translateY(-2px);

  /* ---------- Gradients ---------- */
  --grad-brand: linear-gradient(135deg, #1f6feb 0%, #5a93f7 45%, #8b7cf6 100%);
  --grad-hero:  radial-gradient(60% 60% at 70% 20%, rgba(31, 111, 235, 0.35) 0%, rgba(31, 111, 235, 0) 70%),
                radial-gradient(40% 50% at 15% 85%, rgba(139, 124, 246, 0.20) 0%, rgba(139, 124, 246, 0) 70%),
                var(--ink-950);
  --grad-text:  linear-gradient(90deg, #ffffff 0%, #c9d8ff 60%, #8db4ff 100%);
  --grad-tint:  linear-gradient(180deg, var(--ink-100) 0%, var(--ink-50) 100%);

  /* ---------- Layers ---------- */
  --z-nav: 50;
  --z-menu: 60;
}

/* Dark surfaces: hero, CTA band, footer. Swap the semantic tokens only. */
.theme-dark {
  --bg:            var(--ink-950);
  --bg-subtle:     var(--ink-850);
  --bg-tint:       var(--ink-850);
  --surface:       var(--ink-850);
  --surface-raised:var(--ink-800);
  --fg:            var(--mist-100);
  --fg-body:       var(--mist-100);
  --fg-muted:      var(--mist-300);
  --fg-link:       var(--blue-300);
  --fg-accent:     var(--blue-300);
  --border:        rgba(163, 176, 200, 0.16);
  --border-strong: rgba(163, 176, 200, 0.30);
  --focus:         var(--blue-300);
  --badge-bg:      var(--blue-900);
  --badge-fg:      var(--blue-200);
  --icon-bg:       rgba(141, 180, 255, 0.10);
  --icon-fg:       var(--blue-300);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-reveal: 0ms;
    --lift: none;
  }
}

/* Sakure Softworks website v2: components (W-06, 2026-10-24)
   Requires tokens.css first. No JS needed; the mobile menu uses <details>.
   Class naming: block, block__part, block--variant. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: var(--font-features);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--fg-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }
::selection { background: var(--blue-200); color: var(--ink-900); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--primary); color: var(--on-primary); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }

.theme-dark { background: var(--bg); color: var(--fg-body); }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  background: var(--icon-bg); color: var(--icon-fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icon-fg) 14%, transparent);
}
.icon-tile .icon { width: 1.375rem; height: 1.375rem; }
.icon-tile--grad { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--subtle { background: var(--bg-subtle); }
.section--tint { background: var(--grad-tint); }
.section--bordered { border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: var(--space-12); }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--fg); margin: 0; font-weight: var(--weight-semibold); text-wrap: balance; }
.display, h1, .h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: var(--weight-bold); }
h2, .h2 { font-size: var(--text-3xl); line-height: 1.12; letter-spacing: var(--tracking-tight); }
h3, .h3 { font-size: var(--text-xl); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); }
h4, .h4 { font-size: var(--text-md); line-height: var(--leading-snug); }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--fg-muted); max-width: var(--measure); }
.muted { color: var(--fg-muted); }
.small { font-size: var(--text-sm); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-accent);
  margin-bottom: var(--space-4);
}
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head .lead { margin-top: var(--space-4); }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0.625rem 1.125rem;
  font: inherit; font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-border); border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { transform: var(--lift); text-decoration: none; }
.btn:active { transform: none; }
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(26, 98, 214, .6); }
.btn--primary:hover { --btn-bg: var(--primary-hover); }
.btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--fg); --btn-border: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { --btn-border: var(--fg-muted); }
.theme-dark .btn--secondary { --btn-bg: rgba(255,255,255,.06); --btn-border: rgba(238,242,250,.22); }
.theme-dark .btn--secondary:hover { --btn-bg: rgba(255,255,255,.10); --btn-border: rgba(238,242,250,.4); }
.btn--ghost { --btn-fg: var(--fg-link); padding-inline: var(--space-2); }
.btn--ghost:hover { --btn-bg: var(--bg-tint); }
.btn--light { --btn-bg: #ffffff; --btn-fg: var(--ink-900); }
.btn--light:hover { --btn-bg: var(--blue-50); }
.btn--sm { min-height: 36px; padding: 0.375rem 0.875rem; font-size: var(--text-sm); }
.btn--lg { min-height: 52px; padding: 0.875rem 1.5rem; font-size: var(--text-md); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: var(--weight-semibold); color: var(--fg-link); text-decoration: none;
}
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Badges and chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.1875rem 0.625rem; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.5;
  background: var(--badge-bg); color: var(--badge-fg); white-space: nowrap;
}
.badge--neutral { background: var(--ink-150); color: var(--ink-600); }
.badge--success { background: var(--green-50); color: var(--green-700); }
.badge--amber { background: var(--amber-50); color: var(--amber-700); }
.badge--outline { background: transparent; color: var(--fg-muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.theme-dark .badge--neutral { background: rgba(238,242,250,.08); color: var(--mist-100); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.3125rem 0.375rem 0.3125rem 0.875rem; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--border-strong); text-decoration: none;
  backdrop-filter: blur(6px);
}
.chip .badge { font-size: 0.6875rem; }

/* ---------- Header and nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.theme-dark { background: rgba(7, 11, 22, 0.88); border-bottom-color: rgba(163, 176, 200, 0.12); }
.hero.hero--under-nav { margin-top: -4rem; padding-top: calc(4rem + clamp(3.5rem, 2rem + 6vw, 7.5rem)); }
.nav { display: flex; align-items: center; gap: var(--space-6); height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--fg); text-decoration: none; font-weight: var(--weight-bold); font-size: 1.0625rem; letter-spacing: var(--tracking-snug); }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1rem; font-weight: 750; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, var(--shadow-sm); }
.nav__links { display: none; align-items: center; gap: var(--space-1); margin: 0 0 0 var(--space-4); padding: 0; list-style: none; }
.nav__links a { display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--fg-muted); font-size: 0.9375rem; font-weight: var(--weight-medium); text-decoration: none; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); background: var(--bg-subtle); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.nav__cta { display: none; }

/* Mobile menu: <details class="nav-menu"> with a <summary> button. No JS. */
.nav-menu { position: static; }
.nav-menu > summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); color: var(--fg); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary .icon { width: 1.375rem; height: 1.375rem; }
.nav-menu > summary .icon--close, .nav-menu[open] > summary .icon--menu { display: none; }
.nav-menu[open] > summary .icon--close { display: block; }
.nav-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu);
  max-height: calc(100dvh - 4rem); overflow-y: auto;
  padding: var(--space-4) var(--gutter) var(--space-8);
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: menu-in var(--dur-slow) var(--ease-out);
}
.nav-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.nav-menu__panel li + li { border-top: 1px solid var(--border); }
.nav-menu__panel a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 0.9375rem 0; color: var(--fg); font-size: var(--text-md); font-weight: var(--weight-medium); text-decoration: none; }
.nav-menu__group { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-muted); padding: var(--space-4) 0 var(--space-1); }
.nav-menu__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav-menu { display: none; }
}

/* ---------- Hero (dark) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--grad-hero); padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(4rem, 2rem + 7vw, 8rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: url("illustrations/hero-grid.svg") center top / cover no-repeat; opacity: .9; pointer-events: none; }
@media (min-width: 1024px) { .hero__bg { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 55%); } }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy { max-width: 40rem; }
.hero__copy .chip { margin-bottom: var(--space-6); }
.hero__title { margin-bottom: var(--space-6); }
.hero__lead { font-size: var(--text-lg); color: var(--fg-muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__note { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); font-size: var(--text-sm); color: var(--fg-muted); }
.hero__note span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__note .icon { width: 1rem; height: 1rem; color: var(--blue-300); }
.hero__visual { position: relative; min-height: 22rem; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-16); }
  .hero__visual { min-height: 32rem; }
}

/* ---------- Device frames and product mockups (own designs, demo data) ---------- */
.device-browser {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: var(--ink-900);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(11,18,32,.08);
}
.theme-dark .device-browser { box-shadow: var(--shadow-glow), var(--shadow-lg); }
.device-browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--ink-150); border-bottom: 1px solid var(--ink-200); }
.device-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.device-browser__url { margin-left: 10px; flex: 1; max-width: 16rem; height: 20px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--ink-500); display: flex; align-items: center; padding: 0 8px; }
.device-phone {
  width: 15rem; aspect-ratio: 9 / 19; border-radius: 2.25rem; padding: 0.5rem;
  background: linear-gradient(160deg, #2a3550, #0b1220); box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.device-phone__screen { height: 100%; border-radius: 1.8rem; overflow: hidden; background: #fff; color: var(--ink-900); display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; }
.device-phone__status { display: flex; justify-content: space-between; padding: 10px 18px 4px; font-size: 10px; font-weight: 600; }

/* Mock UI atoms (scaled-down product screens) */
.mock { font-size: 12px; line-height: 1.4; }
.mock__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--ink-200); font-weight: 600; }
.mock__body { padding: 12px 14px; display: grid; gap: 10px; }
.mock__card { border: 1px solid var(--ink-200); border-radius: 10px; padding: 10px; background: #fff; }
.mock__img { border-radius: 8px; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #ffe8c7, #ffd29a 55%, #f7b267); position: relative; }
.mock__img--b { background: linear-gradient(135deg, #dfe9ff, #b9cdfb 55%, #8db4ff); }
.mock__img--c { background: linear-gradient(135deg, #dff7f1, #a8e9dc 55%, #5fd0bb); }
.mock__price { font-weight: 700; }
.mock__mrp { color: var(--ink-500); text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.mock__btn { display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--blue-600); color: #fff; font-weight: 600; }
.mock__products { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 8px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock__kpi { border: 1px solid var(--ink-200); border-radius: 10px; padding: 10px; }
.mock__kpi b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.mock__kpi span { color: var(--ink-500); font-size: 11px; }
.mock__bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding-top: 6px; }
.mock__bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5a93f7, #1f6feb); opacity: .9; }
.mock__table { display: grid; gap: 0; }
.mock__table div { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr .9fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ink-150); align-items: center; }
.mock__table div:first-child { border-top: 0; color: var(--ink-500); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mock__pill { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 600; background: var(--blue-100); color: var(--blue-700); justify-self: start; }
.mock__pill--ok { background: var(--green-50); color: var(--green-700); }
.mock__pill--wait { background: var(--amber-50); color: var(--amber-700); }
@media (max-width: 640px) { .mock__hide-sm { display: none; } }
.mock__side { display: grid; grid-template-columns: 9.5rem 1fr; min-height: 100%; }
.mock__nav { background: var(--ink-100); border-right: 1px solid var(--ink-200); padding: 12px 10px; display: grid; align-content: start; gap: 4px; }
.mock__nav span { padding: 6px 8px; border-radius: 6px; color: var(--ink-600); }
.mock__nav span.is-on { background: #fff; color: var(--ink-900); font-weight: 600; box-shadow: var(--shadow-xs); }

/* Chat mock (WhatsApp-style assistant, generic design, no third-party marks) */
.chat { background: #eef1f6; flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #0e5c4a; color: #fff; }
.chat__avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.chat__msg { max-width: 82%; padding: 6px 9px; border-radius: 10px; background: #fff; box-shadow: 0 1px 1px rgba(11,18,32,.08); }
.chat__msg--out { align-self: flex-end; background: #d9f5e6; }
.chat__msg small { display: block; text-align: right; color: var(--ink-500); font-size: 9.5px; margin-top: 2px; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 5px; }
.chat__quick span { padding: 4px 9px; border-radius: 99px; background: #fff; border: 1px solid #bfe6d3; color: #0e5c4a; font-weight: 600; font-size: 11px; }

/* Hero composition: browser behind, phones in front */
.composition { position: relative; height: 100%; min-height: inherit; }
.composition .device-browser { position: absolute; top: 0; right: 0; width: min(100%, 34rem); }
.composition .device-phone { position: absolute; bottom: -1rem; left: 0; width: 12.5rem; }
.composition .device-phone + .device-phone { left: auto; right: 1.5rem; bottom: -2.5rem; width: 11.5rem; }
@media (max-width: 640px) {
  .composition .device-browser { position: relative; width: 100%; }
  .composition .mock__side { grid-template-columns: 6.5rem 1fr; }
  .composition .device-phone { width: 9.5rem; bottom: -3rem; left: -0.25rem; }
  .composition .device-phone + .device-phone { display: none; }
  .hero__visual { min-height: 0; padding-bottom: 4rem; }
}
.float { animation: float 9s var(--ease-in-out) infinite alternate; }
.float--slow { animation-duration: 12s; animation-delay: -4s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__title { font-size: var(--text-xl); }
.card__text { color: var(--fg-muted); }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--fg-body); }
.card__list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.card__list .icon { width: 1rem; height: 1rem; margin-top: 3px; color: var(--icon-fg); }
.card__foot { margin-top: auto; padding-top: var(--space-2); }
.card--service { padding: var(--space-8) var(--space-6) var(--space-6); }
.card--service::after { /* top accent line on hover */
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-brand); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
}
.card--service:hover::after { opacity: 1; }

/* ---------- Product showcase (bento) ---------- */
.bento { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.bento__item { overflow: hidden; padding: 0; gap: 0; }
.bento__copy { padding: var(--space-8) var(--space-8) var(--space-6); display: grid; gap: var(--space-3); }
.bento__copy .cluster { margin-top: var(--space-2); }
.bento__visual { flex: 1; position: relative; padding: var(--space-6) var(--space-8) 0; min-height: 15rem; background: linear-gradient(180deg, var(--bg-subtle), var(--bg-tint)); border-top: 1px solid var(--border); overflow: hidden; }
.bento__visual .device-browser { transform: translateY(8px); }
.bento__visual--phones { display: flex; justify-content: center; gap: var(--space-4); align-items: flex-end; }
.bento__visual--phones .device-phone { width: 11rem; margin-bottom: -4rem; }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__item--7 { grid-column: span 7; }
  .bento__item--5 { grid-column: span 5; }
  .bento__item--4 { grid-column: span 4; }
  .bento__item--8 { grid-column: span 8; }
}

/* ---------- Industries ---------- */
.industries { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); } }
.industry {
  display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5);
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
  color: inherit; text-decoration: none; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.industry:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.industry h3 { font-size: var(--text-md); }
.industry p { font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-1); }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-left: 3.75rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--text-sm); font-weight: var(--weight-bold);
  color: var(--fg-accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-xs);
  font-variant-numeric: tabular-nums;
}
.step::after { content: ""; position: absolute; left: 1.375rem; top: 3.25rem; bottom: calc(-1 * var(--space-6) + 0.5rem); width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--text-md); padding-top: 0.6rem; }
.step p { margin-top: var(--space-2); color: var(--fg-muted); font-size: 0.9375rem; }
.step__get { margin-top: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg); }
.step__get .icon { width: 1rem; height: 1rem; color: var(--green-700); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-6); }
  .step { padding-left: 0; padding-top: 4rem; }
  .step::after { left: 3.25rem; right: calc(-1 * var(--space-6) + 0.5rem); top: 1.375rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
  .step h3 { padding-top: 0; }
}

/* ---------- Trust strip (honest devices only, never fake proof) ---------- */
.trust { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.trust__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-6); background: var(--surface); }
.trust__item .icon { width: 1.375rem; height: 1.375rem; color: var(--icon-fg); flex: none; margin-top: 2px; }
.trust__item b { display: block; color: var(--fg); font-weight: var(--weight-semibold); }
.trust__item span { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--fg-muted); }

/* ---------- Tech list ---------- */
.tech { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tech span { padding: 0.4375rem 0.875rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg); }

/* ---------- CTA band (dark) ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-2xl); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  background: radial-gradient(80% 120% at 100% 0%, rgba(31,111,235,.55), rgba(31,111,235,0) 60%), var(--ink-950);
  box-shadow: var(--shadow-xl);
}
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; right: -10rem; top: 50%; transform: translateY(-50%); background: url("illustrations/orbit.svg") center / contain no-repeat; opacity: .8; }
.cta-band__inner { max-width: 38rem; }
@media (max-width: 640px) { .cta-band::before { width: 20rem; height: 20rem; right: -8rem; top: auto; bottom: -8rem; transform: none; opacity: .45; } }
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band p { color: var(--fg-muted); font-size: var(--text-lg); }
.cta-band .hero__actions { margin-top: var(--space-8); }

/* ---------- Contact blocks (no forms; nothing is collected) ---------- */
.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.contact-card { padding: var(--space-8); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; gap: var(--space-4); align-content: start; }
.contact-card__value { font-size: var(--text-2xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); color: var(--fg); font-variant-numeric: tabular-nums; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); counter-increment: ns; }
.next-steps li::before { content: counter(ns); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--badge-bg); color: var(--badge-fg); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.next-steps b { color: var(--fg); display: block; }
.next-steps span { color: var(--fg-muted); font-size: var(--text-sm); }

/* ---------- FAQ (native details) ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-weight: var(--weight-semibold); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.375rem; line-height: 1; color: var(--fg-muted); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5); color: var(--fg-muted); max-width: var(--measure); }

/* ---------- Footer (dark, large) ---------- */
.site-footer { padding-block: var(--space-20) var(--space-10); border-top: 1px solid var(--border); }
.footer__top { display: grid; gap: var(--space-12); }
.footer__about p { margin-top: var(--space-4); color: var(--fg-muted); max-width: 22rem; font-size: 0.9375rem; }
.footer__cols { display: grid; gap: var(--space-8); grid-template-columns: repeat(2, 1fr); }
.footer__col h2 { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg); letter-spacing: 0; margin-bottom: var(--space-4); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer__col a { color: var(--fg-muted); text-decoration: none; font-size: 0.9375rem; }
.footer__col a:hover { color: var(--fg); text-decoration: underline; }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); color: var(--fg-muted); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.2fr 2.8fr; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Motion: reveal on load; on scroll where supported (no JS) ---------- */
.reveal { animation: reveal var(--dur-reveal) var(--ease-out) both; }
.reveal--d1 { animation-delay: 80ms; } .reveal--d2 { animation-delay: 160ms; } .reveal--d3 { animation-delay: 240ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal-scroll { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scroll, .float, .nav-menu__panel { animation: none !important; }
  .btn:hover, a.card:hover { transform: none; }
}

/* Sakure Softworks website v2: site layer (W-07). Loaded after design/tokens.css and
   design/components.css; build.py joins all three into site/styles.css.
   No inline styles anywhere (the live CSP has style-src 'self'). */

img { height: auto; }
[id] { scroll-margin-top: 5.5rem; }
.has-subnav [id] { scroll-margin-top: 8.5rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main { display: block; }

/* ---------- Header extras ---------- */
.nav__call { display: none; color: var(--fg-muted); font-size: 0.9375rem; font-weight: var(--weight-medium); text-decoration: none; padding: 0.5rem 0.5rem; border-radius: var(--radius-sm); }
.nav__call:hover { color: var(--fg); text-decoration: underline; }
@media (min-width: 1100px) { .nav__call { display: inline-flex; } }
.nav__links a[aria-current="page"], .mega[data-current] > summary { color: var(--fg); }

/* Services mega-menu (desktop); native <details>, JS only closes it on Escape or outside click */
.mega { position: relative; }
.mega > summary {
  list-style: none; display: flex; align-items: center; gap: 0.375rem; cursor: pointer;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--fg-muted);
  font-size: 0.9375rem; font-weight: var(--weight-medium); transition: color var(--dur-fast), background-color var(--dur-fast);
}
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-base) var(--ease-out); }
.mega[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.mega > summary:hover, .mega[open] > summary { color: var(--fg); background: var(--bg-subtle); }
.mega__panel {
  position: absolute; top: calc(100% + 0.75rem); left: -1rem; z-index: var(--z-menu);
  width: min(52rem, calc(100vw - 2 * var(--gutter))); padding: var(--space-6);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-6);
  background: var(--ink-850); border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); animation: menu-in var(--dur-slow) var(--ease-out);
}
.mega__col h2 { font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--space-2); }
.mega__col h2 a { display: inline; padding: 0; color: var(--fg); font-size: var(--text-sm); letter-spacing: 0; text-transform: none; font-weight: var(--weight-semibold); }
.mega__col h2 a:hover { background: none; text-decoration: underline; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav__links .mega__col li a { padding: 0.375rem 0.5rem; margin-inline: -0.5rem; font-size: var(--text-sm); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--fg-muted); }
.nav__links .mega__foot a { display: inline-flex; padding: 0; color: var(--fg-link); }
.nav__links .mega__foot a:hover { background: none; }

/* ---------- Page hero (inner pages) ---------- */
.hero--page .hero__copy { max-width: 38rem; }
.hero--page .hero__title { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); }
.hero--page .hero__visual { min-height: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: var(--text-sm); color: var(--fg-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--ink-400); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- Device frames holding real screenshots ---------- */
.device-browser img { width: 100%; }
.shot { margin: 0; }
.shot img { width: 100%; }
.shot--glow img { filter: drop-shadow(0 30px 60px rgba(31, 111, 235, 0.25)); }
.device-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device-phone--img .device-phone__screen { background: #f4f6fb; }
.phone-solo { display: flex; justify-content: center; padding-block: var(--space-4); }
.phone-solo .device-phone { width: min(16rem, 70vw); }

/* Home hero cluster: dashboard (centre), chat phone (front), voice card (behind) */
.cluster-visual { position: relative; padding: 4.5rem 0 3.5rem 2.5rem; }
.cluster-visual__main { position: relative; z-index: 2; }
.cluster-visual__card {
  position: absolute; z-index: 1; top: 0; right: -0.75rem; width: 14rem;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); transform: rotate(3deg); opacity: .95;
}
.cluster-visual__card img { width: 100%; }
.cluster-visual__phone { position: absolute; z-index: 3; left: 0; bottom: 0; width: 10.5rem; }
@media (max-width: 640px) {
  .cluster-visual { padding: 3rem 0 3rem 1.25rem; }
  .cluster-visual__card { width: 9rem; right: -0.5rem; }
  .cluster-visual__phone { width: 7.25rem; padding: 0.3rem; border-radius: 1.5rem; }
  .cluster-visual__phone .device-phone__screen { border-radius: 1.25rem; }
}
@media (min-width: 1024px) {
  .cluster-visual__phone { width: 11.5rem; left: -1rem; }
}

/* ---------- Capability tiles (Home section 2) ---------- */
.tiles { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { padding: var(--space-6) var(--space-5); gap: var(--space-3); }
.tile h3 { font-size: var(--text-md); }
.tile p { font-size: var(--text-sm); color: var(--fg-muted); }

/* ---------- Stats band ---------- */
.stats { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.stat { padding-top: var(--space-6); border-top: 1px solid var(--border-strong); }
.stat dt { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); line-height: 1; font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); color: var(--fg); font-variant-numeric: tabular-nums; }
.theme-dark .stat dt { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dd { margin: var(--space-4) 0 0; color: var(--fg-muted); max-width: 22rem; }
.stat sup a, .fn-ref { font-size: 0.75em; font-weight: var(--weight-semibold); text-decoration: none; color: var(--fg-link); }
.stats-close { margin-top: var(--space-12); font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--fg); max-width: 40rem; letter-spacing: var(--tracking-snug); }
.footnotes { margin: var(--space-10) 0 0; padding: var(--space-6) 0 0 1.25rem; border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--fg-muted); display: grid; gap: var(--space-1); }
.stat-text { font-size: var(--text-lg); color: var(--fg); max-width: 46rem; line-height: 1.55; }

/* ---------- Feature blocks (alternating) ---------- */
.features { display: grid; gap: clamp(4rem, 2rem + 6vw, 7rem); }
.feature { display: grid; gap: var(--space-10); align-items: center; }
.feature > * { min-width: 0; }
.feature__copy h3 { font-size: var(--text-2xl); }
.feature .feature__copy > * + * { margin-top: var(--space-4); }
.feature .feature__copy > .checklist, .feature .feature__copy > .feature__actions { margin-top: var(--space-6); }
.feature__copy .lead { margin-top: var(--space-3); }
.feature__outcome { font-size: var(--text-lg); color: var(--fg-accent); font-weight: var(--weight-semibold); }
.feature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; padding-top: var(--space-2); }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1.15fr; gap: var(--space-16); }
  .feature--flip .feature__copy { order: 2; }
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--fg-body); }
.checklist .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; color: var(--green-700); flex: none; }
.theme-dark .checklist .icon { color: var(--blue-300); }
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-3) var(--space-6); }
.label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-muted); }

/* Service detail sections (group pages) */
.service { border-top: 1px solid var(--border); }
.service:first-of-type { border-top: 0; }
.service__num { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg-accent); font-variant-numeric: tabular-nums; }
.service__head { display: flex; align-items: center; gap: var(--space-3); }
.example { padding: var(--space-5); border-radius: var(--radius-md); background: var(--bg-tint); border: 1px solid color-mix(in srgb, var(--blue-500) 18%, transparent); font-size: 0.9375rem; }
.example b { color: var(--fg); }
.good-to-know { display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--fg-muted); }
.good-to-know .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; color: var(--fg-accent); flex: none; }
.good-to-know b { color: var(--fg); }

/* In-page sub-navigation (sticky chips under the header) */
.subnav { position: sticky; top: 4rem; z-index: calc(var(--z-nav) - 1); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.subnav ul { display: flex; gap: var(--space-2); margin: 0; padding: var(--space-3) 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0.25rem 0.875rem; border-radius: var(--radius-pill); white-space: nowrap; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--border); transition: color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.subnav a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong); }
.subnav a[aria-current="true"] { color: var(--badge-fg); background: var(--badge-bg); box-shadow: none; }

/* ---------- Bento extras ---------- */
.bento__visual--shot { padding: var(--space-6) var(--space-6) 0; display: flex; align-items: flex-end; }
.bento__visual--shot .shot { width: 100%; margin-bottom: -6%; }
.bento__title { font-size: var(--text-2xl); }
@media (min-width: 960px) {
  .bento__item--6 { grid-column: span 6; }
  .bento__item--12 { grid-column: span 12; display: grid; grid-template-columns: 1fr 1.25fr; }
  .bento__item--12 .bento__copy { align-content: center; padding: var(--space-12) var(--space-10); }
  .bento__item--12 .bento__visual { border-top: 0; border-left: 1px solid var(--border); }
}
.bento-note { margin-top: var(--space-8); text-align: center; color: var(--fg-muted); }

/* ---------- Technology grid ---------- */
.tech-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-grid li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); font-weight: var(--weight-medium); color: var(--fg); }

/* ---------- Two-column split (heading left, content right) ---------- */
.split { display: grid; gap: var(--space-10); }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-16); } .split .section-head { margin-bottom: 0; } }

/* ---------- Note card (Why Sakure) ---------- */
.note-card { position: relative; overflow: hidden; padding: clamp(2rem, 1.25rem + 3vw, 4rem); border-radius: var(--radius-2xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.note-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad-brand); }
.note-card p { font-size: var(--text-lg); line-height: 1.65; color: var(--fg-body); max-width: 50rem; }
.note-card h2 { margin-bottom: var(--space-6); }
.note-card .link-arrow { margin-top: var(--space-6); }

/* ---------- Demo band ---------- */
.demo { display: grid; gap: var(--space-12); align-items: center; }
.demo > * { min-width: 0; }
@media (min-width: 1024px) { .demo { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); } }
.demo .hero__actions { margin-top: var(--space-8); }
.demo h2 + .lead { margin-top: var(--space-4); }

/* ---------- Group cards (Services overview) ---------- */
.group-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Footer extras ---------- */
.footer__actions { margin-top: var(--space-6); }
.footer__col li { color: var(--fg-muted); font-size: 0.9375rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Scroll reveal fallback for browsers without view timelines (site.js) ---------- */
.reveal-scroll.is-pending { opacity: 0; transform: translateY(14px); }
.reveal-scroll.is-in { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .reveal-scroll.is-pending { opacity: 1; transform: none; }
  .mega__panel { animation: none; }
}

/* ---------- Group page details ---------- */
.section--compact { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.service.section { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.service h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); line-height: 1.15; }
.feature__copy .label { margin-bottom: var(--space-3); }
.checklist--spaced { margin-top: var(--space-6); gap: var(--space-3); }
.tech--spaced { margin-top: var(--space-6); }
.tech-note { margin-top: var(--space-4); font-size: var(--text-sm); }
.split h2 + .checklist, .split h2 + .tech { margin-top: var(--space-6); }
.split > div > h2 { font-size: var(--text-2xl); }
.split .section-head h2 { font-size: var(--text-3xl); }

/* ---------- Small phones: long button labels wrap instead of overflowing ---------- */
@media (max-width: 480px) {
  .btn--lg { white-space: normal; text-align: center; }
  .hero__actions .btn { width: 100%; }
}
.feature .feature__copy h3.label { font-size: var(--text-xs); line-height: 1.5; color: var(--fg-muted); letter-spacing: var(--tracking-wide); }

/* ---------- Phase 2 (W-07): product, industries, how-we-work, about, contact, security ---------- */
.stack-lg > * + * { margin-top: var(--space-6); }
.steps-note { margin-top: var(--space-10); }
.note-card__actions { margin-top: var(--space-6); }
.note-card .eyebrow { margin-bottom: var(--space-2); }
.footnotes--plain { margin-top: var(--space-4); padding-top: var(--space-3); }
.card .icon-tile + .card__title { margin-top: var(--space-2); }

/* Industries hero: jump list */
.industry-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.industry-chips a { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border-strong); color: var(--fg); font-weight: var(--weight-medium); text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.industry-chips a:hover { border-color: var(--blue-300); background: var(--bg-subtle); }
.industry-chips .icon { width: 1.25rem; height: 1.25rem; color: var(--blue-300); flex: none; }

/* How we work: detailed steps stay stacked on every width */
.steps--stack { max-width: 48rem; }
.steps--stack .step__get { display: flex; align-items: flex-start; }
.steps--stack .step__get .icon { margin-top: 0.2rem; flex: none; }
.steps--stack .step__get b { color: var(--fg); }
.steps--stack .step + .step { padding-top: var(--space-4); }
@media (min-width: 1024px) {
  .steps--stack { grid-template-columns: 1fr; gap: var(--space-8); }
  .steps--stack .step { padding-left: 3.75rem; padding-top: 0; }
  .steps--stack .step + .step { padding-top: 0; }
  .steps--stack .step::after { left: 1.375rem; right: auto; top: 3.25rem; bottom: calc(-1 * var(--space-8) + 0.5rem); width: 1px; height: auto; background: linear-gradient(var(--border-strong), transparent); }
  .steps--stack .step h3 { padding-top: 0.6rem; }
}
.steps--stack .step h3 { font-size: var(--text-xl); }
.steps--stack .step p { font-size: var(--text-base, 1rem); }

/* About: soft hero visual */
.hero__visual--soft { opacity: .85; }

/* Security: large icon instead of a screen */
.hero-icon { display: grid; place-items: center; width: min(16rem, 60vw); aspect-ratio: 1; margin-inline: auto; border-radius: var(--radius-2xl); background: var(--grad-brand); box-shadow: var(--shadow-lg); color: #fff; }
.icon--hero { width: 45%; height: 45%; }
@media (max-width: 1023px) { .hero-icon { display: none; } }

/* Trust grids with 5 or 6 items: no empty filler cells */
@media (min-width: 640px) {
  .trust--5, .trust--3 { grid-template-columns: repeat(2, 1fr); }
  .trust--5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) { .trust--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .trust--5 { grid-template-columns: repeat(5, 1fr); }
  .trust--5 > :last-child { grid-column: auto; }
}

/* Text-only bento items: quiet line art fills the space */
.bento__item--art { background: url("illustrations/flow-lines.svg") right -2rem bottom -2rem / 26rem auto no-repeat, var(--surface); }
