/* ============================================================================
   Takuto Lab — design system
   ----------------------------------------------------------------------------
   No frameworks, no webfonts, no external requests. One stylesheet, system
   fonts only, so first paint does not wait on the network.

   Type scale     : 1.25 modular ladder on a 16px base
                    12 / 13 / 15 / 17 / 21 / 26 / 33 / 41 / 51 / 64
                    (the top two steps exist for the hero only)
   Spacing        : strict 4px grid — 4 8 12 16 24 32 48 64 96 128
   Radius         : 8 / 12 / 20 / 999 (pill)
   Colour         : one neutral ramp + a single accent. Flat surfaces stay
                    neutral; the accent tints glass, glow and hover only.
   Depth          : three levels — page, surface (cards), stage (product
                    visuals). Nothing else may invent a background.
   Motion         : one drifting glow in the hero, plus hover transitions.
                    Everything is disabled under prefers-reduced-motion.
   Theme          : follows the OS (prefers-color-scheme); a [data-theme]
                    attribute on <html> can force either mode.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- type ladder ------------------------------------------------------ */
  --t-2xs: 0.75rem;    /* 12 */
  --t-xs:  0.8125rem;  /* 13 */
  --t-sm:  0.9375rem;  /* 15 */
  --t-md:  1.0625rem;  /* 17 */
  --t-lg:  1.3125rem;  /* 21 */
  --t-xl:  1.625rem;   /* 26 */
  --t-2xl: 2.0625rem;  /* 33 */
  --t-3xl: 2.5625rem;  /* 41 */
  --t-4xl: 3.1875rem;  /* 51 */
  --t-5xl: 4rem;       /* 64 */

  /* --- spacing (4px grid) ----------------------------------------------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-6: 24px;  --s-8: 32px;  --s-12: 48px; --s-16: 64px;
  --s-24: 96px; --s-32: 128px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --maxw: 1080px;
  --maxw-prose: 680px;

  /* Latin glyphs come from the system UI face; Japanese falls through to
     Hiragino / Yu Gothic. Listing Latin first is what keeps mixed
     Japanese-English lines from picking up mismatched Latin forms. */
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
          Roboto, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Yu Gothic Medium", "Noto Sans JP", Meiryo, sans-serif;
}

/* --- light (default) ---------------------------------------------------- */
:root {
  --bg:        #ffffff;
  --bg-sub:    #fafbfc;
  --surface:   #ffffff;
  --surface-2: #f7f8fa;
  --tile:      #f2f3f5;
  --fg:        #14161a;
  --fg-2:      #4c525b;
  --fg-3:      #767c86;
  --line:      #e6e8ec;
  --line-2:    #d3d7de;
  --accent:    #2b53d1;
  --accent-2:  #6b4fd8;
  --accent-fg: #ffffff;
  --accent-wash: #eef2fd;
  --ok:        #1a7f4b;
  --soon:      #9a6510;
  --shadow:    0 1px 2px rgba(20, 22, 26, 0.04), 0 6px 20px rgba(20, 22, 26, 0.05);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, 0.04), 0 18px 44px rgba(20, 22, 26, 0.10);
  --header-bg: rgba(255, 255, 255, 0.82);

  /* hero atmosphere */
  --glow-a:  rgba(43, 83, 209, 0.20);
  --glow-b:  rgba(107, 79, 216, 0.16);
  --glow-c:  rgba(43, 83, 209, 0.10);
  --grid-line: rgba(20, 22, 26, 0.055);
  --hero-bg: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);

  /* product-visual stage */
  --stage:   linear-gradient(168deg, #f4f6fb 0%, #e9ecf4 100%);
  --stage-line: rgba(20, 22, 26, 0.07);
  --bezel:   #22252b;
  --bezel-line: rgba(255, 255, 255, 0.14);
  --art:     #8f96a3;
  --art-2:   #c3c8d2;
  --win-bar: #e9ebf0;
}

/* --- dark ----------------------------------------------------------------
   The :not() is what lets data-theme="light" win over the OS preference.
   Without it the OS rule and the override tie on specificity and the OS wins,
   which silently makes a forced-light page render dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b0c0e;
    --bg-sub:    #0f1114;
    --surface:   #121418;
    --surface-2: #16191e;
    --tile:      #1b1e24;
    --fg:        #edeff2;
    --fg-2:      #a7aeb8;
    --fg-3:      #7d848f;
    --line:      #23272e;
    --line-2:    #333942;
    --accent:    #93aeff;
    --accent-2:  #b39cff;
    --accent-fg: #0b0c0e;
    --accent-wash: #171c2b;
    --ok:        #55c98a;
    --soon:      #d8a441;
    --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 22px 50px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(11, 12, 14, 0.78);

    --glow-a:  rgba(120, 150, 255, 0.22);
    --glow-b:  rgba(150, 120, 255, 0.16);
    --glow-c:  rgba(90, 120, 230, 0.12);
    --grid-line: rgba(255, 255, 255, 0.05);
    --hero-bg: linear-gradient(180deg, #101217 0%, #0b0c0e 100%);

    --stage:   linear-gradient(168deg, #191d24 0%, #101216 100%);
    --stage-line: rgba(255, 255, 255, 0.07);
    --bezel:   #2b3039;
    --bezel-line: rgba(255, 255, 255, 0.12);
    --art:     #737a86;
    --art-2:   #3a404a;
    --win-bar: #1e222a;
  }
}
:root[data-theme="dark"] {
  --bg:        #0b0c0e;
  --bg-sub:    #0f1114;
  --surface:   #121418;
  --surface-2: #16191e;
  --tile:      #1b1e24;
  --fg:        #edeff2;
  --fg-2:      #a7aeb8;
  --fg-3:      #7d848f;
  --line:      #23272e;
  --line-2:    #333942;
  --accent:    #93aeff;
  --accent-2:  #b39cff;
  --accent-fg: #0b0c0e;
  --accent-wash: #171c2b;
  --ok:        #55c98a;
  --soon:      #d8a441;
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 22px 50px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(11, 12, 14, 0.78);

  --glow-a:  rgba(120, 150, 255, 0.22);
  --glow-b:  rgba(150, 120, 255, 0.16);
  --glow-c:  rgba(90, 120, 230, 0.12);
  --grid-line: rgba(255, 255, 255, 0.05);
  --hero-bg: linear-gradient(180deg, #101217 0%, #0b0c0e 100%);

  --stage:   linear-gradient(168deg, #191d24 0%, #101216 100%);
  --stage-line: rgba(255, 255, 255, 0.07);
  --bezel:   #2b3039;
  --bezel-line: rgba(255, 255, 255, 0.12);
  --art:     #737a86;
  --art-2:   #3a404a;
  --win-bar: #1e222a;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header is sticky; without this an in-page jump lands under it. */
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.7;
  letter-spacing: 0.01em;
  /* proportional kana/punctuation spacing — removes the loose gaps around
     Japanese brackets and punctuation that make CJK web type look amateurish */
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

:lang(en) body, body:lang(en) { line-height: 1.62; letter-spacing: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
@media (max-width: 600px) { .wrap { padding-inline: var(--s-4); } }

.skip {
  position: absolute;
  left: -9999px;
}
/* Present to screen readers and to the document outline, absent on screen.
   Used for the headings that label a section whose meaning is already
   carried by the figures themselves. */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  left: var(--s-4); top: var(--s-4);
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-4);
  color: var(--fg);
}

/* ============================ header ===================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 650;
  letter-spacing: 0.005em;
}
.brand:hover { text-decoration: none; color: var(--fg); }
.brand svg { width: 24px; height: 24px; display: block; flex: none; }
.brand .m-fill { fill: var(--accent); }
.brand .m-line { fill: none; stroke: currentColor; stroke-width: 1.6; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: var(--t-xs);
}
.nav a { color: var(--fg-2); }
.nav a:hover { color: var(--fg); }
.nav .lang {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding-left: var(--s-6);
  border-left: 1px solid var(--line);
  color: var(--fg-3);
}
.nav .lang [aria-current] { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .nav { gap: var(--s-4); } }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .nav .lang { padding-left: 0; border-left: 0; }
}

/* ============================ hero =======================================
   Three stacked layers: a flat wash, two drifting glows, and a hairline grid
   that fades out downward. The glows are the only ambient motion on the site
   and they move slowly enough not to pull the eye off the sentence. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-24) 0 var(--s-16);
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-bg::before {
  width: 620px; height: 620px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, var(--glow-a) 0%, transparent 68%);
  animation: drift-a 30s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 520px; height: 520px;
  bottom: -260px; left: -140px;
  background: radial-gradient(circle, var(--glow-b) 0%, transparent 68%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
/* hairline grid, masked so it never reaches the section edge */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 22%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 68% at 50% 22%, #000 0%, transparent 100%);
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-70px, 50px, 0) scale(1.1); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(80px, -40px, 0) scale(1.08); }
}
@media (max-width: 700px) { .hero { padding: var(--s-16) 0 var(--s-12); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 10px;
  margin-bottom: var(--s-6);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.0625rem, 1.05rem + 4.4vw, var(--t-5xl));
  line-height: 1.2;
  letter-spacing: -0.032em;
  max-width: 15em;
  margin-bottom: var(--s-6);
}
/* One tinted phrase in the headline. <em> is reset to upright — it marks the
   phrase, it is not an italic. */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: var(--t-md);
  color: var(--fg-2);
  max-width: 36em;
}
.hero .lede + .lede { margin-top: var(--s-3); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease,
              background 140ms ease, border-color 140ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow);
}
.btn.primary:hover { box-shadow: var(--shadow-lg); }
.btn.ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--fg);
}
.btn.ghost:hover { border-color: var(--fg-3); }
.btn .arw { font-size: 0.9em; line-height: 1; opacity: 0.7; }

/* platform strip under the hero copy */
.hero-plat {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: center;
  list-style: none;
  margin: var(--s-12) 0 0;
  padding: var(--s-6) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.hero-plat li { display: inline-flex; align-items: center; gap: var(--s-4); }
.hero-plat li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ============================ figures strip ============================== */
.figures {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
  padding: var(--s-12) 0;
}
.figures .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.fig {
  padding: var(--s-4) var(--s-6);
  border-left: 1px solid var(--line);
}
.fig:first-child { border-left: 0; padding-left: 0; }
.fig .n {
  display: block;
  font-size: var(--t-2xl);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fig .k {
  display: block;
  font-size: var(--t-xs);
  color: var(--fg-2);
  margin-top: var(--s-2);
  font-weight: 550;
}
.fig .s {
  display: block;
  font-size: var(--t-2xs);
  color: var(--fg-3);
  margin-top: 2px;
}
@media (max-width: 760px) {
  .figures .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
  .fig { padding: 0 0 0 var(--s-4); }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fig .n { font-size: var(--t-xl); }
}

/* ============================ sections =================================== */
.section { padding: var(--s-16) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
@media (max-width: 700px) { .section { padding: var(--s-12) 0; } }

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.section-head h2 { font-size: var(--t-lg); }
.section-head .count {
  font-size: var(--t-xs);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.section-head .en {
  font-size: var(--t-xs);
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}
@media (max-width: 520px) { .section-head .en { display: none; } }

/* wider heading block for the standalone sections (how / news) */
.block-head { max-width: 40em; margin-bottom: var(--s-12); }
.block-head .kicker {
  display: block;
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.block-head h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.block-head p { font-size: var(--t-sm); color: var(--fg-2); }

/* ============================ cards ====================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-4);
}
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 160ms ease, box-shadow 160ms ease,
              transform 160ms ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  flex: 1;
}

/* --- product visual ------------------------------------------------------
   Every card opens on the same stage: one gradient, one hairline, one
   object sitting on it. The phone is taller than the stage on purpose — it
   is cropped by the stage floor rather than shrunk to fit. */
.shot {
  position: relative;
  height: 212px;
  background: var(--stage);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 52% at 50% 0%, var(--glow-c), transparent 70%);
  pointer-events: none;
}
.device {
  position: relative;
  z-index: 1;
  width: 172px;
  margin-top: var(--s-6);
  padding: 6px;
  background: var(--bezel);
  border: 1px solid var(--bezel-line);
  border-radius: 24px 24px 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease;
}
.device img {
  width: 100%;
  height: auto;
  border-radius: 17px 17px 0 0;
  display: block;
}
.card:hover .device { transform: translateY(-8px); }

/* window-framed illustration, for the things that are not phone apps */
.win {
  position: relative;
  z-index: 1;
  width: 260px;
  margin-top: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 220ms ease;
}
.card:hover .win { transform: translateY(-8px); }
.win-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--line);
}
.win-bar i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.win svg { width: 100%; height: auto; display: block; }
.art-line { fill: none; stroke: var(--art-2); stroke-width: 2; stroke-linecap: round; }
.art-strong { fill: none; stroke: var(--art); stroke-width: 2; stroke-linecap: round; }
.art-head { fill: none; stroke: var(--art); stroke-width: 3.5; stroke-linecap: round; }
.art-fill { fill: var(--art-2); }
.art-accent { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-accent-fill { fill: var(--accent); }
.art-plate { fill: var(--tile); }

.card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.tile {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--fg-2);
  border-radius: var(--r-md);
  transition: background 160ms ease, color 160ms ease;
}
.card:hover .tile { background: var(--accent-wash); color: var(--accent); }
.tile svg { width: 24px; height: 24px; display: block; }

.card h3 {
  font-size: var(--t-md);
  letter-spacing: -0.01em;
}
.card .sub {
  display: block;
  font-size: var(--t-2xs);
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.card .desc {
  font-size: var(--t-sm);
  color: var(--fg-2);
  line-height: 1.75;
}
:lang(en) .card .desc { line-height: 1.62; }

/* three-point feature list */
.feat {
  list-style: none;
  margin: 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--t-xs);
  color: var(--fg-2);
}
.feat li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  line-height: 1.6;
}
/* A dot with a halo. A tick mark would read as a checkbox — as if each line
   were a promise being confirmed — so the marker stays a marker. */
.feat li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin: 8px 4px 0 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

/* meta pills */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-2xs);
  line-height: 1;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg-2);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
  flex: none;
}
.pill.plain::before { display: none; }
.pill.live::before  { background: var(--ok); }
.pill.soon::before  { background: var(--soon); }
.pill.live { color: var(--fg-2); }

/* link row */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: auto;
  padding-top: var(--s-2);
  font-size: var(--t-xs);
}
.links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 550; }
.links a::after {
  content: "↗";
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.55;
}
.links .none { color: var(--fg-3); }

/* --- the single-service rows --------------------------------------------
   A section holding one service would leave two thirds of the row empty,
   which reads as an unfinished grid rather than a choice. The lone card
   takes the full width and turns into two columns: stage on the left,
   everything else on the right. */
.card.wide { grid-column: 1 / -1; }

@media (min-width: 820px) {
  .card.wide {
    flex-direction: row;
    align-items: stretch;
  }
  .card.wide .shot {
    width: 340px;
    flex: none;
    height: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    align-items: center;
  }
  .card.wide .win { margin-top: 0; }
  .card.wide .card-body { padding: var(--s-8); }
  .card.wide .desc { max-width: 60ch; }
}

/* ============================ how it is made ============================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: var(--s-6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font-size: var(--t-2xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.step h3 { font-size: var(--t-sm); margin-bottom: var(--s-2); }
.step p { font-size: var(--t-xs); color: var(--fg-2); line-height: 1.75; }
:lang(en) .step p { line-height: 1.62; }

/* ============================ news ======================================= */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
}
.news li:last-child { border-bottom: 1px solid var(--line); }
.news time {
  font-size: var(--t-xs);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.news .what { font-size: var(--t-sm); color: var(--fg); font-weight: 550; }
.news .what span {
  display: block;
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--fg-2);
  margin-top: var(--s-1);
}
.news .tag {
  font-size: var(--t-2xs);
  color: var(--fg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .news li {
    grid-template-columns: 1fr auto;
    gap: var(--s-2) var(--s-4);
    padding: var(--s-4) 0;
  }
  .news time { grid-column: 1; }
  .news .tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .news .what { grid-column: 1 / -1; }
}

/* ============================ notes / prose ============================== */
.note {
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-6);
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--t-xs);
  color: var(--fg-3);
}

.doc { padding: var(--s-16) 0 var(--s-24); }
.doc .inner { max-width: var(--maxw-prose); }
.doc h1 { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.doc .updated { font-size: var(--t-xs); color: var(--fg-3); margin-bottom: var(--s-12); }
.doc h2 {
  font-size: var(--t-lg);
  margin: var(--s-12) 0 var(--s-4);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: var(--s-8); }
/* A definition list already closes with a rule; the next heading's rule would
   sit a few pixels under it and read as a mistake. */
.doc .dl + h2 { border-top: 0; padding-top: 0; }
.doc p { font-size: var(--t-sm); color: var(--fg-2); margin-bottom: var(--s-4); }
.doc ul { font-size: var(--t-sm); color: var(--fg-2); padding-left: 1.25em; margin: 0 0 var(--s-4); }
.doc li { margin-bottom: var(--s-2); }

.dl { margin: 0; font-size: var(--t-sm); }
.dl > div {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.dl > div:first-child { border-top: 1px solid var(--line); }
.dl dt { color: var(--fg-3); font-size: var(--t-xs); padding-top: 2px; }
.dl dd { margin: 0; color: var(--fg); }
.dl dd .aside { display: block; color: var(--fg-3); font-size: var(--t-xs); margin-top: var(--s-1); }
@media (max-width: 560px) {
  .dl > div { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* ============================ footer ===================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sub);
  padding: var(--s-16) 0 var(--s-12);
  font-size: var(--t-xs);
  color: var(--fg-3);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-8);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--line);
}
.foot-brand { max-width: 30em; }
.foot-brand .brand { margin-bottom: var(--s-3); }
.foot-brand p { color: var(--fg-3); font-size: var(--t-xs); line-height: 1.75; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
}
.foot-col { display: flex; flex-direction: column; gap: var(--s-2); }
.foot-col .h {
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 650;
  margin-bottom: var(--s-1);
}
.foot-col a { color: var(--fg-2); }
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.foot-bottom a { color: var(--fg-2); }
.foot-bottom a:hover { color: var(--fg); }
.foot-bottom .copy { color: var(--fg-3); }
@media (max-width: 700px) {
  .foot-links { gap: var(--s-8); }
  .site-footer { padding-top: var(--s-12); }
}

/* ============================ 404 ======================================== */
.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-24) 0;
}
.center-page h1 { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.center-page p { color: var(--fg-2); font-size: var(--t-sm); margin-bottom: var(--s-6); }
