/* AIBONIX site styles. Warm parchment canvas, maroon actions, violet links. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  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;
}

:root {
  --wine: #421d24;
  --violet: #714cb6;
  --lilac: #d4c7ff;
  --lagoon: #0c4243;
  --parchment: #f2f0eb;
  --mist: #e3e3e2;
  --ink: #292827;
  --stone: #666666;
  --paper: #ffffff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-pill: 999px;
  --wrap: 1200px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 460;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--wine); color: var(--paper); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.icon { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.display {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 460;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(38px, 5.2vw, 56px);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.027em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 460;
  line-height: 1.05;
  letter-spacing: -0.027em;
  text-wrap: balance;
}
.h3 {
  font-size: 28px;
  font-weight: 460;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h4 { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -0.008em; }
.lead { font-size: 20px; line-height: 1.45; letter-spacing: -0.007em; color: var(--stone); text-wrap: pretty; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; }
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 540; letter-spacing: 0; color: var(--stone);
}

.link {
  color: var(--violet); font-weight: 460; text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.link:hover { text-decoration-color: currentColor; }
.link--arrow { display: inline-flex; align-items: center; gap: 6px; }
.link--arrow .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link--arrow:hover .icon { transform: translateX(3px); }

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

.btn, .btn-lilac, .btn-ghost, .btn-light, .btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 460; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  background: var(--wine); color: var(--paper); font-size: 16px;
}
.btn:hover { background: #55262f; }
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--block { width: 100%; }

.btn-lilac {
  padding: 6px 16px; border: 1px solid var(--ink); border-radius: var(--r-sm);
  background: var(--lilac); color: var(--ink); font-size: 16px;
}
.btn-lilac:hover { background: #c6b6fb; }

.btn-ghost { padding: 6px 4px; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-light {
  height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  background: var(--paper); color: var(--ink);
}
.btn-light:hover { background: var(--parchment); }

.btn-outline-light {
  padding: 8px 20px; border: 1px solid var(--paper); border-radius: var(--r-sm);
  background: transparent; color: var(--paper);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Announcement ---------- */

.announce { background: var(--wine); color: var(--paper); }
.announce__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 1360px; margin-inline: auto; padding: 12px 16px;
  font-size: 14px; line-height: 1.4;
}
.announce__inner .icon { width: 16px; height: 16px; }
.announce strong { font-weight: 600; }
.announce__link {
  flex: none; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--r-pill);
  color: var(--paper); text-decoration: none; font-weight: 540;
}
.announce__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 240, 235, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); background: rgba(242, 240, 235, 0.86); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__word { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.logo__bg { fill: var(--wine); }
.logo__stroke { fill: none; stroke: var(--parchment); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo__dot { fill: var(--lilac); }
.logo__dot-stroke { fill: none; stroke: var(--lilac); stroke-width: 2.4; stroke-linecap: round; }
.logo--light { color: var(--paper); }
.logo--light .logo__bg { fill: var(--parchment); }
.logo--light .logo__stroke { stroke: var(--wine); }
.logo--light .logo__dot { fill: var(--violet); }
.logo--light .logo__dot-stroke { stroke: var(--violet); }

.site-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open { display: none; }
.site-header.is-open .nav-toggle__close { display: inline; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .js .site-menu {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 28px; background: var(--parchment); border-bottom: 1px solid var(--mist);
  }
  .js .site-header.is-open .site-menu { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 19px; }
  .site-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .site-actions a { justify-content: center; text-align: center; padding: 12px 16px; }
  .site-actions .btn-ghost { border: 1px solid var(--mist); border-radius: var(--r-sm); background: var(--paper); }
  html:not(.js) .nav-toggle { display: none; }
  .announce__inner { justify-content: flex-start; }
}

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

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 88px 0 120px;
  background: #e9cdbf;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 52% at 50% 42%, rgba(255, 249, 242, 0.68), rgba(255, 249, 242, 0) 100%),
    linear-gradient(rgba(255, 244, 232, 0.2), rgba(255, 244, 232, 0.2)),
    linear-gradient(180deg, rgba(242, 240, 235, 0) 62%, var(--parchment) 100%);
}

.hero__stage { position: relative; }
.hero__copy { position: relative; z-index: 2; max-width: 700px; margin-inline: auto; text-align: center; padding-top: 24px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 6px 14px;
  border: 1px solid rgba(41, 40, 39, 0.16); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5); font-size: 14px; font-weight: 540;
}
.hero__pill .icon { width: 16px; height: 16px; }
.hero__lead { margin: 24px auto 0; max-width: 600px; font-size: 20px; line-height: 1.45; color: #3b3735; letter-spacing: -0.007em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: 14px; color: #4d4846; }

.glass {
  width: 100%; padding: 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; line-height: 1.45;
}
.glass__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.glass__avatar {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--wine); color: var(--paper);
}
.glass__avatar .icon { width: 16px; height: 16px; }
.glass__title { font-weight: 600; }
.glass__tag {
  margin-left: auto; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--lilac); font-size: 12px; font-weight: 600;
}
.glass__metric { font-size: 34px; line-height: 1.05; font-weight: 460; letter-spacing: -0.03em; }
.glass__meta { margin-top: 4px; color: var(--stone); }
.glass svg.spark { width: 100%; height: 44px; margin-top: 10px; }
.spark path { fill: none; stroke: var(--wine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: rgba(66, 29, 36, 0.08); stroke: none; }
.spark rect { fill: var(--wine); }
.spark rect.dim { fill: var(--lilac); }

.hero__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
@media (min-width: 1100px) {
  .hero { padding-bottom: 150px; }
  .hero__cards { display: block; margin: 0; }
  .hero__cards .glass { position: absolute; width: 264px; }
  .glass--a { left: 0; top: 24px; }
  .glass--b { left: 36px; top: 232px; }
  .glass--c { right: 0; top: 64px; }
  .glass--d { right: 36px; top: 258px; }
  .hero__copy { min-height: 420px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
  .hero__cards { grid-template-columns: 1fr; }
  .hero__lead { font-size: 18px; }
}

/* ---------- Trust strip ---------- */

.trust { background: var(--paper); border-block: 1px solid var(--mist); }
.trust__label { padding-top: 28px; text-align: center; font-size: 14px; color: var(--stone); }
.trust__grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 20px; border-left: 1px solid var(--mist); border-top: 1px solid var(--mist); }
.trust__cell {
  display: flex; align-items: center; justify-content: center; padding: 24px 12px;
  border-right: 1px solid var(--mist); border-bottom: 1px solid var(--mist);
  color: var(--ink); white-space: nowrap;
}
.trust__wrap { padding-bottom: 28px; }
.wm { font-size: 19px; letter-spacing: -0.02em; }
.wm--1 { font-weight: 700; letter-spacing: -0.04em; }
.wm--2 { font-weight: 460; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }
.wm--3 { font-weight: 600; font-style: italic; }
.wm--4 { font-weight: 300; letter-spacing: 0.02em; font-size: 21px; }
.wm--5 { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.wm--6 { font-weight: 540; letter-spacing: -0.03em; font-size: 21px; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

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

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head .lead { margin-top: 20px; }
.section__head .eyebrow { margin-bottom: 16px; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* Tabs */

.tabs { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--r-sm); overflow: hidden; }
.tabs__list { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--mist); }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border: 0; border-right: 1px solid var(--mist); background: var(--paper);
  color: var(--ink); font-weight: 540; cursor: pointer; transition: background-color 0.18s ease;
}
.tab:last-child { border-right: 0; }
.tab:hover { background: #faf9f6; }
.tab[aria-selected="true"] { background: var(--lilac); }
.tab .icon { width: 18px; height: 18px; }
.tabs__panel { padding: 16px; background: var(--parchment); }
.tabs__panel[hidden] { display: none; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.panel__copy { padding: 32px; background: var(--paper); border-radius: var(--r-md); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.panel__copy p { color: var(--stone); }
.checks { display: grid; gap: 10px; width: 100%; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--wine); }
.panel__mock { padding: 24px; border-radius: var(--r-md); background: var(--lilac); display: flex; align-items: center; }
.mock { width: 100%; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.88); font-size: 14px; }
.mock__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 600; }
.mock__title span { font-weight: 460; color: var(--stone); font-size: 12px; }
.mock__row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--mist); }
.mock__row b { font-weight: 600; }
.mock__row .badge { padding: 2px 8px; border-radius: var(--r-pill); background: var(--parchment); font-size: 12px; font-weight: 540; }
.mock__row--log { grid-template-columns: auto 1fr auto; }
.mock__row--log .icon { width: 16px; height: 16px; color: var(--wine); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.flow__col { display: grid; gap: 8px; }
.flow__node { padding: 10px 12px; border: 1px solid var(--mist); border-radius: 10px; background: var(--paper); font-weight: 540; font-size: 13px; text-align: center; }
.flow__node--core { background: var(--wine); border-color: var(--wine); color: var(--paper); padding-block: 22px; }
.flow__arrow { color: var(--stone); }
.flow__arrow .icon { width: 16px; height: 16px; }
.chart { width: 100%; height: 150px; }
.chart .grid { stroke: var(--mist); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--wine); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .line--base { stroke: #a9a29f; stroke-dasharray: 4 5; stroke-width: 2; }
.chart .fill { fill: rgba(66, 29, 36, 0.08); }

@media (max-width: 900px) {
  .tabs__list { grid-template-columns: repeat(2, 1fr); }
  .tab:nth-child(2) { border-right: 0; }
  .tab:nth-child(-n+2) { border-bottom: 1px solid var(--mist); }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tab { padding: 12px 8px; font-size: 14px; }
  .tab .icon { display: none; }
  .panel__copy { padding: 24px; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); margin-inline: auto; }
}

/* Cards */

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 24px; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper);
}
.card p { color: var(--stone); }
.card .link { margin-top: auto; padding-top: 8px; }
.card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lilac); color: var(--ink); }
.card__icon .icon { width: 20px; height: 20px; }
.card__num { font-size: 14px; font-weight: 600; color: var(--stone); font-variant-numeric: tabular-nums; }
.card p.metric { color: var(--ink); }
.card--metric .metric { font-size: 56px; line-height: 1; font-weight: 460; letter-spacing: -0.03em; }
.card__sector { font-size: 14px; color: var(--stone); font-weight: 540; }

/* ---------- Dark feature band ---------- */

.band { background: var(--lagoon); color: var(--paper); overflow: hidden; }
.band__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.band__art { position: relative; min-height: 460px; overflow: hidden; }
.band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 66, 67, 0.1) 35%, rgba(12, 66, 67, 0.7) 82%, var(--lagoon) 100%); }
.band__rect, .band__chip, .band__script { z-index: 1; }
.band__rect { position: absolute; border-radius: 14px; backdrop-filter: blur(2px); }
.band__rect--1 { left: 5%; top: 64%; width: 46%; height: 26%; background: rgba(212, 199, 255, 0.55); }
.band__rect--2 { left: 38%; top: 74%; width: 56%; height: 20%; background: rgba(146, 178, 255, 0.5); }
.band__rect--3 { left: 5%; top: 8%; width: 30%; height: 20%; background: rgba(255, 175, 214, 0.5); }
.band__chip {
  position: absolute; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 14px; font-weight: 540;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.band__chip .icon { width: 16px; height: 16px; color: var(--wine); }
.band__chip--1 { left: 7%; top: 12%; }
.band__chip--2 { left: 9%; top: 68%; }
.band__chip--3 { left: 42%; top: 80%; }
.band__script { position: absolute; left: 44%; top: 8%; font-size: 15px; font-style: italic; font-weight: 400; color: rgba(255, 255, 255, 0.9); transform: rotate(-4deg); }
.band__script--2 { left: 8%; top: 90%; transform: rotate(-3deg); }
.band__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 96px 0 96px 64px; max-width: 600px; }
.band__copy p { color: rgba(255, 255, 255, 0.82); }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 16px 40px; padding-top: 8px; }
.stats dt { font-size: 14px; color: rgba(255, 255, 255, 0.7); order: 2; }
.stats div { display: flex; flex-direction: column; }
.stats dd { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 460; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .band__inner { grid-template-columns: 1fr; }
  .band__art { min-height: 380px; order: 2; }
  .band__copy { padding: 64px var(--gutter) 40px; max-width: none; }
  .stats { grid-template-columns: repeat(3, auto); gap: 12px 24px; }
  .stats dd { font-size: 32px; }
}

/* ---------- Gradient banner ---------- */

.gradient {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 68% 50%, rgba(113, 76, 182, 0.5), transparent 70%),
    radial-gradient(45% 80% at 93% 50%, rgba(98, 150, 255, 0.5), transparent 70%),
    radial-gradient(50% 80% at 50% 98%, rgba(255, 140, 200, 0.55), transparent 70%),
    radial-gradient(45% 70% at 50% 75%, rgba(120, 220, 230, 0.5), transparent 70%),
    var(--parchment);
}
.gradient__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 112px; }
.gradient__inner .h2 { max-width: 640px; }
.gradient__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (max-width: 800px) { .gradient__inner { flex-direction: column; align-items: flex-start; padding-block: 72px; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--wine); color: var(--paper); padding: 64px 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 320px; }
.site-footer__brand p { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.site-footer__mail { font-size: 14px; color: var(--paper); text-underline-offset: 3px; }
.site-footer h2 { margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.site-footer li + li { margin-top: 12px; }
.site-footer li a { font-size: 14px; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer li a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } .site-footer__brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 520px) { .site-footer__bottom { flex-direction: column; } }

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

.page-hero { padding: 96px 0 48px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 640px; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }
@media (max-width: 720px) { .page-hero { padding: 56px 0 32px; } }

.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
  padding: 56px 0; border-top: 1px solid var(--mist);
}
.service__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.service__body { display: grid; gap: 28px; }
.service__body p { color: var(--stone); }
.service__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service__cols h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 24px; } .service__cols { grid-template-columns: 1fr; } }

.case {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--mist);
}
.case__metric { font-size: clamp(56px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 460; }
.case__metric-label { margin-top: 12px; color: var(--stone); }
.case__body { display: grid; gap: 20px; align-content: start; }
.case__body p { color: var(--stone); }
.case__body dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 12px; }
.case__body dt { font-size: 13px; color: var(--stone); }
.case__body dd { font-size: 24px; font-weight: 460; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 24px; } }

.prose { max-width: 720px; display: grid; gap: 20px; }
.prose h2 { margin-top: 24px; font-size: 24px; font-weight: 540; letter-spacing: -0.015em; line-height: 1.25; }
.prose p, .prose li { color: #403d3b; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--violet); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.faq { display: grid; border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 540; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--stone); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 640px; color: var(--stone); }

.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper); }
.contact-card .card__icon { margin-bottom: 8px; }
.contact-card p { color: var(--stone); font-size: 15px; }

.values { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.values > div { display: grid; grid-template-columns: 0.4fr 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--mist); }
.values p { color: var(--stone); }
@media (max-width: 640px) { .values > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Auth ---------- */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 112px); }
.auth__media { position: relative; overflow: hidden; background: #e9cdbf; }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__media .glass { position: absolute; left: 32px; right: 32px; bottom: 32px; width: auto; max-width: 340px; }
.auth__main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--gutter); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__media { display: none; } }
.auth__card {
  width: 100%; max-width: 440px; padding: 36px;
  border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper);
}
.auth__card h1 { font-size: 32px; font-weight: 460; letter-spacing: -0.025em; line-height: 1.1; }
.auth__card > p.muted { margin-top: 10px; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label { font-size: 14px; font-weight: 540; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfcdc8; border-radius: var(--r-sm);
  background: var(--paper); font-size: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9b9895; }
.field input:hover { border-color: #a9a6a1; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 199, 255, 0.9); }
.field input[aria-invalid="true"] { border-color: var(--wine); }
.field__hint { font-size: 13px; color: var(--stone); }
.alert {
  display: none; padding: 12px 14px; border: 1px solid var(--wine); border-radius: var(--r-sm);
  background: #f7eeee; color: var(--wine); font-size: 14px; line-height: 1.45;
}
.alert.is-visible { display: block; }
.alert--ok { border-color: #292827; background: var(--parchment); color: var(--ink); }
.alert a { color: inherit; font-weight: 600; }
.auth__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mist); font-size: 14px; color: var(--stone); }
.auth__foot a { color: var(--violet); }
.auth__legal { margin-top: 16px; font-size: 12px; color: var(--stone); text-align: center; }
.auth__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-size: 12px; color: var(--stone); }
.auth__secure .icon { width: 14px; height: 14px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: var(--paper); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.notfound { padding: 120px 0; }
.notfound .display { margin: 16px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Photography ---------- */

[hidden] { display: none !important; }

.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }
.card__media { width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: var(--mist); }
.card--media { padding: 12px 12px 24px; }
.card--media > :not(.card__media) { margin-inline: 12px; }

.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.page-hero--split .photo { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .page-hero--split .wrap { grid-template-columns: 1fr; gap: 32px; } }

.photo-banner { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }
@media (max-width: 640px) { .photo-banner { aspect-ratio: 4 / 3; } }

.case__media { width: 100%; height: auto; margin-top: 28px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }

/* ---------- Cookie notice ---------- */

.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.footer-link { padding: 0; border: 0; background: none; font-size: 14px; color: rgba(255, 255, 255, 0.7); cursor: pointer; text-align: left; }
.footer-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-link--inline { font-size: inherit; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.footer-link--inline:hover { color: var(--violet); }

.cookie {
  position: fixed; z-index: 70; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px));
  padding: 20px; border: 1px solid var(--mist); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(41, 40, 39, 0.04);
  font-size: 14px; line-height: 1.5;
}
.cookie__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.cookie p { color: var(--stone); }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.cookie .btn-lilac { padding: 7px 14px; font-size: 14px; }
.cookie .btn-ghost { font-size: 14px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; } }

.has-modal { overflow: hidden; }
.cookie-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(41, 40, 39, 0.5); }
.cookie-modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px; border-radius: var(--r-md); background: var(--paper);
}
.cookie-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cookie-modal__x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; }
.cookie-modal__x:hover { background: var(--parchment); }
.cookie-modal__list { margin-top: 20px; border-top: 1px solid var(--mist); }
.cookie-modal__list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--mist); }
.cookie-modal__list label { font-weight: 600; font-size: 15px; }
.cookie-modal__list p { margin-top: 2px; font-size: 14px; color: var(--stone); }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; }
.cookie-modal__actions .btn-lilac { padding: 9px 16px; border-radius: 12px; }

.switch {
  -webkit-appearance: none; appearance: none; position: relative; flex: none;
  width: 44px; height: 26px; margin: 0; border-radius: var(--r-pill); background: #cfcdc8; cursor: pointer;
  transition: background-color 0.18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); transition: transform 0.18s ease;
}
.switch:checked { background: var(--wine); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.55; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-pill); }

/* Legal tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 600; color: var(--ink); background: var(--parchment); }
.table code, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- Careers ---------- */

.roles { display: grid; gap: 12px; }
.role { border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper); transition: border-color 0.18s ease; }
.role:hover, .role[open] { border-color: #bdbab4; }
.role summary {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.8fr) 24px;
  align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none;
}
.role summary::-webkit-details-marker { display: none; }
.role__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.role__team { justify-self: start; padding: 3px 10px; border-radius: var(--r-pill); background: var(--lilac); font-size: 13px; font-weight: 600; }
.role__meta { font-size: 15px; color: var(--stone); }
.role__chevron { display: grid; place-items: center; color: var(--ink); transition: transform 0.2s ease; }
.role__chevron .icon { width: 18px; height: 18px; }
.role[open] .role__chevron { transform: rotate(90deg); }
.role__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 8px 24px 28px; border-top: 1px solid var(--mist); padding-top: 24px; }
.role__body h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.role__summary { margin-bottom: 20px; font-size: 17px; line-height: 1.45; color: #403d3b; }
@media (max-width: 900px) {
  .role summary { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 8px; }
  .role__title { grid-column: 1; }
  .role__chevron { grid-column: 2; grid-row: 1; }
  .role__team, .role__meta { grid-column: 1 / -1; }
  .role__team { justify-self: start; }
  .role__meta--type { display: none; }
  .role__body { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Insights ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper); }
.post-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); transition: transform 0.3s ease; }
.post-card:hover img { transform: scale(1.02); }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.post-card__meta { font-size: 13px; color: var(--stone); }
.post-card h2 { font-size: 20px; font-weight: 540; line-height: 1.3; letter-spacing: -0.012em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card__body > p { color: var(--stone); font-size: 15px; }
.post-card .link--arrow { margin-top: auto; padding-top: 8px; }

.wrap--article { max-width: 780px; }
.article-hero { padding-bottom: 24px; }
.article-hero .lead { max-width: 640px; }
.article-hero + .section .photo { aspect-ratio: 16 / 9; margin-bottom: 40px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mist); }

/* ---------- Status page ---------- */

.status-banner {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 24px;
  border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper);
}
.status-banner .btn-lilac { margin-left: auto; }
.status-banner__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: #2f7d4f; flex: none; box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.18); }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.pill--ok { background: #e2efe7; color: #2f6b47; }
.uptime { display: grid; grid-template-columns: repeat(3, auto); gap: 16px 48px; margin: 40px 0 48px; color: var(--ink); }
.uptime div { display: flex; flex-direction: column; }
.uptime dt { order: 2; font-size: 14px; color: var(--stone); }
.uptime dd { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 460; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .uptime { grid-template-columns: 1fr; gap: 12px; } .uptime dd { font-size: 32px; } }
.status-history { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--mist); } /* built from /status/incidents.json, falls back to "No incidents" */
.status-day { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.status-day time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 540; min-width: 64px; }
.status-day p { color: var(--stone); margin-left: auto; text-align: right; }
@media (max-width: 520px) { .status-banner { align-items: flex-start; flex-direction: column; } .status-banner .btn-lilac { margin-left: 0; } }
