/* ==========================================================================
   The Pluton Company — site styles
   Structure: tokens → base → nav → hero → strip → manifesto → features
              → products → go deeper → footer → responsive → motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* dark (default) */
  --bg: #0f0f11;
  --bg-2: #161619;
  --bg-3: #1d1d21;
  --fg: #f6f6f1;
  --fg-2: #b9b9b3;
  --fg-3: #77777c;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --focus: #00f0f0;
  --invert: 0;
  --blend: lighten;

  /* brand accents, sampled from the NEAT mark */
  --c1: #04a8ee;
  --c2: #05c0ed;
  --c3: #00f0f0;
  --c4: #17facb;
  --c5: #32f38b;
  --ink: #0b0b0d;

  --nav-h: 48px;
  --u: clamp(20px, calc(100vw / 21), 60px); /* one block unit */
  --pad: clamp(20px, 3.2vw, 40px);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* the stepped corner, as a clip-path */
  --stair: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 72%, 28% 72%, 28% 50%, 0 50%);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4ef;
    --bg-2: #ebebe5;
    --bg-3: #e2e2db;
    --fg: #0f0f11;
    --fg-2: #46464b;
    --fg-3: #85858a;
    --line: rgba(0, 0, 0, 0.12);
    --line-2: rgba(0, 0, 0, 0.22);
    --focus: #0a78c0;
    --invert: 1;
    --blend: darken;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f4f4ef;
  --bg-2: #ebebe5;
  --bg-3: #e2e2db;
  --fg: #0f0f11;
  --fg-2: #46464b;
  --fg-3: #85858a;
  --line: rgba(0, 0, 0, 0.12);
  --line-2: rgba(0, 0, 0, 0.22);
  --focus: #0a78c0;
  --invert: 1;
  --blend: darken;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus { top: 8px; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display--md {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.display--sm {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.ico { flex: none; }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--bg-3); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
}
.btn--solid:hover { background: var(--fg); opacity: 0.88; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--fg-3);
}
.tag--live::before { background: var(--c5); box-shadow: 0 0 0 3px rgba(50, 243, 139, 0.22); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 15px;
}
.link-arrow .ico { transition: transform 0.2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: invert(var(--invert));
}
.nav__links { display: flex; }
.nav__links a,
.nav__cell {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav__links a { border-right: 1px solid var(--line); }
.nav__cell { border-left: 1px solid var(--line); }
.nav__links a:hover,
.nav__cell:hover { background: var(--bg-2); }
.nav__cell--cta { background: var(--fg); color: var(--bg); }
.nav__cell--cta:hover { background: var(--fg); opacity: 0.88; }
.nav__right { margin-left: auto; display: flex; }

.nav__toggle {
  display: none;
  width: 48px;
  border-left: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__arc {
  position: absolute;
  left: -760px;
  top: -880px;
  width: 1100px;
  height: 1100px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.hero__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.hero__rail--l { left: calc(var(--u) * 2); }
.hero__rail--r { right: calc(var(--u) * 2); }

.hero__copy {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 9vh, 110px) 24px clamp(24px, 4vh, 48px);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Stage: blocks sit on the ground line at its bottom edge */
.stage {
  position: relative;
  flex: none;
  width: 100%;
  height: calc(var(--u) * 6);
}
.stage__probe { position: absolute; left: 0; bottom: 0; width: var(--u); height: 0; }

.blk {
  position: absolute;
  background: var(--c, var(--c1));
}
.blk--l1 { left: 0; bottom: 0; width: calc(var(--u) * 2); height: calc(var(--u) * 2); --c: var(--c1); }
.blk--l2 { left: 0; bottom: calc(var(--u) * 2); width: calc(var(--u) * 2); height: calc(var(--u) * 2); --c: var(--c3); }
.blk--l3 { left: calc(var(--u) * 2); bottom: 0; width: var(--u); height: var(--u); --c: var(--c5); }
.blk--r1 { right: 0; bottom: 0; width: calc(var(--u) * 2); height: calc(var(--u) * 2); --c: var(--c4); }
.blk--r2 { right: 0; bottom: calc(var(--u) * 2); width: calc(var(--u) * 2); height: calc(var(--u) * 2); --c: var(--c2); }
.blk--r3 { right: calc(var(--u) * 2); bottom: 0; width: var(--u); height: var(--u); --c: var(--c3); }

/* Moving blocks: js/app.js sets transform; hidden until it is ready */
.mv {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--u);
  height: var(--u);
  clip-path: var(--stair);
  opacity: 0;
  will-change: transform;
  pointer-events: none;
}
.is-ready .mv { opacity: 1; }
.mv--a { background: var(--c3); }
.mv--b { background: var(--c5); }
.mv--bar { background: linear-gradient(90deg, var(--c3), var(--c5)); display: none; }
.mv--d { background: var(--c5); z-index: 1; }

.pill {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--u) * 3.3);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--fg-3); background: var(--bg-2); }
.pill__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0b0b0d;
  flex: none;
}

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.strip__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 160px;
  padding: 32px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.strip__cell:first-child { border-left: 0; }
.strip__big {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.strip__cap {
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-3);
}

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 24px clamp(90px, 12vw, 160px);
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.manifesto__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line-2);
  pointer-events: none;
}
.manifesto .display { position: relative; max-width: 15em; margin: 0 auto; }

.chips {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
.chips__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.chips__row:nth-child(2) { transform: translateX(40px); }
.chips__row:nth-child(3) { transform: translateX(-70px); }
.chips__row:nth-child(4) { transform: translateX(20px); }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: var(--bg-3);
  color: var(--fg-3);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.chip::before,
.chip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--fg);
}
.chip::before { left: -13px; }
.chip::after { right: -13px; }
.chip__ico {
  display: none;
  width: 18px;
  height: 18px;
  flex: none;
  clip-path: var(--stair);
  background: linear-gradient(160deg, var(--c3), var(--c1) 60%, var(--c5));
}
.chip--lit {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--line);
}
.chip--lit .chip__ico { display: inline-block; }

/* ---------- Features (tabs) ---------- */
.how__head {
  padding: clamp(64px, 9vw, 110px) 24px clamp(40px, 6vw, 72px);
  text-align: center;
}
.how__head .display { max-width: 18em; margin: 0 auto; }

.tabs {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-top: 1px solid var(--line);
}
.tabs__list {
  align-self: start;
  margin: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
  border-top: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}
.tab:first-child { border-top: 0; }
.tab .ico { opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--bg-2); }
.tab[aria-selected="true"] .ico { opacity: 1; transform: none; }

.tabs__panels { border-left: 1px solid var(--line); min-width: 0; }

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 40px;
  min-height: 460px;
  animation: panel-in 0.4s ease both;
}
.panel__text p {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
}
.panel__visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink);
  color: #f6f6f1;
}
.panel__visual--hand img { width: 100%; height: 100%; object-fit: cover; }

.panel__visual--neat {
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 55% at 50% 55%, rgba(0, 240, 240, 0.16), transparent 70%),
    var(--ink);
}
.neat-big { width: 56%; height: auto; filter: drop-shadow(0 0 44px rgba(0, 240, 240, 0.25)); }
.deco {
  position: absolute;
  clip-path: var(--stair);
  animation: float 7s steps(7) infinite;
}
.deco--1 { left: 9%; top: 11%; width: 11%; aspect-ratio: 1; background: var(--c5); }
.deco--2 { right: 10%; top: 22%; width: 7%; aspect-ratio: 1; background: var(--c1); animation-delay: -2s; transform: rotate(90deg); }
.deco--3 { right: 14%; bottom: 10%; width: 14%; aspect-ratio: 1; background: var(--c3); animation-delay: -4s; transform: rotate(180deg); }

.panel__visual--fp { display: grid; align-content: center; }
.fp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2.4vw, 22px);
  padding: 7%;
}
.fp__item { margin: 0; }
.fp__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}
.fp__grid i {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.4s;
}
.fp__item figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: #8f8f94;
}

.panel__visual--vault {
  display: grid;
  place-items: center;
  background:
    radial-gradient(50% 50% at 50% 55%, rgba(50, 243, 139, 0.12), transparent 70%),
    var(--ink);
}
.padlock { width: 36%; height: auto; }

/* ---------- Products ---------- */
.work { border-top: 1px solid var(--line); }
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(56px, 8vw, 96px) var(--pad) 40px;
}
.tab--prod { justify-content: flex-start; gap: 14px; padding: 22px 18px; font-size: 16px; }
.tab__ico { flex: none; }
.tab--prod[aria-selected="true"] .tab__ico { color: var(--c3); }

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 40px;
  animation: panel-in 0.4s ease both;
}
.cards__col { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.card__text { font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.card__ico { color: var(--c3); }
.card__img { width: 40px; height: 40px; }

.card--cta {
  min-height: 420px;
  border: 0;
  background: linear-gradient(155deg, #00f6f0 0%, #05c0ed 45%, #32f38b 100%);
  color: var(--ink);
}
.card__big {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.card__small { margin-top: 14px; font-size: 16px; font-weight: 500; color: rgba(11, 11, 13, 0.75); }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card--cta .btn--solid { background: var(--ink); color: #f6f6f1; }
.card--cta .btn--solid:hover { background: var(--ink); opacity: 0.85; }
.card--cta .btn--dark { border-color: rgba(11, 11, 13, 0.45); color: var(--ink); }
.card--cta .btn--dark:hover { background: rgba(11, 11, 13, 0.12); }
.card--cta > div:first-child { flex: none; }

/* ---------- Go deeper ---------- */
.deeper { border-top: 1px solid var(--line); }
.deeper__head { padding: clamp(56px, 8vw, 100px) var(--pad) clamp(32px, 5vw, 56px); }
.deeper__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--pad);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.dcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  padding: 32px 40px 36px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.dcard:hover { background: var(--bg-2); }
.dcard__ico { color: var(--fg); transition: color 0.25s; }
.dcard:hover .dcard__ico { color: var(--c3); }
.dcard__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.dcard__text {
  margin-top: auto;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
}

/* ---------- Footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 100px); background: var(--bg); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__col { padding: 40px 24px 44px; border-left: 1px solid var(--line); }
.footer__col:first-child { border-left: 0; padding-left: var(--pad); }
.footer__label {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
}
.footer__col li + li { margin-top: 12px; }
.footer__col a { font-size: 15px; font-weight: 600; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.soon {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.footer__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px var(--pad) 0;
}
.footer__social { display: flex; gap: 20px; padding-top: 4px; }
.footer__social a { display: block; opacity: 0.95; transition: opacity 0.2s, color 0.2s; }
.footer__social a:hover { color: var(--c3); }
.footer__get { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.footer__get .footer__label { margin-bottom: 12px; }

.footer__brand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 0 var(--pad);
}
.footer__copy { padding-bottom: 36px; font-size: 14px; color: var(--fg-3); }
.wordmark {
  width: clamp(240px, 30vw, 400px);
  aspect-ratio: 1.75 / 1;
  overflow: hidden;
  margin-top: 24px;
}
.wordmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  filter: invert(var(--invert));
  mix-blend-mode: var(--blend);
}
.theme {
  justify-self: end;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
.theme button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 7px;
  color: var(--fg-3);
  transition: background 0.2s, color 0.2s;
}
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed="true"] { background: var(--bg-3); color: var(--fg); }

.band {
  position: relative;
  height: calc(var(--u) * 3);
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  overflow: hidden;
}
.band__s--1 { background: var(--c5); }
.band__s--2 { background: var(--c4); }
.band__s--3 { background: var(--c2); }
.band__s--4 { background: var(--c1); }
.mv--w { width: calc(var(--u) * 0.5); height: calc(var(--u) * 0.5); background: var(--ink); }

/* ---------- Animation ---------- */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tabs { grid-template-columns: 260px 1fr; }
  .tabs__list { margin: 28px 24px; }
  .panel { padding: 28px; grid-template-columns: 1fr; min-height: 0; }
  .panel__visual { justify-self: start; max-width: 460px; }
  .cards { padding: 28px; }
}

@media (max-width: 900px) {
  .strip__row { grid-template-columns: repeat(3, 1fr); }
  .strip__cell:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .strip__cell:nth-child(5) { border-top: 1px solid var(--line); }
  .strip__cell:nth-child(3) { border-left: 1px solid var(--line); }

  .tabs { grid-template-columns: 1fr; }
  .tabs__list {
    position: static;
    display: flex;
    margin: 20px var(--pad);
    overflow-x: auto;
  }
  .tab { width: auto; flex: none; border-top: 0; border-left: 1px solid var(--line); white-space: nowrap; }
  .tab:first-child { border-left: 0; }
  .tab .ico { display: none; }
  .tabs__panels { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .card--cta { min-height: 320px; }

  .deeper__row { grid-template-columns: 1fr; }
  .dcard { min-height: 240px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__col, .footer__col:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 28px var(--pad); }
  .footer__col:first-child { border-top: 0; }
  .footer__brand { grid-template-columns: 1fr; justify-items: start; gap: 0; }
  .footer__brand .wordmark { order: -1; justify-self: center; }
  .footer__copy { padding: 16px 0 24px; }
  .theme { justify-self: start; margin-bottom: 28px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__cell:not(.nav__cell--cta) { display: none; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px; border-right: 0; border-top: 1px solid var(--line); }

  .pill { bottom: calc(var(--u) * 4.4); font-size: 13px; }
  .hero__rail { display: none; }
  .strip__row { grid-template-columns: repeat(2, 1fr); }
  .strip__cell { min-height: 130px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .strip__cell:nth-child(2n) { border-left: 1px solid var(--line) !important; }
  .strip__cell:nth-child(-n + 2) { border-top: 0; }
  .strip__cell:nth-child(5) { grid-column: 1 / -1; }
  .chips__row { gap: 18px 24px; }
  .chips__row:nth-child(n) { transform: none; }
  .panel, .cards { padding: 20px; }
  .work__head { align-items: flex-start; }
}

@media (max-width: 400px) {
  .blk--l3, .blk--r3 { display: none; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .hero { min-height: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
