:root {

  --ground:      #EDE9E2;
  --mat:         #E5E0D7;
  --ink:         #16130F;
  --body:        #3A332C;
  --nav-ink:     #4A423A;
  --muted:       #6B635A;
  --accent:      #8A5A2B;

  --hairline:        rgba(22, 19, 15, .14);
  --hairline-soft:   rgba(22, 19, 15, .10);
  --hairline-strong: rgba(22, 19, 15, .22);
  --rule:            rgba(22, 19, 15, .16);
  --accent-line:     rgba(138, 90, 43, .35);
  --lift: 0 30px 60px -40px rgba(22, 19, 15, .55);

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

  --gutter: clamp(20px, 3.4vw, 56px);
  --maxw: 1760px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ground);

  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

figure { margin: 0; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--ink); color: var(--ground); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--ground);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); color: var(--ground); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url("../img/stone.jpg");
  background-size: cover;
  background-position: center;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;

  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix type=%22saturate%22 values=%220%22/%3E%3C/filter%3E%3Crect width=%22180%22 height=%22180%22 filter=%22url(%23n)%22 opacity=%220.42%22/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.masthead.is-stuck {

  background: linear-gradient(180deg,
    rgba(255, 255, 255, .16) 0%,
    rgba(255, 255, 255, .07) 100%);
  border-bottom-color: var(--hairline-soft);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 10px 30px -24px rgba(22, 19, 15, .5);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.brand:hover .brand__name { color: var(--accent); }
.brand__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nav-ink);
}
.mainnav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.mainnav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .mainnav { display: none; }
}

.kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker h2 { font: inherit; letter-spacing: inherit; margin: 0; }

.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 0 34px;
}

.hero__title {
  margin: clamp(16px, 3vh, 44px) 0 0;
  font-family: var(--display);
  font-weight: 400;

  font-size: clamp(40px, min(13vw, 15.5vh), 158px);
  line-height: .92;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero__rotator {
  display: block;

  font-size: clamp(24px, min(9.3vw, 11vh), 123px);
  line-height: .96;
  min-height: .96em;
  white-space: nowrap;
  color: var(--accent);
}
.hero__phrase { font-style: italic; }

.caret {
  display: inline-block;
  width: .05em;
  height: .72em;
  margin-left: .08em;
  background: var(--accent);
  vertical-align: -.02em;
  animation: caret 1.05s steps(1) infinite;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(20px, 4vh, 72px);
  align-items: flex-end;
}

.hero__intro {
  margin: 0;
  flex: 1 1 420px;
  min-width: 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.62;
  color: var(--body);
  text-wrap: pretty;
}

.facts {
  flex: 0 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.facts__row:last-child { padding-bottom: 0; border-bottom: 0; }

@media (max-width: 760px) {
  .facts { flex-basis: 100%; }
}
.facts__row dt { margin: 0; }
.facts__row dd { margin: 0; color: var(--ink); }

.facts__row dd a {
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.facts__row dd a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 96px 0;
}

.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: flex-start;
}

.about__portrait {
  flex: 0 1 320px;
  aspect-ratio: 3 / 4;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.about__main { flex: 1 1 560px; min-width: 0; }

.about__lede { max-width: none; }

.about__grid {
  display: grid;

  grid-template-columns: minmax(0, auto) minmax(360px, 1fr);
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(24px, 2.6vw, 44px);
  align-items: start;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
  min-width: 0;
  max-width: 52ch;
}
.about__copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  text-wrap: pretty;
}

@media (max-width: 1200px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__lede { max-width: none; }
}

.lede {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.code {
  margin: 0;
  min-width: 0;
  background: rgba(22, 19, 15, .05);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: clamp(18px, 1.8vw, 26px) 0;
}

.code__pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.code__pre code {
  counter-reset: line;
  display: block;
  width: max-content;
  min-width: 100%;
  padding-right: clamp(18px, 1.8vw, 26px);
}

.code__line { display: block; white-space: pre; }

.code__line.is-caret::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .12em;
  background: var(--accent);
  vertical-align: -.18em;
  animation: caret 1.05s steps(1) infinite;
}

.code__pre code.is-selected .code__line > span {
  background: var(--ink);
  color: var(--ground);
}
.code__line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 3.4em;
  padding-right: 1.4em;
  text-align: right;
  color: rgba(22, 19, 15, .3);
  user-select: none;
  -webkit-user-select: none;
}

.c-kw   { color: #7C7468; }
.c-id   { color: var(--ink); }
.c-op   { color: #9A9287; }
.c-key  { color: var(--accent); }
.c-str  { color: #5F6B43; }
.c-punc { color: #9A9287; }

@media (max-width: 560px) {
  .code__pre { font-size: 12px; line-height: 1.85; }
  .code__line::before { width: 2.8em; padding-right: 1em; }
}

.frame {
  position: relative;
  border: 1px solid var(--rule);
  background-color: var(--mat);
  background-image: repeating-linear-gradient(135deg, rgba(22, 19, 15, .055) 0 1px, transparent 1px 9px);
  box-shadow: var(--lift);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.frame__caption { position: relative; z-index: 1; }

.frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame__img:not(.is-loaded) { opacity: 0; }
.frame.has-image .frame__caption { display: none; }

:root {
  --bleed: calc(50vw - min(100vw, var(--maxw)) / 2 + var(--gutter));

  --d-ground:   #0D0F14;
  --d-ink:      #E8E4DC;
  --d-body:     #A8A296;
  --d-muted:    #8B8578;
  --d-gold:     #E0A93B;
  --d-hairline: rgba(232, 228, 220, .14);
  --d-rule:     rgba(232, 228, 220, .09);

  --tile: clamp(300px, 33vw, 660px);

  --anno-w:   clamp(150px, 17vw, 250px);
  --anno-gap: clamp(12px, 1.5vw, 26px);

  --anno-lead: 7px;

  --win-bar: clamp(28px, 2.4vw, 38px);

  --p-face:    #151922;
  --p-face-hi: #1B2029;
  --p-edge:    rgba(232, 228, 220, .11);
  --p-lift:
    0 2px 4px rgba(0, 0, 0, .40),
    0 12px 28px -12px rgba(0, 0, 0, .70),
    0 44px 70px -40px rgba(0, 0, 0, .90);
}

.band {
  position: relative;
  margin-left: calc(-1 * var(--bleed));
  margin-right: calc(-1 * var(--bleed));
  padding-left: var(--bleed);
  padding-right: var(--bleed);
  background: var(--d-ground);
  color: var(--d-ink);

  overflow: clip;

  isolation: isolate;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: url("../img/stone-dark.webp");
  background-size: 768px 768px;
  background-repeat: repeat;
  mix-blend-mode: screen;

  opacity: .11;
}
.band ::selection { background: var(--d-gold); color: var(--d-ground); }
.band :focus-visible { outline-color: var(--d-gold); }
.band a:hover { color: var(--d-gold); }

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 44% at 24% 4%, rgba(224, 169, 59, .10), transparent 68%),
    radial-gradient(56% 40% at 86% 94%, rgba(120, 150, 220, .06), transparent 70%);
}
.band > * { position: relative; z-index: 1; }

.spread { padding: clamp(70px, 8.6vw, 132px) 0; }

.spread__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  color: var(--d-muted);
}
.spread__head h2 { color: var(--d-gold); }
.spread__count { font-variant-numeric: tabular-nums; }

.dhead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(22px, 3.6vw, 64px);
  align-items: end;
  margin-top: clamp(26px, 4vh, 54px);
}
.dtitle {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 92px);
  line-height: .93;
  letter-spacing: -.024em;
  color: var(--d-ink);
  text-wrap: balance;
}
.dtitle em { font-style: normal; color: var(--d-gold); }
.dlede {
  margin: 0 0 6px;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  line-height: 1.62;
  color: var(--d-body);
  text-wrap: pretty;
}

.mq {
  position: relative;
  margin: clamp(30px, 5vh, 68px) calc(-1 * var(--bleed)) 0;
  height: calc(1.26 * var(--tile));
  overflow: hidden;

  perspective: calc(2.35 * var(--tile));
  perspective-origin: calc(1.49 * var(--tile)) calc(.80 * var(--tile));

  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(180deg, transparent, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(180deg, transparent, #000 22%);
  mask-composite: intersect;
}

.mq__field {
  position: absolute;
  inset: 0;
  will-change: transform;

  transform-origin: calc(1.49 * var(--tile)) calc(.80 * var(--tile));
  transform: rotateX(62deg) rotateZ(-20deg) translateX(0);
  animation: mq-drift 113s linear infinite;
}

.mq__field.is-idle { animation-play-state: paused; }
@keyframes mq-drift {
  to { transform: rotateX(62deg) rotateZ(-20deg) translateX(calc(-15.93883 * var(--tile))); }
}

.mq__shot--far { border-color: rgba(232, 228, 220, .07); }
.mq__shot--deep {
  border-color: rgba(232, 228, 220, .04);
  box-shadow: none;
}

.mq__item {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: calc(var(--w, 1) * var(--tile));
  transform: translate(calc(var(--x) * var(--tile)), calc(var(--y) * var(--tile)));
}

.mq__shot {
  display: block;
  width: 100%;
  height: calc(var(--tile) / 1.91);
  border: 1px solid rgba(232, 228, 220, .12);
  border-radius: 8px;
  overflow: hidden;
  background: #0A0C11;

  box-shadow:
    0 2px 4px rgba(0, 0, 0, .40),
    0 10px 20px -12px rgba(0, 0, 0, .70);
}

.mq__shot--far { box-shadow: none; }

.mq__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.spread {
  --shot-w: min(
    100% - 2 * (var(--anno-w) + var(--anno-gap)),
    860px,

    70svh
  );
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4.6vh, 62px);

  padding-bottom: 0;
}

.stage:has(.phone) { padding-bottom: calc(.2 * var(--shot-w)); }

.stage__shot {
  position: relative;
  container-type: inline-size;
  width: var(--shot-w);
}

.win {
  margin: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #191C24;
  border: 1px solid rgba(232, 228, 220, .10);
  box-shadow: var(--p-lift);
}
.win__bar {
  display: flex; align-items: center; gap: 10px;
  height: var(--win-bar);
  padding: 0 12px;
  background: linear-gradient(180deg, #232733 0%, #1A1D25 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.win__dots { display: flex; gap: 5px; }
.win__dots i { width: 7px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.win__url {
  margin: 0 auto;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  padding: 3px 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: rgba(240, 236, 228, .5);
}
.win__view img { display: block; width: 100%; height: auto; }

.switch {
  width: var(--shot-w);
  margin: clamp(26px, 3.4vh, 44px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--d-hairline);
  border-bottom: 1px solid var(--d-hairline);
}
.switch__tab {
  position: relative;
  padding: 11px 14px 10px;
  text-decoration: none;
  color: var(--d-muted);
  transition: color .3s ease;
}

.switch__tab + .switch__tab { border-left: 1px solid var(--d-rule); }

.switch__name {
  display: block;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase;
}
.switch__note {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .07em;
  color: var(--d-muted);
  opacity: .62;
}

.switch__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--d-gold);
  transform: scaleX(0);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
}
.switch__tab.is-on { color: var(--d-ink); }
.switch__tab.is-on::after { transform: scaleX(1); }
.switch__tab.is-on .switch__note { color: var(--d-gold); opacity: .8; }

.switch__tab:hover { color: var(--d-ink); }
.switch__tab:focus-visible {
  outline: 1px solid var(--d-gold);
  outline-offset: -3px;
}

.feature__line {
  max-width: 62ch;
  margin: clamp(16px, 2.2vh, 26px) auto 0;
  text-align: center;

  font-size: clamp(13.5px, .95vw, 15px);
  line-height: 1.6;

  min-height: 4.8em;
  color: var(--d-body);
  text-wrap: pretty;
}

.feature[hidden] { display: none; }

.pane {
  position: relative;
  border: 1px solid var(--p-edge);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--p-face-hi) 0%, var(--p-face) 62%);
  box-shadow: var(--p-lift);
  overflow: hidden;
}
.pane::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(232, 228, 220, .22) 22%, rgba(232, 228, 220, .22) 78%, transparent);
  pointer-events: none;
}
.pane__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px clamp(11px, 1.1vw, 16px);
  border-bottom: 1px solid var(--d-rule);
  background: rgba(0, 0, 0, .22);
}
.pane__tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--d-muted);
}
.pane__spacer { margin-left: auto; }
.pane__body { padding: clamp(12px, 1.3vw, 20px); }

.frag-core { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.frag-node {
  border: 1px solid var(--d-rule);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.frag-node b {
  display: block;
  font-family: var(--mono); font-weight: 500; font-size: 9.5px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--d-ink);
}
.frag-node span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--d-muted); }
.frag-node--core {
  grid-column: 1 / -1;
  border-color: rgba(224, 169, 59, .45);
  background: rgba(224, 169, 59, .07);
}
.frag-node--core b { color: var(--d-gold); }
.frag-link { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; height: 18px; }
.frag-link i {
  position: relative; display: block; justify-self: center;
  width: 1px;

  background: linear-gradient(0deg, var(--d-rule), rgba(224, 169, 59, .55));
}

.frag-link i::after {
  content: ""; position: absolute; left: 50%; top: 1px;
  width: 5px; height: 5px; margin-left: -3px;
  border-top: 1px solid var(--d-gold);
  border-left: 1px solid var(--d-gold);
  rotate: 45deg;
}

.frag-core--three,
.frag-core--three .frag-link { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.frag-node--live { grid-column: 2; border-style: dashed; }
.frag-link--mid i {
  grid-column: 2;

  background: linear-gradient(180deg,
    rgba(224, 169, 59, .55), var(--d-rule) 50%, rgba(224, 169, 59, .55));
}
.frag-link--mid i::before {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 5px; height: 5px; margin-left: -3px;
  border-bottom: 1px solid var(--d-gold);
  border-right: 1px solid var(--d-gold);
  rotate: 45deg;
}

.arch {
  width: min(100%, 680px);
  margin: clamp(30px, 4.4vh, 58px) auto 0;
}

.annolayer {
  position: absolute;

  inset: var(--win-bar) 0 0 0;
  pointer-events: none;

  z-index: 3;
}

.anno {
  position: absolute;
  top: var(--y);
  width: var(--anno-w);

  translate: 0 -50%;
  pointer-events: auto;

  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.62;
  letter-spacing: .04em;
  color: var(--d-body);
}
.anno b {
  display: block; margin-bottom: 5px;
  font-weight: 500; font-size: 9.5px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--d-gold);
}

.anno--l { right: calc(100% + var(--anno-gap)); text-align: right; }
.anno--r { left:  calc(100% + var(--anno-gap)); }

.anno--clear-phone { --anno-gap: calc(clamp(14px, 4cqw, 56px) + 14px); }

.anno::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: calc(var(--anno-gap) + var(--x) * 1cqw - var(--anno-lead));
}
.anno--l::after {
  left: calc(100% + var(--anno-lead));
  background: linear-gradient(90deg, rgba(224, 169, 59, .28), rgba(224, 169, 59, .9));
}
.anno--r::after {
  right: calc(100% + var(--anno-lead));
  background: linear-gradient(270deg, rgba(224, 169, 59, .28), rgba(224, 169, 59, .9));
}

.anno::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--d-gold);
}
.anno--l::before { left:  calc(100% + var(--anno-gap) + var(--x) * 1cqw); margin-left: -2px; }
.anno--r::before { right: calc(100% + var(--anno-gap) + var(--x) * 1cqw); margin-right: -2px; }

.phone {
  position: absolute;

  top: 46%;
  right: calc(-1 * clamp(14px, 4cqw, 56px));
  z-index: 2;

  margin: 0;
  width: clamp(130px, 21cqw, 240px);

  aspect-ratio: var(--phone-ar, 382 / 840);
  border-radius: clamp(16px, 3cqw, 30px);
  border: 1px solid rgba(232, 228, 220, .16);
  background-color: #12151C;
  background-image: repeating-linear-gradient(135deg, rgba(232, 228, 220, .05) 0 1px, transparent 1px 9px);
  box-shadow: var(--p-lift);
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 9px;
}

.phone__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone__img:not(.is-loaded) { opacity: 0; }
.phone__caption {
  position: relative; z-index: 1;
  text-align: center;
  font-family: var(--mono); font-size: 8.5px; line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted);
}
.phone.has-image .phone__caption { display: none; }

.rail {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(18px, 2.6vw, 44px);
  margin-top: clamp(44px, 6.2vh, 74px);
  padding-bottom: clamp(14px, 2vh, 22px);
  border-bottom: 1px solid var(--d-hairline);
}
.rail__item { display: flex; align-items: baseline; gap: 10px; }
.rail__item dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--d-muted);
}
.rail__item dd { margin: 0; font-size: 14px; color: var(--d-ink); }
.rail__cta {
  margin-left: auto;
  border: 1px solid rgba(232, 228, 220, .28);
  padding: 10px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}
.rail__cta:hover { border-color: var(--d-gold); color: var(--d-gold); }

.masthead.is-over-dark { color: var(--d-ink); }
.masthead.is-over-dark .brand__name { color: var(--d-ink); }
.masthead.is-over-dark .brand__role,
.masthead.is-over-dark .mainnav { color: var(--d-muted); }
.masthead.is-over-dark .mainnav a:hover { color: var(--d-gold); border-bottom-color: var(--d-gold); }

.masthead.is-over-dark .brand:hover .brand__name { color: var(--d-gold); }

.masthead.is-over-dark.is-stuck {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .10) 0%,
    rgba(255, 255, 255, .04) 100%);
  border-bottom-color: var(--d-rule);
  box-shadow:
    inset 0 1px 0 rgba(232, 228, 220, .18),
    0 10px 30px -24px rgba(0, 0, 0, .85);
}
.masthead.is-over-dark .masthead__inner {
  text-shadow: 0 1px 14px rgba(10, 12, 17, .75), 0 0 3px rgba(10, 12, 17, .5);
}

.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js .is-in [data-rise], .js [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
              transform .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}

.js .anno::after {
  transform: scaleX(0);
  transform-origin: left center;
}
.js .anno--r::after { transform-origin: right center; }
.js .is-in .anno::after {
  transform: scaleX(1);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0s) + .35s);
}

.js .anno::before { transform: scale(0); }
.js .is-in .anno::before {
  transform: scale(1);
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .95s);
}

.js .frag-link i {
  background-repeat: no-repeat;

  background-position: 50% 100%;
  background-size: 100% 0%;
}
.js .is-in .frag-link i {
  background-size: 100% 100%;
  transition: background-size .62s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0s) + .3s);
}

.js .frag-link--mid i { background-position: 50% 50%; }

.js .frag-link i::after,
.js .frag-link--mid i::before { opacity: 0; }
.js .is-in .frag-link i::after,
.js .is-in .frag-link--mid i::before {
  opacity: 1;
  transition: opacity .3s ease-out calc(var(--d, 0s) + .76s);
}

.js .timeline__spine::before {
  transform: scaleY(0);
  transform-origin: top center;
}
.js .is-in .timeline__spine::before {
  transform: scaleY(1);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}
.js .timeline__spine::after { transform: scale(0); }
.js .is-in .timeline__spine::after {
  transform: scale(1);
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .32s);
}

.js .phone[data-rise] {
  transform: translate3d(0, 30px, 0) scale(.965);
  transform-origin: 100% 0;
}
.js .is-in .phone[data-rise] {
  transform: none;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
              transform 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}

@keyframes swap-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes swap-draw { from { transform: scaleX(0); } }
@keyframes swap-dot  { from { transform: scale(0); } }

.js .feature.is-entering .win {
  animation: swap-rise .42s cubic-bezier(.16, 1, .3, 1) both;
}
.js .feature.is-entering .feature__line {
  animation: swap-rise .42s cubic-bezier(.16, 1, .3, 1) both;
}
.js .feature.is-entering .anno {
  animation: swap-rise .4s cubic-bezier(.16, 1, .3, 1) var(--sd, 0s) both;
}
.js .feature.is-entering .anno::after {
  animation: swap-draw .44s cubic-bezier(.16, 1, .3, 1) calc(var(--sd, 0s) + .1s) both;
}
.js .feature.is-entering .anno::before {
  animation: swap-dot .3s cubic-bezier(.34, 1.56, .64, 1) calc(var(--sd, 0s) + .34s) both;
}

.band .spread.spread--full {
  position: relative;

  padding: 0;
}
.band .spread--full .mq {
  position: absolute;
  inset: 0;
  margin: 0 calc(-1 * var(--bleed));
  height: auto;
  max-height: none;
}

.spread--full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0 calc(-1 * var(--bleed));
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(13, 15, 20, .88) 0%,
    rgba(13, 15, 20, .28) 26%,
    rgba(13, 15, 20, .34) 60%,
    rgba(13, 15, 20, .93) 100%);
}

.mq__over {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;

  justify-content: flex-end;
  min-height: 100svh;
  padding: clamp(84px, 11svh, 132px) 0 clamp(44px, 7svh, 104px);
}

.mq__over .dtitle {
  font-size: clamp(46px, 7.6vw, 136px);
  line-height: .86;
  letter-spacing: -.03em;
  text-shadow: 0 2px 34px rgba(13, 15, 20, .6);
}

@media (min-height: 820px) {

  .band .spread--full { scroll-snap-align: start; }

  .band .spread {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: clamp(40px, 6svh, 96px) 0;
  }

  .band .spread > :first-child { margin-block-start: auto; }
  .band .spread > :last-child  { margin-block-end: auto; }

  .band .mq { max-height: 56svh; }
}

@media (max-width: 1180px), (max-height: 900px) {

  .stage, .stage:has(.phone) { display: block; padding-bottom: 0; }
  .stage__shot { width: 100%; }

  .switch { width: 100%; }

  .annolayer {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 34px);
    margin-top: clamp(22px, 3vh, 34px);
    padding-top: clamp(16px, 2.2vh, 26px);
    border-top: 1px solid var(--d-hairline);
  }
  .anno {
    position: static;
    width: auto;
    translate: none;

    text-align: left;
  }
  .anno::before, .anno::after { content: none; }

  .phone {
    position: relative;
    width: clamp(150px, 34vw, 240px);
    margin: clamp(20px, 3vh, 34px) auto 0;
  }

  .js .phone[data-rise] { transform-origin: 50% 0; }
}

@media (max-width: 1100px) {
  .dhead { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
}
@media (max-width: 680px) {
  .spread { padding: 62px 0; }
  .annolayer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rail__cta { margin-left: 0; }

  .switch__tab { padding: 10px 8px; }
  .switch__name { font-size: 9.5px; letter-spacing: .1em; }
  .switch__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .mq__field { animation: none; }

  .js .phone[data-rise] { transform: none; }
  .js .anno::after,
  .js .is-in .anno::after { transform: scaleX(1); transition: none; }
  .js .anno::before,
  .js .is-in .anno::before { transform: scale(1); transition: none; }
  .js .frag-link i,
  .js .is-in .frag-link i { background-size: 100% 100%; transition: none; }
  .js .timeline__spine::before,
  .js .is-in .timeline__spine::before { transform: scaleY(1); transition: none; }
  .js .timeline__spine::after,
  .js .is-in .timeline__spine::after { transform: scale(1); transition: none; }
  .js .frag-link i::after,
  .js .frag-link--mid i::before,
  .js .is-in .frag-link i::after,
  .js .is-in .frag-link--mid i::before { opacity: 1; transition: none; }

  .js .feature.is-entering .win,
  .js .feature.is-entering .feature__line,
  .js .feature.is-entering .anno,
  .js .feature.is-entering .anno::after,
  .js .feature.is-entering .anno::before { animation: none; }
  .switch__tab::after { transition: none; }
}

.timeline { margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.timeline__row { display: flex; align-items: stretch; gap: clamp(20px, 3vw, 48px); }
.timeline__year {
  flex: 0 0 auto;
  width: clamp(64px, 8vw, 110px);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: right;
}
.timeline__spine {
  flex: 0 0 auto;
  width: 13px;
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline__spine::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline__spine::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--accent);
}
.timeline__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.timeline__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.1;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 4px 9px;
}
.timeline__body p {
  margin: 7px 0 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

@media (max-width: 620px) {
  .timeline__row { gap: 16px; }
  .timeline__year { width: 48px; font-size: 11px; }
}

.contact {
  padding: clamp(72px, 9vw, 120px) 0 48px;
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
}

.contact__label { font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact__mail {
  display: block;
  margin-top: clamp(20px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(30px, 6.6vw, 104px);
  line-height: 1;
  letter-spacing: -.025em;
  word-break: break-word;
  border-bottom: 1px solid rgba(22, 19, 15, .2);
  padding-bottom: 18px;
  transition: color .25s ease, border-color .25s ease;
}
.contact__mail:hover { color: var(--accent); border-bottom-color: var(--accent); }

.contact__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__links { display: flex; gap: 26px; }
.contact__links a {
  border-bottom: 1px solid rgba(22, 19, 15, .25);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.contact__links a:hover { border-bottom-color: var(--accent); }

@keyframes caret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .caret { animation: none; }
  .caret { opacity: 1; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 620px) {
  .hero__title,
  .hero__intro,
  .lede {
    text-align: center;
  }

  .kicker {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .contact { text-align: center; }
  .contact__links { justify-content: center; }
  .contact__foot {
    justify-content: center;
    text-align: center;
  }

  .mq__over {
    align-items: center;
    text-align: center;
  }
  .mq__over .dtitle { font-size: clamp(56px, 17vw, 92px); }
}

@media (max-width: 975px) {
  .about__portrait {
    flex-basis: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  :root { --tile: clamp(120px, 33vw, 660px); }

  .mq__over,
  .band .spread--full { min-height: min(100svh, 105vw); }
}
