/* NewKind Brand Kit — interactive reference page */

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Rousie";
  src: url("fonts/Rousie.woff") format("woff"),
       url("fonts/Rousie.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS  -- two canvases, ink + page
   ============================================================ */
:root {
  /* core palette (never changes between themes) */
  --c-ink:        #242833;
  --c-ink-soft:   #2F3340;
  --c-page:       #F8F9FB;
  --c-cream:      #F5F1EE;
  --c-mauve:      #D6A9CA;
  --c-rose:       #C16AA1;
  --c-sage:       #9AC1BE;
  --c-sage-deep:  #6FA8A4;
  --c-violet:     #9D8FC9;

  /* radii */
  --r-card: 18px;
  --r-pill: 999px;
  --r-tile: 14px;

  /* type */
  --f-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-script: "Rousie", "Hanken Grotesk", cursive;

  /* easing */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* page max */
  --maxw: 1280px;
}

/* THEMED TOKENS — light is default */
:root,
[data-theme="light"] {
  --bg:          var(--c-page);
  --bg-card:     var(--c-cream);
  --bg-alt:      #FFFFFF;
  --fg:          var(--c-ink);
  --fg-muted:    rgba(36, 40, 51, 0.62);
  --fg-faint:    rgba(36, 40, 51, 0.42);
  --hairline:    rgba(36, 40, 51, 0.10);
  --hairline-2:  rgba(36, 40, 51, 0.18);
  --eyebrow:     var(--c-sage-deep);
  --accent:      var(--c-rose);
  --accent-soft: var(--c-mauve);
  --on-accent:   #FFFFFF;
  --tile-shadow: 0 1px 0 rgba(36,40,51,0.04), 0 8px 24px -16px rgba(36,40,51,0.18);
  --panel-blur:  rgba(248, 249, 251, 0.78);
}

[data-theme="dark"] {
  --bg:          var(--c-ink);
  --bg-card:     var(--c-ink-soft);
  --bg-alt:      #1B1E27;
  --fg:          var(--c-page);
  --fg-muted:    rgba(248, 249, 251, 0.62);
  --fg-faint:    rgba(248, 249, 251, 0.40);
  --hairline:    rgba(248, 249, 251, 0.10);
  --hairline-2:  rgba(248, 249, 251, 0.18);
  --eyebrow:     var(--c-sage);
  --accent:      var(--c-mauve);
  --accent-soft: var(--c-rose);
  --on-accent:   var(--c-ink);
  --tile-shadow: 0 1px 0 rgba(0,0,0,0.20), 0 12px 36px -20px rgba(0,0,0,0.6);
  --panel-blur:  rgba(36, 40, 51, 0.78);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* selection */
::selection { background: var(--accent); color: var(--on-accent); }

/* scrollbar (light touch) */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* ============================================================
   TYPE PRIMITIVES
   ============================================================ */
.eyebrow {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--eyebrow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(56px, 8.5vw, 132px); letter-spacing: -0.04em; font-weight: 800; line-height: 0.96; }
h2 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.022em; font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0; }

.accent-i { font-style: italic; font-weight: 700; color: var(--accent); }
.accent-i--mauve { color: var(--c-mauve); }
.accent-i--rose  { color: var(--c-rose); }

p { margin: 0 0 1em; max-width: 56ch; }
p.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--fg-muted); max-width: 58ch; }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }

.rousie {
  font-family: var(--f-script);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 0.95;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
section {
  padding: clamp(72px, 9vw, 140px) 0;
  border-top: 1px solid var(--hairline);
}
section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(36px, 5vw, 72px);
  align-items: end;
}
.section-head .num {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
}
.section-head h2 { text-wrap: balance; }
.section-head .desc { color: var(--fg-muted); max-width: 52ch; }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--panel-blur);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark .wm { height: 22px; width: auto; }
[data-theme="light"] .brand-mark .wm-dark { display: none; }
[data-theme="dark"]  .brand-mark .wm-light { display: none; }
.brand-mark .tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-left: 12px;
  border-left: 1px solid var(--hairline-2);
}
.topnav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav nav a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--fg-muted);
  transition: color 0.2s, background-color 0.2s;
}
.topnav nav a:hover { color: var(--fg); background: var(--hairline); }
.topnav nav a.active { color: var(--fg); }

.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  border: 1px solid var(--hairline-2);
  transition: background-color 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
[data-theme="dark"] .theme-toggle::before { transform: translateX(26px); }
.theme-toggle svg {
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--fg-muted);
}
.theme-toggle .sun  { left: 8px; }
.theme-toggle .moon { right: 8px; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), filter 0.2s;
  white-space: nowrap;
}
.dl-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.dl-btn:active { transform: translateY(0); }
.dl-btn svg { width: 13px; height: 13px; }

@media (max-width: 880px) {
  .topnav nav { display: none; }
  .brand-mark .tag { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(80px, 12vw, 180px) 0 clamp(72px, 10vw, 140px);
  border-top: 0;
}
.hero h1 {
  margin: 28px 0 0;
  text-wrap: balance;
}
.hero h1 .rousie {
  font-size: 0.94em;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: inline-block;
  transform: translateY(0.06em);
}
.hero-meta {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.hero-meta > div {
  background: var(--bg);
  padding: 22px 4px 22px 0;
}
.hero-meta dt {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}
.hero-meta dd { margin: 0; font-size: 15px; font-weight: 500; }

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LOGO SECTION
   ============================================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
.logo-tile {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logo-tile:hover { transform: translateY(-2px); box-shadow: var(--tile-shadow); }

.logo-tile .canvas {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  position: relative;
}
.logo-tile .canvas img { max-width: 70%; max-height: 100px; width: auto; height: auto; }
.logo-tile.canvas--ink   .canvas { background: var(--c-ink); }
.logo-tile.canvas--page  .canvas { background: var(--c-page); }
.logo-tile.canvas--cream .canvas { background: var(--c-cream); }
.logo-tile.canvas--rose  .canvas { background: var(--c-rose); }

.logo-tile .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-top: 1px solid var(--hairline);
  gap: 16px;
  background: var(--bg-card);
}
.logo-tile .meta .label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-tile .meta .name { font-size: 14px; font-weight: 600; }
.logo-tile .meta .sub  { font-size: 12px; color: var(--fg-muted); }

.dl-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: var(--bg);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.dl-chip:hover { color: var(--fg); border-color: var(--fg); }
.dl-chip svg { width: 10px; height: 10px; }

/* monogram grid */
.mono-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  margin-top: 36px;
}
.mono-tile .canvas { min-height: 240px; }
.mono-tile .canvas img { max-width: 56%; max-height: 140px; }

@media (max-width: 800px) {
  .logo-grid, .mono-grid { grid-template-columns: 1fr; }
}

/* Logo do/don't */
.dodont {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: 36px;
}
.dodont .item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  background: var(--bg-card);
  padding: 20px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.dodont .item .demo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -10px -10px 10px;
  position: relative;
}
.dodont .item .demo img { max-width: 70%; max-height: 70%; }
.dodont .item.bad .demo::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px auto;
  width: 22px; height: 22px;
  background: var(--c-rose);
  border-radius: 50%;
  background-image: linear-gradient(45deg, transparent 46%, white 46%, white 54%, transparent 54%),
                    linear-gradient(-45deg, transparent 46%, white 46%, white 54%, transparent 54%);
}
.dodont .item.good .demo::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px auto;
  width: 22px; height: 22px;
  background: var(--c-sage-deep);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l5 5 9-11'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.dodont .item .label { font-size: 12px; color: var(--fg-muted); }
.dodont .item .demo--bg-ink   { background: var(--c-ink);   border-radius: 8px; padding: 16px; }
.dodont .item .demo--bg-cream { background: var(--c-cream); border-radius: 8px; padding: 16px; }
.dodont .item .demo--bg-rose  { background: var(--c-rose);  border-radius: 8px; padding: 16px; }

@media (max-width: 800px) { .dodont { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   COLORS
   ============================================================ */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.swatch-grid .group-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(18px, 2.5vw, 32px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.swatch-grid .group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.swatch-grid .group-label:first-child { margin-top: 0; }

.swatch {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--tile-shadow); }
.swatch:hover .copy-cue { opacity: 1; transform: translateY(0); }

.swatch .chip {
  aspect-ratio: 16 / 11;
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.swatch .copy-cue {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.swatch--light .copy-cue { background: rgba(255,255,255,0.7); color: var(--c-ink); }

.swatch .meta {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.swatch .meta .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.swatch .meta .role { font-size: 12px; color: var(--fg-muted); }
.swatch .meta .hex {
  margin-top: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.swatch .meta .formats {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--fg-muted);
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.25s var(--ease);
  padding-block: 0;
}
.swatch:hover .meta .formats {
  max-height: 90px;
  opacity: 1;
  padding-top: 10px;
}
.swatch .meta .formats span {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}
.swatch .meta .formats span:hover { color: var(--fg); }
.swatch .meta .formats span b { font-weight: 600; color: var(--fg-faint); text-transform: uppercase; font-size: 9px; letter-spacing: 0.1em; }

.ratio-bar {
  margin-top: 48px;
  display: flex;
  align-items: stretch;
  height: 56px;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.ratio-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ratio-bar .b1 { flex: 60; background: var(--c-ink);  color: var(--c-page); }
.ratio-bar .b2 { flex: 30; background: var(--c-rose); color: white; }
.ratio-bar .b3 { flex: 10; background: var(--c-sage); color: var(--c-ink); }
.ratio-legend {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.type-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.type-role {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.type-role .role-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.type-role .role-eyebrow b { color: var(--eyebrow); font-weight: 600; }
.type-role .specimen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.type-role .specimen.italic { font-style: italic; color: var(--accent); }
.type-role .specimen.script { font-family: var(--f-script); font-weight: 400; font-style: normal; color: var(--accent); font-size: clamp(56px, 7vw, 96px); letter-spacing: 0.005em; }
.type-role .role-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 14px; font-size: 12px; color: var(--fg-muted); }
.type-role .role-foot .copy { cursor: pointer; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }
.type-role .role-foot .copy:hover { color: var(--fg); }

.type-scale {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.scale-row {
  display: grid;
  grid-template-columns: 130px 1fr 220px;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background-color 0.2s;
}
.scale-row:last-child { border-bottom: 0; }
.scale-row:hover { background: var(--bg-card); }
.scale-row .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.scale-row .sample { font-family: var(--f-sans); text-wrap: balance; }
.scale-row .specs {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--fg-muted);
  text-align: right;
}
.scale-row .sample .accent-i { font-style: italic; color: var(--accent); font-weight: 700; }

.scale-row.display-xl .sample { font-size: clamp(48px, 6.4vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.scale-row.display-lg .sample { font-size: clamp(36px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.scale-row.display-md .sample { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.05; }
.scale-row.body       .sample { font-size: 16px; font-weight: 400; line-height: 1.6; max-width: 56ch; }
.scale-row.eyebrow-r  .sample { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--eyebrow); }

.type-tester {
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-card);
  padding: clamp(24px, 3vw, 40px);
}
.type-tester .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.type-tester .head h4 { font-size: 14px; letter-spacing: 0.04em; }
.type-tester .head .ctrls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.type-tester .head .ctrls label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.type-tester .head input[type="range"] { width: 120px; accent-color: var(--accent); }
.type-tester .head select {
  font: inherit;
  font-size: 12px;
  padding: 6px 28px 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  background: var(--bg);
  color: var(--fg);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='none' stroke='%23999' stroke-width='1.5' d='M2 4l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.type-tester [contenteditable] {
  outline: none;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-family: var(--f-sans);
  caret-color: var(--accent);
  min-height: 100px;
}
.type-tester [contenteditable]:focus { background: linear-gradient(transparent 95%, var(--accent) 95%); }

.font-dl {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 880px) {
  .type-roles { grid-template-columns: 1fr; }
  .scale-row { grid-template-columns: 90px 1fr; }
  .scale-row .specs { grid-column: 2; text-align: left; padding-top: 4px; }
}

/* ============================================================
   VOICE & TONE
   ============================================================ */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.voice-col {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
}
.voice-col h3 { text-wrap: balance; margin-bottom: 8px; }
.voice-col h3 .accent-i { font-size: 0.95em; }
.voice-col .col-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.voice-col .col-eyebrow .pip { width: 8px; height: 8px; border-radius: 50%; }
.voice-col.good .col-eyebrow .pip { background: var(--c-sage-deep); }
.voice-col.bad  .col-eyebrow .pip { background: var(--c-rose); }
.voice-col ul { list-style: none; margin: 24px 0 0; padding: 0; }
.voice-col li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 500;
}
.voice-col li:first-child { border-top: 1px solid var(--hairline); }

.voice-examples {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.voice-example {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-card);
}
.voice-example .topic {
  padding: 18px clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
}
.voice-example .topic b { color: var(--accent); font-weight: 600; }
.voice-example .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.voice-example .pair > div {
  padding: clamp(24px, 3vw, 36px);
  font-size: 15px;
  line-height: 1.55;
}
.voice-example .pair .off  { border-right: 1px solid var(--hairline); }
.voice-example .pair .off  .tag,
.voice-example .pair .on   .tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.voice-example .pair .off .tag { color: var(--c-rose); }
.voice-example .pair .on  .tag { color: var(--c-sage-deep); }
.voice-example .pair .off p { text-decoration: line-through; text-decoration-color: rgba(193,106,161,0.4); color: var(--fg-muted); }
.voice-example .pair .on  p { color: var(--fg); }

@media (max-width: 800px) {
  .voice-grid, .voice-example .pair { grid-template-columns: 1fr; }
  .voice-example .pair .off { border-right: 0; border-bottom: 1px solid var(--hairline); }
}

/* ============================================================
   ICONOGRAPHY / GRAPHIC ELEMENTS
   ============================================================ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.device {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.5vw, 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}
.device.dark { background: var(--c-ink); color: var(--c-page); border-color: rgba(255,255,255,0.08); }
.device.dark .device-label { color: rgba(248,249,251,0.5); }
.device .device-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: auto;
}
.device .device-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.device.dark .device-foot { color: rgba(248,249,251,0.55); }

.d-italic-accent { grid-column: span 6; }
.d-italic-accent .demo {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.d-italic-accent .demo em { font-style: italic; color: var(--c-mauve); font-weight: 700; }

.d-eyebrow { grid-column: span 3; }
.d-eyebrow .demo {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-sage);
  display: flex;
  align-items: center;
  gap: 10px;
}
.d-eyebrow .demo::before {
  content: "";
  width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}
.d-eyebrow .demo b { color: var(--c-page); font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 16px; margin-left: 6px; }

.d-cta { grid-column: span 3; align-items: flex-start; }
.d-cta .demo { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-pill.solid { background: var(--c-mauve); color: var(--c-ink); }
.btn-pill.ghost { border-color: rgba(248,249,251,0.4); color: var(--c-page); }

.d-progress { grid-column: span 4; }
.d-progress .demo { display: flex; flex-direction: column; gap: 10px; }
.d-progress .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; font-size: 12px; }
.d-progress .row .bar { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.d-progress .row .fill { height: 100%; background: var(--c-mauve); border-radius: 999px; }
.d-progress .row .label-r { font-weight: 500; color: var(--c-page); }
.d-progress .row .pct { font-variant-numeric: tabular-nums; color: var(--c-sage); font-size: 11px; letter-spacing: 0.04em; }

.d-step { grid-column: span 4; }
.d-step .demo { display: flex; flex-direction: column; gap: 6px; }
.d-step .step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.d-step .step:first-child { border-top: 0; }
.d-step .step .n { color: var(--c-sage); font-size: 11px; letter-spacing: 0.04em; }
.d-step .step .nm { color: var(--c-page); font-weight: 500; }
.d-step .step .mo { color: rgba(248,249,251,0.5); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }

.d-stat { grid-column: span 4; }
.d-stat .demo {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.d-stat .demo .big {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  font-style: italic;
  color: var(--c-mauve);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.d-stat .demo .cap { font-size: 12px; color: rgba(248,249,251,0.6); max-width: 14ch; line-height: 1.4; }

.d-quote { grid-column: span 8; }
.d-quote .demo {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-wrap: balance;
}
.d-quote .demo em { font-style: italic; color: var(--c-mauve); }
.d-quote .device-foot { color: var(--c-sage); letter-spacing: 0.22em; text-transform: uppercase; font-size: 10px; }

.d-good-news { grid-column: span 6; background: var(--c-cream); color: var(--c-ink); }
.d-good-news .device-label { color: rgba(36,40,51,0.5); }
.d-good-news .demo {
  font-family: var(--f-script);
  font-size: clamp(56px, 8vw, 110px);
  color: var(--c-rose);
  line-height: 0.92;
  letter-spacing: 0;
}

.d-pillars { grid-column: span 6; background: var(--c-cream); color: var(--c-ink); }
.d-pillars .device-label { color: rgba(36,40,51,0.5); }
.d-pillars .demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.d-pillars .pill {
  border: 1px solid rgba(36,40,51,0.1);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  background: white;
}
.d-pillars .pill .nm { font-size: 12px; font-weight: 600; }
.d-pillars .pill .sub { font-size: 10px; letter-spacing: 0.12em; color: rgba(36,40,51,0.5); text-transform: uppercase; margin-top: 4px; }

@media (max-width: 900px) {
  .devices-grid > * { grid-column: span 12 !important; }
}

/* ICONS — placeholder slot, ready for the real set */
.icons-block {
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px dashed var(--hairline-2);
  border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(180deg, transparent, var(--bg-card));
}
.icons-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.icons-block-head h3 { font-size: 22px; }
.icons-block-head .pill-status {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--c-mauve);
  color: var(--c-ink);
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.icon-slot {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-tile);
  border: 1px solid var(--hairline);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.icon-slot::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--hairline-2);
}
.icon-slot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icons-block .note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}
@media (max-width: 900px) { .icon-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   SPACING & GRID
   ============================================================ */
.spacing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.spacing-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spacing-card h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.spacing-card p { color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.rhythm-demo {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rhythm-demo .eb { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--eyebrow); }
.rhythm-demo .hl { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.rhythm-demo .hl em { font-style: italic; color: var(--accent); }
.rhythm-demo .bd { font-size: 13px; color: var(--fg-muted); line-height: 1.5; max-width: none; }

.hairline-demo { height: 1px; background: var(--hairline); position: relative; }
.hairline-demo::before, .hairline-demo::after {
  content: "10%";
  position: absolute;
  top: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  font-family: ui-monospace, monospace;
}
.hairline-demo::after { right: 0; }

.radius-demo {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.radius-demo .swatch-r {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  height: 88px;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--fg-muted);
}
.radius-demo .swatch-r .box { width: 100%; flex: 1; background: var(--c-mauve); }
.radius-demo .swatch-r.r-tile .box { border-radius: 14px; }
.radius-demo .swatch-r.r-card .box { border-radius: 18px; }
.radius-demo .swatch-r.r-pill .box { border-radius: 999px; }

.whitespace-demo {
  border: 1px dashed var(--hairline-2);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 140px;
}
.whitespace-demo span {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}
.whitespace-demo::before, .whitespace-demo::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--fg-faint);
  border-style: solid;
  border-width: 0;
}
.whitespace-demo::before { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.whitespace-demo::after  { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

@media (max-width: 800px) {
  .spacing-row { grid-template-columns: 1fr; }
}

/* ============================================================
   IMAGERY
   ============================================================ */
.imagery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.imagery-col {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
}
.imagery-col h3 { margin-bottom: 8px; text-wrap: balance; }
.imagery-col .col-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.imagery-col .col-eyebrow .pip { width: 8px; height: 8px; border-radius: 50%; }
.imagery-col.lean-toward .col-eyebrow .pip { background: var(--c-sage-deep); }
.imagery-col.lean-away   .col-eyebrow .pip { background: var(--c-rose); }
.imagery-col ul { list-style: none; padding: 0; margin: 0; }
.imagery-col li {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--fg-muted);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.imagery-col li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-3px);
  opacity: 0.5;
}
.imagery-placeholders {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.img-ph {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-tile);
  background: repeating-linear-gradient(135deg, var(--bg-card) 0 10px, var(--bg) 10px 20px);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 12px 12px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

/* Real imagery showcase — uniform tile grid */
.imagery-showcase {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.ph-tile {
  margin: 0;
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.ph-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ph-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--c-page);
  background: linear-gradient(transparent, rgba(36,40,51,0.0) 20%, rgba(36,40,51,0.75) 80%, rgba(36,40,51,0.92));
}
.ph-tile figcaption .cap-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mauve);
  font-weight: 600;
}
.ph-tile figcaption .cap-text {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(248,249,251,0.85);
  font-weight: 400;
}
@media (max-width: 800px) {
  .imagery-showcase { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .imagery-grid { grid-template-columns: 1fr; }
  .imagery-placeholders { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   QUICK REFERENCE FOOTER
   ============================================================ */
.quickref {
  background: var(--c-ink);
  color: var(--c-page);
  border-radius: var(--r-card);
  padding: clamp(40px, 5vw, 72px);
  margin-bottom: 0;
}
.quickref .eyebrow { color: var(--c-sage); }
.quickref h2 { color: var(--c-page); }
.quickref .rule {
  margin-top: clamp(28px, 3vw, 48px);
  font-family: var(--f-sans);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 28ch;
  text-wrap: balance;
}
.quickref .rule em { font-style: italic; color: var(--c-mauve); font-weight: 700; }
.quickref .actions {
  margin-top: clamp(36px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.quickref .btn-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.quickref .btn-big.primary { background: var(--c-mauve); color: var(--c-ink); }
.quickref .btn-big.ghost { background: transparent; color: var(--c-page); border: 1px solid rgba(248,249,251,0.4); }
.quickref .btn-big:hover { transform: translateY(-1px); filter: brightness(1.06); }
.quickref .btn-big svg { width: 14px; height: 14px; }

.qr-strip {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex;
  height: 56px;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.qr-strip > div { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 10px; font-family: ui-monospace, monospace; letter-spacing: 0.04em; cursor: pointer; transition: filter 0.2s; }
.qr-strip > div:hover { filter: brightness(1.1); }

footer.foot {
  padding: 48px 0 64px;
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: var(--c-page);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 36px -10px rgba(0,0,0,0.4);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 14px; height: 14px; color: var(--c-sage); }
[data-theme="dark"] .toast { background: var(--c-page); color: var(--c-ink); box-shadow: 0 10px 36px -10px rgba(0,0,0,0.8); }
[data-theme="dark"] .toast svg { color: var(--c-sage-deep); }

/* ============================================================
   UTILITIES
   ============================================================ */
.copy { cursor: pointer; }
.copy-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: inherit;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 -6px;
  transition: background-color 0.2s;
}
.copy-token:hover { background: var(--hairline); }

.kbd {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  padding: 1px 6px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--fg-muted);
}

/* tiny entry animation for hero */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 0.1s; }
.rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.3s; }
.rise.d4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
