/* hrmverse.com — visual system (docs/BRIEF.md §6). Fonts: Fraunces and Inter Tight, SIL Open Font License 1.1. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0a0d18;
  --ground-2: #0f1322;
  --ground-3: #151a2c;
  --ink: #f2ece3;
  --ink-2: #c9c2b8;
  --ink-3: #9a948c;
  --line: rgb(242 236 227 / 0.12);
  --amber: #ffb45e;
  --coral: #ff7a59;
  --aqua: #7ccfc4;
  --accent-ink: #ffc98a;
  --on-accent: #1a1209;
  --plate-ground: #0a0d18;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #f5efe6;
    --ground-2: #efe7db;
    --ground-3: #e7dccd;
    --ink: #1a1712;
    --ink-2: #463f36;
    --ink-3: #6b6258;
    --line: rgb(26 23 18 / 0.12);
    --amber: #c26a12;
    --coral: #c4462a;
    --aqua: #2f8a80;
    --accent-ink: #9a4a0c;
    --on-accent: #fff8ef;
    --shadow: 0 30px 70px -34px rgb(60 40 20 / 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ground);
  border-radius: 0.6rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
}

.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.6rem; vertical-align: 0.05em; }
.dot-ai { background: var(--aqua); }
.dot-design { background: var(--coral); }
.dot-people { background: var(--amber); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.75rem, env(safe-area-inset-top)) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0.75rem;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  text-decoration: none;
}
.mark { height: 1.3rem; width: auto; color: var(--ink); flex: none; }
.wordmark {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.015em;
}

.nav ul {
  display: flex;
  gap: clamp(0.25rem, 1.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav ul a:hover { color: var(--ink); }

@media (max-width: 40rem) {
  .nav ul li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.button.primary {
  background: linear-gradient(135deg, #ffd29a, #ffb45e 45%, #ff8a5e);
  color: #1a1209;
  box-shadow: 0 10px 30px -12px rgb(255 140 80 / 0.7);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(255 140 80 / 0.85); }
.button.ghost {
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: color-mix(in srgb, var(--ground) 40%, transparent);
}
.button.ghost:hover { border-color: var(--ink); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 7rem clamp(4rem, 10vh, 7rem);
  isolation: isolate;
  overflow: hidden;
}
.loom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  touch-action: pan-y;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 15% 100%, color-mix(in srgb, var(--ground) 92%, transparent) 0%, transparent 60%),
    radial-gradient(48% 46% at 24% 64%, color-mix(in srgb, var(--ground) 72%, transparent) 0%, transparent 100%),
    linear-gradient(to top, var(--ground) 0%, transparent 35%),
    linear-gradient(to bottom, var(--ground) 0%, color-mix(in srgb, var(--ground) 60%, transparent) 7rem, transparent 14rem);
}
.hero-copy { pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 350;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  max-width: 13ch;
}
.hero h1 em,
.statement em,
.closing h2 em {
  font-weight: 330;
  background: linear-gradient(100deg, #ffd9a6 0%, #ffb45e 40%, #ff7a59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
@media (prefers-color-scheme: light) {
  .hero h1 em,
  .statement em,
  .closing h2 em { background-image: linear-gradient(100deg, #b85a0e 0%, #c4462a 100%); }
}
.lede {
  max-width: 38rem;
  margin-block: 1.75rem 2.25rem;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  color: var(--ink-2);
}
.hero-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
@media (max-width: 40rem) { .hero-hint { display: none; } }

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

section { position: relative; }

.belief {
  padding-block: clamp(6rem, 16vh, 11rem) clamp(4rem, 10vh, 7rem);
  outline: none;
}
.statement {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "opsz" 120;
  max-width: 20ch;
}
.belief-body {
  display: grid;
  gap: 1.25rem 3rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  max-width: 62rem;
  margin-left: auto;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.18rem);
}
@media (min-width: 48rem) { .belief-body { grid-template-columns: 1fr 1fr; } }

.section-head h2,
.crafts-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  max-width: 18ch;
}

/* Crafts */
.crafts {
  display: grid;
  gap: 2.5rem 4rem;
  padding-block: clamp(4rem, 10vh, 7rem);
  align-items: center;
}
.crafts-head p:not(.kicker) { margin-top: 1.25rem; max-width: 30rem; color: var(--ink-2); }
.venn { max-width: 30rem; width: 100%; justify-self: center; }
.venn svg { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke-width: 1.4; }
.ring-ai { stroke: var(--aqua); fill: color-mix(in srgb, var(--aqua) 7%, transparent); }
.ring-design { stroke: var(--coral); fill: color-mix(in srgb, var(--coral) 7%, transparent); }
.ring-people { stroke: var(--amber); fill: color-mix(in srgb, var(--amber) 8%, transparent); }
.core { transform-origin: 200px 207px; animation: breathe 7s var(--ease) infinite; }
.venn-label { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink); letter-spacing: 0.01em; }
@keyframes breathe { 0%, 100% { transform: scale(0.88); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }

.crafts-list { display: grid; gap: 1.5rem; margin: 0; }
.crafts-list dt { font-weight: 600; margin-bottom: 0.35rem; }
.crafts-list dd { margin: 0; color: var(--ink-2); }

@media (min-width: 60rem) {
  .crafts { grid-template-columns: 1fr 1fr; grid-template-areas: "head venn" "list venn"; }
  .crafts-head { grid-area: head; align-self: end; }
  .venn { grid-area: venn; }
  .crafts-list { grid-area: list; align-self: start; }
}

/* Principles */
.principles { padding-block: clamp(4rem, 10vh, 7rem); }
.principle-list {
  list-style: none;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.principle-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: clamp(1.5rem, 3.5vh, 2.25rem) 0;
  background: var(--ground);
}
.principle-list .num {
  grid-row: span 2;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}
.principle-list h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.principle-list p { color: var(--ink-2); max-width: 40rem; }
@media (min-width: 60rem) {
  .principle-list li { grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; }
  .principle-list .num { grid-row: auto; }
}

/* Work */
.work { padding-block: clamp(4rem, 10vh, 7rem) clamp(2rem, 6vh, 4rem); }
.chapter {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 10vh, 7rem);
}
.plate {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plate-ground);
  box-shadow: var(--shadow);
  aspect-ratio: 1200 / 1490;
  max-height: 80vh;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
}
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.chapter:hover .plate img { transform: scale(1.025); }
.chapter-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  margin-bottom: 1.25rem;
  max-width: 16ch;
}
.chapter-copy p:not(.kicker) { color: var(--ink-2); max-width: 32rem; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.18rem); }
@media (min-width: 56rem) {
  .chapter { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .chapter.flip .plate { order: 2; }
}

/* Closing: the hands plate as a band whose bright meeting point stays clear; the words sit beneath it. */
.closing {
  display: grid;
  justify-items: center;
  margin-top: clamp(4rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.closing-art {
  display: block;
  width: 100%;
  height: clamp(24rem, 78svh, 54rem);
  /* Fade into the page on every side: the vertical fade intersected with a soft oval. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 96%),
    radial-gradient(75% 85% at 50% 48%, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 96%),
    radial-gradient(75% 85% at 50% 48%, #000 50%, transparent 100%);
  mask-composite: intersect;
}
@media (prefers-color-scheme: light) {
  /* On paper the night sky is framed like the other plates: a window, not a stain. */
  .closing-art {
    width: calc(100% - 2 * var(--gutter));
    max-width: calc(var(--max) - 2 * var(--gutter));
    height: clamp(22rem, 66svh, 44rem);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.closing-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.closing-copy { margin-top: clamp(-4rem, -5vh, -2rem); position: relative; }
@media (prefers-color-scheme: light) { .closing-copy { margin-top: clamp(2.5rem, 6vh, 4rem); } }
.closing h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.closing-copy p:not(.kicker) { margin: 1.5rem auto 2.25rem; max-width: 30rem; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
}
.footer .wordmark { font-size: 1.05rem; color: var(--ink); margin-right: 0.75rem; }

/* Reveal on scroll (loom.js adds .in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .core { animation: none; }
  .plate img, .button { transition: none; }
}

/* 404 */
.notfound { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.notfound .lede { margin-block: 1.5rem 2rem; }
