/* Layout: centred column with side-by-side grids on wide screens, black on white, soft grey pills and cards, large rounded corners, generous white space.
   Violet survives only as a small accent (logo full stop, links, focus ring). */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F5F5F5;
  --chip: #FFFFFF;
  --edge: transparent;
  --fg: #0A0A0A;
  --muted: #6B6B6B;
  --line: #EBEBEB;
  --accent: #5B3DF5;
  --on-accent: #FFFFFF;
  --ok: #16A34A;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(2rem, 5.2vw, 2.75rem);
  --step-3: clamp(2.6rem, 6vw, 4.5rem);
  --radius: 24px;
  --col: 1120px;
  --narrow: 760px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C; --surface: #0B0B0C; --soft: #1E1E21; --chip: #36363C; --edge: rgba(255,255,255,.09); --fg: #FAFAFA; --muted: #B9B9C0; --line: #303036;
    --accent: #9D8BFF; --on-accent: #0A0A0A; --ok: #4ADE80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --surface: #0B0B0C; --soft: #1E1E21; --chip: #36363C; --edge: rgba(255,255,255,.09); --fg: #FAFAFA; --muted: #B9B9C0; --line: #303036;
  --accent: #9D8BFF; --on-accent: #0A0A0A; --ok: #4ADE80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.inner { max-width: calc(var(--col) + 32px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 600; }
h1 { font-size: var(--step-3); letter-spacing: -0.045em; }
h2 { font-size: var(--step-2); letter-spacing: -0.04em; }
h3 { font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.label { width: fit-content; background: var(--soft); color: var(--fg); font-size: 0.92rem; font-weight: 500; line-height: 1.2; padding: 8px 16px; border-radius: 999px; }
.mark { color: inherit; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: var(--fg); color: var(--bg);
  padding: 15px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease; }
.btn:hover { opacity: .82; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: var(--soft); color: var(--fg); }
.btn.small { padding: 10px 18px; font-size: 0.92rem; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.name { font-weight: 800; letter-spacing: -0.06em; font-size: 1.75rem; line-height: 1; }
.name .mark { color: var(--accent); }
a.name { color: var(--fg); text-decoration: none; }
header .btn { white-space: nowrap; }
header nav { display: flex; gap: 20px; align-items: center; }
header nav a.link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
header nav a.link:hover { color: var(--fg); }
.lang { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.lang button { font-family: var(--mono); font-size: 0.75rem; border: 0; background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--chip); color: var(--fg); }

.hero .inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 80px 48px; }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--soft); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: 0.92rem; font-weight: 500; line-height: 1.2; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 54ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.photo { position: relative; width: 100%; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); display: block; background: var(--soft); }
.photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; }
.photo figcaption strong { font-weight: 600; font-size: 0.98rem; }
.photo figcaption span { color: var(--muted); font-size: 0.85rem; }

section .inner { padding-block: 72px; }
section[id] { scroll-margin-top: 40px; }
.head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: 48px; }
.head p:not(.label) { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

.principle .inner { display: grid; gap: 24px; }
.principle .head { margin-bottom: 0; }
.principle .head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.035em; max-width: 26ch; }
.principle .copy { display: grid; gap: 14px; color: var(--muted); font-size: 1.1rem; text-align: center; max-width: 56ch; margin-inline: auto; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--soft); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; grid-template-rows: auto auto auto 1fr auto; min-width: 0; }
.card.ink { background: var(--fg); color: var(--bg); }
.card.ink .who, .card.ink .card-foot span { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.card.ink .card-foot { border-color: color-mix(in srgb, var(--bg) 18%, transparent); }
.card h3 { font-size: 1.45rem; letter-spacing: -0.03em; }
.card .who { color: var(--muted); font-size: 1rem; max-width: 52ch; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 1rem; }
.card li::before { content: "→"; color: var(--muted); }
.card.ink li::before { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.tag { justify-self: start; font-size: 0.85rem; font-weight: 500; line-height: 1.2; background: var(--chip); color: var(--fg); padding: 6px 12px; border-radius: 999px; }
.card.ink .tag { background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); }
.card-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-foot strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card-foot span { color: var(--muted); font-size: 0.92rem; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--soft); }
.case strong { font-size: clamp(2.4rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.case p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 24px; border-radius: var(--radius); background: var(--soft); }
.step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 1rem; }

.about .inner, #faq .inner { max-width: calc(var(--narrow) + 32px); }
.about-text { display: grid; gap: 18px; justify-items: center; text-align: center; }
.legal .about-text { justify-items: start; text-align: left; }
.about-text > h2 { margin-bottom: 14px; }
.about-text p:not(.label) { font-size: 1.1rem; color: var(--muted); }
.legal .about-text p:not(.label) { font-size: 1rem; }
.legal h3 { font-size: 1.1rem; margin-top: 10px; }
.creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.creds span { font-size: 0.9rem; font-weight: 500; line-height: 1.2; padding: 8px 14px; border-radius: 999px; background: var(--soft); }

.faq { display: grid; gap: 10px; }
details { background: var(--soft); border-radius: 20px; padding-inline: 24px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--fg); font-weight: 500; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

.cta-card { background: var(--soft); border-radius: 32px; padding: clamp(36px, 8vw, 72px) clamp(24px, 6vw, 56px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta-card .label { background: var(--chip); }
.cta-card p:not(.label) { color: var(--muted); max-width: 46ch; font-size: 1.1rem; }
.contact-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 6px; }
.cta-card .btn:not(.accent) { background: var(--chip); color: var(--fg); }

/* hairline edge so grey surfaces separate from the page in dark mode (transparent in light) */
.card:not(.ink), .case, .step, details, .cta-card, .label, .status, .creds span, .btn.ghost, .lang { box-shadow: inset 0 0 0 1px var(--edge); }

footer { border-top: 1px solid var(--line); margin-top: 48px; }
footer .inner { padding-block: 28px 44px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 0.92rem; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-text > *, .photo { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .photo { animation-delay: .22s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  header nav a.link { display: none; }
  .hero .inner { grid-template-columns: 1fr; padding-block: 56px 24px; gap: 40px; }
  .photo { max-width: 420px; }
  .services, .cases { grid-template-columns: 1fr; }
  section .inner { padding-block: 56px; }
}
@media (max-width: 560px) {
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .card, .case { padding: 24px; }
}

/* "Previously at" employer strip (index.html, between .hero and .principle) */
.prev .inner { padding-block: 40px 24px; }
.prev-label { margin: 0 auto 28px; }
.prev-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.prev-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 20px; }
.prev-item { display: flex; align-items: center; padding-right: 56px; }
.prev-logo { height: 32px; display: flex; align-items: center; }
.prev-logo span { font-weight: 600; font-size: 1.4rem; letter-spacing: -.03em; color: var(--muted); white-space: nowrap; }
/* when real logos go in: same height, one tone, readable in dark mode */
.prev-logo img { height: 100%; width: auto; display: block; filter: grayscale(1); opacity: .6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prev-logo img { filter: grayscale(1) invert(1); } }
.prev-note { margin: 24px auto 0; max-width: 62ch; text-align: center; font-size: .78rem; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .prev-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: prev-scroll 45s linear infinite; }
  .prev-viewport:hover .prev-track, .prev-viewport:focus-within .prev-track { animation-play-state: paused; }
  @keyframes prev-scroll { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .prev-viewport { -webkit-mask-image: none; mask-image: none; }
  .prev-track [aria-hidden="true"] { display: none; }
}
@media (max-width: 860px) { .prev-item { padding-right: 40px; } .prev-logo span { font-size: 1.2rem; } }
