/* ───────────────────────────────────────────────────────────────
   Skybox Group
   Dark, art-directed, one typeface on two axes.
   No radii, no shadows, no cards — hairlines and space do the work.
   ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ink: #08090a;
  --ink-r: #0c0d0f;
  --bone: #ece9e4;
  --dim: #9b9791;
  --faint: #83807a;
  --hair: rgba(236, 233, 228, 0.13);
  --hair-2: rgba(236, 233, 228, 0.28);
  --accent: #f0a427;

  --m: clamp(1.25rem, 4.5vw, 5rem);
  --g: clamp(1rem, 1.8vw, 1.75rem);
  --wide: 112rem;

  --ease: cubic-bezier(0.16, 0.84, 0.26, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--bone);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-weight: 400; }
p { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--bone);
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ── micro type: the page's connective tissue ────────────────── */

.micro,
.index,
.nav,
.sig,
.open-top,
.facts dt,
.targets i,
.targets span,
.disciplines,
.marginal-k,
.note-k,
.demo-k,
.demo-m,
.colophon span,
.plate-k,
.plate figcaption span {
  font-size: 0.6875rem;
  font-weight: 500;
  font-stretch: 108%;
  letter-spacing: 0.185em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ── header ──────────────────────────────────────────────────── */

.head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.head.is-scrolled {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}

.head-in {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 1.5rem var(--m);
  display: flex;
  align-items: baseline;
  gap: 1rem 2rem;
}

.sig {
  margin-right: auto;
  text-decoration: none;
  color: var(--bone);
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--bone); }

/* On a narrow screen the tracked micro type will not fit beside the
   signature, so the index numerals step out rather than the labels. */
@media (max-width: 30rem) {
  .head-in { padding-block: 1.1rem; gap: 0.75rem 1rem; }
  .sig, .nav a { font-size: 0.625rem; letter-spacing: 0.11em; white-space: nowrap; }
  .nav { gap: 0.9rem; }
  .nav i { display: none; }
}

.nav i,
.index i,
.targets i,
.disciplines i {
  font-style: normal;
  color: var(--accent);
  margin-right: 0.5em;
  font-variant-numeric: tabular-nums;
}

/* ── opening ─────────────────────────────────────────────────── */

.open {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 0 var(--m) clamp(2.5rem, 6vh, 5rem);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: end;
}

 /* A column rule, so it has to be placed by the grid rather than by a
    percentage of the padded box — those two do not land in the same
    place, and the difference is the width of a letter. It sits in the
    gutter, never against or through the text. */
.open-rail {
  display: none;
  grid-row: 1 / -1;
  grid-column: 9;
  justify-self: start;
  align-self: stretch;
  width: 1px;
  margin-left: calc(var(--g) / -2);
  background: var(--hair);
  pointer-events: none;
}

.open-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 3vw, 3rem);
  padding-top: clamp(7rem, 16vh, 11rem);
  padding-bottom: 1rem;
  color: var(--faint);
  grid-row: 1;
  align-self: start;
}

.open-name {
  grid-row: 3;
  font-size: clamp(3.25rem, 15.5vw, 15.5rem);
  font-weight: 680;
  font-stretch: 92%;
  letter-spacing: -0.055em;
  line-height: 0.825;
  text-transform: none;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}

.open-name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.open-name .line span { display: block; }

.open-line {
  grid-row: 4;
  max-width: 34ch;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--dim);
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
}

@media (min-width: 60rem) {
  .open { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .open-rail { display: block; }
  .open-top { grid-column: 1 / -1; grid-row: 1; }
  .open-name { grid-column: 1 / 13; grid-row: 3; }
  .open-line { grid-column: 9 / 13; grid-row: 4; }
}

/* ── sections ────────────────────────────────────────────────── */

.sec {
  position: relative;
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: clamp(5rem, 13vh, 11rem) var(--m);
}

.index {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dim);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.index .rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--hair);
  transform-origin: left center;
}

.index--sub { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Two-part editorial split: a statement at scale, notes alongside it. */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem) var(--g);
}

.statement {
  font-size: clamp(1.875rem, 4.4vw, 3.9rem);
  font-weight: 600;
  font-stretch: 96%;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
}

.side {
  color: var(--dim);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 42ch;
}
.side p + p { margin-top: 1.1rem; }

@media (min-width: 60rem) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .statement { grid-column: 1 / 8; }
  .side { grid-column: 9 / 13; }
}

/* Disciplines: a measured row, hairline above, nothing enclosed. */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--hair);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.disciplines li {
  background: var(--ink);
  padding: 1.25rem 0 1.5rem;
  padding-right: 1rem;
  color: var(--bone);
}

@media (min-width: 45rem) {
  .disciplines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .disciplines li { padding-left: 1.25rem; }
  .disciplines li:first-child { padding-left: 0; }
}

/* A marginal note: keyed, small, deliberately set apart. */
.marginal {
  display: grid;
  gap: 0.75rem var(--g);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 64rem;
}

.marginal-k { color: var(--dim); }

@media (min-width: 45rem) {
  .marginal { grid-template-columns: 10rem minmax(0, 1fr); align-items: start; }
}

/* ── the game ────────────────────────────────────────────────── */

/* The board is framed and held inside the column, with the fly kept off
   it: a specimen in the margin beside the plate, not a sticker on top. */
.plate {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem) var(--g);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.plate-frame {
  border: 1px solid var(--hair);
  background: var(--ink-r);
}

.plate-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.plate-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.plate-fly {
  width: clamp(3rem, 5.5vw, 4.75rem);
  transform: rotate(-14deg);
  transform-origin: center;
}

.plate-k { color: var(--dim); }

.plate figcaption {
  color: var(--faint);
  font-size: 0.8125rem;
  line-height: 1.55;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
  align-self: stretch;
}
.plate figcaption span { display: block; color: var(--dim); margin-bottom: 0.45rem; }

@media (min-width: 60rem) {
  .plate { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .plate-frame { grid-column: 1 / 10; }
  .plate-aside { grid-column: 11 / 13; }
  .plate-img { aspect-ratio: 21 / 9; }
}

.title-row {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--g);
  align-items: end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.title {
  font-size: clamp(2.5rem, 8.2vw, 8rem);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.052em;
  line-height: 0.88;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--g);
  border-top: 1px solid var(--hair);
  padding-top: 1rem;
}

.facts dt { color: var(--faint); }
.facts dd { color: var(--bone); font-size: 0.875rem; letter-spacing: 0; text-transform: none; margin-top: 0.35rem; }

.lede {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.25rem, 2.15vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.32;
  max-width: 24ch;
  text-wrap: balance;
}

@media (min-width: 60rem) {
  .title-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .title { grid-column: 1 / 8; }
  .facts { grid-column: 9 / 13; }
}

/* The eight: one measured grid, hairlines made of gaps. */
.eight { margin-top: clamp(4rem, 9vw, 7.5rem); }

.targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
}

.targets li {
  background: var(--ink);
  padding: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.targets img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0.5rem;
}

.targets i { margin: 0; }
.targets span { color: var(--dim); letter-spacing: 0.1em; }

@media (min-width: 45rem) { .targets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .targets { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.split--copy { margin-top: clamp(4rem, 9vw, 7.5rem); }

.copy {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dim);
  max-width: 40ch;
}
.copy p + p { margin-top: 1.25rem; }

.note {
  color: var(--faint);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 42ch;
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
}
.note p + p { margin-top: 1.1rem; }
.note-k { color: var(--dim); margin-bottom: 0.9rem; }
.note i { font-style: italic; }

@media (min-width: 60rem) {
  .split--copy { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .copy { grid-column: 1 / 7; }
  .note { grid-column: 8 / 13; }
}

/* The demo: a rule you can press, not a button. */
.demo {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.4s ease, color 0.4s ease;
}

.demo-k { color: var(--bone); transition: color 0.3s ease; }
.demo-m { color: var(--faint); }
.demo-a { margin-left: auto; font-size: 1.1rem; transition: transform 0.45s var(--ease); }

.demo:hover { border-top-color: var(--accent); }
.demo:hover .demo-k { color: var(--accent); }
.demo:hover .demo-a { transform: translateX(0.6rem); }

/* ── contact ─────────────────────────────────────────────────── */

.sec--contact { padding-bottom: clamp(6rem, 15vh, 12rem); }

.mail {
  display: block;
  font-size: clamp(1.875rem, 7.4vw, 7rem);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.048em;
  line-height: 1;
  text-decoration: none;
  word-break: break-word;
  padding-bottom: 0.08em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.6s var(--ease), color 0.4s ease;
}

.mail:hover { color: var(--accent); background-size: 100% 2px; }

.split--contact { margin-top: clamp(3rem, 7vw, 5.5rem); }

@media (min-width: 60rem) {
  .split--contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split--contact .side:first-child { grid-column: 1 / 5; }
  .split--contact .side:last-child { grid-column: 5 / 9; }
}

/* ── footer ──────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--hair); }

.foot-in {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--m);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) var(--g);
}

.foot-age {
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 44ch;
}

.foot-age b {
  display: inline-block;
  border: 1px solid var(--hair-2);
  padding: 0.05rem 0.5rem;
  margin-right: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  vertical-align: 0.1em;
}

.colophon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem var(--g);
  color: var(--dim);
  font-size: 0.8125rem;
  line-height: 1.5;
  align-content: start;
}

.colophon span { display: block; color: var(--faint); margin-bottom: 0.35rem; }
.colophon a { text-decoration: none; transition: color 0.3s ease; }
.colophon a:hover { color: var(--accent); }

@media (min-width: 60rem) {
  .foot-in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot-age { grid-column: 1 / 5; }
  .colophon { grid-column: 7 / 13; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── motion ──────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-rise] { transform: translateY(103%); }

/* The fly carries its own rotation, so its reveal only fades. */
.js .plate-fly[data-reveal] { transform: rotate(-14deg) translateY(14px); }
.js .plate-fly[data-reveal].is-in { transform: rotate(-14deg); }

.js [data-rise].is-in {
  transform: none;
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

 /* The rule is driven by its own index line rather than observed on its
    own: a scaled-to-zero element has no area for an observer to see. */
.js [data-rule] { transform: scaleX(0); }

.js .is-in [data-rule],
.js .index.is-in .rule {
  transform: none;
  transition: transform 1.1s var(--ease) 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-rise],
  .js [data-rule] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .demo-a, .mail { transition: none; }
}
