@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------------------------------
 *  OSGILIATH LABS — design system
 *
 *  Palette:  parchment ground, deep ink, terracotta accent
 *  Type:     Fraunces (variable serif) + IBM Plex Mono
 *  Mood:     architectural · editorial · independent · unhurried
 * --------------------------------------------------------------------------- */

:root {
  --paper:        #ece5d3;
  --paper-deep:   #e2dac3;
  --paper-edge:   #d3c9ad;
  --ink:          #1c1a17;
  --ink-2:        #3a352c;
  --ink-3:        #6a6457;
  --muted:        #8c8470;
  --hairline:     #c8bfa6;
  --accent:       #b04a26;
  --accent-2:     #d56c3e;

  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(22px, 5vw, 80px);
  --rule:   1px;

  --ease:   cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "opsz" 14, "SOFT" 30, "wght" 400;
  font-feature-settings: "ss01", "ss02", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(176, 74, 38, 0.07), transparent 70%),
    radial-gradient(900px 700px at 105% 110%, rgba(28, 26, 23, 0.06), transparent 70%),
    var(--paper);
}

/* Paper grain overlay — sits above the page, ignores pointer events */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Type primitives ---------- */

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}

.mono--muted { color: var(--ink-3); }
.mono--accent { color: var(--accent); }

.display {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 380;
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ink);
}

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

a.link {
  display: inline-block;
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 220ms var(--ease), color 200ms var(--ease);
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ---------- Site frame ---------- */

.frame {
  position: fixed;
  inset: 14px;
  border: var(--rule) solid var(--hairline);
  pointer-events: none;
  z-index: 50;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  background: var(--paper);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 8px;
}

.frame::before {
  content: "Volume I · MMXXVI";
  top: -7px;
  left: 28px;
}

.frame::after {
  content: "Independent Studio · Florida";
  bottom: -7px;
  right: 28px;
}

/* ---------- Header ---------- */

header.site {
  position: relative;
  padding: 34px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  animation: spin 60s linear infinite;
}

.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink);
}

.brand-est {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid var(--hairline);
}

header.site nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

header.site nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 180ms var(--ease);
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--accent);
}

header.site nav a[aria-current="page"]::before {
  content: "·";
  margin-right: 6px;
  color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(48px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero__rule {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.hero__rule .index-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__rule .index-list a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__rule .index-list a:hover { color: var(--accent); }

.wordmark {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 360;
  font-size: clamp(74px, 17vw, 268px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0;
  display: block;
  white-space: nowrap;
}

.wordmark span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.05s var(--ease) forwards;
}

.wordmark .ampersand {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 320;
  padding: 0 0.05em;
}

.wordmark--line2 {
  margin-left: clamp(40px, 12vw, 220px);
}

@keyframes rise {
  to { transform: translateY(0); }
}

.hero__meta {
  margin-top: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.hero__lede {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 380;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.hero__lede em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 400;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__aside dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.hero__aside dd {
  margin: 0 0 14px;
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-deep);
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 18px 0;
  animation: scroll 42s linear infinite;
}

.marquee__track span {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 90, "wght" 380;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.marquee__track span::after {
  content: "✺";
  font-style: normal;
  color: var(--accent);
  font-size: 0.7em;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section.editorial {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid var(--hairline);
  position: relative;
}

section.editorial > .section-no {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

section.editorial > .section-no::after {
  content: "";
  display: block;
  height: 1px;
  width: 36px;
  background: var(--accent);
  margin-top: 4px;
}

section.editorial > .section-no .num {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.1em;
}

section.editorial > .body { max-width: 900px; }

section.editorial h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 88, "SOFT" 50, "wght" 380;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}

section.editorial h2 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 88, "SOFT" 90, "wght" 360;
}

section.editorial p {
  font-family: var(--display);
  font-variation-settings: "opsz" 18, "SOFT" 30, "wght" 360;
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 62ch;
}

section.editorial p + p { margin-top: 0; }

/* ---------- Apps list ---------- */

.apps-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding 240ms var(--ease);
}

.app-row:first-of-type { border-top: 1px solid var(--hairline); }

.app-row__no {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.app-row__name {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 50, "wght" 420;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.app-row__name em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 60, "SOFT" 90, "wght" 380;
}

.app-row__blurb {
  font-family: var(--display);
  font-size: 17px;
  font-variation-settings: "opsz" 18, "SOFT" 30, "wght" 360;
  color: var(--ink-3);
  line-height: 1.4;
}

.app-row__link {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 200ms var(--ease), transform 240ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-row__link::after {
  content: "→";
  transition: transform 240ms var(--ease);
}

.app-row:hover { padding-left: 12px; }
.app-row:hover .app-row__link { color: var(--accent); }
.app-row:hover .app-row__link::after { transform: translateX(6px); }

.app-row--ghost { color: var(--muted); }
.app-row--ghost .app-row__name,
.app-row--ghost .app-row__blurb,
.app-row--ghost .app-row__link {
  color: var(--muted);
}

/* ---------- Article (privacy / terms) ---------- */

article.editorial {
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid var(--hairline);
}

article.editorial > aside {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

article.editorial > aside .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

article.editorial > aside .kicker::before {
  content: "✺  ";
}

article.editorial > aside .dateline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

article.editorial > aside .toc {
  margin-top: 18px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

article.editorial > aside .toc a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 400;
  display: flex;
  gap: 8px;
}

article.editorial > aside .toc a:hover { color: var(--accent); }

article.editorial > .body { max-width: 720px; }

article.editorial h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 380;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  color: var(--ink);
}

article.editorial h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 340;
}

article.editorial .deck {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 380;
  font-size: clamp(20px, 2vw, 24px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 32ch;
}

article.editorial h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 56px 0 14px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

article.editorial h2 .h2-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

article.editorial p {
  font-family: var(--display);
  font-variation-settings: "opsz" 18, "SOFT" 30, "wght" 360;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--ink-2);
}

article.editorial .drop > p:first-of-type::first-letter {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 420;
  font-size: 5.6em;
  line-height: 0.86;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

article.editorial code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
}

article.editorial address {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--hairline);
  background: var(--paper-deep);
}

/* ---------- Contact page ---------- */

.contact-grid {
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.contact-grid .aside {
  position: sticky;
  top: 32px;
  align-self: start;
}

.contact-grid h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 70, "wght" 380;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--ink);
}

.contact-grid h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 340;
}

.contact-grid .deck {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 360;
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0 0 56px;
  max-width: 40ch;
}

.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.directory-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.directory-card:nth-child(odd) { padding-right: 32px; }
.directory-card:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
}

@media (max-width: 720px) {
  .directory-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
}

.directory-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.directory-card .label::before {
  content: attr(data-num) "  ";
  color: var(--accent);
  font-weight: 600;
}

.directory-card .target {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 60, "wght" 420;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.directory-card .target.italic { font-style: italic; }

.directory-card .note {
  font-family: var(--display);
  font-variation-settings: "opsz" 18, "SOFT" 30, "wght" 360;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - 220px);
  padding: clamp(40px, 6vw, 100px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  position: relative;
}

.notfound .num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 320;
  font-size: clamp(120px, 28vw, 380px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

.notfound .num span:nth-child(2) {
  color: var(--accent);
  font-style: normal;
}

.notfound .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.notfound .quote {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 380;
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic;
  color: var(--ink-2);
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.3;
}

.notfound .actions {
  margin-top: 16px;
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Footer / Colophon ---------- */

footer.site {
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(176, 74, 38, 0.06), transparent 70%),
    var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  position: relative;
}

footer.site .colophon-mark {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 360;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 18px;
}

footer.site .colophon-mark em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 340;
}

footer.site .colophon-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 38ch;
  line-height: 1.6;
}

footer.site h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer.site ul a {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 380;
  font-size: 19px;
  color: var(--ink);
}

footer.site ul a:hover { color: var(--accent); }

footer.site address {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--ink-2);
}

footer.site .meta {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

footer.site .meta .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(1px);
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.9s var(--ease) forwards;
}

[data-reveal][data-delay="1"]  { animation-delay: 0.05s; }
[data-reveal][data-delay="2"]  { animation-delay: 0.18s; }
[data-reveal][data-delay="3"]  { animation-delay: 0.30s; }
[data-reveal][data-delay="4"]  { animation-delay: 0.46s; }
[data-reveal][data-delay="5"]  { animation-delay: 0.62s; }
[data-reveal][data-delay="6"]  { animation-delay: 0.80s; }
[data-reveal][data-delay="7"]  { animation-delay: 1.00s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger letter risers in the wordmark */
.wordmark span:nth-child(1)  { animation-delay: 0.05s; }
.wordmark span:nth-child(2)  { animation-delay: 0.10s; }
.wordmark span:nth-child(3)  { animation-delay: 0.15s; }
.wordmark span:nth-child(4)  { animation-delay: 0.20s; }
.wordmark span:nth-child(5)  { animation-delay: 0.25s; }
.wordmark span:nth-child(6)  { animation-delay: 0.30s; }
.wordmark span:nth-child(7)  { animation-delay: 0.35s; }
.wordmark span:nth-child(8)  { animation-delay: 0.40s; }
.wordmark span:nth-child(9)  { animation-delay: 0.45s; }
.wordmark span:nth-child(10) { animation-delay: 0.50s; }
.wordmark span:nth-child(11) { animation-delay: 0.55s; }
.wordmark span:nth-child(12) { animation-delay: 0.60s; }
.wordmark span:nth-child(13) { animation-delay: 0.65s; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .frame { inset: 8px; }
  .frame::before { left: 14px; }
  .frame::after { right: 14px; }

  header.site { grid-template-columns: 1fr; gap: 16px; }
  header.site nav { gap: 18px; flex-wrap: wrap; }

  .brand-est { display: none; }

  .hero__meta { grid-template-columns: 1fr; gap: 24px; }
  .hero__rule { grid-template-columns: 1fr; }
  .hero__rule .index-list { gap: 16px; }

  .wordmark--line2 { margin-left: 0; }

  section.editorial,
  article.editorial,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  article.editorial > aside,
  .contact-grid .aside {
    position: relative;
    top: 0;
  }

  .app-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "no    name"
      ".     blurb"
      ".     link";
    gap: 6px 16px;
  }
  .app-row__no    { grid-area: no; }
  .app-row__name  { grid-area: name; }
  .app-row__blurb { grid-area: blurb; }
  .app-row__link  { grid-area: link; margin-top: 8px; }

  footer.site { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .brand-mark { animation: none; }
  .wordmark span { transform: none; opacity: 1; }
}
