/* ==========================================================================
   Sonryan Technologies
   Concept: frosted glass over a bright blue sky, in the colours of the logo.
   Palette  sky #F2F8FF to #C4DBFF · navy #0A1F5C · blue #1A66F2 · deep blue #0B3CC1
            cyan #20B8FF · silver #C8D3E6
   Type     Bricolage Grotesque (display) + Hanken Grotesk (text)
   ========================================================================== */

:root {
  --sky-0: var(--brand-canvas);
  --sky-1: #DCEBFF;
  --sky-2: #CFE2FF;
  --navy: var(--brand-navy);
  --text: #10265C;
  --muted: #2E4A80;
  --blue: var(--brand-blue);
  --blue-deep: var(--brand-blue-deep);
  --cyan: var(--brand-cyan);
  --silver: var(--brand-silver);
  --line: rgba(20, 70, 170, .16);
  --danger: #B3261E;
  --ok: #0B7A43;

  /* Theme-able surfaces (light values; dark overrides below) */
  --link: #0B3CC1;
  --btn-a: #0B3CC1;
  --btn-b: #1A66F2;
  --h1-a: #0A1F5C;
  --h1-b: #1A66F2;
  --lede: #2C4879;
  --ink-rgb: 10, 31, 92;
  --hi: #FFFFFF;
  --glass-a: rgba(255, 255, 255, .74);
  --glass-b: rgba(255, 255, 255, .5);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-inset: #fff;
  --surface-a: rgba(255, 255, 255, .92);
  --surface-b: rgba(255, 255, 255, .82);
  --pane-a: rgba(255, 255, 255, .9);
  --pane-b: rgba(255, 255, 255, .78);
  --ghost-bg: rgba(255, 255, 255, .6);
  --ghost-bg-h: rgba(255, 255, 255, .95);
  --ctl-bg: rgba(255, 255, 255, .7);
  --chip-bg: rgba(255, 255, 255, .65);
  --input-bg: rgba(255, 255, 255, .92);
  --menu-bg: #FFFFFF;
  --foot-a: rgba(255, 255, 255, .55);
  --foot-b: rgba(255, 255, 255, .25);
  --doc-a: rgba(255, 255, 255, .88);
  --doc-b: rgba(255, 255, 255, .74);
  --tint: rgba(26, 102, 242, .09);
  --tint-strong: rgba(26, 102, 242, .13);
  --tint-badge: rgba(26, 102, 242, .1);
  --input-line: rgba(20, 70, 170, .3);
  --input-line-h: rgba(20, 70, 170, .55);

  --display: var(--brand-display-font);
  --body: var(--brand-body-font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --maxw: 1180px;
}

/* Dark theme: set on <html data-theme="dark"> by assets/theme.js (light, dark or follow the system) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --sky-0: #081431;
  --sky-1: #0A1B42;
  --sky-2: #0D2656;
  --navy: #EAF2FF;
  --text: #D6E4FF;
  --muted: #C2D5F6;
  --blue: #5B9BFF;
  --cyan: #38C4FF;
  --line: rgba(150, 190, 255, .22);
  --danger: #FF8A80;
  --ok: #5FD99B;
  --link: #8FBBFF;
  --btn-a: #0B3CC1;
  --btn-b: #1F6BF5;
  --h1-a: #FFFFFF;
  --h1-b: #8FC2FF;
  --lede: #C4D6F5;
  --ink-rgb: 200, 220, 255;
  --hi: rgba(91, 155, 255, .22);
  --glass-a: rgba(18, 38, 88, .72);
  --glass-b: rgba(12, 28, 70, .58);
  --glass-edge: rgba(150, 190, 255, .25);
  --glass-inset: rgba(190, 215, 255, .18);
  --surface-a: rgba(16, 34, 82, .9);
  --surface-b: rgba(11, 27, 68, .86);
  --pane-a: rgba(18, 38, 88, .88);
  --pane-b: rgba(12, 28, 70, .8);
  --ghost-bg: rgba(255, 255, 255, .06);
  --ghost-bg-h: rgba(255, 255, 255, .14);
  --ctl-bg: rgba(255, 255, 255, .08);
  --chip-bg: rgba(255, 255, 255, .08);
  --input-bg: rgba(7, 18, 48, .75);
  --menu-bg: #0C1C46;
  --foot-a: rgba(8, 20, 49, .55);
  --foot-b: rgba(8, 20, 49, .25);
  --doc-a: rgba(16, 34, 82, .88);
  --doc-b: rgba(11, 27, 68, .82);
  --tint: rgba(120, 170, 255, .14);
  --tint-strong: rgba(120, 170, 255, .22);
  --tint-badge: rgba(120, 170, 255, .2);
  --input-line: rgba(150, 190, 255, .4);
  --input-line-h: rgba(170, 205, 255, .7);
}

/* Dark theme orb: a dimmer blue light, so text that scrolls across the fixed orb stays readable (every pixel checked against AA) */
:root[data-theme="dark"] .orb-core {
  background: radial-gradient(circle at 36% 30%, #2250A0 0%, #1C4590 30%, #15367A 65%, #0E2A6A 100%);
}
:root[data-theme="dark"] .orb-core::after { opacity: .4; }
:root[data-theme="dark"] .orb::before { opacity: .3; }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; color-scheme: light; }

body {
  margin: 0;
  background: var(--sky-1);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(26, 102, 242, .25); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Backdrop ---------------------------------------------------- */

.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(90% 60% at 78% -5%, var(--hi) 0%, transparent 62%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 55%, var(--sky-2) 100%);
}

.field { position: absolute; border-radius: 50%; }
.field-blue {
  width: 55vmax; height: 55vmax; left: -22vmax; top: 6vh;
  background: radial-gradient(circle, rgba(32, 184, 255, .38), transparent 65%);
}
.field-deep {
  width: 48vmax; height: 48vmax; right: -14vmax; bottom: -24vmax;
  background: radial-gradient(circle, rgba(26, 102, 242, .2), transparent 65%);
}

/* The orb: a bright blue light behind the glass, with faint globe rings */
.orb {
  position: absolute;
  width: min(60vmin, 580px); aspect-ratio: 1;
  right: max(2vw, calc((100vw - var(--maxw)) / 2 - 30px));
  top: 14vh;
  animation: rise 2.2s cubic-bezier(.2, .7, .2, 1) both;
  transition: opacity .8s;
}
.orb-core {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0%, #CDEBFF 16%, #5DB0FF 48%, var(--blue) 80%, var(--blue-deep) 100%);
}
.orb-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .34) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle, #000 55%, transparent 100%);
}
/* Glow is a gradient rather than a box-shadow: cheaper to paint and never clipped into a visible rectangle */
.orb::before {
  content: ""; position: absolute; inset: -38%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(32, 184, 255, .5) 0%, rgba(26, 102, 242, .22) 38%, transparent 64%);
}
body.scrolled .orb { opacity: .28; }

/* ---------- Glass ------------------------------------------------------- */

.glass {
  position: relative;
  background: linear-gradient(135deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-inset),
    0 0 0 1px rgba(26, 102, 242, .07),
    0 24px 60px -28px rgba(11, 60, 193, .5);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(244, 249, 255, .96); }
}

/* Content panels are more opaque so text stays readable wherever the orb sits behind them */
.tile, .pkg, .panel, .faq, .stage-card, .cta-band, .principle, .form, .timeline {
  background: linear-gradient(135deg, var(--surface-a), var(--surface-b));
}

/* Light that follows the pointer across a glass surface */
.spot { overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(32, 184, 255, .2), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, filter .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 12px 28px -10px rgba(26, 102, 242, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--navy);
  background: var(--ghost-bg);
  border-color: rgba(26, 102, 242, .3);
}
.btn-ghost:hover { background: var(--ghost-bg-h); border-color: rgba(26, 102, 242, .55); }
.btn-small { padding: 11px 20px; font-size: .95rem; }
.btn-block { width: 100%; padding-block: 16px; }

/* ---------- Navigation -------------------------------------------------- */

.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding-inline: var(--gutter);
}
.nav {
  width: min(var(--maxw), 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 8px 16px; border-radius: 999px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { height: 42px; width: auto; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .logo-on-light { display: none; }
.brand-name { font: 700 1.08rem/1 var(--display); letter-spacing: -.01em; color: var(--navy); }
.brand-name span { font-weight: 500; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 20px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin {
  padding: 9px 14px; border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.nav-signin:hover { background: var(--tint); }
.nav-signin[aria-current="page"] { background: var(--tint-strong); }
.menu-list { display: flex; gap: 6px; }
.menu-list a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600;
  transition: color .2s, background .2s;
}
.menu-list a:hover { color: var(--navy); background: var(--tint); }
.menu-list a[aria-current="page"] { color: var(--navy); background: var(--tint-strong); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ctl-bg);
  cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s, opacity .2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.theme-btn {
  width: 44px; height: 44px; margin-left: 10px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--ctl-bg); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background .2s, border-color .2s;
}
.theme-btn:hover { background: var(--ghost-bg-h); border-color: rgba(26, 102, 242, .45); }
.theme-btn .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-btn[data-pref="system"] .ic-system, .theme-btn[data-pref="light"] .ic-light, .theme-btn[data-pref="dark"] .ic-dark { display: block; }

/* ---------- Headings ---------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); text-wrap: balance; color: var(--navy); }

h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  background: linear-gradient(165deg, var(--h1-a) 35%, var(--h1-b) 115%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
}
h1 .line { display: block; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 650;
}
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.012em; font-weight: 650; }

p { color: var(--muted); max-width: 62ch; text-wrap: pretty; }

/* ---------- Hero -------------------------------------------------------- */

.hero { position: relative; padding: 150px 0 80px; min-height: 100svh; display: flex; align-items: center; isolation: isolate; }

/* City skyline from the brand banner, faded into the sky */
.hero::before {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(52vw, 760px); aspect-ratio: 760 / 778;
  background: url("hero-city.jpg") right bottom / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, #000 50%, transparent 100%);
  mask-composite: intersect;
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid; align-items: center; gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.lede { margin-top: 26px; font-size: 1.25rem; line-height: 1.55; color: var(--lede); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: .95rem; }

.stage { position: relative; height: 540px; }

/* Panes are the most opaque glass: they sit on top of the orb and carry live-looking content */
.pane {
  position: absolute; border-radius: 26px;
  background: linear-gradient(135deg, var(--pane-a), var(--pane-b));
  animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.pane-project { top: 14px; left: 6%; width: min(350px, 88%); padding: 20px 22px 18px; animation-delay: .7s; }
.pane-code    { top: 292px; right: 0; width: min(250px, 70%); padding: 18px 20px; border-radius: 20px; animation-delay: .95s;
  background: linear-gradient(135deg, rgba(10, 31, 92, .96), rgba(14, 44, 120, .92)); border-color: rgba(255, 255, 255, .25); }
.pane-toast   { bottom: 14px; left: 0; padding: 13px 20px; border-radius: 999px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; color: var(--navy); animation-delay: 1.2s; }

.pane-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--ink-rgb), .22); }
.pane-title { font: 650 1rem/1 var(--display); color: var(--navy); }

.steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(20, 70, 170, .12);
  font-weight: 500; color: var(--muted);
}
.steps li:last-child { border-bottom: 0; }
.steps em { margin-left: auto; font-style: normal; font-size: .85rem; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(var(--ink-rgb), .35); flex: none; }
.steps .done { color: var(--navy); }
.steps .done .tick { border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.steps .now { color: var(--navy); }
.steps .now .tick { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 102, 242, .16); }

.bar { height: 6px; border-radius: 6px; background: rgba(var(--ink-rgb), .1); margin-top: 14px; overflow: hidden; }
.bar-fill { width: 62%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.pane-foot { margin-top: 12px; font-size: .8rem; color: var(--muted); }

.pane-code pre { margin: 0; font: 400 .85rem/1.75 var(--mono); color: #E3EDFF; white-space: pre-wrap; }
.pane-code code { font: inherit; }
.c-dim { color: #9FB4E6; }
.c-key { color: #7FD4FF; }

.live {
  width: 10px; height: 10px; border-radius: 50%; background: #12B76A;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, .2);
}

/* ---------- Sections ---------------------------------------------------- */

.section { padding: 100px 0; }
.section-head { margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 1.125rem; }

/* Services: bento with deliberately uneven tiles */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
}
.tile { padding: 28px; border-radius: 22px; transition: border-color .25s, box-shadow .25s; }
.tile:hover { border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-inset), 0 0 0 1px rgba(26, 102, 242, .25), 0 28px 60px -26px rgba(11, 60, 193, .55); }
.tile p { margin-top: 10px; font-size: 1rem; }

.tile-lead { grid-column: 1 / 3; grid-row: 1 / 3; padding: 38px; border-radius: 34px; display: flex; flex-direction: column; }
.tile-lead h3 { font-size: 1.9rem; letter-spacing: -.02em; }
.tile-lead p { font-size: 1.1rem; }
.tile-a { grid-column: 3; grid-row: 1; }
.tile-b { grid-column: 4; grid-row: 1; }
.tile-c { grid-column: 3; grid-row: 2; }
.tile-d { grid-column: 4; grid-row: 2; }
.tile-e { grid-column: 1 / 3; grid-row: 3; }
.tile-f { grid-column: 3 / 5; grid-row: 3; }
.tile-wide {
  grid-column: 1 / -1; grid-row: 4; border-radius: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.ico {
  width: 46px; height: 46px; padding: 11px; margin-bottom: 18px; border-radius: 14px;
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(26, 102, 242, .09); border: 1px solid rgba(26, 102, 242, .22);
}

.ticks { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--navy); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-50%) rotate(-45deg);
}

/* Packages: three equal cards, buttons aligned at the bottom */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pkg {
  display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 28px;
  transition: border-color .25s, box-shadow .25s;
}
.pkg:hover { border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-inset), 0 0 0 1px rgba(26, 102, 242, .25), 0 28px 60px -26px rgba(11, 60, 193, .55); }
.pkg h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.pkg-for { margin-top: 10px; font-size: 1.02rem; }
.pkg .ticks { margin-top: 0; padding-top: 24px; margin-bottom: 28px; }
.pkg-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pkg-price { font: 700 1.05rem/1.2 var(--display); color: var(--navy); }

/* ---------- Inner pages ------------------------------------------------- */

/* Smaller, calmer orb behind inner pages so headings stay readable */
.inner .orb { width: min(44vmin, 440px); top: 9vh; opacity: .6; }

.page-head { padding: 150px 0 24px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); max-width: 18ch; }
.page-head .lede { margin-top: 20px; }
.crumbs { margin-bottom: 18px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--link); text-underline-offset: 4px; }
.crumbs span[aria-hidden] { margin: 0 6px; }
.section.tight { padding: 48px 0; }
.section-more { margin-top: 36px; }

/* Services list: equal tiles in two bands, each a link to its own page */
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid .tile { display: flex; flex-direction: column; }
.tile-h { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.012em; font-weight: 650; }
.more { margin-top: auto; padding-top: 22px; font-weight: 700; color: var(--link); text-decoration: none; }
.more::after { content: " \2192"; transition: margin-left .2s; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more:hover::after { margin-left: 4px; }

.band + .band { padding-top: 12px; }
.band-h { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 20px; }
.steps-list { counter-reset: st; margin-top: 18px; display: grid; gap: 14px; }
.steps-list li { counter-increment: st; position: relative; padding-left: 46px; color: var(--navy); font-weight: 600; }
.steps-list li::before {
  content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .9rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
}
/* One service: details beside an "ask" card */
.detail-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
.panel { padding: 36px; border-radius: 28px; }
.panel h2 { font-size: 1.55rem; letter-spacing: -.02em; }
.panel .ticks { padding-top: 22px; margin-top: 0; }
.panel p { margin-top: 12px; }
.panel-gap { margin-top: 34px; font-size: 1.15rem; }
.panel h3.panel-gap { font-size: 1.05rem; }
.panel-btn { margin-top: 22px; }
.linklist { margin-top: 14px; display: grid; gap: 10px; }
.linklist a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

.detail-main { display: grid; gap: 20px; }
.ask { position: sticky; top: 104px; }
.panel-note { margin-top: 26px; font-size: .98rem; }
.panel-note a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }
.pricing-note { margin-top: 24px; font-size: 1rem; max-width: 70ch; }
.scope p { margin-top: 12px; }

/* FAQ: native details elements, so they work without JavaScript */
.faq { padding: 36px; border-radius: 28px; }
.faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.faq-list { margin-top: 18px; }
.panel .faq-list { margin-top: 10px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font: 650 1.05rem/1.35 var(--display); color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 600 1.2rem/1 var(--body); color: var(--link); background: var(--tint-badge);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 48px 18px 0; margin: 0; }

/* Closing call to action, shared by most pages */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 32px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Process page: one card per stage */
.stages { display: grid; gap: 16px; }
.stage-card { display: flex; gap: 22px; align-items: flex-start; padding: 32px 34px; border-radius: 28px; }
.stage-card .step-no { flex: none; margin: 0; width: 44px; height: 44px; font-size: 1.1rem; }
.stage-card h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.stage-card p { margin-top: 8px; }
.exchange { margin-top: 20px; display: grid; gap: 16px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exchange dt { font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.exchange dd { margin: 8px 0 0; color: var(--muted); }

/* Approach: the one place a numbered sequence is real */
.timeline {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  padding: 40px 36px; border-radius: 30px;
}
.timeline li { position: relative; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: 52px; right: -20px; height: 1px;
  background: linear-gradient(90deg, rgba(26, 102, 242, .6), rgba(26, 102, 242, .08));
}
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px;
  border-radius: 50%; font: 700 .95rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
}
.timeline p { margin-top: 8px; font-size: .98rem; }
.timeline-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.about-copy p { margin-top: 20px; font-size: 1.15rem; }
.stack { margin-top: 40px; }
.stack h3 { font-size: 1.05rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--navy);
  border: 1px solid var(--line); background: var(--chip-bg);
}

.principles { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle { padding: 30px 28px; border-radius: 24px; }
.principle p { margin-top: 10px; font-size: 1rem; }
.tech-panel { padding: 34px 36px; border-radius: 28px; background: linear-gradient(135deg, var(--surface-a), var(--surface-b)); }
.tech-panel p { margin-top: 10px; max-width: 60ch; }
.tech-panel .chips { margin-top: 22px; }

/* Home: products and technology */
.eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px; border-radius: 28px;
  background: linear-gradient(135deg, var(--surface-a), var(--surface-b)); }
.product h2, .product h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.product-body p:not(.eyebrow) { margin-top: 12px; font-size: 1.08rem; max-width: 62ch; }
.chips-tight { margin-top: 18px; }
.tech-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tech-grid .tile { display: block; }
.tech-grid h3 { font-size: 1.15rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-copy p { margin-top: 18px; font-size: 1.15rem; }
.next-h { margin-top: 34px; font-size: 1.05rem; }
.next-steps { margin-top: 16px; display: grid; gap: 16px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps .step-no { flex: none; width: 30px; height: 30px; margin: 0; font-size: .85rem; }
.next-steps li div { font-size: 1rem; color: var(--muted); }
.next-steps strong { color: var(--navy); }
.mail-line { font-size: 1rem !important; }
.mail-line a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

.form { padding: 34px; border-radius: 30px; display: grid; gap: 20px; }
.field-row { display: grid; gap: 8px; }
.field-row label { font-weight: 600; font-size: .95rem; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--input-line); background: var(--input-bg);
  color: var(--navy); font: 400 1rem/1.4 var(--body);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input:hover, select:hover, textarea:hover { border-color: var(--input-line-h); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(26, 102, 242, .2);
}
.field-row.invalid input, .field-row.invalid textarea { border-color: #D92D20; }
.err { color: var(--danger); font-size: .9rem; font-weight: 500; }
.form .notice { margin-top: 0; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--navy); }
.form-status.ok { color: var(--ok); font-weight: 600; }

/* Footer */
.footer { padding: 56px 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--foot-a), var(--foot-b)); }
.footer-grid { display: grid; gap: 36px 40px; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; align-items: start; }
.footer-brand p { margin-top: 16px; font-size: .95rem; }
.footer-h { font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--text); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.footer .brand { text-decoration: none; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-base p { font-size: .9rem; }

/* ---------- Motion ------------------------------------------------------ */

@keyframes rise {
  from { transform: translateY(34%) scale(.94); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes settle {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Pointer parallax uses the standalone `translate` property so it never fights the entrance transform */
.pane { translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .pane { animation: none; }
  .pane { translate: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 470px; max-width: 560px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lead { grid-column: 1 / -1; grid-row: auto; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: auto; grid-row: auto; }
  .tile-wide { grid-row: auto; }
  .packages { grid-template-columns: 1fr; max-width: 640px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .ask { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { padding-top: 130px; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding: 30px 28px; }
  .timeline li { padding: 0 0 28px 56px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline .step-no { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline li:not(:last-child)::after {
    top: 44px; bottom: 6px; left: 17px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(26, 102, 242, .6), rgba(26, 102, 242, .08));
  }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles, .tech-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 28px 24px; }
  .product-act .btn { width: 100%; }
  /* Stacked layout: park the orb behind the glass panes, away from the headline */
  .orb { width: 74vmin; top: max(64vh, 660px); right: -16vmin; }
  /* Inner pages have no hero panes: tuck the orb into the bottom corner, clear of headings */
  .inner .orb { top: auto; bottom: -18vmin; right: -22vmin; width: 60vmin; }
}

@media (max-width: 1260px) {
  .menu-btn { display: inline-flex; order: 3; }
  .theme-btn { order: 2; margin-left: auto; margin-right: 8px; }
  .menu {
    position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 16px;
    border-radius: 24px; border: 1px solid var(--line);
    background: var(--menu-bg);
    box-shadow: 0 24px 60px -20px rgba(11, 60, 193, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu-list { flex-direction: column; }
  .menu-list a { padding: 13px 14px; }
  .menu .btn { width: 100%; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-signin { padding: 12px 20px; font-size: .95rem; text-align: center; border: 1px solid var(--line); background: var(--ctl-bg); }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .hero::before { display: none; }
  .brand-name span { display: none; }
  .bento, .svc-grid, .footer-grid { grid-template-columns: 1fr; }
  .tile-lead { padding: 28px; }
  .panel, .faq, .tech-panel { padding: 26px 22px; }
  .section-more .btn { width: 100%; }
  .faq-item p { padding-right: 0; }
  .cta-band { padding: 30px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .stage-card { flex-direction: column; gap: 14px; padding: 26px 22px; }
  .exchange { grid-template-columns: 1fr; }
  .page-head { padding-top: 112px; }
  .stage { height: 570px; }
  .pane-code { top: 345px; }
  .form { padding: 24px; }
  .tile-wide .btn { width: 100%; }
  /* Blur and large glows are the costly parts on phones */
  .glass { -webkit-backdrop-filter: blur(12px) saturate(130%); backdrop-filter: blur(12px) saturate(130%); }
  .orb::before { inset: -26%; }
  .doc { padding: 28px 22px; }
}

/* ==========================================================================
   Pages that are plain documents (privacy, 404), and the honeypot
   ========================================================================== */

/* Honeypot: off-screen rather than display:none, because simple bots skip hidden fields */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.doc-wrap { padding: 140px 0 80px; min-height: 100svh; }
.doc { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 44px; border-radius: 30px;
  background: linear-gradient(135deg, var(--doc-a), var(--doc-b)); }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.35rem; margin-top: 38px; letter-spacing: -.015em; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 22px; list-style: disc; color: var(--muted); }
.doc li { max-width: 66ch; }
.doc a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }
.doc .meta { font-size: .95rem; margin-top: 14px; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.doc .actions .btn-primary { color: #fff; }
.doc-wide { width: min(900px, 100% - var(--gutter) * 2); }
.doc .lede { font-size: 1.12rem; max-width: 64ch; margin-top: 18px; }
.doc mark.todo { background: #FFE9A8; color: #4A3500; padding: 0 5px; border-radius: 6px; font-weight: 600; }
.doc-toc { margin-top: 26px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--chip-bg); }
.doc-toc .eyebrow { margin-bottom: 10px; }
.doc-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; padding-left: 22px; list-style: decimal; color: var(--muted); }
.doc-toc a { font-weight: 600; }
.doc h2[id] { scroll-margin-top: 110px; }
.rows { display: grid; gap: 14px; margin-top: 18px; }
.rows .row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 26px; padding: 20px 22px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--chip-bg); }
.rows dt { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.rows dd p:first-child { margin-top: 0; }
.rows dd p { margin-top: 8px; max-width: 66ch; }
@media (max-width: 720px) {
  .doc-toc ol { grid-template-columns: 1fr; }
  .rows .row { grid-template-columns: 1fr; padding: 18px; }
}
.notice {
  margin-top: 26px; padding: 14px 18px; border-radius: 16px; max-width: none;
  border: 1px solid rgba(26, 102, 242, .35); background: rgba(26, 102, 242, .08); color: var(--navy);
}

/* ==========================================================================
   Careers form extras, and sign-in / account pages
   ========================================================================== */

[hidden] { display: none !important; }

.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); }
.contact-copy .ticks { padding-top: 14px; }

/* Checkbox with a sentence beside it */
.field-row label.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  font-weight: 400; font-size: .95rem; color: var(--muted); cursor: pointer;
}
.check input[type="checkbox"] { width: 22px; height: 22px; padding: 0; margin: 1px 0 0; accent-color: var(--link); }
.check a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

.auth-section { padding: 150px 0 80px; min-height: 100svh; }
.auth-card { width: min(460px, 100%); margin-inline: auto; padding: 36px; border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.auth-card-wide { width: min(640px, 100%); }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); max-width: none; }
.auth-card h2 { font-size: 1.15rem; margin: 12px 0 14px; }
#account-view h2 { margin-top: 34px; }
#account-view .exchange { margin-top: 8px; }
.auth-card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.auth-card .field-row { grid-template-columns: minmax(0, 1fr); }
.auth-card input { min-width: 0; }
.auth-card .notice { margin-top: 0; }
/* An empty status line (it is a live region, so it stays in the page) must not leave a gap under the button */
.auth-card .form-status:empty { min-height: 0; height: 0; margin-block: -9px; }
.auth-lede { margin: 0; font-size: 1.02rem; color: var(--muted); }
.auth-links { margin: 0; font-size: .98rem; color: var(--muted); }
.auth-links a, .auth-card .notice a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }
.account-facts { margin-top: 4px; grid-template-columns: 1fr; }
.account-facts dd { overflow-wrap: anywhere; }
.signout-row { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-card .panel-note { margin-top: 6px; }

/* Password field with a Show / Hide button inside it */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  min-width: 64px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--link); font: 600 .9rem/1 var(--body); cursor: pointer;
}
.pw-toggle:hover { background: rgba(26, 102, 242, .1); }
.pw-toggle:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }

@media (max-width: 560px) {
  .auth-section { padding-top: 112px; }
  .auth-card { padding: 26px 20px; }
}

/* ---------- Accessibility and print variants ---------------------------- */

/* Windows high contrast and other forced-colour modes */
@media (forced-colors: active) {
  .backdrop, .hero::before { display: none; }
  h1 { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .glass, .pane, .tile, .pkg, .panel, .faq, .stage-card, .cta-band, .principle, .tech-panel, .product, .form, .timeline, .chips li, .doc { border: 1px solid CanvasText; background: Canvas; }
  .btn { border: 1px solid ButtonText; }
  .btn-primary { background: ButtonFace; color: ButtonText; }
  .step-no { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}

/* Visitors who ask for more contrast */
@media (prefers-contrast: more) {
  :root { --muted: #1B3470; --line: rgba(10, 31, 92, .5); }
  .glass, .tile, .pkg, .panel, .faq, .stage-card, .cta-band, .principle, .tech-panel, .product, .form, .timeline, .pane, .doc { background: rgba(255, 255, 255, .97); }
  .pane-code { background: #0A1F5C; }
  .btn-ghost { border-color: var(--navy); }
  .hero::before { display: none; }
}

/* Print: plain text on white, no effects */
@media print {
  .backdrop, .nav-wrap, .skip-link, .hero-actions, .stage, .form, .menu-btn, .footer ul { display: none !important; }
  .hero::before { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, p, li, a { color: #000 !important; -webkit-text-fill-color: #000; background: none; }
  .glass, .tile, .pkg, .panel, .faq, .stage-card, .cta-band, .principle, .tech-panel, .product, .timeline { background: none; border: 1px solid #999; box-shadow: none; }
  .section, .hero { padding: 24px 0; min-height: 0; }
}

/* Open roles on the careers page */
.roles { display: grid; gap: 18px; margin-top: 18px; }
.role { padding: 28px; border-radius: 22px; display: grid; gap: 12px; justify-items: start; }
.role h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.role p { max-width: 68ch; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.role details { width: 100%; }
.role summary { cursor: pointer; font-weight: 700; color: var(--link); }
.role h4 { margin-top: 14px; font-size: 1rem; }
.role .plain-list { margin-top: 8px; display: grid; gap: 6px; padding-left: 22px; list-style: disc; color: var(--muted); }
#careers-form { scroll-margin-top: 110px; }

/* ==========================================================================
   Updates, filters, team and journey
   ========================================================================== */
[hidden] { display: none !important; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  font: 600 .95rem/1 var(--body); padding: 11px 18px; border-radius: 999px; cursor: pointer; min-height: 44px;
  color: var(--text); background: var(--chip-bg); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, color .2s;
}
.chip-btn:hover { border-color: var(--blue); }
.chip-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: #fff; border-color: transparent; }
.chip-btn:focus-visible, .search-box input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.search-box input {
  font: 500 1rem/1.2 var(--body); min-height: 44px; width: min(320px, 100%); padding: 10px 16px; border-radius: 999px;
  color: var(--text); background: var(--input-bg); border: 1px solid var(--line);
}
.filter-count { min-height: 1.4em; margin: 6px 0 14px; font-size: .95rem; color: var(--muted); }
.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-grid-home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-card { padding: 26px; border-radius: 22px; display: grid; gap: 10px; align-content: start; }
.post-card .post-h { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
.post-card .post-h a { color: inherit; text-decoration: none; }
.post-card .post-h a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-lead { grid-column: 1 / -1; padding: 34px; }
.post-lead .post-h { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-lead p:not(.post-meta) { max-width: 62ch; font-size: 1.08rem; }
.post-meta { font-size: .92rem; color: var(--muted); font-weight: 600; }
.feed-line { margin-top: 14px; }
.feed-line a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

/* One update */
.post-crumb { font-size: .95rem; font-weight: 600; }
.post-crumb a { text-decoration: none; }
.post .lede { margin-top: 18px; }
.post-toc { margin-top: 22px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--chip-bg); }
.post-toc .eyebrow { margin-bottom: 8px; }
.post-toc ol { display: grid; gap: 6px; padding-left: 22px; list-style: decimal; color: var(--muted); }
.prose { margin-top: 26px; max-width: 70ch; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 36px; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.12rem; margin-top: 26px; scroll-margin-top: 110px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 24px; color: var(--muted); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li strong { color: var(--text); }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); color: var(--muted); font-size: 1.05rem; }
.prose code { font-size: .92em; padding: 2px 6px; border-radius: 6px; background: var(--chip-bg); border: 1px solid var(--line); }
.prose pre { padding: 16px 18px; border-radius: 14px; overflow-x: auto; background: var(--chip-bg); border: 1px solid var(--line); }
.prose pre code { padding: 0; border: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 30px; }
.post-img { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.share { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-h { font-weight: 700; color: var(--text); }
.doc .share-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 0; list-style: none; color: inherit; }
.doc .person-links, .doc .role-chips { list-style: none; padding-left: 0; }
.share-status { min-height: 1.4em; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 26px; }
.post-nav-link { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--chip-bg); text-decoration: none; color: var(--text); font-weight: 700; }
.post-nav-link span { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-nav-link:hover { border-color: var(--blue); }
.post-nav-next { text-align: right; }

/* Team */
.team-grid { display: grid; gap: 18px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.person { padding: 26px; border-radius: 22px; display: grid; gap: 8px; justify-items: start; align-content: start; }
.person h3 { font-size: 1.25rem; }
.person-role { font-weight: 600; color: var(--link); }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.avatar-initials { display: grid; place-items: center; font: 700 1.9rem/1 var(--display); color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); border: 0; }
.person-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; padding: 0; list-style: none; }
.person-links a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }

/* Journey */
.journey { position: relative; display: grid; gap: 22px; margin-top: 22px; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.journey-item { position: relative; padding-left: 40px; }
.journey-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: 0 0 0 5px var(--chip-bg); }
.journey-date { font-weight: 700; color: var(--link); font-size: .95rem; }
.journey-card { padding: 20px 24px; margin-top: 8px; border-radius: 18px; }
.journey-card h3 { font-size: 1.15rem; }
.journey-card p { margin-top: 8px; max-width: 62ch; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 720px) {
  .filter-bar { align-items: stretch; }
  .search-box input { width: 100%; }
  .post-lead { padding: 26px; }
  .post-nav-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Team area */
.staff-card { width: min(920px, 100%); margin-inline: auto; padding: 36px; border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.staff-card h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); max-width: none; }
.staff-card h2 { font-size: 1.15rem; }
.staff-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.staff-nav a { display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--text); }
.staff-nav a:hover { background: var(--chip-bg); }
.staff-nav a[aria-current="page"] { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: #fff; }
.staff-nav-end { margin-left: auto; }
.linklike { background: none; border: 0; padding: 4px 2px; cursor: pointer; font: 600 1rem/1.2 var(--body); color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.staff-who { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; margin-left: 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--text); background: var(--chip-bg); border: 1px solid var(--line); text-transform: capitalize; }
.badge-new { color: #fff; background: var(--blue-deep); border-color: transparent; }
.staff-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-counts dd { font: 700 2rem/1 var(--display); color: var(--text); }
.msg-latest, .msg-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.msg-latest-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--chip-bg); }
.msg-sub { color: var(--muted); font-size: .92rem; }
.msg { border-radius: 16px; border: 1px solid var(--line); background: var(--chip-bg); }
.msg-new { border-left: 4px solid var(--blue); }
.msg-overdue { border-color: var(--danger); }
.msg-head { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 18px; cursor: pointer; border-radius: 16px; }
.msg-head:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.msg-head .badge { margin-left: 0; }
.msg-name { color: var(--text); }
.msg-body { padding: 4px 18px 18px; display: grid; gap: 14px; }
.msg-facts { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.msg-facts dt { font: 700 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.msg-facts dd { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.msg-facts a { color: var(--link); font-weight: 600; text-underline-offset: 4px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; color: var(--text); padding: 14px 16px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--line); }
.staff-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.staff-form { display: grid; gap: 14px; }
.staff-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.out-text { width: 100%; font: 500 .95rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px; border-radius: 12px; color: var(--text); background: var(--input-bg); border: 1px solid var(--line); }
@media (max-width: 720px) {
  .staff-card { padding: 26px 20px; }
  .staff-counts { grid-template-columns: 1fr; }
  .staff-nav-end { margin-left: 0; }
}

/* ---------------------------------------------------------------------------------
   Content (database-driven): products, projects and the team area's Content page
   --------------------------------------------------------------------------------- */
.badge-ok { color: #fff; background: #0B6B3A; border-color: transparent; }

.item-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.item-card { padding: 26px; border-radius: 22px; display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.item-h { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.2; }
.item-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.item-img { width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.item-result { font-weight: 600; color: var(--text); padding: 12px 14px; border-radius: 12px; background: var(--chip-bg); border: 1px solid var(--line); }
.item-card .plain-list { display: grid; gap: 6px; padding-left: 22px; list-style: disc; color: var(--muted); }
.item-more summary { cursor: pointer; font-weight: 700; color: var(--link); }
.item-more .prose { margin-top: 12px; }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
.item-price { font-weight: 700; margin-right: auto; }

.cms-toolbar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 8px; }
.cms-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cms-new .field-row { min-width: min(100%, 240px); }
.cms-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.cms-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--chip-bg); }
.cms-item-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; flex: 1 1 260px; min-width: 0; }
.cms-item-title { overflow-wrap: anywhere; margin-right: 6px; }
.cms-editor { display: grid; gap: 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.cms-preview { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--input-bg); }
@media (max-width: 560px) { .cms-item .btn { width: 100%; } }

/* ---------------------------------------------------------------------------------
   Client portal (test mode): /account and the team area's Clients page
   --------------------------------------------------------------------------------- */
.test-banner { border-left: 4px solid #B54708; }
.plan-current { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--chip-bg); }
.plan-current-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-size: 1.1rem; }
.plan-card .btn { justify-self: start; }
.plan-card .btn[disabled], .plan-current .btn[disabled] { opacity: .55; cursor: not-allowed; }
.invoice, .subscription, .plan-row, .request { justify-content: space-between; }
.req-details summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; }
.req-text { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.msg-body .req-text { margin: 0 0 12px; }
@media (max-width: 560px) { .plan-card .btn, .plan-current .btn { width: 100%; } }
.invoice .badge, .plan-row .badge, .subscription .badge, .plan-current .badge { text-transform: none; }

/* Conversations on support requests */
#rq-list .badge { text-transform: none; }
.thread { display: grid; gap: 10px; margin-top: 12px; }
.thread h4 { margin: 0; font-size: .95rem; }
.reply { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); border-left-width: 4px; background: var(--chip-bg); }
.reply-staff { border-left-color: var(--blue); }
.reply-client { border-left-color: var(--silver); }
.reply-who { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.reply .req-text { margin: 4px 0 0; }
.reply-form { display: grid; gap: 8px; margin-top: 4px; }
.reply-form textarea { width: 100%; }
.reply-form .btn { justify-self: start; }

/* Picture upload in the Content editor */
.pic-up { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sr-only-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sr-only-file:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.pic-preview { max-width: 160px; max-height: 120px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }

/* Placeholder text is text: it needs the same 4.5:1 contrast as everything else. The browser default (a pale grey) is far below it, especially in the dark theme. */
::placeholder { color: var(--muted); opacity: 1; }
