/* ============================================================
   AGORED RECORDS - design system
   Industrial editorial. Type is the hero.
   ============================================================ */

/* ------------------------------------------------------------
   00. TOKENS
------------------------------------------------------------ */
:root {
  /* color */
  --bg: #0b0b0a;
  --bg-2: #100f0e;
  --panel: #151412;
  --bone: #e8e4dc;
  --bone-dim: #b5b1a8;
  --grey: #86827a;
  --line: rgba(232, 228, 220, 0.1);
  --line-strong: rgba(232, 228, 220, 0.22);

  /* light (inverted) section */
  --l-bg: #e5e1d8;
  --l-ink: #12110f;
  --l-grey: #57534b;
  --l-line: rgba(18, 17, 15, 0.14);

  /* chrome */
  --chrome: linear-gradient(
    168deg,
    #f7f7f5 0%,
    #c8c8c4 20%,
    #8e8e8a 38%,
    #ececea 52%,
    #96968f 70%,
    #dcdcd8 100%
  );

  /* type */
  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Courier New", monospace;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(120px, 16vw, 240px);

  /* motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ------------------------------------------------------------
   01. RESET / BASE
------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  height: auto;
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

::selection {
  background: var(--bone);
  color: var(--bg);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Anton has a single 400 weight - stop UA bold from faux-bolding it */
h1,
h2,
h3,
h4 {
  font-weight: 400;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

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

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ------------------------------------------------------------
   02. TYPE SYSTEM
------------------------------------------------------------ */
.h-giant,
.h-1,
.h-2,
.h-3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.005em;
}

.h-giant { font-size: clamp(64px, 15.5vw, 290px); }
.h-1 { font-size: clamp(48px, 9vw, 168px); }
.h-2 { font-size: clamp(34px, 5.6vw, 96px); }
.h-3 { font-size: clamp(22px, 2.8vw, 44px); line-height: 1; }

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.serif-lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 38px);
  line-height: 1.3;
  color: var(--bone-dim);
}

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.label--lit {
  color: var(--bone);
}

.body-l {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
}

.muted { color: var(--grey); }
.dim { color: var(--bone-dim); }

.chrome-text {
  background: var(--chrome);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.9s var(--ease-out);
}

a:hover .chrome-text,
.chrome-text:hover {
  background-position: 100% 60%;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

/* ------------------------------------------------------------
   03. LAYOUT PRIMITIVES
------------------------------------------------------------ */
.container {
  padding-inline: var(--gutter);
  width: 100%;
}

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

.section {
  padding-block: var(--section);
  position: relative;
}

.section--flush-bottom { padding-bottom: 0; }
.section--flush-top { padding-top: 0; }

/* editorial section header: [index] ---- [title] ---- [meta] */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.sec-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

/* hairline dividers */
.hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* inverted (bone) sections */
.invert {
  background: var(--l-bg);
  color: var(--l-ink);
}

.invert ::selection {
  background: var(--l-ink);
  color: var(--l-bg);
}

.invert .label { color: var(--l-grey); }
.invert .label--lit { color: var(--l-ink); }
.invert .muted { color: var(--l-grey); }
.invert .dim { color: var(--l-grey); }
.invert .serif-lead { color: var(--l-grey); }
.invert .sec-head { border-color: var(--l-line); }
.invert .sec-head .rule { background: var(--l-line); }
.invert .hr { border-color: var(--l-line); }

/* media frame - mounted-print treatment */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.frame > img,
.frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transition: filter 0.8s var(--ease-out);
}

.frame:hover > img,
.frame:hover > video {
  filter: grayscale(0.15) contrast(1.02) brightness(1);
}

/* hover zoom - only for frames WITHOUT scroll parallax */
.frame--zoom > img {
  transition: filter 0.8s var(--ease-out), transform 1.4s var(--ease-out);
}

.frame--zoom:hover > img {
  transform: scale(1.045);
}

.frame--live > img,
.frame--live > video {
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
}

/* ------------------------------------------------------------
   04. HEADER / NAV
------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 18px var(--gutter);
  transition: transform 0.55s var(--ease-out), background 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-105%);
}

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

.wordmark img {
  display: block;
  height: clamp(14px, 2.4vw, 22px);
  width: auto;
}

.header-meta {
  display: none;
}

@media (min-width: 900px) {
  .header-meta {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.btn-project {
  display: none;
}

@media (min-width: 700px) {
  .btn-project {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
}

.menu-toggle .lines {
  position: relative;
  width: 26px;
  height: 10px;
}

.menu-toggle .lines::before,
.menu-toggle .lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bone);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out),
    bottom 0.45s var(--ease-out);
}

.menu-toggle .lines::before { top: 0; }
.menu-toggle .lines::after { bottom: 0; }

body.menu-open .menu-toggle .lines::before {
  top: 4.5px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle .lines::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   05. OVERLAY MENU
------------------------------------------------------------ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transition: clip-path 0.75s var(--ease-inout), visibility 0s linear 0.75s;
}

body.menu-open .menu-overlay {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.75s var(--ease-inout), visibility 0s;
}

body.menu-open {
  overflow: hidden;
}

.menu-overlay .menu-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-content: start;
  padding: clamp(96px, 14vh, 120px) var(--gutter) 32px;
}

@media (min-width: 900px) {
  .menu-overlay .menu-inner {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.menu-nav li {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(8px, 1.2vw, 16px) 0;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}

body.menu-open .menu-nav a {
  transform: translateY(0);
}

.menu-nav li:nth-child(1) a { transition-delay: 0.18s; }
.menu-nav li:nth-child(2) a { transition-delay: 0.24s; }
.menu-nav li:nth-child(3) a { transition-delay: 0.3s; }
.menu-nav li:nth-child(4) a { transition-delay: 0.36s; }
.menu-nav li:nth-child(5) a { transition-delay: 0.42s; }
.menu-nav li:nth-child(6) a { transition-delay: 0.48s; }
.menu-nav li:nth-child(7) a { transition-delay: 0.54s; }
.menu-nav li:nth-child(8) a { transition-delay: 0.6s; }

body:not(.menu-open) .menu-nav a { transition-delay: 0s; }

.menu-aside,
.menu-foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

body.menu-open .menu-aside,
body.menu-open .menu-foot {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

.menu-nav .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.menu-nav .word {
  font-family: var(--f-display);
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-out), color 0.5s ease;
}

.menu-nav .ghost {
  margin-left: auto;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 22px);
  color: var(--grey);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
  white-space: nowrap;
}

.menu-nav a:hover .word,
.menu-nav a:focus-visible .word {
  transform: translateX(clamp(8px, 1.5vw, 24px));
  color: var(--bone);
}

.menu-nav a:hover .ghost,
.menu-nav a:focus-visible .ghost {
  opacity: 1;
  transform: none;
}

.menu-nav a[aria-current="page"] .idx {
  color: var(--bone);
}

.menu-nav a[aria-current="page"] .idx::after {
  content: " ●";
  font-size: 8px;
}

.menu-aside {
  display: grid;
  gap: 28px;
  align-content: start;
}

.menu-aside .block {
  display: grid;
  gap: 8px;
}

.menu-aside a {
  color: var(--bone-dim);
  transition: color 0.3s ease;
  font-size: 15px;
}

.menu-aside a:hover { color: var(--bone); }

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   06. BUTTONS + LINKS
------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s ease;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}

.btn:hover {
  color: var(--bg);
  border-color: var(--bone);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--solid {
  background: var(--bone);
  color: var(--bg);
  border-color: var(--bone);
}

.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--bone); }

.btn--sm { padding: 11px 20px; font-size: 10.5px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover .arrow { transform: translateX(5px); }

.invert .btn { border-color: rgba(18, 17, 15, 0.35); }
.invert .btn::before { background: var(--l-ink); }
.invert .btn:hover { color: var(--l-bg); border-color: var(--l-ink); }

/* underline draw link */
.u-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.u-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ------------------------------------------------------------
   07. HERO (shared pattern, per-page flavors)
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) 34px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.5);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 10, 0.55) 0%,
    rgba(11, 11, 10, 0.25) 40%,
    rgba(11, 11, 10, 0.88) 88%,
    var(--bg) 100%
  );
}

.hero-topline {
  position: absolute;
  top: 96px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: 0.01em;
}

.hero-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px var(--gap);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: clamp(24px, 4vh, 48px);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue .tick {
  width: 1px;
  height: 34px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue .tick::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bone);
  animation: cue-drop 1.8s var(--ease-inout) infinite;
}

@keyframes cue-drop {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ------------------------------------------------------------
   08. INDEX ROWS (services / disciplines)
------------------------------------------------------------ */
.index-list {
  border-top: 1px solid var(--line);
}

.index-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: clamp(22px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.5s var(--ease-out), padding-left 0.55s var(--ease-out);
}

.index-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}

.index-row:hover,
.index-row:focus-visible {
  color: var(--bg);
  padding-left: clamp(10px, 2vw, 32px);
}

.index-row:hover::before,
.index-row:focus-visible::before {
  transform: scaleY(1);
}

.index-row .no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  transition: color 0.4s ease;
}

.index-row:hover .no { color: rgba(11, 11, 10, 0.55); }

.index-row .title {
  font-family: var(--f-display);
  font-size: clamp(30px, 5vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.index-row .tail {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.4s ease;
}

.index-row:hover .tail { color: rgba(11, 11, 10, 0.65); }

.index-row .tail .arr {
  font-size: 18px;
  transition: transform 0.45s var(--ease-out);
}

.index-row:hover .tail .arr { transform: translate(4px, -4px); }

/* floating hover preview */
.row-preview {
  position: fixed;
  z-index: 90;
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
}

.row-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05);
}

/* ------------------------------------------------------------
   09. WORKS - horizontal strip (home) + grid (work page)
------------------------------------------------------------ */
/* Scrollable by default (mobile + no-JS); the desktop pin takes over
   only once JS adds .is-pinned. */
.works-pin {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.works-pin::-webkit-scrollbar {
  display: none;
}

.works-pin.is-pinned {
  overflow: hidden;
  scroll-snap-type: none;
}

.works-track {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  padding-inline: var(--gutter);
  width: max-content;
  align-items: stretch;
}

.works-pin .work-card,
.works-pin .works-endcap {
  scroll-snap-align: start;
}

.work-card {
  position: relative;
  width: clamp(280px, 32vw, 480px);
  flex: none;
  display: grid;
  gap: 16px;
  align-content: start;
}

.work-card .frame {
  aspect-ratio: 4 / 5;
}

.work-card--sq .frame { aspect-ratio: 1; }

.work-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.work-card .meta .t {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  text-transform: uppercase;
  line-height: 1;
}

.frame {
  display: block;
}

.works-endcap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(280px, 30vw, 420px);
  flex: none;
  border: 1px solid var(--line);
}

@media (max-width: 1023px) {
  .works-pin {
    padding-bottom: 20px;
  }
}

/* work page grid */
.discog {
  display: grid;
  gap: clamp(40px, 6vw, 96px) var(--gap);
  grid-template-columns: repeat(12, 1fr);
}

.discog .work-item {
  display: grid;
  gap: 14px;
  align-content: start;
}

.work-item .frame { aspect-ratio: 1; }
.work-item--tall .frame { aspect-ratio: 4 / 5; }

.work-item .credits {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.work-item .credits h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
}

.work-item .credits .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.work-links .btn--sm {
  padding: 9px 16px;
  font-size: 10px;
}

/* editorial column spans */
.span-feature { grid-column: 1 / span 7; }
.span-side { grid-column: 9 / span 4; align-self: end; }
.span-a { grid-column: 1 / span 4; }
.span-b { grid-column: 5 / span 4; }
.span-c { grid-column: 9 / span 4; }
.span-half-l { grid-column: 2 / span 5; }
.span-half-r { grid-column: 7 / span 5; }

@media (max-width: 899px) {
  .span-feature, .span-side, .span-a, .span-b, .span-c,
  .span-half-l, .span-half-r {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------
   10. PROCESS / PHASES
------------------------------------------------------------ */
.phases {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(3, 1fr); }
}

.phase {
  padding: clamp(28px, 3.4vw, 52px) clamp(0px, 2vw, 40px)
    clamp(36px, 4vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  align-content: start;
}

@media (min-width: 900px) {
  .phase { border-bottom: 0; }
  .phase + .phase { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
}

.phase .tc {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
}

.phase h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 40px);
  text-transform: uppercase;
  line-height: 1;
}

.phase ul {
  display: grid;
  gap: 0;
}

.phase li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--bone-dim);
}

.phase li:last-child { border-bottom: 0; }

.phase li .dot {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--grey);
}

/* ------------------------------------------------------------
   11. RATE CARD (pricing - editorial, not SaaS)
------------------------------------------------------------ */
.rate {
  border-top: 1px solid var(--l-line);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: clamp(32px, 4.5vw, 72px) 0;
}

.rate + .rate { margin-top: 0; }

@media (min-width: 900px) {
  .rate { grid-template-columns: 5fr 4fr 3fr; align-items: start; }
}

.rate .rate-name {
  display: grid;
  gap: 14px;
  align-content: start;
}

.rate h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
}

.rate .price {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 100px);
  line-height: 0.9;
}

.rate .price .cur {
  font-size: 0.45em;
  vertical-align: super;
}

.rate ul {
  display: grid;
  border-top: 1px solid var(--l-line);
}

.rate li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--l-line);
  font-size: 15px;
  color: var(--l-ink);
}

.rate li .dot {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--l-grey);
}

.rate .rate-cta {
  display: grid;
  gap: 16px;
  justify-items: start;
}

@media (min-width: 900px) {
  .rate .rate-cta { justify-items: end; text-align: right; }
}

/* dark-context rate rows (used on lessons page) */
.rate--dark { border-color: var(--line); }
.rate--dark ul { border-color: var(--line); }
.rate--dark li { border-color: var(--line); color: var(--bone-dim); }
.rate--dark li .dot { color: var(--grey); }

/* ------------------------------------------------------------
   12. ACCORDION (FAQ)
------------------------------------------------------------ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  padding: clamp(20px, 2.6vw, 34px) 0;
  transition: color 0.3s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .q-no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.faq summary h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.3;
  flex: 1;
}

.faq summary .plus {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--grey);
  transition: transform 0.45s var(--ease-out);
}

.faq details[open] .plus { transform: rotate(45deg); }

.faq .a {
  padding: 0 0 clamp(24px, 3vw, 40px);
  max-width: 62ch;
  color: var(--bone-dim);
  margin-left: calc(11px * 0.18 + 40px);
}

@media (max-width: 700px) {
  .faq .a { margin-left: 0; }
}

.invert .faq { border-color: var(--l-line); }
.invert .faq details { border-color: var(--l-line); }
.invert .faq .a { color: var(--l-grey); }

/* ------------------------------------------------------------
   13. FORMS - minimal underline fields
------------------------------------------------------------ */
.form {
  display: grid;
  gap: clamp(28px, 3.4vw, 48px);
}

.form .row2 {
  display: grid;
  gap: clamp(28px, 3.4vw, 48px);
}

@media (min-width: 760px) {
  .form .row2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.8vw, 26px);
  padding: 8px 0 14px;
  border-radius: 0;
  transition: border-color 0.4s ease;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386827a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.field select option {
  background: var(--bg-2);
  color: var(--bone);
  font-size: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bone);
}

/* forms inside inverted (bone) sections */
.invert .field label { color: var(--l-grey); }

.invert .field input,
.invert .field select,
.invert .field textarea {
  color: var(--l-ink);
  border-color: rgba(18, 17, 15, 0.35);
}

.invert .field input::placeholder,
.invert .field textarea::placeholder {
  color: var(--l-grey);
}

.invert .field select option {
  background: var(--l-bg);
  color: var(--l-ink);
}

.invert .field input:focus,
.invert .field select:focus,
.invert .field textarea:focus {
  border-color: var(--l-ink);
}

/* ------------------------------------------------------------
   14. MARQUEE
------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(14px, 1.6vw, 22px) 0;
  display: flex;
}

.marquee .lane {
  display: flex;
  flex: none;
  gap: clamp(40px, 5vw, 90px);
  padding-right: clamp(40px, 5vw, 90px);
  align-items: baseline;
  animation: marquee-x 36s linear infinite;
  white-space: nowrap;
}

.marquee:hover .lane { animation-play-state: paused; }

@keyframes marquee-x {
  to { transform: translateX(-100%); }
}

.marquee .item {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 38px);
  text-transform: uppercase;
  color: var(--bone-dim);
}

.marquee .sep {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--grey);
}

/* ------------------------------------------------------------
   15. STATS
------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--l-line);
  border-left: 1px solid var(--l-line);
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  padding: clamp(26px, 3vw, 48px) clamp(18px, 2vw, 36px);
  border-right: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  display: grid;
  gap: 10px;
  align-content: start;
}

.stat .num {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 104px);
  line-height: 0.9;
}

.stats--dark { border-color: var(--line); }
.stats--dark .stat { border-color: var(--line); }

/* ------------------------------------------------------------
   16. FOOTER
------------------------------------------------------------ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-cta {
  padding: var(--section) var(--gutter) clamp(60px, 8vw, 120px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.footer-cta .big {
  font-family: var(--f-display);
  font-size: clamp(46px, 9.6vw, 178px);
  line-height: 0.86;
  text-transform: uppercase;
}

.footer-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px var(--gap);
  justify-content: space-between;
}

.footer-grid {
  display: grid;
  gap: 40px var(--gap);
  grid-template-columns: repeat(2, 1fr);
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-grid .col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-grid .col a {
  color: var(--bone-dim);
  font-size: 14.5px;
  width: fit-content;
  transition: color 0.3s ease;
}

.footer-grid .col a:hover { color: var(--bone); }

.footer-mark-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(16px, 2.5vw, 32px);
  border-bottom: 1px solid var(--line);
}

.footer-mark {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(40px, 7.8vw, 132px);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  color: var(--bone);
  margin: 0;
  user-select: none;
}

.footer-legal {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  margin-top: 0;
  padding: 18px var(--gutter) 22px;
  border-top: none;
  background: var(--bg);
}

.footer-legal > :nth-child(1) { justify-self: start; }
.footer-legal > :nth-child(2) { justify-self: center; }
.footer-legal > :nth-child(3) { justify-self: end; }

@media (max-width: 699px) {
  .footer-legal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-legal > :nth-child(1),
  .footer-legal > :nth-child(2),
  .footer-legal > :nth-child(3) {
    justify-self: center;
  }
}

/* ------------------------------------------------------------
   17. PRELOADER + PAGE TRANSITION
------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  clip-path: inset(0 0 0% 0);
}

/* repeat visits within the session: no preloader,
   veil starts covering and wipes away (JS-driven) */
html.revisit .preloader {
  display: none;
}

html.revisit .transition-veil {
  transform: scaleY(1);
  transform-origin: top;
}

html.js .preloader .pre-mark span {
  transform: translateY(110%);
}

.preloader .pre-mark {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.preloader .pre-mark span {
  display: inline-block;
}

.preloader .pre-count {
  position: absolute;
  bottom: 26px;
  right: var(--gutter);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.preloader .pre-tag {
  position: absolute;
  bottom: 26px;
  left: var(--gutter);
}

.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--bg-2);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

html:not(.js) .preloader,
html:not(.js) .transition-veil {
  display: none;
}

/* Safety: if the animation stack never runs, overlays free the page
   by themselves after 5s. JS clears this the moment it takes control. */
@keyframes overlay-safety {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

html.js .preloader {
  animation: overlay-safety 0.4s ease 5s forwards;
}

html.revisit .transition-veil {
  animation: overlay-safety 0.4s ease 5s forwards;
}

/* ------------------------------------------------------------
   18. CURSOR + MISC UI
------------------------------------------------------------ */
.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  z-index: 270;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: var(--bone);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    margin 0.35s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}

body.cursor-grow .cursor-dot {
  margin: -24px 0 0 -24px;
}

body.cursor-on .cursor-dot { opacity: 1; }
body.cursor-grow .cursor-dot { width: 56px; height: 56px; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, calc(100% + 32px));
  z-index: 280;
  background: var(--bone);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.5s var(--ease-out), opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* back-to-top timeline motif */
.tc-mark {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   19. REVEAL STATES (JS-gated)
------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

html.js [data-reveal="none"] {
  transform: none;
}

html.js .split-mask {
  overflow: hidden;
  display: block;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

html.js .split-line {
  display: block;
  transform: translateY(115%);
}

html:not(.js) .split-line,
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-lines] {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .split-line { transform: none; }
  .grain, .scroll-cue .tick::after { animation: none; }
  .marquee .lane { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   20. PAGE-SPECIFIC
------------------------------------------------------------ */

/* -- home hero wordmark */
.home-hero .agored-mark {
  display: block;
  width: 100%;
}

.home-hero .mark-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
}

.home-hero .records-line {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  justify-content: space-between;
  flex-wrap: wrap;
}

/* -- manifesto */
.manifesto .statement {
  font-family: var(--f-display);
  font-size: clamp(38px, 7vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  max-width: 12ch;
}

.manifesto .statement .serif {
  font-size: 0.92em;
  text-transform: none;
}

/* -- label strip (bone section on home) */
.roster-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(24px, 3vw, 48px);
  align-items: baseline;
}

.roster-names .name {
  font-family: var(--f-display);
  font-size: clamp(28px, 4.4vw, 72px);
  text-transform: uppercase;
  line-height: 1;
}

.roster-names .role {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-grey);
}

/* -- plugin feature */
.plugin-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 120px) 0;
}

.plugin-stage .plugin-name-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: clamp(60px, 13vw, 240px);
  text-transform: uppercase;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.plugin-stage .plugin-shot {
  position: relative;
  width: min(720px, 82%);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65));
  will-change: transform;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 760px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
}

.spec-grid .spec {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.spec-grid .spec b {
  font-weight: 500;
  font-size: 15px;
}

/* -- team cards (about) */
.team {
  display: grid;
  gap: clamp(32px, 4vw, 56px) var(--gap);
  grid-template-columns: repeat(12, 1fr);
}

.team .member { display: grid; gap: 14px; align-content: start; }
.team .member .frame { aspect-ratio: 4 / 5; }

.team .member .who {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.team .member .who h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 36px);
  text-transform: uppercase;
  line-height: 1;
}

/* -- experience timeline (about) */
.xp {
  border-top: 1px solid var(--line);
}

.xp-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px var(--gap);
  padding: clamp(26px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .xp-row { grid-template-columns: 2fr 4fr 5fr; align-items: baseline; }
}

.xp-row .years {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--grey);
}

.xp-row h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 46px);
  text-transform: uppercase;
  line-height: 1;
}

.xp-row p { color: var(--bone-dim); max-width: 52ch; }

/* -- gear grid (about) */
.gear {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 900px) {
  .gear { grid-template-columns: repeat(4, 1fr); }
}

.gear .g {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.2vw, 32px);
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: clamp(200px, 24vw, 320px);
}

.gear .g .frame {
  aspect-ratio: 4 / 3;
  background: transparent;
}

.gear .g .frame img { object-fit: contain; filter: grayscale(1) contrast(1.05); }

.gear .g b {
  font-weight: 500;
  font-size: 15px;
  display: block;
}

/* -- steps (lessons / join) */
.steps { border-top: 1px solid var(--line); counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap);
  align-items: baseline;
  padding: clamp(24px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.step .s-no {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  min-width: 2ch;
}

.step h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 36px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}

.step p { color: var(--bone-dim); max-width: 56ch; }

/* -- contact page */
.contact-mail {
  font-family: var(--f-display);
  font-size: clamp(26px, 6.4vw, 118px);
  text-transform: uppercase;
  line-height: 0.95;
  word-break: break-word;
  display: inline-block;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 900px) {
  .contact-cards { grid-template-columns: repeat(4, 1fr); }
}

.contact-cards .cc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 36px);
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: clamp(140px, 16vw, 220px);
  transition: background 0.4s ease;
}

.contact-cards .cc:hover { background: var(--bg-2); }

.contact-cards .cc b {
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
}

/* -- legal page */
.legal {
  max-width: 78ch;
}

.legal .clause {
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.legal .clause h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 40px);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.legal .clause h2 .c-no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.legal p, .legal li { color: var(--bone-dim); }

.legal ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.legal ul li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.legal ul li::before {
  content: "-";
  font-family: var(--f-mono);
  color: var(--grey);
  flex: none;
}

.legal strong { color: var(--bone); font-weight: 500; }

.toc {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 2px;
  align-content: start;
}

.toc a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 7px 0;
  transition: color 0.3s ease, padding-left 0.3s var(--ease-out);
}

.toc a:hover { color: var(--bone); padding-left: 8px; }

/* -- 404 */
.err-wrap {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 24px;
  padding: var(--gutter);
}

/* ------------------------------------------------------------
   21. RESPONSIVE FINE-TUNING
------------------------------------------------------------ */
/* Below 900px every 12-col placement collapses to full width,
   including inline grid-column styles (hence !important). */
@media (max-width: 899px) {
  .grid-12 > *,
  .discog > * {
    grid-column: 1 / -1 !important;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .hero { padding-top: 120px; }
  .hero-topline { top: 84px; }
  .index-row { grid-template-columns: auto 1fr; }
  .index-row .tail .lbl { display: none; }
  .sec-head { flex-wrap: wrap; }
  .sec-head .rule { min-width: 40px; }
}

@media (max-width: 480px) {
  :root { --section: 96px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
