/* ============================================================
   Despotia — marketing site
   Art direction: docs/MIDJOURNEY_CITY_UI.md §1 (muted institutional).
   Two typefaces only (docs/UI_LAYOUT.md §18 idea 2): a condensed
   grotesque for labels/figures/UI, a serif for proclamations.
   Both are system stacks — no external requests, strict-CSP safe.
   ============================================================ */

:root {
  /* Brand pair, sampled off assets/images/logo.png */
  --green:        #003029;
  --green-lift:   #04443A;
  --brass:        #CD9F50;
  --brass-bright: #E2BC72;

  /* Art-direction palette — MIDJOURNEY_CITY_UI.md §1 */
  --olive:        #7C8B63;
  --tan:          #A2957B;
  --concrete:     #9A9C97;
  --slate:        #4A5157;
  --olive-drab:   #6B6F4A;
  --clay:         #8A5A3C;
  --ochre:        #C2984E;

  /* Dark chrome */
  --ink-900: #0C1110;
  --ink-850: #111716;
  --ink-800: #161D1B;
  --ink-700: #1D2523;
  --rule:    #2C3532;
  --text:    #E7E4DA;
  --text-dim:#A8AEA9;

  /* Paper — sampled off assets/images/paper.png */
  --paper:      #E4CB9C;
  --paper-warm: #D9BC86;
  --paper-ink:  #2B2014;
  --paper-dim:  #5C4830;

  /* Diplomacy colour language — DIPLOMACY.md §2 */
  --coop:    #4E7CA1;
  --hostile: #9E3B3B;

  --font-ui: "Oswald", "Roboto Condensed", "Archivo Narrow",
             "Liberation Sans Narrow", "Arial Narrow", "Helvetica Neue",
             Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", "Hoefler Text", Georgia,
                  "Times New Roman", Times, serif;

  --wrap: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ------------------------------------------------------------ reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: hidden here would make html a scroll container and
     break the sticky masthead on iOS */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .25vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;   /* fallback for browsers without overflow: clip */
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--brass); color: var(--green);
  font-family: var(--font-ui); text-transform: uppercase;
  letter-spacing: .1em; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: .5rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* ------------------------------------------------------- typography */

.eyebrow {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .9rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.7rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 1.1rem;
}

.proclamation {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.15rem);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;   /* even line lengths instead of a hard <br> */
}
.proclamation--sm { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }

.pillar__body p + p,
.dossier__sheet p + p { margin-top: 1rem; }

/* ------------------------------------------------------ the lockups */

.lockup { display: inline-flex; align-items: center; text-decoration: none; }

.lockup--bar { gap: .7rem; }

.lockup--stacked {
  display: flex;             /* block-level, so the dateline gets its own line */
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* Option 1 from BUILD_PROMPT: the logo has no alpha, so it sits as a badge
   on its own bottle-green field rather than being keyed out. */
.emblem {
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(205, 159, 80, .35);
  flex: none;
}
.emblem img { width: 100%; height: 100%; }
.emblem--sm { width: 40px; height: 40px; }
.emblem--md { width: 92px; height: 92px; }
.emblem--lg { width: 104px; height: 104px; }

.wordmark {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.wordmark--sm { font-size: 1.15rem; letter-spacing: .26em; }
.wordmark--lg {
  /* sized to fit "DESPOTIA" at 320px even when no condensed face is
     installed (iOS has none of the stack) — the fallback is much wider */
  font-size: clamp(2.2rem, 1.15rem + 6.9vw, 6rem);
  letter-spacing: .17em;
  /* letterspacing adds a trailing gap; pull the block back flush */
  margin-right: -.17em;
  color: #fff;
}

/* -------------------------------------------------------- dateline */

.dateline {
  display: inline-flex;
  align-items: baseline;
  gap: .55em;
  margin-top: 1.4rem;
  padding: .42rem .95rem;
  border: 1px solid var(--brass);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .5vw, 1.2rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  background: rgba(0, 48, 41, .55);
}
.dateline span {
  font-weight: 400;
  font-size: .68em;
  letter-spacing: .16em;
  color: var(--brass);
  opacity: .85;
}
.dateline--inline { margin: 1rem 0 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease);
}
.btn--sm { padding: .55rem 1rem; font-size: .8rem; }

.btn--primary {
  background: var(--brass);
  color: var(--green);
  border-color: var(--brass);
}
.btn--primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

.btn--ghost {
  background: rgba(0, 48, 41, .45);
  border-color: rgba(205, 159, 80, .5);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brass); background: var(--green-lift); }

/* ============================================================ HERO */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(94vh, 900px);
  min-height: min(94svh, 900px);   /* svh where supported: no mobile URL-bar jump */
  /* top padding carries the sticky masthead's height, so the block reads as
     centred in the space below it rather than in the section box */
  padding: 7rem 0 3rem;
  overflow: hidden;
}

.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  animation: drift 46s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1.4%, 0); }
}

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,17,16,.92) 0%, rgba(12,17,16,.35) 30%,
                    rgba(12,17,16,.55) 62%, rgba(12,17,16,.97) 100%),
    linear-gradient(90deg, rgba(0,32,27,.93) 0%, rgba(0,32,27,.72) 46%,
                    rgba(0,32,27,.28) 100%);
}

.hero__inner { position: relative; }

.hero__lede {
  max-width: 34ch;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  color: #EDEAE0;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .9rem;
  margin-top: 2rem;
}
.cta-row--center { justify-content: center; }

/* ============================================= THE DATELINE BAND */
/* The launch window, as the first thing you meet below the fold. */

.proclaim {
  background: var(--green);
  border-block: 1px solid rgba(205, 159, 80, .28);
  overflow: hidden;
}
.proclaim__inner {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}
.proclaim__kicker {
  font-family: var(--font-ui);
  font-size: clamp(.8rem, .7rem + .5vw, 1rem);
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-right: -.42em;
}
.proclaim__date {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  /* fills the measure at any width without ever overflowing it */
  font-size: clamp(3rem, 15.5vw, 11rem);
  line-height: .95;
  letter-spacing: .04em;
  margin-right: -.04em;
  margin-top: .35rem;
  color: var(--brass-bright);
}
.proclaim__note {
  margin-top: 1.1rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  font-style: italic;
  color: #BFC9BE;
}

/* =================================================== PAPER SECTIONS */

.paper-section {
  background: var(--paper-warm);
  color: var(--paper-ink);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  /* the stamp rests at scale(1.4) before it lands — invisible, but still wide
     enough to push the page sideways on a phone if it isn't clipped here */
  overflow: hidden;
}
.paper-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.dossier {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
}

/* paper.png stretched onto the sheet — its printed border rule becomes
   the document's frame (MIDJOURNEY_CITY_UI.md §9 asset 4). */
.dossier__sheet {
  position: relative;
  padding: clamp(1.8rem, 5vw, 3.4rem);
  /* room at the foot for the stamp to land without sitting on the text */
  padding-bottom: clamp(4.5rem, 11vw, 7rem);
  background-image: url("assets/images/gen/paper-1000.jpg");
  background-size: 100% 100%;
  background-color: var(--paper);
  box-shadow: 0 18px 40px rgba(12, 17, 16, .28);
}

.dossier__ref {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding-bottom: .8rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(92, 72, 48, .35);
}

.dossier__kicker {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  padding-right: min(42%, 9.5rem);   /* keep clear of the stamp */
  border-top: 1px solid rgba(92, 72, 48, .35);
  font-size: 1.1em;
  font-style: italic;
}

.dossier__links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}
.paper-section .btn--ghost {
  background: rgba(43, 32, 20, .06);
  border-color: rgba(43, 32, 20, .4);
  color: var(--paper-ink);
}
.paper-section .btn--ghost:hover {
  background: var(--green); color: var(--text); border-color: var(--green);
}

/* ----------------------------------------------------- the stamp */

.stamp {
  position: absolute;
  z-index: 2;
  width: clamp(8.5rem, 26vw, 15rem);
  pointer-events: none;
  right: clamp(-2.5rem, -2vw, -.25rem);
  bottom: clamp(-2.5rem, -2vw, -1rem);
  opacity: 0;
  transform: rotate(-9deg) scale(1.4);
}
.stamp img { width: 100%; height: auto; }

.stamp__word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(.9rem, 2.2vw, 1.35rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7A1F2E;
  /* nudged onto the blank centre of the impression, which sits high-left */
  transform: rotate(-3deg) translate(-3%, -6%);
}

.stamp.is-stamped {
  animation: stamp-land .42s var(--ease) forwards;
}
@keyframes stamp-land {
  0%   { opacity: 0;   transform: rotate(-16deg) scale(1.4); }
  60%  { opacity: .95; transform: rotate(-8deg)  scale(.97); }
  100% { opacity: .92; transform: rotate(-9deg)  scale(1); }
}

.stamp--sm { width: clamp(7rem, 18vw, 11rem); }
.stamp--right { right: var(--gutter); bottom: -1rem; }

/* ========================================================= PILLARS */

.pillar {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
  background: var(--ink-850);
}
.pillar:nth-of-type(even) { background: var(--ink-900); }

.pillar__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

/* Each pillar shows two things: the illustration mounted as a photographic
   plate, and a real capture from the game in a device frame overlapping its
   corner. The MJ vignettes sit on a pale field, so the plate reads as a print
   in a dossier rather than a white square floated on the dark chrome. */
.showcase {
  position: relative;
  width: 100%;
  max-width: 28rem;
}

.plate {
  display: block;
  padding: .6rem;
  background: #E6E3DA;
  border: 1px solid #B9B6AC;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}
.plate img { width: 100%; height: auto; }

/* Narrow screens: the capture sits under the plate at a size you can read.
   From 620px up it lifts out and overlaps the plate's bottom-right corner. */
.device {
  display: block;
  width: min(62%, 15rem);
  margin: 1.1rem auto 0;
  padding: 5px;
  border: 1px solid #39423F;
  border-radius: 20px;
  background: #050908;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .55);
}
.device img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}
.showcase--solo .device { width: 100%; max-width: 21rem; margin-top: 0; }

.showcase figcaption {
  margin-top: .75rem;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.showcase--solo figcaption { text-align: center; }

.spec { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.spec li {
  display: grid;
  gap: .1rem .9rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec b {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.spec span { font-size: .95rem; color: var(--text-dim); }

/* ------------------------------------------------ relations bar */

.relbar { margin: 1.6rem 0; }
/* Hostility red runs in from the left, cooperation blue holds the rest — so
   the bar reads in the same direction as the band words printed under it. */
.relbar__track {
  position: relative;
  height: 14px;
  background: var(--coop);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.relbar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--hostile);
  transition: width 1.1s var(--ease);
}
.relbar.is-shown .relbar__fill { width: var(--to); }
.relbar__mid {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--text);
  opacity: .85;
}
.relbar__bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: .45rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #77807A;
  text-align: center;
}
.relbar__bands .is-here { color: var(--brass-bright); font-weight: 700; }

/* --------------------------------------------- relation network */

.network {
  margin-top: 1.8rem;
  padding: 1.2rem 1rem .9rem;
  border: 1px solid var(--rule);
  background: rgba(0, 48, 41, .3);
}
.network svg { width: 100%; height: auto; }

/* every path carries pathLength="100", so the dash maths is in percent */
.ln { stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ln--warm { stroke: var(--coop); }
.ln--cold { stroke: var(--hostile); }

.network.is-drawn .ln { animation: draw 1.1s var(--ease) forwards; }
.network.is-drawn .ln:nth-child(2) { animation-delay: .18s; }
.network.is-drawn .ln:nth-child(3) { animation-delay: .36s; }
.network.is-drawn .ln:nth-child(4) { animation-delay: .54s; }
.network.is-drawn .ln:nth-child(5) { animation-delay: .72s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* a hostile tie draws, then breaks into dashes */
.network.is-drawn .ln--cold { animation-name: draw-cold; animation-duration: 1.5s; }
@keyframes draw-cold {
  0%   { stroke-dashoffset: 100; stroke-dasharray: 100; }
  65%  { stroke-dashoffset: 0;   stroke-dasharray: 100; }
  100% { stroke-dashoffset: 0;   stroke-dasharray: 3.2 2.6; }
}

.network__nodes circle { fill: var(--brass); }
.network__labels text {
  fill: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.network__key {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: .5rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.key { display: inline-flex; align-items: center; gap: .45rem; }
.key::before {
  content: ""; width: 1.4rem; height: 2px; background: currentColor;
}
.key--warm::before { background: var(--coop); }
.key--cold::before { background: var(--hostile); }

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

.families { margin: 1.5rem 0; display: grid; gap: .6rem; }
.family {
  display: grid;
  gap: .15rem;
  padding: .85rem 1rem;
  background: var(--ink-700);
  border-left: 4px solid var(--concrete);
}
.family b {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.family span { font-size: .95rem; color: var(--text-dim); }
/* card colour = family, never rarity (UI_LAYOUT.md §7) */
.family--commander { border-left-color: #8E3A46; }
.family--minister  { border-left-color: #4E5A9E; }
.family--scientist { border-left-color: #2F7D77; }

/* =================================================== ORGANISATIONS */

.orgs {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--ink-800);
  border-top: 1px solid var(--rule);
}
.orgs__head { max-width: 52rem; }
.orgs__lede {
  font-size: clamp(1.05rem, .98rem + .45vw, 1.25rem);
  color: #EDEAE0;
  margin-bottom: 1rem;
}
.orgs__head p + p { margin-top: 1rem; }

.charter {
  display: grid;
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.charter li {
  display: grid;
  gap: .35rem;
  padding: 1.1rem 1.2rem;
  background: var(--ink-700);
}
.charter b {
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}
.charter span { font-size: .95rem; color: var(--text-dim); }

/* ======================================================== REGISTER */

.register {
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--green-lift), var(--green) 62%);
  border-top: 1px solid rgba(205, 159, 80, .3);
  text-align: center;
}
.register__inner { display: grid; justify-items: center; }
.register .proclamation { margin-top: 1.4rem; }
.register__lede {
  max-width: 40ch;
  margin-top: 1.1rem;
  color: #D8DED4;
}

/* ======================================================== COLOPHON */

.colophon {
  padding-block: 2.6rem;
  background: var(--ink-900);
  border-top: 1px solid var(--rule);
}
.colophon__inner { display: grid; gap: 1.1rem; }
.colophon__links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  font-family: var(--font-ui);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.colophon__links a { color: var(--text-dim); text-decoration: none; }
.colophon__links a:hover { color: var(--brass); }
.colophon__fine {
  max-width: 52ch;
  font-size: .85rem;
  color: #79817B;
}

/* ======================================================== MASTHEAD */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.masthead.is-stuck {
  background: rgba(12, 17, 16, .93);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(6px);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.masthead__nav {
  display: none;
  margin-left: auto;
  gap: 1.6rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.masthead__nav a { color: var(--text-dim); text-decoration: none; }
.masthead__nav a:hover { color: var(--brass); }
.masthead__cta {
  margin-left: auto;
  white-space: nowrap;
  padding-inline: clamp(.7rem, 3vw, 1rem);
}

/* ========================================================== REVEALS */

.reveal, [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in, [data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .1s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .2s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .3s; }

/* ====================================================== BREAKPOINTS */

@media (min-width: 620px) {
  .spec li { grid-template-columns: 8.5rem 1fr; align-items: baseline; }
  /* charter cells stay stacked — a label column inside a half-width cell
     leaves the text nowhere to go */
  .charter { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* the capture lifts out and lands on the plate's bottom-right corner */
  .showcase { padding-bottom: 3.5rem; }
  .showcase--solo { padding-bottom: 0; }
  .showcase .device {
    position: absolute;
    right: -4%;
    bottom: 0;
    width: 41%;
    max-width: none;
    margin: 0;
  }
  .showcase--solo .device { position: static; width: 100%; max-width: 21rem; }
  /* keep the caption out from under the overhanging device */
  .showcase figcaption { padding-right: 42%; }
  .showcase--solo figcaption { padding-right: 0; }
}

@media (min-width: 900px) {
  .masthead__nav { display: flex; }
  .masthead__cta { margin-left: 0; }

  .hero__lede { max-width: 42ch; }

  .pillar__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .pillar__grid .showcase { position: sticky; top: 6rem; justify-self: end; }
  .pillar--flip .showcase { order: 2; justify-self: start; }
  .pillar--flip .pillar__body { order: 1; }
}

/* ================================================= REDUCED MOTION */

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

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

  .hero__art img { animation: none; transform: scale(1.02); }

  .reveal, [data-stagger] > * { opacity: 1; transform: none; }
  .stamp { opacity: .92; transform: rotate(-9deg) scale(1); }
  .ln { stroke-dashoffset: 0; }
  .ln--cold { stroke-dasharray: 3.2 2.6; }
  .relbar__fill { width: var(--to); }
}
