/* ============================================================
   AIJO — aijo.uk
   Editorial / Swiss. Paper, ink, one accent. Square corners.
   ============================================================ */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F2EE;
  --paper-2: #ECE9E3;
  --ink: #17161B;
  --ink-soft: #4E4C55;
  --hairline: rgba(23, 22, 27, 0.16);
  --accent: #6B4BC1;
  --accent-2: #67E3B1;
  --brand-grad: linear-gradient(90deg, #6B4BC1 0%, #6F93BF 50%, #67E3B1 100%);
  --gutter: clamp(20px, 4.5vw, 72px);
  --announce-h: 34px; /* TEMPORARY — housing launch banner */
  --font-sans: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  height: 80px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark { display: inline-flex; align-items: center; }

.logo-img { height: 52px; width: auto; display: block; }
.logo-img-sm { height: 26px; }

.head-right { display: flex; align-items: center; gap: 12px; }

.apps-trigger {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.apps-trigger:hover,
.apps-trigger[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.head-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  padding: 9px 18px;
  transition: background 0.25s ease, color 0.25s ease;
}

.head-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px var(--gutter) 48px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 18%, rgba(107, 75, 193, 0.13), transparent 70%),
    radial-gradient(560px 400px at 68% 78%, rgba(103, 227, 177, 0.11), transparent 70%);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  color: var(--ink-soft);
  margin-bottom: clamp(24px, 4vh, 56px);
  padding-top: 16px;
}

.hero-title { margin-top: auto; }
.hero-foot { margin-top: auto; }

.hero-title {
  font-size: clamp(52px, 9.5vw, 152px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title .line { display: block; }
.hero-title .indent { padding-left: clamp(40px, 8vw, 180px); }
.hero-title .accent { color: var(--accent); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(32px, 5vh, 64px);
}

.hero-lead {
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
}

/* rotating badge */
.hero-badge {
  position: relative;
  width: 120px; height: 120px;
  flex: 0 0 auto;
}

.badge-spin { width: 100%; height: 100%; animation: spin 24s linear infinite; }

.badge-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink);
}

.badge-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  background: var(--brand-grad);
  transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background: var(--paper);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--brand-grad);
}

.ticker::before { top: 0; }
.ticker::after { bottom: 0; }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 56s linear infinite;
}

.ticker-track span {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ticker-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.55em;
  margin: 0 0.9em;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- announce ticker (TEMPORARY — housing launch) ----------
   Delete this whole block, the .announce markup in index.html and the
   has-announce class on <body> to take the banner back off. */
.announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.announce:hover { background: var(--accent); color: var(--paper); }
.announce:hover .announce-track i { color: var(--paper); }
.announce:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }

.announce::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand-grad);
}

/* Each span must be wider than the viewport or a gap opens at the seam —
   20 repeats covers ultrawide. Duration is set to keep ~35px/s. */
.announce-track {
  display: flex;
  width: max-content;
  animation: ticker 113s linear infinite;
}

.announce-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.announce-track i {
  font-style: normal;
  color: var(--accent-2);
  font-size: 0.8em;
  margin: 0 1.5em;
}

body.has-announce { padding-top: var(--announce-h); }
body.has-announce .site-head { top: var(--announce-h); }
body.has-announce .hero { min-height: calc(100svh - var(--announce-h)); }
html:has(body.has-announce) { scroll-padding-top: calc(92px + var(--announce-h)); }

/* ---------- shared section chrome ---------- */
.section {
  position: relative;
  padding: clamp(72px, 10vh, 128px) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.section[data-ghost]::before {
  content: attr(data-ghost);
  position: absolute;
  top: clamp(16px, 4vh, 48px);
  right: var(--gutter);
  z-index: -1;
  font-size: clamp(110px, 20vw, 300px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 22, 27, 0.08);
  pointer-events: none;
  user-select: none;
}

/* gradient type moments */
.intro-big em,
.sector-head:hover .sector-name,
.contact-big:hover > span:first-child {
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* slow cycle through the app-icon palettes */
.intro-big em,
.contact-big:hover > span:first-child {
  background-image: linear-gradient(90deg,
    #6B4BC1, #67E3B1,   /* aijo */
    #57BEB1, #5169B5,   /* care */
    #8630C9, #2619BC,   /* voice */
    #2B65BB, #1B3048,   /* hr */
    #30195C, #982C2E,   /* housing */
    #C6A334, #B56886,   /* rota */
    #F09A34, #ED4A1E,   /* school */
    #6B4BC1, #67E3B1);  /* loop seam */
  background-size: 800% 100%;
  animation: appCycle 28s linear infinite;
}

@keyframes appCycle { to { background-position: 100% 0; } }

/* each sector lights up in its own app colours on hover */
.sector-list .sector-row:nth-child(1) .sector-head:hover .sector-name { background-image: linear-gradient(100deg, #30195C, #982C2E); }
.sector-list .sector-row:nth-child(2) .sector-head:hover .sector-name { background-image: linear-gradient(100deg, #57BEB1, #5169B5); }
.sector-list .sector-row:nth-child(3) .sector-head:hover .sector-name { background-image: linear-gradient(100deg, #2B65BB, #1B3048); }
.sector-list .sector-row:nth-child(4) .sector-head:hover .sector-name { background-image: linear-gradient(100deg, #C6A334, #B56886); }
.sector-list .sector-row:nth-child(5) .sector-head:hover .sector-name { background-image: linear-gradient(100deg, #F09A34, #ED4A1E); }

.section-label {
  display: flex;
  gap: 24px;
  color: var(--ink-soft);
  margin-bottom: clamp(40px, 6vh, 72px);
}

.section-label .count { margin-left: auto; }

.section-title {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* ---------- intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.intro-big {
  font-size: clamp(24px, 2.9vw, 44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro-big em { font-style: normal; }

.intro-side {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

/* ---------- sectors ---------- */
.sector-list {
  margin-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--ink);
}

.sector-row { border-bottom: 1px solid var(--ink); }

.sector-head {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 3vh, 34px) 0;
  text-align: left;
  transition: padding-left 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.sector-head:hover { padding-left: 14px; }

.sector-num { color: var(--ink-soft); font-size: 13px; }

.sector-name {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sector-tag { color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; }

.sector-toggle {
  position: relative;
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  justify-self: end;
  transition: background 0.25s ease;
}

.sector-toggle::before,
.sector-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.25s ease;
}

.sector-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.sector-head:hover .sector-toggle { background: var(--ink); }
.sector-head:hover .sector-toggle::before,
.sector-head:hover .sector-toggle::after { background: var(--paper); }

.sector-head[aria-expanded="true"] .sector-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.sector-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.sector-row.open .sector-panel { grid-template-rows: 1fr; }

.sector-panel-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.sector-panel-inner > p {
  grid-column: 1;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  margin: 0 0 clamp(24px, 4vh, 40px) 92px;
}

.sector-panel-inner > .works-with {
  color: var(--accent);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0 0 8px 92px;
}

.sector-panel-inner > .chat-note {
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 3vh, 32px);
}

.pill-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  padding-bottom: clamp(24px, 4vh, 40px);
}

.pill-row li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 7px 12px;
  white-space: nowrap;
}

/* ---------- platform ---------- */
.platform { background: var(--ink); color: var(--paper); }

.platform::after {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
}
.platform .section-label { color: rgba(242, 239, 232, 0.55); }

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.platform-copy p {
  color: rgba(242, 239, 232, 0.75);
  font-size: clamp(16px, 1.4vw, 19px);
  margin-bottom: 32px;
}

.platform-list { border-top: 1px solid rgba(242, 239, 232, 0.25); }

.platform-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.25);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.platform-list li span { color: var(--accent-2); letter-spacing: 0.08em; }

/* ---------- apps ---------- */
.apps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vh, 64px);
}

.apps-note {
  max-width: 340px;
  color: var(--ink-soft);
  font-size: 16px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.app-card {
  border: 1px solid var(--hairline);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
              border-color 0.3s ease, background 0.3s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.app-icon {
  width: 56px; height: 56px;
  display: block;
  margin-bottom: 12px;
}

.app-icon img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(23, 22, 27, 0.18));
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.app-card:hover .app-icon img { transform: scale(1.06); }

.app-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.app-domain { color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; }

.app-arrow {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 6px;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.app-card:hover .app-arrow { transform: translateX(4px); }

/* care card: separate web link + store badges */
.app-card { position: relative; }

.app-main {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.app-main::after { content: ""; position: absolute; inset: 0; }

.app-desktop {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.app-desktop .app-icon { margin-bottom: 0; }

.app-desktop-static {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.app-desktop-static .app-icon { margin-bottom: 0; }

.desktop-tag {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.desktop-tag.muted { color: var(--ink-soft); }

.app-desktop:hover .desktop-tag { text-decoration: underline; }

.mobile-tag {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.app-card .mobile-tag + .store-badges { margin-top: 6px; }

.inline-link { text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--accent); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.store-badges img { height: 34px; width: auto; display: block; }

.store-badges a { transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1); }
.store-badges a:hover { transform: translateY(-2px); }

/* coming-soon cards */
.app-card-soon { overflow: hidden; cursor: default; }

.app-card-soon:hover {
  transform: none;
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.25);
}

.app-card-soon:hover .app-icon img { transform: none; }

.soon-banner {
  position: absolute;
  top: 26px; right: -46px;
  width: 170px;
  transform: rotate(45deg);
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 6px 0;
  pointer-events: none;
}

.drawer-item-soon { opacity: 0.7; }

/* ---------- app drawer ---------- */
body.drawer-open { overflow: hidden; }

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(23, 22, 27, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }

.app-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 200;
  width: min(400px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--ink);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
  overflow-y: auto;
}

body.drawer-open .app-drawer { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.drawer-close {
  position: relative;
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  transition: background 0.25s ease;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background 0.25s ease;
}

.drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer-close:hover { background: var(--ink); }
.drawer-close:hover::before,
.drawer-close:hover::after { background: var(--paper); }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.drawer-item > img,
.drawer-item-main img {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(23, 22, 27, 0.16));
}

.drawer-item-text { display: grid; gap: 2px; }

.drawer-item-text strong {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.drawer-item-text .mono { font-size: 11px; color: var(--ink-soft); text-transform: none; }

.drawer-arrow {
  margin-left: auto;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.drawer-item:hover .drawer-arrow,
.drawer-item-main:hover .drawer-arrow { transform: translateX(4px); }

.drawer-item-care { display: block; }

.drawer-item-main { display: flex; align-items: center; gap: 14px; }

.drawer-item-care .store-badges { margin: 12px 0 2px 58px; }

.drawer-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 8px;
}

.drawer-foot a:hover { color: var(--accent); }

/* ---------- approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.approach-item {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.approach-item:nth-child(2) { margin-top: clamp(0px, 4vh, 56px); }
.approach-item:nth-child(3) { margin-top: clamp(0px, 8vh, 112px); }

.approach-num {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 40px;
  font-size: 13px;
}

.approach-item h3 {
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 320px;
}

.approach-item p { color: var(--ink-soft); font-size: 16px; max-width: 360px; }

/* ---------- contact ---------- */
.contact { text-align: left; }

.contact-kicker {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.contact-big {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  font-size: clamp(40px, 7.5vw, 120px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
}

.contact-big::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 100%; height: 4px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.contact-big:hover::after { transform: scaleX(1); transform-origin: left; }

.contact-arrow {
  font-size: 0.5em;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.contact-big:hover .contact-arrow { transform: translateX(0.4em); }

.contact-alt {
  margin-top: 32px;
  color: var(--ink-soft);
}

.contact-alt a:hover { color: var(--accent); }

.contact-note {
  margin-top: 24px;
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--ink);
  padding: 40px var(--gutter) 32px;
}

.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.foot-mark { display: inline-flex; align-items: center; }

.foot-nav { display: flex; gap: 24px; }

.foot-nav a { font-size: 14px; font-weight: 500; }
.foot-nav a:hover { color: var(--accent); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 12px;
}

.foot-legal a:hover { color: var(--accent); }

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  color: var(--ink-soft);
}

/* ---------- legal pages ---------- */
.legal-page {
  min-height: 70vh;
  max-width: 900px;
  padding: 150px var(--gutter) 96px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
}

.legal-updated { color: var(--ink-soft); margin-bottom: 48px; }

.legal-body {
  max-width: 640px;
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

.legal-body a { text-decoration: underline; }
.legal-body a:hover { color: var(--accent); }

.foot-meta span:last-child { margin-left: auto; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* staggered entrances */
.sector-row.reveal:nth-child(2) { transition-delay: 0.06s; }
.sector-row.reveal:nth-child(3) { transition-delay: 0.12s; }
.sector-row.reveal:nth-child(4) { transition-delay: 0.18s; }
.sector-row.reveal:nth-child(5) { transition-delay: 0.24s; }
.app-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.app-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.app-card.reveal:nth-child(4) { transition-delay: 0.18s; }
.app-card.reveal:nth-child(5) { transition-delay: 0.24s; }
.app-card.reveal:nth-child(6) { transition-delay: 0.3s; }
.approach-item.reveal:nth-child(2) { transition-delay: 0.12s; }
.approach-item.reveal:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .announce-track, .badge-spin { animation: none; }
  .intro-big em, .contact-big:hover > span:first-child { animation: none; }
  .app-drawer, .drawer-scrim { transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro-grid,
  .platform-grid,
  .sector-panel-inner { grid-template-columns: 1fr; }

  .sector-panel-inner > p,
  .sector-panel-inner > .works-with { margin-left: 0; }
  .pill-row { grid-column: 1; grid-row: auto; }

  .apps-head { flex-direction: column; align-items: flex-start; }

  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-item:nth-child(2),
  .approach-item:nth-child(3) { margin-top: 0; }
  .approach-num { margin-bottom: 20px; }

  .scroll-hint { display: none; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }

  .hero { padding-top: 96px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-badge { display: none; }
  .hero-meta span:last-child { display: none; }

  .sector-head { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .sector-tag { display: none; }

  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-meta span:last-child { margin-left: 0; }
}

/* ---------- pricing page ---------- */
.pricing-page {
  max-width: 1280px;
  padding: 150px var(--gutter) 96px;
}

.pricing-page h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 18px;
}

.pricing-sub {
  max-width: 520px;
  color: var(--ink-soft);
  margin-bottom: 56px;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: start;
}

.calc-card {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.25);
  padding: 22px 24px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.calc-card.off { opacity: 0.45; }

.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.calc-name { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

.calc .mono,
.calc input[type=number] { font-weight: 500; }

.calc-unit {
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  margin: 6px 0 18px;
}

.calc .switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.calc .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.calc .slider-bg { position: absolute; inset: 0; background: #C9C5BC; transition: background 0.18s; }
.calc .slider-bg::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 4px; top: 4px;
  background: #fff; transition: transform 0.18s;
}
.calc .switch input:checked + .slider-bg { background: var(--accent); }
.calc .switch input:checked + .slider-bg::before { transform: translateX(20px); }
.calc .switch input:focus-visible + .slider-bg { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc .ctrl {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.calc input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--hairline) var(--fill, 50%));
  outline: none;
}

.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  border-radius: 0;
}

.calc input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  border-radius: 0;
}

.calc input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.calc input[type=number] {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 8px 10px;
  width: 100%;
  text-align: right;
  background: transparent;
  border-radius: 0;
}

.calc input[type=number]:focus-visible { outline: none; border-color: var(--ink); }

.calc .subcost {
  margin-top: 14px;
  color: var(--ink-soft);
  text-transform: none;
  display: flex;
  justify-content: space-between;
}

.calc .subcost b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.calc .band-note { color: var(--ink-soft); opacity: 0.7; }

.calc-summary {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 26px 26px 22px;
  position: sticky;
  top: 100px;
}

.calc .halo-wrap { display: flex; justify-content: center; margin: 2px 0 8px; }
.calc .halo { position: relative; width: 210px; height: 210px; }
.calc .halo svg { transform: rotate(-90deg); display: block; }
.calc .halo .centre {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

.calc .centre .amount {
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.calc .centre .per { color: var(--ink-soft); margin-top: 4px; font-size: 10px; }
.calc .centre .save { color: var(--accent); margin-top: 6px; font-size: 10px; }
.calc .ring-note { text-align: center; font-size: 10px; color: var(--ink-soft); margin-bottom: 18px; }

.calc .terms { display: flex; gap: 4px; }
.calc .terms button {
  flex: 1;
  border: 1px solid var(--hairline);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 0 6px;
  cursor: pointer;
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.calc .terms button small { font-size: 9px; opacity: 0.65; }
.calc .terms button:hover { border-color: var(--ink); }
.calc .terms button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.calc .terms button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc .terms-note {
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 10px 2px 0;
  line-height: 1.5;
}

.calc .lines {
  border-top: 1px solid var(--ink);
  margin-top: 20px;
  padding-top: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  color: var(--ink);
}

.calc .line { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.calc .line.muted { color: var(--ink-soft); }
.calc .line.disc { color: var(--accent); }
.calc .line.total {
  border-top: 2px solid var(--ink);
  margin-top: 8px;
  padding-top: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.calc .line.annual { color: var(--ink-soft); font-size: 11px; }

.calc .bundle-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  padding: 6px 12px;
  margin-top: 14px;
}

.calc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease;
}

.calc-cta:hover { background: transparent; color: var(--ink); }

.calc-cta-note {
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 10px;
  line-height: 1.5;
}

.calc .compare h2 { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.calc .compare-note { font-size: 10px; color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; margin-bottom: 16px; }
.calc .bar-row { margin-bottom: 14px; }
.calc .bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; text-transform: none; letter-spacing: 0.02em;
  margin-bottom: 5px; font-variant-numeric: tabular-nums;
}
.calc .bar { height: 12px; background: var(--paper-2); overflow: hidden; }
.calc .bar i { display: block; height: 100%; transition: width 0.35s ease; }
.calc .halo-bar i { background: var(--brand-grad); }
.calc .comp-bar i { background: #C2BEB5; }

.calc .saving-callout {
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
}

.calc-foot {
  margin-top: 40px;
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  max-width: 76ch;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}

/* ---------- updates / release notes ---------- */
.updates-page {
  min-height: 70vh;
  max-width: 1080px;
  padding: 150px var(--gutter) 96px;
}

.updates-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 18px;
}

.updates-page .dot { color: var(--accent); }

.updates-intro {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: clamp(40px, 6vh, 76px);
}

/* No scroll-margin here: html already carries scroll-padding-top for the fixed
   header, and setting both would add the two together on a deep link. */
.release {
  border-top: 1px solid var(--hairline);
  padding: clamp(36px, 5vh, 64px) 0;
}

.release:last-child { border-bottom: 1px solid var(--hairline); }

.release-rail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.release-product { color: var(--ink); font-weight: 500; }

.release-latest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.release-latest::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent-2);
}

.release-permalink {
  margin-left: auto;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.release:hover .release-permalink,
.release-permalink:focus-visible { opacity: 1; }
.release-permalink:hover { color: var(--accent); }

.release-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}

.release-title .dot { color: var(--accent); }

.release-stand {
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  margin-bottom: clamp(24px, 4vh, 44px);
}

.release-items { list-style: none; counter-reset: release-item; }

.release-items > li {
  counter-increment: release-item;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.release-items > li::before {
  content: counter(release-item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 7px;
}

.release-items h3 {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.release-items p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
}

.release-items p + p { margin-top: 10px; }

.release-status { margin-top: 12px; }

.release-status > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.release-status dt { color: var(--ink); padding-top: 3px; }

.release-status dd {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.updates-outro {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-top: clamp(40px, 6vh, 72px);
}

@media (max-width: 700px) {
  .updates-page { padding-top: 120px; }

  .release-items > li,
  .release-status > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .release-items > li::before { padding-top: 0; }
  .release-permalink { opacity: 1; }
}
