/* ==========================================================================
   Octopus — site stylesheet
   Palette: abyss petrol + paper white, crimson case-marker accent
   Type: IBM Plex Serif (display) / IBM Plex Sans (text)
   ========================================================================== */

@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@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; }

:root {
  --abyss: #082630;
  --deep: #0f3a47;
  --current: #1f5a66;
  --tide: #7fb3b5;
  --tide-soft: #cde8e6;
  --mist: #e8f0f0;
  --paper: #fafbfa;
  --white: #ffffff;
  --ink: #142228;
  --slate: #52646a;
  --line: #d3dedf;
  --line-dark: rgba(205, 232, 230, 0.16);
  --signal: #b4233c;
  --signal-dark: #93182e;
  --signal-soft: #f6d6dc;
  --signal-on-dark: #ec7b8c;
  --ok: #1f8076;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--current); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); line-height: 1.15; }
h3 { font-family: var(--sans); font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--slate); }
.measure { max-width: 66ch; }
.kicker { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--signal); margin-bottom: 14px; }
.on-dark .kicker, .kicker.on-dark { color: var(--signal-on-dark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 6px; border: 1.5px solid transparent;
  font: 600 0.975rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); color: var(--white); }
.btn-dark { background: var(--abyss); color: var(--white); }
.btn-dark:hover { background: var(--current); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--abyss); background: transparent; }
.btn-ghost:hover { background: var(--abyss); color: var(--white); border-color: var(--abyss); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--abyss); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8, 38, 48, .08); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: 64px; height: 64px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 10px 11px; border-radius: 6px; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.nav a:hover { background: var(--mist); color: var(--abyss); }
.nav a[aria-current="page"] { color: var(--abyss); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--signal);
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { min-height: 44px; padding: 10px 16px; white-space: nowrap; }
.header-cta .login { white-space: nowrap; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--abyss); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); padding: 8px var(--gutter) 20px; }
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--signal); }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; border-bottom: 0; }


/* ---------- surfaces ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec.mist { background: var(--mist); }
.sec.white { background: var(--white); }
.on-dark { background: var(--abyss); color: #dbe8e8; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .muted { color: #a9c3c5; }
.on-dark a:not(.btn) { color: var(--tide); }
.on-dark a:not(.btn):hover { color: var(--white); }

/* sonar / contour pattern */
.pattern-sonar { position: relative; isolation: isolate; }
.pattern-sonar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/pattern-sonar.svg") right -180px center / 900px auto no-repeat;
  opacity: .5;
}
.pattern-dots {
  background-image: radial-gradient(rgba(31, 90, 102, .18) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.on-dark.pattern-dots { background-image: radial-gradient(rgba(127, 179, 181, .14) 1px, transparent 1.2px); }

/* logo watermark behind text */
.wm { position: relative; isolation: isolate; overflow: hidden; }
.wm::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(560px, 70vw); aspect-ratio: 1;
  background: url("img/octopus-mark.png") center / contain no-repeat;
  opacity: .045;
  right: -60px; top: 50%; transform: translateY(-50%) rotate(-8deg);
}
.wm.wm-center::before { right: auto; left: 50%; transform: translate(-50%, -50%); }
.wm.wm-left::before { right: auto; left: -80px; }
.on-dark.wm::before, .wm.wm-light::before { background-image: url("img/octopus-mark-white.png"); opacity: .06; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--abyss); color: #dbe8e8; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .9; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--abyss) 0%, rgba(8, 38, 48, .92) 38%, rgba(8, 38, 48, .45) 75%, rgba(8, 38, 48, .7) 100%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero .brand-line { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--tide); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.hero .brand-line::before { content: ""; width: 32px; height: 2px; background: var(--signal-on-dark); }
.hero .lede { color: #bcd2d3; margin: 24px 0 36px; }
.hero .assurance { margin-top: 28px; display: flex; gap: 10px; align-items: center; color: #a9c3c5; font-size: .95rem; }
.hero .assurance svg { width: 18px; height: 18px; color: var(--tide); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--abyss); color: #dbe8e8; }
.page-hero .hero-bg { opacity: .55; object-position: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--abyss) 20%, rgba(8, 38, 48, .82) 60%, rgba(8, 38, 48, .55));
}
.page-hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); position: relative; }
.page-hero .wrap.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .page-hero .wrap.split { grid-template-columns: 1fr; } }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lede { color: #bcd2d3; margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 28px; color: #a9c3c5; }
.crumbs a { color: var(--tide); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero .hero-mark {
  position: absolute; right: max(-60px, calc((100vw - var(--wrap)) / 2 - 120px)); bottom: -90px;
  width: clamp(260px, 32vw, 440px); opacity: .07; transform: rotate(-8deg); z-index: -1; pointer-events: none;
}

/* ---------- media frames (GIFs, illustrations) ---------- */
.frame {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: 0 20px 50px -24px rgba(8, 38, 48, .35);
}
.frame img { width: 100%; height: auto; border-radius: 6px; }
.frame figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 6px 4px; font-size: .875rem; color: var(--slate); }
.frame figcaption strong { color: var(--ink); font-weight: 600; }
.on-dark .frame, .hero .frame, .page-hero .frame { border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.frame.tilt { transform: rotate(1.2deg); }
@media (max-width: 900px) { .frame.tilt { transform: none; } }

/* ---------- grids & layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.center { align-items: center; }
.split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.split.wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; } }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.head-row p { max-width: 52ch; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { margin-top: 16px; }

/* service index (home) — ruled list rather than card tiles */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 44px 1fr 20px; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.svc-list a:hover h3 { color: var(--signal); }
.svc-list .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--mist); color: var(--current); display: grid; place-items: center; }
.svc-list .ico svg { width: 22px; height: 22px; }
.svc-list p { margin-top: 6px; color: var(--slate); font-size: .975rem; }
.svc-list .go { width: 18px; height: 18px; margin-top: 4px; color: var(--slate); transition: transform .2s, color .2s; }
.svc-list a:hover .go { transform: translateX(3px); color: var(--signal); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.on-dark .checks li { border-color: var(--line-dark); }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.on-dark .checks svg { color: var(--tide); }
.checks.one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* process (sequence — numbered because it is one) */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process li { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.process li::before {
  content: counter(step); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--current); color: var(--current);
  font: 500 1.1rem var(--serif); margin-bottom: 22px; position: relative; z-index: 1;
}
.process li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, var(--tide) 0 6px, transparent 6px 12px); }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--slate); font-size: .975rem; }
.process.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .process, .process.five { grid-template-columns: 1fr; gap: 28px; }
  .process li { padding: 0 0 0 68px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .process li:not(:last-child)::after { top: 52px; bottom: -24px; left: 24px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--tide) 0 6px, transparent 6px 12px); }
}

/* feature points (why us / values) */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.points > div { border-left: 2px solid var(--line); padding-left: 22px; }
.points > div:hover { border-left-color: var(--signal); }
.points .ico { width: 22px; height: 22px; color: var(--current); margin-bottom: 14px; }
.points h3 { margin-bottom: 8px; }
.points p { color: var(--slate); font-size: .975rem; }
.on-dark .points > div { border-color: var(--line-dark); }
.on-dark .points p { color: #a9c3c5; }
.on-dark .points .ico { color: var(--tide); }
@media (max-width: 960px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* audience tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles a, .tiles > div { display: block; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tiles a:hover { border-color: var(--current); }
.tiles .ico { width: 24px; height: 24px; color: var(--signal); margin-bottom: 18px; }
.tiles p { font-size: .95rem; color: var(--slate); margin-top: 8px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* statement / quote block */
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; max-width: 30ch; }
.note {
  border-left: 3px solid var(--signal); background: var(--white); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
}
.note h3 { margin-bottom: 8px; }
.on-dark .note { background: rgba(255, 255, 255, .04); }

/* mission/vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mv > div { background: var(--white); padding: clamp(28px, 4vw, 48px); }
.mv h3 { color: var(--signal); margin-bottom: 12px; font-size: 1rem; }
.mv p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* ---------- CTA band (branded, every page) ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: #dbe8e8; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; aspect-ratio: 1; right: -90px; top: -120px;
  background: url("img/octopus-mark-white.png") center / contain no-repeat; opacity: .07; transform: rotate(-10deg);
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/pattern-sonar.svg") left -260px center / 820px auto no-repeat; opacity: .35; }
.cta-band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta-band img.seal { width: 96px; height: 96px; border-radius: 8px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.cta-band p { color: #bcd2d3; margin-top: 10px; max-width: 60ch; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--abyss); color: #a9c3c5; font-size: .95rem; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer .logo-tile { display: inline-block; background: var(--white); border-radius: 8px; padding: 4px; }
.site-footer .logo-tile img { width: 96px; height: 96px; }
.site-footer .tag { margin-top: 20px; max-width: 34ch; color: #bcd2d3; }
.site-footer h2 { font: 600 .95rem var(--sans); color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #bcd2d3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; }
.site-footer .mail { display: inline-flex; gap: 10px; align-items: center; }
.site-footer .mail svg { width: 18px; height: 18px; flex: none; color: var(--tide); }
.site-footer .mail { overflow-wrap: anywhere; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Methodology page
   ========================================================================== */
.diagram { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); overflow-x: auto; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram.narrow svg { min-width: 320px; }
.diagram-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: .875rem; color: var(--slate); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.stages { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stage { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 4vw, 56px); padding: 48px 0; border-top: 1px solid var(--line); counter-increment: st; align-items: start; }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage .num { font: 300 clamp(3rem, 6vw, 4.5rem)/1 var(--serif); color: var(--tide); }
.stage .num::before { content: counter(st, decimal-leading-zero); }
.stage h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 12px; }
.stage .io { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.stage .io h4 { font-size: .875rem; color: var(--signal); margin-bottom: 8px; }
.stage .io ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: .95rem; }
.stage .io li { margin-bottom: 4px; }
.stage .aside-card { background: var(--mist); border-radius: var(--radius); padding: 22px; font-size: .95rem; }
.stage .aside-card h4 { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.stage .aside-card h4 svg { width: 18px; height: 18px; color: var(--current); }
.stage .aside-card ul { margin: 0; padding-left: 18px; color: var(--slate); }
@media (max-width: 1000px) {
  .stage { grid-template-columns: 72px minmax(0, 1fr); }
  .stage > :last-child { grid-column: 2; }
}
@media (max-width: 600px) {
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .stage > :last-child { grid-column: auto; }
  .stage .io { grid-template-columns: 1fr; }
}

.gif-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .gif-row { grid-template-columns: 1fr; max-width: 560px; } }

.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.principles > div { padding: 28px 24px; border-right: 1px solid var(--line-dark); }
.principles > div:last-child { border-right: 0; }
.principles .ico { width: 24px; height: 24px; color: var(--signal-on-dark); margin-bottom: 18px; }
.principles h3 { margin-bottom: 8px; }
.principles p { font-size: .95rem; color: #a9c3c5; }
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr 1fr; } .principles > div { border-bottom: 1px solid var(--line-dark); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } .principles > div { border-right: 0; } }

.classify { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.classify > div { border-radius: var(--radius); padding: 22px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--current)); }
.classify h3 { margin-bottom: 6px; }
.classify p { color: var(--slate); font-size: .95rem; }
@media (max-width: 760px) { .classify { grid-template-columns: 1fr; } }

.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); }
.matrix th, .matrix td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix thead th { font-weight: 600; color: var(--abyss); background: var(--mist); }
.matrix td.c { text-align: center; width: 120px; }
.matrix .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.matrix .full { background: var(--current); }
.matrix .part { background: transparent; border: 2px solid var(--current); }
.matrix .none { background: var(--line); width: 10px; height: 2px; border-radius: 0; vertical-align: middle; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ==========================================================================
   Services page
   ========================================================================== */
.svc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 8px; }
.svc-toc h2 { font: 600 .95rem var(--sans); margin-bottom: 12px; color: var(--slate); }
.svc-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.svc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.svc-toc a:hover { color: var(--abyss); }
.svc-toc a.active { color: var(--abyss); border-left-color: var(--signal); font-weight: 600; }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .svc-toc { position: static; max-height: none; } .svc-toc ol { columns: 2; } }
@media (max-width: 560px) { .svc-toc ol { columns: 1; } }
.svc { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.svc header .ico { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--abyss); color: var(--white); display: grid; place-items: center; }
.svc header .ico svg { width: 22px; height: 22px; }
.svc h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); padding-top: 4px; }
.svc .apps { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.svc .apps li { font-size: .875rem; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--deep); }
.svc .apps-label { font-size: .875rem; font-weight: 600; margin-top: 20px; color: var(--signal); }
.svc-inset { margin: 24px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--mist); border-radius: var(--radius); padding: 24px; }
@media (max-width: 760px) { .svc-inset { grid-template-columns: 1fr; } }

/* ==========================================================================
   Global coverage
   ========================================================================== */
.regions { border-top: 1px solid var(--line); }
.regions details { border-bottom: 1px solid var(--line); }
.regions summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; font: 400 1.3rem var(--serif); color: var(--abyss); }
.regions summary::-webkit-details-marker { display: none; }
.regions summary .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .2s, background .2s; }
.regions summary .plus svg { width: 16px; height: 16px; }
.regions details[open] summary .plus { transform: rotate(45deg); background: var(--abyss); color: var(--white); border-color: var(--abyss); }
.regions summary:hover { color: var(--signal); }
.regions .body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 0 28px; }
.regions .body h3 { font-size: .875rem; color: var(--signal); margin-bottom: 6px; }
.regions .body p { color: var(--slate); font-size: .975rem; }
@media (max-width: 700px) { .regions .body { grid-template-columns: 1fr; } }

/* ==========================================================================
   Insights
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 500 .9rem var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--abyss); border-color: var(--abyss); color: var(--white); }
.insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.insight { display: grid; grid-template-rows: auto 1fr auto; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.insight.feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 32px; align-items: center; }
.insight .tag { font-size: .85rem; font-weight: 600; color: var(--signal); margin-bottom: 12px; }
.insight h2 { font-size: 1.4rem; line-height: 1.3; }
.insight p { color: var(--slate); margin: 12px 0 20px; }
.insight[hidden] { display: none; }
@media (max-width: 800px) { .insights { grid-template-columns: 1fr; } .insight.feature { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; isolation: isolate; }
.form-card::before {
  content: ""; position: absolute; z-index: -1; width: 380px; aspect-ratio: 1; right: -110px; bottom: -110px;
  background: url("img/octopus-mark.png") center / contain no-repeat; opacity: .025; transform: rotate(-8deg);
}
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-card > p { color: var(--slate); margin-top: 10px; }
.progress { display: flex; gap: 6px; margin: 28px 0 8px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.progress span.done { background: var(--ok); }
.progress-label { font-size: .85rem; color: var(--slate); margin-bottom: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font: 600 1rem var(--sans); color: var(--abyss); padding: 0; margin: 24px 0 14px; display: flex; gap: 10px; align-items: center; }
legend .n { width: 26px; height: 26px; border-radius: 50%; background: var(--abyss); color: var(--white); display: inline-grid; place-items: center; font-size: .8rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .925rem; font-weight: 500; margin-bottom: 6px; }
.field .req { color: var(--signal); }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 3px rgba(31, 90, 102, .15); background: var(--white); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--signal); }
.field .err { display: none; color: var(--signal); font-size: .85rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.field .hint { font-size: .85rem; color: var(--slate); margin-top: 6px; display: flex; justify-content: space-between; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; background: var(--paper); flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 9px 18px; border-radius: 5px; cursor: pointer; font-weight: 500; }
.seg input:checked + label { background: var(--abyss); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 1px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 22px; font-size: .95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--abyss); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-foot p { font-size: .875rem; color: var(--slate); max-width: 44ch; margin: 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 6px; background: var(--tide-soft); color: var(--abyss); font-size: .95rem; }
.form-status[hidden] { display: none; }
.side-stack { display: grid; gap: 20px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.side-card h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.side-card h3 svg { width: 20px; height: 20px; color: var(--signal); }
.side-card p { color: var(--slate); font-size: .95rem; }
.side-card.dark { background: var(--abyss); border-color: var(--abyss); color: #bcd2d3; }
.side-card.dark h3 { color: var(--white); }
.side-card.dark a { color: var(--white); font-weight: 600; word-break: break-all; }
.next-steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; font-size: .95rem; color: var(--slate); border-top: 1px solid var(--line); }
.next-steps li::before { content: counter(ns); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--current); color: var(--current); display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.next-steps strong { color: var(--ink); display: block; font-weight: 600; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal section:first-child { border-top: 0; padding-top: 0; }
.legal h2 { font-size: 1.5rem; margin-bottom: 12px; }
.legal p { color: #34474d; }
.legal-meta { font-size: .9rem; color: var(--slate); margin-bottom: 32px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.matrix tbody th { font-weight: 500; }

/* ==========================================================================
   Client portal
   ========================================================================== */
:root { --ai: #5b3fa8; --ai-soft: #ece6fa; --ai-on-dark: #b9a6ef; }
.header-cta .login { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--abyss); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.header-cta .login svg { width: 18px; height: 18px; }
.header-cta .login:hover { background: var(--mist); color: var(--abyss); }
@media (max-width: 1280px) {
  .nav, .header-cta .btn, .header-cta .login { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1281px) { .mobile-nav { display: none !important; } }

.ai-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--ai); background: var(--ai-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.ai-badge svg { width: 16px; height: 16px; }
.ai-badge.on-dark { background: rgba(185, 166, 239, .14); color: var(--ai-on-dark); }

.browser { margin: 0; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(8, 38, 48, .45); }
.on-dark .browser, .page-hero .browser { border-color: rgba(255, 255, 255, .14); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #eef3f3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d6d7; }
.browser-bar span { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--slate); background: var(--white); border-radius: 6px; padding: 3px 14px; }
.browser-bar span svg { width: 12px; height: 12px; color: var(--ok); }
.browser img { width: 100%; height: auto; }
.browser.tilt { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 900px) { .browser.tilt { transform: none; } }
.portal-hero .wrap.split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .portal-hero .wrap.split { grid-template-columns: 1fr; } }

.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points.four { grid-template-columns: 1fr; } }

.shot-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--mist); border-radius: 10px; margin-bottom: 32px; width: fit-content; max-width: 100%; }
.shot-tabs button { font: 600 .925rem var(--sans); padding: 10px 18px; border-radius: 7px; border: 0; background: transparent; color: var(--slate); cursor: pointer; }
.shot-tabs button:hover { color: var(--abyss); }
.shot-tabs button[aria-selected="true"] { background: var(--white); color: var(--abyss); box-shadow: 0 2px 8px rgba(8, 38, 48, .1); }
.shot-panel { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.shot-panel[hidden] { display: none; }
.shot-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 12px; }
.shot-copy .checks { margin-top: 20px; }
@media (max-width: 960px) { .shot-panel { grid-template-columns: 1fr; } }

.ai-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ai-col { border: 1px solid rgba(185, 166, 239, .3); background: rgba(185, 166, 239, .06); border-radius: var(--radius); padding: 28px; }
.ai-col.human { border-color: var(--line-dark); background: rgba(127, 179, 181, .06); }
.ai-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-col h3 svg { width: 22px; height: 22px; color: var(--ai-on-dark); }
.ai-col.human h3 svg { color: var(--tide); }
.ai-col .checks svg { color: var(--ai-on-dark); }
.ai-col.human .checks svg { color: var(--tide); }
@media (max-width: 760px) { .ai-split { grid-template-columns: 1fr; } }

.portal-intro .browser { margin-right: calc(-1 * var(--gutter)); }
@media (max-width: 900px) { .portal-intro .browser { margin-right: 0; } }

/* ---------- Laravel site additions ---------- */
.cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; }
.cta-band .wrap:has(> img.seal) { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 860px) { .cta-band .wrap, .cta-band .wrap:has(> img.seal) { grid-template-columns: 1fr; } }
.svc-cat { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 48px 0 8px; color: var(--abyss); }
.svc-cat:first-of-type { margin-top: 0; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p { color: #34474d; }
.site-footer .social { display: flex; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.site-footer .social li { margin: 0; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .social a:hover { background: var(--signal); color: #fff; text-decoration: none; }
.form-status:not([hidden]) { display: block; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; background: var(--abyss); color: #dbe8e8; border-radius: 12px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .95rem; } .consent a { color: var(--tide); }
.consent div { display: flex; gap: 8px; } .consent .btn-ghost { color: #fff; }

/* new hero image: stronger overlay on narrow screens where text sits over the tentacle */
@media (max-width: 860px) { .hero::before { background: linear-gradient(180deg, rgba(8, 38, 48, .9) 0%, rgba(8, 38, 48, .86) 100%); } }
