/* ==========================================================================
   KubeOptix — design system
   Art direction: "optical grid". Warm paper, electric indigo, coral signal.
   Self-hosted type, no external requests anywhere.
   ========================================================================== */

@import url("/assets/fonts/fonts.css");

:root {
  /* --- surfaces */
  --paper:      #f4f2ed;
  --paper-2:    #eceae3;
  --paper-3:    #e4e1d8;
  --card:       #ffffff;

  /* --- ink */
  --ink:        #12141a;
  --ink-2:      #3a3f4c;
  --ink-3:      #6b7180;
  --line:       #dbd7cd;
  --line-soft:  #e8e5dd;

  /* --- brand */
  --blue:       #1f3bd1;
  --blue-hi:    #3457ff;
  --blue-deep:  #141c57;
  --blue-soft:  #e3e6fb;
  --coral:      #ff5b38;
  --coral-soft: #ffe6df;
  --green:      #1a7a45;
  --green-soft: #dcefe3;

  /* --- geometry */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 74px;

  /* --- type */
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain — the one thing that stops a flat light page looking synthetic */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 .4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 1.1rem + 6.4vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); letter-spacing: -.025em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ------------------------------------------------------------- utilities */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding: clamp(72px, 9vw, 150px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.66); }
.section--ink h2, .section--ink h3 { color: #fff; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker b { color: var(--coral); font-weight: 700; }
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}
.section--ink .kicker { color: rgba(255,255,255,.5); }
.section--ink .kicker::after { background: rgba(255,255,255,.18); }

.section__head { max-width: 60rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head h2 { max-width: 16ch; }
.section__head.is-wide h2 { max-width: 22ch; }
.section__head p {
  max-width: 58ch;
  margin-top: 22px;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--ink-3);
}

.lede {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.skip-link {
  position: absolute;
  left: 16px; top: -70px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: .8rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; }

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

/* diamond bullet — the logo mark reduced to its simplest form */
.dia {
  display: inline-block;
  width: 8px; height: 8px;
  flex: none;
  background: var(--blue);
  transform: rotate(45deg);
}
.dia--coral { background: var(--coral); }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-sweep: var(--blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-size: .96rem;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              transform .25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-sweep);
  transform: translateY(101%);
  transition: transform .42s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--blue { --btn-bg: var(--blue); --btn-sweep: var(--ink); }
.btn--coral { --btn-bg: var(--coral); --btn-sweep: var(--ink); }
.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-sweep: var(--ink);
  border-color: var(--line);
}
.btn--line:hover { color: #fff; border-color: var(--ink); }
.btn--onink {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-sweep: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn--onink:hover { color: var(--ink); border-color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .88rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.arrow-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.arrow-link:hover { color: var(--blue); border-color: var(--blue); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              height .35s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(244, 242, 237, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.site-header.is-stuck::after { transform: scaleX(1); }

.site-header .container { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: .94rem;
  color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-side { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang-switch svg { width: 13px; height: 13px; opacity: .45; margin-right: 4px; }
.lang-switch a {
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--ink-3);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 17px; height: 1.5px; background: var(--ink); }
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}

/* faint column grid — the "engineering paper" substrate */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}
.hero__grid span { border-left: 1px solid var(--line-soft); }
.hero__grid span:last-child { border-right: 1px solid var(--line-soft); }

.hero .container { position: relative; z-index: 1; }

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(26px, 4vw, 48px);
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__label i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 122, 69, .5); }
  60%      { box-shadow: 0 0 0 7px rgba(26, 122, 69, 0); }
}

.hero__title { margin: 0 0 clamp(28px, 3.5vw, 44px); max-width: 15ch; }
.hero__title em {
  font-style: normal;
  color: var(--blue);
}
.hero__title .mark {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}
.hero__title .mark::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .08em;
  height: .1em;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  animation: swipe 1s var(--ease-out) .85s forwards;
}
@keyframes swipe { to { transform: scaleX(1); } }

/* line-by-line reveal */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(102%);
  animation: lineUp .95s var(--ease-out) forwards;
}
.line:nth-child(1) > span { animation-delay: .05s; }
.line:nth-child(2) > span { animation-delay: .14s; }
.line:nth-child(3) > span { animation-delay: .23s; }
.line:nth-child(4) > span { animation-delay: .32s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* The optic faces the whole text block — label, headline, lede, buttons.
   It used to sit in a row with the lede alone and bottom-align to it, which
   left the headline staring at 280px of nothing and pushed the optic low. */
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__lede { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the optic — concentric rotated squares, the logo abstracted */
.optic {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.optic span {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 12%;
  transform: rotate(45deg);
  animation: spin 34s linear infinite;
}
.optic span:nth-child(1) { inset: 0;   border-color: var(--line); }
.optic span:nth-child(2) { inset: 12%; border-color: var(--line); animation-direction: reverse; animation-duration: 28s; }
.optic span:nth-child(3) { inset: 24%; border-color: rgba(31, 59, 209, .3); animation-duration: 22s; }
@keyframes spin { to { transform: rotate(405deg); } }

/* The mark sits at the centre of the rings, as on the social cover. It does
   not spin with them: a logo that is upside down half the time stops being a
   logo. It breathes instead, so the middle is not dead while the rings turn. */
.optic__mark {
  position: absolute;
  width: 44%;
  height: auto;
  filter: drop-shadow(0 22px 46px rgba(20, 28, 87, .22));
  animation: optic-breathe 9s var(--ease) infinite;
}
@keyframes optic-breathe {
  0%, 100% { transform: translateY(-1.5%) scale(1); }
  50%      { transform: translateY(1.5%) scale(1.045); }
}

.optic__hud {
  position: absolute;
  bottom: -4px; left: 0;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 88px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.hero__stats > div { background: var(--paper); padding: 26px 22px 26px 0; }
.hero__stats > div:not(:first-child) { padding-left: 26px; }
.hero__stats dt {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.hero__stats dd {
  margin: 10px 0 0;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 26ch;
}

/* --------------------------------------------------------------- marquee */

.marquee-wrap { overflow: hidden; }

.marquee {
  position: relative;
  width: 108%;
  margin-left: -4%;
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink);
  transform: rotate(-1.2deg);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
  margin: 0;
  padding: 0 21px;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: 42px;
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--coral);
  transform: rotate(45deg);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- products */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(18,20,26,.4); }
.pcard--lead { grid-column: span 7; }
.pcard--side { grid-column: span 5; background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.68); }
.pcard--side h3, .pcard--side .pcard__tag { color: #fff; }

/* corner ornament */
.pcard::before {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 190px; height: 190px;
  border: 1px solid var(--line-soft);
  transform: rotate(45deg);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.pcard:hover::before { transform: rotate(135deg); }
.pcard--side::before { border-color: rgba(255,255,255,.14); }

.pcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.pcard__name {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 0;
}
.pcard--side .pcard__name { color: #fff; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--green-soft); color: var(--green); }
.status--wip  { background: var(--blue-soft); color: var(--blue); }
.pcard--side .status--wip { background: rgba(255,255,255,.12); color: #fff; }

.pcard__tag {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 16px;
}
.pcard--side .pcard__tag { color: var(--coral); }

.pcard p { font-size: .98rem; }

.speclist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.speclist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .92rem;
  color: var(--ink-2);
}
.speclist li:last-child { border-bottom: 1px solid var(--line-soft); }
.speclist li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 8px;
  background: var(--blue);
  transform: rotate(45deg);
}
.pcard--side .speclist li { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.72); }
.pcard--side .speclist li::before { background: var(--coral); }

.pcard__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 22px 0 0; padding: 0; }
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.pcard--side .chips li { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.6); }

/* -------------------------------------------------------------- services */

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.index-row { position: relative; border-bottom: 1px solid var(--line); }
.index-row > a {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 340px) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  transition: padding .4s var(--ease-out), color .3s var(--ease);
}
.index-row > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .42s var(--ease-out);
}
.index-row > a:hover { padding-inline: clamp(16px, 2vw, 30px); color: #fff; }
.index-row > a:hover::before { transform: scaleY(1); transform-origin: top; }

.index-row__num {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  transition: color .3s var(--ease);
}
.index-row > a:hover .index-row__num { color: var(--coral); }

.index-row__name {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.index-row > a:hover .index-row__name { color: #fff; }

.index-row__desc { font-size: .95rem; color: var(--ink-3); transition: color .3s var(--ease); }
.index-row > a:hover .index-row__desc { color: rgba(255,255,255,.72); }

.index-row__go {
  justify-self: end;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.index-row__go svg { width: 15px; height: 15px; }
.index-row > a:hover .index-row__go {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.faq__item { padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.faq__item h3 {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.faq__item p { font-size: .97rem; color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- method */

.method { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); }
.method__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.method__aside h2 { font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.7rem); }
.method__aside > p { color: rgba(255,255,255,.6); font-size: .98rem; }
.method__bar {
  margin-top: 30px;
  height: 3px;
  background: rgba(255,255,255,.16);
  border-radius: 2px;
  overflow: hidden;
}
.method__bar b { display: block; height: 100%; width: 0; background: var(--coral); transition: width .3s var(--ease); }

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid rgba(255,255,255,.14);
  opacity: .38;
  transition: opacity .5s var(--ease);
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.step.is-active { opacity: 1; }
.step__num {
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--coral);
  padding-top: 6px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.66); font-size: .98rem; }

/* ----------------------------------------------------------------- about */

.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

.creed { list-style: none; margin: 40px 0 0; padding: 0; }
.creed li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.creed li:last-child { border-bottom: 1px solid var(--line); }
.creed .dia { margin-top: 8px; }
.creed strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); letter-spacing: -.02em; }
.creed span { font-size: .95rem; color: var(--ink-3); }

.panel {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding: clamp(28px, 3vw, 40px);
  background: var(--ink);
  border-radius: var(--r-lg);
  color: rgba(255,255,255,.68);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  bottom: -110px; right: -110px;
  width: 260px; height: 260px;
  background: linear-gradient(150deg, var(--blue), transparent 70%);
  transform: rotate(45deg);
  opacity: .6;
}
.panel h3 { color: #fff; position: relative; }
.panel p { position: relative; font-size: .96rem; }
.panel dl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel dl > div { background: var(--ink); padding: 20px 18px; }
.panel dt {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.panel dd { margin: 8px 0 0; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------------- cta */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(40px, 5vw, 72px);
  background: var(--blue);
  border-radius: var(--r-lg);
  color: rgba(255,255,255,.8);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -140px; left: 40%;
  width: 320px; height: 320px;
  border: 1px solid rgba(255,255,255,.22);
  transform: rotate(45deg);
}
.cta::after {
  content: "";
  position: absolute;
  bottom: -160px; right: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,.18);
  transform: rotate(45deg);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--onink:hover { color: var(--blue); }

/* --------------------------------------------------------------- contact */

.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.form {
  padding: clamp(26px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7180' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field input::placeholder, .field textarea::placeholder { color: #b3b0a8; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 26px; }
.check input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.check label {
  font-size: .87rem;
  line-height: 1.5;
  color: var(--ink-3);
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.form-note { margin: 18px 0 0; font-size: .8rem; color: var(--ink-3); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  border-left: 3px solid;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.form-status.is-error { background: var(--coral-soft); border-color: var(--coral); color: #a8290d; }

.reach { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reach > * { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reach dt {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.reach a, .reach span {
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.reach a:hover { color: var(--blue); }
.reach address { font-style: normal; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: .92rem;
  color: var(--ink-3);
}
.hours li b { font-weight: 500; color: var(--ink); font-family: var(--f-mono); font-size: .84rem; }
.hours li.is-closed b { color: var(--ink-3); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255,255,255,.55); padding: clamp(56px, 7vw, 96px) 0 30px; font-size: .93rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.site-footer img { height: 28px; width: auto; margin-bottom: 22px; }
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--coral); }
.site-footer p { max-width: 36ch; margin-bottom: 22px; color: rgba(255,255,255,.55); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  padding-top: 26px;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.36);
}
.footer__bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }

/* ------------------------------------------------------------ inner page */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(46px, 6vw, 84px)) 0 clamp(36px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -90px;
  width: 320px; height: 320px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem); max-width: 16ch; }
.page-hero p { max-width: 58ch; margin: 22px 0 0; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: var(--ink-3); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .45; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 80px); align-items: start; }

.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
  margin: 2em 0 .6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.prose ul li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 9px;
  background: var(--coral);
  transform: rotate(45deg);
}

.aside-nav { border-top: 1px solid var(--line); }
.aside-nav h4 {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 8px;
}
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav li { border-bottom: 1px solid var(--line-soft); }
.aside-nav a {
  display: block;
  padding: 13px 0;
  font-size: .95rem;
  color: var(--ink-2);
  transition: color .25s var(--ease), padding .25s var(--ease);
}
.aside-nav a:hover { color: var(--blue); padding-left: 8px; }
.aside-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.aside-nav a[aria-current="page"]::before { content: "→ "; color: var(--coral); }

.aside-cta {
  margin-top: 32px;
  padding: 28px 24px;
  background: var(--ink);
  border-radius: var(--r-md);
  color: rgba(255,255,255,.66);
}
.aside-cta h4 { color: #fff; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -.02em; text-transform: none; margin: 0 0 10px; }
.aside-cta p { font-size: .9rem; margin-bottom: 20px; }
.aside-cta .btn { width: 100%; }

/* --------------------------------------------------------------- 404 */

/* The 404 is a single full-bleed canvas. No scroll, no chrome, no colour. */
.is-404 { overflow: hidden; height: 100%; }
.is-404::after { display: none; }          /* the paper grain would fight the line art */

.error-page {
  position: fixed;
  inset: 0;
  margin: 0;
}
.error-page canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* the way out: discreet, but present for phones, screen readers and crawlers */
.exit {
  position: fixed;
  left: 0; right: 0;
  top: env(safe-area-inset-top, 0px);
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 14px 12px;
}
.exit a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.exit a:hover, .exit a:focus-visible { color: var(--ink); background: var(--paper-2); }

@media (hover: none) and (pointer: coarse) {
  .exit a { padding: 11px 14px; font-size: .72rem; color: var(--ink-2); }
}

/* -------------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */

/* Above the breakpoint the copy shares its row with the optic, so its column
   is narrower than the container. The headline is composed as three fixed
   lines: let it size to its longest line and reach into the gutter the
   right-aligned optic leaves free, rather than re-wrap into four.
   width must come with it — .line clips overflow for the reveal animation,
   so a line wider than its box loses its last glyphs. */
@media (min-width: 1025px) {
  .hero__title { width: max-content; max-width: none; }
  .hero__title .line > span { white-space: nowrap; }
}

@media (max-width: 1180px) {
  .index-row > a { grid-template-columns: 60px minmax(0, 300px) minmax(0, 1fr) 48px; gap: 18px; }
}

@media (max-width: 1024px) {
  .hero__body { grid-template-columns: 1fr; align-items: start; }
  .optic { max-width: 300px; margin: 8px 0 0; }
  .pcard--lead, .pcard--side { grid-column: span 12; }
  .method { grid-template-columns: 1fr; }
  .method__aside { position: static; }
  .about { grid-template-columns: 1fr; }
  .panel { position: static; }
  .contact { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; order: 3; }
  .header-side { margin-left: auto; order: 2; }
  .header-cta { display: none; }

  .site-header { background: rgba(244,242,237,.9); backdrop-filter: blur(12px); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: max-height .4s var(--ease-out), border-color .4s var(--ease);
  }
  .nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    border-bottom-color: var(--line);
    box-shadow: 0 24px 40px -20px rgba(18, 20, 26, .28);
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; }
  .nav li { border-bottom: 1px solid var(--line-soft); }
  .nav a { padding: 18px 0; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; }
  .nav a::after { display: none; }

  .hero__grid { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats > div { padding: 20px 0; }
  .hero__stats > div:not(:first-child) { padding-left: 0; border-top: 1px solid var(--line); }
  .hero__stats dd { max-width: none; }

  .index-row > a {
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 14px;
    align-items: start;
  }
  .index-row__desc { grid-column: 2 / 3; margin-top: 8px; }
  .index-row__go { width: 34px; height: 34px; }

  .faq { grid-template-columns: 1fr; gap: 0; }
  .method__aside { margin-bottom: 8px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; opacity: 1; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom nav { margin-left: 0; width: 100%; }
}

/* Below ~344px the logo, the language switch and the burger no longer fit the
   header row: the burger was pushed 3px past the right edge and clipped.
   Tighten the row instead of dropping a control — the language switch is the
   only way to reach the other two versions from a phone. */
@media (max-width: 400px) {
  .site-header .container { gap: 10px; }
  .lang-switch { padding: 4px 5px 4px 7px; letter-spacing: .03em; }
  .lang-switch a { padding: 3px 5px; }
  .lang-switch svg { margin-right: 2px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .page-hero::before { display: none; }
  .frow { grid-template-columns: 1fr; }
  .panel dl { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions, .cta__actions, .pcard__foot, .error-page .btn-row { width: 100%; }
  .marquee { width: 116%; margin-left: -8%; transform: rotate(-1.8deg); }
  .marquee ul { gap: 26px; }
  .marquee li { gap: 26px; font-size: .74rem; }
  .optic { max-width: 220px; }
  .creed li { grid-template-columns: 16px minmax(0, 1fr); gap: 12px; }
  .prose ul li { grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .line > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .step { opacity: 1; }
}

@media print {
  .site-header, .nav-toggle, .cta, .form, .marquee, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
