/* =========================================================
   WIMA Technologies — site styles
   Tokens first; every colour, size and radius below comes from here.
   ========================================================= */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* colour */
  --c-bg: #0E0F14;          /* graphite */
  --c-bg-raised: #15161D;   /* panels on dark */
  --c-bg-sunk: #0A0B0F;
  --c-line: #262833;        /* borders on dark */
  --c-line-strong: #3A3C4A;
  --c-text: #F4F2EC;        /* warm white */
  --c-text-muted: #A3A4B0;
  --c-text-faint: #73748294;
  --c-violet: #7C5CFF;      /* primary accent */
  --c-violet-hover: #9078FF;
  --c-violet-press: #6646F0;
  --c-blue: #4C5BFF;
  --c-cyan: #5EE2F0;        /* secondary accent, used sparingly */
  --c-paper: #EDEDF1;       /* light surface */
  --c-paper-raised: #FFFFFF;
  --c-ink: #14151C;         /* text on light */
  --c-ink-muted: #545664;
  --c-success: #3DD68C;
  --c-error: #FF6B7A;
  --c-error-ink: #C42B3D;
  --c-warn: #F5C451;

  /* type */
  --f-display: "Bricolage", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(3rem, 1.6rem + 6.2vw, 7rem);
  --t-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1rem;
  --t-small: 0.875rem;

  /* space (8pt base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --section: clamp(80px, 6vw + 48px, 160px);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;

  /* shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-lift: 0 24px 60px -24px rgba(5, 4, 20, 0.7), 0 2px 0 rgba(255,255,255,0.03) inset;
  --focus: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-cyan);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; margin: 0; font-optical-sizing: auto; text-wrap: balance; }
h3 { line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--c-violet); color: #fff; }

.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--c-text); color: var(--c-ink); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-4); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--paper { background: var(--c-paper); color: var(--c-ink); }
.section--paper .muted { color: var(--c-ink-muted); }
.section--raised { background: var(--c-bg-raised); border-block: 1px solid var(--c-line); }
.muted { color: var(--c-text-muted); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-text-muted); max-width: 40em; }
.section--paper .lead { color: var(--c-ink-muted); }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6) var(--s-8); align-items: end; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--t-h2); }
.section-head .lead { justify-self: start; }
.section-head--stack { grid-template-columns: 1fr; gap: var(--s-4); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 22px;
  font: 600 0.9375rem/1 var(--f-body); letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s;
}
.btn:hover { --btn-bd: var(--c-text-muted); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--c-violet); --btn-bd: var(--c-violet); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--c-violet-hover); --btn-bd: var(--c-violet-hover); }
.btn--primary:active { --btn-bg: var(--c-violet-press); --btn-bd: var(--c-violet-press); }
.btn--light { --btn-bg: var(--c-text); --btn-bd: var(--c-text); --btn-fg: var(--c-ink); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section--paper .btn:not(.btn--primary) { --btn-fg: var(--c-ink); --btn-bd: #C9CAD3; }
.section--paper .btn:not(.btn--primary):hover { --btn-bd: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; text-decoration: none; color: var(--c-text);
  border-bottom: 1px solid var(--c-line-strong); padding-bottom: 3px;
  transition: border-color .18s, gap .18s var(--ease);
}
.link:hover { border-color: var(--c-violet); gap: var(--s-3); }
.link svg { width: 16px; height: 16px; }
.section--paper .link { color: var(--c-ink); border-color: #BFC0CA; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 20, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-6); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 800 1.25rem/1 var(--f-display); letter-spacing: 0.04em; }
.brand-word span { font: 500 0.6875rem/1 var(--f-body); letter-spacing: 0.08em; color: var(--c-text-muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font: 500 0.9375rem/1 var(--f-body); color: var(--c-text-muted);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .15s, background .15s;
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop.is-open > button { color: var(--c-text); background: rgba(255,255,255,0.05); }
.nav > a[aria-current="page"], .nav-drop > button.is-current { color: var(--c-text); }
.nav > a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-cyan); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-drop.is-open > button svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: 560px; padding: var(--s-3);
  background: var(--c-bg-raised); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.nav-drop.is-open .drop-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.drop-panel a { display: flex; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); text-decoration: none; }
.drop-panel a:hover { background: rgba(255,255,255,0.04); }
.drop-panel a b { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--c-text); }
.drop-panel a span { display: block; font-size: 0.8125rem; color: var(--c-text-muted); line-height: 1.4; margin-top: 2px; }
.drop-panel .ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.14); color: #B7A6FF; }
.drop-panel .ico svg { width: 18px; height: 18px; }
.drop-panel .drop-all { grid-column: 1 / -1; border-top: 1px solid var(--c-line); margin-top: var(--s-2); padding-top: var(--s-3); border-radius: 0 0 var(--r-md) var(--r-md); color: var(--c-text-muted); font-size: 0.875rem; }
.header-cta { margin-left: var(--s-3); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: transparent; color: var(--c-text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

.mobile-menu {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 49;
  background: var(--c-bg); overflow-y: auto; padding: var(--s-5) var(--gutter) var(--s-8);
}
.menu-open .mobile-menu { display: block; }
.menu-open { overflow: hidden; }
.mobile-menu a { text-decoration: none; }
.mm-primary { list-style: none; border-top: 1px solid var(--c-line); }
.mm-primary > li { border-bottom: 1px solid var(--c-line); }
.mm-primary > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font: 600 1.5rem/1 var(--f-display); letter-spacing: -0.02em; }
.mm-primary > li > a[aria-current="page"] { color: #B7A6FF; }
.mm-services { list-style: none; padding: 0 0 var(--s-4); display: grid; gap: 2px; }
.mm-services a { display: flex; align-items: center; min-height: 48px; padding-left: var(--s-4); color: var(--c-text-muted); border-left: 1px solid var(--c-line); }
.mm-services a:hover { color: var(--c-text); border-left-color: var(--c-violet); }
.mm-actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.mm-actions .btn { width: 100%; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 112px) 0 clamp(64px, 8vw, 128px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.hero h1 .line { display: block; }
.hero h1 .line--soft { color: var(--c-text-muted); font-weight: 600; }
.hero .lead { margin-top: var(--s-6); max-width: 32em; }
.hero .btn-row { margin-top: var(--s-7); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.hero-caps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-line); color: var(--c-text-muted); font-size: var(--t-small); list-style: none; }
.hero-caps li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-caps li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c-violet); }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto -8px; aspect-ratio: 1 / .8; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: settle 1.2s var(--ease) both .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 120px) 0 clamp(56px, 6vw, 96px); border-bottom: 1px solid var(--c-line); }
.page-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
.page-hero--text .wrap { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.page-hero h1 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.035em; }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero-visual { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-bg-raised); }
.page-hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--c-text-muted); margin-bottom: var(--s-5); list-style: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-line-strong); }
@media (max-width: 960px) { .page-hero .wrap, .page-hero--text .wrap { grid-template-columns: 1fr; } }

/* ---------- services (home + overview) ---------- */
.svc-list { display: grid; gap: var(--s-4); }
.svc {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0;
  background: var(--c-bg-raised); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  overflow: hidden;
}
.svc:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc:nth-child(even) .svc-media { order: -1; }
.svc-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: var(--s-4); }
.svc-tag { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-text-muted); font-size: var(--t-small); font-weight: 500; }
.svc-tag svg { width: 18px; height: 18px; color: var(--tone, var(--c-violet)); }
.svc h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.025em; }
.svc p { color: var(--c-text-muted); max-width: 30em; }
.svc-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.svc-points li { font-size: 0.8125rem; padding: 6px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); color: var(--c-text); }
.svc .link { margin-top: auto; align-self: flex-start; }
.svc-media { position: relative; background: var(--tone-bg, #1A1530); overflow: hidden; aspect-ratio: 3 / 2; height: 100%; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc[data-tone="game"]    { --tone: #A08BFF; --tone-bg: #16112B; }
.svc[data-tone="mobile"]  { --tone: #7C8CFF; --tone-bg: #11152E; }
.svc[data-tone="desktop"] { --tone: #C9CAD6; --tone-bg: #191A22; }
.svc[data-tone="web"]     { --tone: var(--c-cyan); --tone-bg: #0E1E24; }
.svc[data-tone="custom"]  { --tone: #F4F2EC; --tone-bg: #13141B; }
@media (max-width: 860px) {
  .svc, .svc:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .svc-media, .svc:nth-child(even) .svc-media { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.work-card { grid-column: span 6; display: flex; flex-direction: column; gap: var(--s-4); text-decoration: none; color: inherit; }
.work-grid--featured .work-card:nth-child(1) { grid-column: span 7; }
.work-grid--featured .work-card:nth-child(2) { grid-column: span 5; }
.work-grid--featured .work-card:nth-child(3) { grid-column: span 5; }
.work-grid--featured .work-card:nth-child(4) { grid-column: span 7; }
.work-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-raised); border: 1px solid var(--c-line); aspect-ratio: 3 / 2; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-card[data-kind="game"] .work-media { aspect-ratio: 3 / 2; border-radius: var(--r-md); }
.work-card[data-kind="mobile"] .work-media { aspect-ratio: 4 / 5; background: #11152E; }
.work-grid--featured .work-card[data-kind="mobile"] .work-media { aspect-ratio: 16 / 13; }
.work-card[data-kind="website"] .work-media { background: #0E1E24; }
.badge {
  position: absolute; top: var(--s-4); left: var(--s-4);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: rgba(10, 11, 15, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem; font-weight: 600; color: var(--c-text);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-warn); }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: var(--t-small); color: var(--c-text-muted); }
.work-meta .cat { color: var(--c-text); font-weight: 600; }
.work-card h3 { font-size: var(--t-h3); }
.work-card p { color: var(--c-text-muted); max-width: 36em; }
.work-card .link { align-self: flex-start; margin-top: var(--s-1); }
.work-card:hover .link { border-color: var(--c-violet); gap: var(--s-3); }
.work-foot { display: flex; justify-content: center; margin-top: var(--s-8); }
@media (max-width: 860px) {
  .work-grid .work-card, .work-grid--featured .work-card:nth-child(n) { grid-column: 1 / -1; }
  .work-card[data-kind="mobile"] .work-media, .work-grid--featured .work-card[data-kind="mobile"] .work-media { aspect-ratio: 16 / 12; }
}

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: transparent; color: var(--c-text-muted);
  font: 500 0.9375rem/1 var(--f-body); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--c-text); border-color: var(--c-text-muted); }
.chip[aria-pressed="true"] { background: var(--c-text); color: var(--c-ink); border-color: var(--c-text); }
.chip .count { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.empty {
  grid-column: 1 / -1; padding: var(--s-8) var(--s-6); text-align: center;
  border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg);
}
.empty h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.empty p { color: var(--c-text-muted); max-width: 32em; margin: 0 auto var(--s-5); }
.note-strip { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg-raised); color: var(--c-text-muted); font-size: var(--t-small); margin-bottom: var(--s-7); }
.note-strip svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--c-warn); margin-top: 2px; }

/* ---------- values (light surface) ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #CFD0D8; }
.value { padding: var(--s-6) var(--s-5) 0 0; }
.value + .value { padding-left: var(--s-5); border-left: 1px solid #CFD0D8; }
.value-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--c-ink); color: #fff; display: grid; place-items: center; margin-bottom: var(--s-6); }
.value-ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.value p { color: var(--c-ink-muted); }
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid #CFD0D8; margin-top: var(--s-6); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: var(--s-5) 0 var(--s-2); border-left: 0; }
  .value + .value { border-top: 1px solid #CFD0D8; margin-top: var(--s-5); }
  .value-ico { margin-bottom: var(--s-4); }
}

/* ---------- process timeline ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--c-violet), var(--c-blue) 60%, var(--c-cyan)); opacity: .7; }
.step { position: relative; counter-increment: step; padding-right: var(--s-4); }
.step-num {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-bg); border: 1px solid var(--c-line-strong);
  font: 700 1rem/1 var(--f-display); margin-bottom: var(--s-6);
}
.step-num::before { content: counter(step); }
.step:last-child .step-num { background: var(--c-violet); border-color: var(--c-violet); }
.step h3 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.step p { color: var(--c-text-muted); }
.step .step-detail { margin-top: var(--s-4); font-size: var(--t-small); color: var(--c-text-muted); list-style: none; display: grid; gap: 6px; }
.step .step-detail li::before { content: "– "; color: var(--c-line-strong); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; background: linear-gradient(180deg, var(--c-violet), var(--c-cyan)); }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 var(--s-5); padding: 0 0 var(--s-7); }
  .step:last-child { padding-bottom: 0; }
  .step-num { margin: 0; grid-row: span 3; }
  .step h3 { padding-top: 10px; }
}

/* ---------- tech groups ---------- */
.tech { display: grid; border-top: 1px solid var(--c-line); }
.tech-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line); align-items: center; }
.tech-row h3 { font-size: 1.125rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags li { padding: 7px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,0.04); border: 1px solid var(--c-line); font-size: 0.875rem; color: var(--c-text); }
@media (max-width: 700px) { .tech-row { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---------- CTA band ---------- */
.cta-band { padding: var(--section) 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 112px) clamp(24px, 6vw, 96px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(94, 226, 240, 0.22), transparent 45%),
    radial-gradient(90% 120% at 0% 100%, rgba(76, 91, 255, 0.55), transparent 60%),
    linear-gradient(135deg, #2A1C7A, #5236E0 55%, #6B4DFF);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-7); align-items: end;
}
.cta-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.035em; }
.cta-box p { margin-top: var(--s-5); font-size: var(--t-lead); color: rgba(255,255,255,0.82); max-width: 30em; }
.cta-box .btn-row { justify-content: flex-end; }
.cta-box .btn:not(.btn--light) { --btn-bd: rgba(255,255,255,.45); --btn-fg: #fff; }
.cta-box .btn:not(.btn--light):hover { --btn-bd: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } .cta-box .btn-row { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding: var(--s-9) 0 var(--s-6); background: var(--c-bg-sunk); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: var(--s-7) var(--s-6); }
.foot-about p { color: var(--c-text-muted); margin-top: var(--s-5); max-width: 22em; font-size: 0.9375rem; }
.site-footer h2 { font: 600 0.875rem/1.2 var(--f-body); letter-spacing: 0; color: var(--c-text); margin-bottom: var(--s-4); }
.foot-links { list-style: none; display: grid; gap: var(--s-2); }
.foot-links a { color: var(--c-text-muted); text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 3px 0; }
.foot-links a:hover { color: var(--c-text); text-decoration: underline; }
.foot-contact { display: grid; gap: var(--s-3); font-size: 0.9375rem; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-text-muted); text-decoration: none; }
.foot-contact a:hover { color: var(--c-text); }
.foot-contact svg { width: 16px; height: 16px; flex: none; color: var(--c-text-muted); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--t-small); color: var(--c-text-muted); }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; }
.foot-legal a { color: var(--c-text-muted); text-decoration: none; }
.foot-legal a:hover { color: var(--c-text); text-decoration: underline; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-col--contact { grid-column: 1 / -1; } }

/* ---------- service page: capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.cap { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-6) var(--s-5) var(--s-6) 0; border-bottom: 1px solid var(--c-line); }
.cap:nth-child(even) { padding-left: var(--s-6); border-left: 1px solid var(--c-line); }
.cap-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.12); color: #B7A6FF; }
.cap-ico svg { width: 20px; height: 20px; }
.cap h3 { font-size: 1.25rem; margin-bottom: var(--s-2); padding-top: 8px; }
.cap p { color: var(--c-text-muted); }
.cap .where { display: inline-block; margin-top: var(--s-3); font-size: 0.8125rem; color: var(--c-warn); }
@media (max-width: 760px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(even) { padding: var(--s-5) 0; border-left: 0; }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split h2 { font-size: var(--t-h2); }
.split .lead { margin-top: var(--s-5); }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; gap: var(--s-6); } }
.sticky-col { position: sticky; top: 120px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

.figure { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-bg-raised); }
.figure img { width: 100%; }
.figure figcaption { padding: var(--s-3) var(--s-5); font-size: var(--t-small); color: var(--c-text-muted); border-top: 1px solid var(--c-line); }
figure { margin: 0; }

/* compare: marketing site vs web app */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.compare-col { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); }
.compare-col--site { background: var(--c-paper); color: var(--c-ink); }
.compare-col--app { background: var(--c-bg-raised); border: 1px solid var(--c-line); }
.compare-col h3 { font-size: var(--t-h3); margin: var(--s-5) 0 var(--s-3); }
.compare-col > p { color: var(--c-text-muted); }
.compare-col--site > p { color: var(--c-ink-muted); }
.compare-col img { border-radius: var(--r-md); width: 100%; }
.compare-col ul { list-style: none; margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.compare-col li { display: flex; gap: var(--s-3); align-items: baseline; }
.compare-col li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 2px; background: var(--c-violet); transform: translateY(-2px); }
.compare-col--app li::before { background: var(--c-cyan); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-5); align-items: center;
  padding: var(--s-5) 0; font: 600 1.1875rem/1.35 var(--f-display); letter-spacing: -0.01em;
  min-height: 64px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #C8BCFF; }
.faq .plus { position: relative; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-line-strong); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .2s var(--ease); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details[open] .plus { border-color: var(--c-violet); background: rgba(124,92,255,.15); }
.faq .answer { padding: 0 var(--s-8) var(--s-5) 0; color: var(--c-text-muted); max-width: 46em; }
.faq .answer p + p { margin-top: var(--s-3); }
@media (max-width: 600px) { .faq .answer { padding-right: 0; } .faq summary { font-size: 1.0625rem; } }

/* ---------- case study ---------- */
.cs-hero-img { margin-top: var(--s-8); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-line); }
.cs-hero-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--c-line); }
.cs-facts > div { padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.cs-facts > div + div { padding-left: var(--s-5); border-left: 1px solid var(--c-line); }
.cs-facts dt { font-size: var(--t-small); color: var(--c-text-muted); margin-bottom: var(--s-2); }
.cs-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .cs-facts { grid-template-columns: 1fr 1fr; } .cs-facts > div:nth-child(3) { padding-left: 0; border-left: 0; } .cs-facts > div:nth-child(n+3) { border-top: 1px solid var(--c-line); } }
.cs-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s-8); }
.cs-toc { position: sticky; top: 120px; align-self: start; list-style: none; display: grid; gap: var(--s-2); font-size: var(--t-small); border-left: 1px solid var(--c-line); }
.cs-toc a { display: block; padding: 4px 0 4px var(--s-4); color: var(--c-text-muted); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.cs-toc a:hover { color: var(--c-text); border-left-color: var(--c-violet); }
.cs-sec { padding-bottom: var(--s-8); }
.cs-sec + .cs-sec { padding-top: var(--s-8); border-top: 1px solid var(--c-line); }
.cs-sec h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: var(--s-5); }
.cs-sec p { color: var(--c-text-muted); max-width: 42em; font-size: 1.0625rem; }
.cs-sec p + p { margin-top: var(--s-4); }
.cs-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-4); max-width: 42em; }
.cs-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); color: var(--c-text-muted); }
.cs-list li b { color: var(--c-text); font-weight: 600; }
.cs-list svg { width: 20px; height: 20px; color: var(--c-cyan); margin-top: 3px; }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-6); }
.cs-gallery .figure:first-child { grid-column: 1 / -1; }
.cs-placeholder { padding: var(--s-6); border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg); color: var(--c-text-muted); max-width: 42em; }
.cs-placeholder b { color: var(--c-text); display: block; margin-bottom: var(--s-2); }
@media (max-width: 960px) { .cs-body { grid-template-columns: 1fr; } .cs-toc { display: none; } }
@media (max-width: 600px) { .cs-gallery { grid-template-columns: 1fr; } .cs-hero-img img { aspect-ratio: 4 / 3; } }

/* ---------- about ---------- */
.statement { font: 700 clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem)/1.12 var(--f-display); letter-spacing: -0.03em; max-width: 22em; text-wrap: balance; }
.statement .soft { color: var(--c-text-muted); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.principles h3 { font-size: 1.375rem; margin: var(--s-4) 0 var(--s-3); }
.principles p { color: var(--c-ink-muted); }
.principles .value-ico { margin-bottom: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: var(--s-6); } }
.cap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.cap-tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); min-height: 200px; padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .2s, background .2s; }
.cap-tile:hover { border-color: var(--c-violet); background: rgba(124,92,255,.06); }
.cap-tile svg { width: 28px; height: 28px; color: #B7A6FF; }
.cap-tile b { font: 600 1.125rem/1.25 var(--f-display); }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr 1fr; } .cap-tile { min-height: 140px; } }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; gap: var(--s-7); } }
.contact-methods { display: grid; gap: var(--s-3); }
.method {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: center;
  padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg-raised);
  text-decoration: none; transition: border-color .2s;
}
a.method:hover { border-color: var(--c-violet); }
.method-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(124,92,255,.14); color: #C2B4FF; }
.method-ico svg { width: 22px; height: 22px; }
.method small { display: block; font-size: var(--t-small); color: var(--c-text-muted); }
.method b { display: block; font-weight: 600; font-size: 1.0625rem; word-break: break-word; }
.method .pending { color: var(--c-text-muted); font-weight: 500; font-style: italic; }
.method-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-2); }
.method-actions .btn { width: 100%; }
.contact-aside-note { margin-top: var(--s-6); font-size: var(--t-small); color: var(--c-text-muted); }

.form-card { background: var(--c-paper-raised); color: var(--c-ink); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.form-card > p { color: var(--c-ink-muted); margin-top: var(--s-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); margin-top: var(--s-6); }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; color: var(--c-ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--c-ink-muted); }
.field .req { color: var(--c-error-ink); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 1rem/1.4 var(--f-body); color: var(--c-ink);
  background: #F6F6F8; border: 1.5px solid #D6D7DE; border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 160px; resize: vertical; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314151C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: #8C8E9A; }
.input:hover, .select:hover, .textarea:hover { border-color: #B4B6C1; }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--c-violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-error-ink); background: #FFF6F7; }
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(196, 43, 61, 0.18); }
.field-error { display: none; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--c-error-ink); font-weight: 500; }
.field-error svg { width: 16px; height: 16px; flex: none; }
.field.has-error .field-error { display: flex; }
.hint { font-size: 0.8125rem; color: var(--c-ink-muted); }
.counter { font-size: 0.8125rem; color: var(--c-ink-muted); text-align: right; font-variant-numeric: tabular-nums; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #D6D7DE; border-radius: var(--r-pill); font-size: 0.9375rem; background: #F6F6F8; transition: all .15s; }
.radio input:hover + span { border-color: #B4B6C1; }
.radio input:checked + span { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.radio input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.3); border-color: var(--c-violet); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; cursor: pointer; font-size: 0.9375rem; color: var(--c-ink-muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-violet); cursor: pointer; }
.check a { color: var(--c-ink); font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid #E3E4EA; }
.form-foot .hint { max-width: 26em; }
.form-card .btn--primary { min-width: 180px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-size: 0.9375rem; margin-top: var(--s-5); }
.alert svg { width: 22px; height: 22px; }
.alert b { display: block; margin-bottom: 2px; }
.alert ul { margin: var(--s-2) 0 0; padding-left: 18px; }
.alert a { font-weight: 600; }
.alert--error { background: #FFF0F2; color: #8E1C2B; border: 1px solid #F5C2C9; }
.alert--success { background: #ECFBF3; color: #11603A; border: 1px solid #B6EBCF; }
.alert--info { background: #F1EEFF; color: #3B2A9B; border: 1px solid #D7CFFF; }
.alert[hidden] { display: none; }

.success-panel { text-align: left; padding: var(--s-4) 0; }
.success-panel .tick { width: 64px; height: 64px; border-radius: 50%; background: #ECFBF3; color: #16824E; display: grid; place-items: center; margin-bottom: var(--s-6); border: 1px solid #B6EBCF; }
.success-panel .tick svg { width: 30px; height: 30px; }
.success-panel h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.success-panel p { color: var(--c-ink-muted); margin-top: var(--s-4); max-width: 34em; }
.success-panel ol { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); counter-reset: s; }
.success-panel ol li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); color: var(--c-ink-muted); }
.success-panel ol li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EDEDF1; color: var(--c-ink); font-weight: 600; font-size: 0.875rem; }
.success-panel .btn-row { margin-top: var(--s-7); }
.success-panel .btn:not(.btn--primary) { --btn-fg: var(--c-ink); --btn-bd: #C9CAD3; }

/* ---------- legal / prose ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.625rem; margin: var(--s-8) 0 var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-text-muted); font-size: 1.0625rem; }
.prose p + p { margin-top: var(--s-4); }
.prose ul { padding-left: 20px; margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.prose a { color: var(--c-text); }
.placeholder-mark { color: var(--c-warn); font-style: italic; }

/* ---------- misc ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found h1 { font-size: var(--t-h1); }
.not-found .lead { margin: var(--s-5) 0 var(--s-6); }
.rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.rule-head h2 { font-size: var(--t-h2); }
.cs-gallery .crop-l, .cs-gallery .crop-r { aspect-ratio: 1 / 1; object-fit: cover; }
.cs-gallery .crop-l { object-position: 18% 50%; }
.cs-gallery .crop-r { object-position: 82% 50%; }
.page-hero:not(.page-hero--text) h1 { font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem); }
.btn svg { width: 18px; height: 18px; flex: none; }
.method b { word-break: normal; overflow-wrap: break-word; }
