:root {
  --ink: #101319;
  --indigo: #151f39;
  --indigo-2: #1b2945;
  --ivory: #f4f0e8;
  --paper: #ead9ae;
  --gold: #b7923a;
  --gold-soft: #d8bd78;
  --forest: #173f3a;
  --forest-2: #23564e;
  --stone: #a48267;
  --night: #3d5066;
  --muted: #9fa7b5;
  --line: rgba(255,255,255,.14);
  --shadow: 0 28px 70px rgba(0,0,0,.28);
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: #0d1118;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--gold-soft); font-size: .78rem; font-weight: 800;
  letter-spacing: .19em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500; line-height: .96; letter-spacing: -.045em;
}
.section-title { font-size: clamp(2.4rem, 5vw, 5rem); margin: .3rem 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: #d2d6de; max-width: 730px; }
.muted { color: var(--muted); }
.gold { color: var(--gold-soft); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled { background: rgba(11,15,22,.86); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-logo {
  display: block;
  width: 190px;
  height: auto;
}

.site-header .brand,
.site-footer .brand {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(244,240,232,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.brand-mark { position: relative; width: 31px; height: 31px; border: 1px solid rgba(216,189,120,.55); border-radius: 50%; display: grid; place-items: center; }
.brand-mark::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 18px rgba(216,189,120,.8); }
.brand-mark span { position: absolute; width: 1px; height: 15px; background: linear-gradient(transparent,var(--gold-soft)); transform-origin: 50% 100%; bottom: 50%; }
.brand-mark span:nth-child(1) { transform: rotate(0deg); }
.brand-mark span:nth-child(2) { transform: rotate(120deg); }
.brand-mark span:nth-child(3) { transform: rotate(240deg); }
.brand-copy { display: flex; flex-direction: column; line-height: .92; }
.brand-copy strong { letter-spacing: .20em; font-size: .84rem; }
.brand-copy small { letter-spacing: .28em; font-size: .55rem; color: #aab2c0; margin-top: 5px; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { color: #d9dde5; font-size: .88rem; font-weight: 650; position: relative; padding: 10px 0; }
.primary-nav a::after { content:''; position:absolute; left:0; right:100%; bottom:3px; height:1px; background:var(--gold-soft); transition:right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right:0; }
.primary-nav a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; }
.nav-toggle span { display:block; height:1px; background:#fff; margin:6px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 780; font-size: .91rem; letter-spacing: .015em; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #141414; background: var(--gold-soft); }
.btn-primary:hover { background: #e8ce8c; }
.btn-secondary { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.045); color: #fff; }
.btn-secondary:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn-forest { color:#fff; background: var(--forest); }
.btn-forest:hover { background: var(--forest-2); }
.btn.is-disabled { opacity:.66; cursor: default; }
.button-row { display:flex; flex-wrap:wrap; gap:12px; margin-top: 30px; }

/* Donegal Studio hero */
.hero {
  position:relative;
  min-height:96vh;
  display:grid;
  align-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(183,146,58,.14), transparent 23%),
    radial-gradient(circle at 14% 82%, rgba(61,80,102,.32), transparent 31%),
    radial-gradient(circle at 69% 67%, rgba(23,63,58,.18), transparent 28%),
    linear-gradient(145deg,#0b1017 0%,#111a2b 52%,#080c12 100%);
}
.hero::before {
  content:'';
  position:absolute;
  inset:0;
  opacity:.19;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,black,transparent 94%);
}
.hero::after {
  content:'';
  position:absolute;
  inset:auto 0 0;
  height:180px;
  background:linear-gradient(transparent,rgba(6,9,14,.56));
  pointer-events:none;
}
.hero-orbit {
  position:absolute;
  width:min(58vw,760px);
  aspect-ratio:1;
  right:-10%;
  top:4%;
  border:1px solid rgba(216,189,120,.12);
  border-radius:50%;
}
.hero-orbit::before,
.hero-orbit::after {
  content:'';
  position:absolute;
  border:1px solid rgba(216,189,120,.095);
  border-radius:50%;
}
.hero-orbit::before { inset:12%; }
.hero-orbit::after { inset:27%; }

.hero-network {
  position:absolute;
  right:5%;
  top:11%;
  width:min(44vw,630px);
  aspect-ratio:1.12;
  opacity:.46;
  pointer-events:none;
  background:
    linear-gradient(28deg,transparent 49.7%,rgba(119,151,185,.12) 50%,transparent 50.3%) 0 0/44% 44%,
    linear-gradient(-31deg,transparent 49.7%,rgba(216,189,120,.11) 50%,transparent 50.3%) 40% 20%/48% 48%;
}
.hero-network .node {
  position:absolute;
  width:7px;
  height:7px;
  border:1px solid rgba(216,189,120,.55);
  border-radius:50%;
  background:#101a23;
  box-shadow:0 0 0 7px rgba(216,189,120,.035),0 0 22px rgba(216,189,120,.16);
}
.hero-network .node-a { left:14%; top:25%; }
.hero-network .node-b { left:41%; top:12%; }
.hero-network .node-c { left:58%; top:47%; }
.hero-network .node-d { left:78%; top:29%; }
.hero-network .node-e { left:69%; top:72%; }

.hero-layout {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);
  gap:52px;
  align-items:start;
  padding:150px 0 82px;
}
.hero-content {
  position:relative;
  max-width:700px;
}
.hero h1 {
  font-size:clamp(3.75rem,6vw,6.35rem);
  margin:.3rem 0 1.25rem;
  max-width:700px;
}
.hero-title-line {
  display:block;
  color:var(--ivory);
  font-style:normal;
  white-space:nowrap;
}
.hero-title-line em {
  color:var(--gold-soft);
  font-weight:inherit;
}
.hero-title-line.hero-title-gold {
  color:var(--gold-soft);
  font-style:italic;
}
.hero .lead {
  max-width:675px;
  font-size:clamp(1.02rem,1.3vw,1.18rem);
}
.hero-capability-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
}
.hero-capability-tags span {
  padding:7px 10px;
  border:1px solid rgba(216,189,120,.18);
  border-radius:999px;
  background:rgba(255,255,255,.028);
  color:#c7ced7;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.hero-note {
  margin-top:40px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:20px;
  width:min(690px,100%);
  color:#aeb6c5;
  font-size:.86rem;
}
.hero-note strong { color:#fff; }

.hero-capability-panel {
  position:relative;
  overflow:hidden;
  align-self:start;
  min-height:600px;
  margin-top:54px;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(216,189,120,.20);
  border-radius:22px;
  padding:30px;
  background:
    radial-gradient(circle at 78% 12%,rgba(216,189,120,.11),transparent 25%),
    linear-gradient(155deg,rgba(25,39,53,.84),rgba(9,16,22,.90));
  box-shadow:0 30px 80px rgba(0,0,0,.31);
  backdrop-filter:blur(10px);
}
.hero-capability-panel::before {
  content:'';
  position:absolute;
  inset:0;
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
}
.hero-capability-panel > * {
  position:relative;
  z-index:1;
}
.hero-panel-topline,
.hero-panel-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#8f9cab;
  font-size:.64rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.hero-panel-status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#cbd5d1;
}
.hero-panel-status i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#8fb4a5;
  box-shadow:0 0 0 5px rgba(143,180,165,.08);
}
.hero-panel-core {
  padding:48px 0 31px;
}
.hero-panel-kicker {
  display:block;
  margin-bottom:10px;
  color:var(--gold-soft);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.hero-panel-core h2 {
  margin:0 0 13px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2rem,3.1vw,3.2rem);
  font-weight:500;
  line-height:1.01;
  letter-spacing:-.035em;
  color:#f4f0e7;
}
.hero-panel-core p {
  margin:0;
  color:#aeb8c3;
  line-height:1.65;
}
.hero-panel-list {
  border-top:1px solid rgba(255,255,255,.09);
  border-bottom:1px solid rgba(255,255,255,.09);
}
.hero-panel-list div {
  display:grid;
  grid-template-columns:35px 1fr;
  gap:11px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.065);
}
.hero-panel-list div:last-child { border-bottom:0; }
.hero-panel-list strong {
  color:var(--gold-soft);
  font-size:.66rem;
  letter-spacing:.08em;
}
.hero-panel-list span {
  color:#d9dfe5;
  font-size:.85rem;
}
.hero-panel-footer {
  margin-top:auto;
  padding-top:22px;
}

.section { padding: 110px 0; position:relative; }
.section-dark { background:#0d1118; }
.section-indigo { background:linear-gradient(180deg,#121a2a,#0d1118); }
.section-ivory { color:#1a211f; background:var(--ivory); }
.section-paper { color:#2d2a23; background:#e9dbb8; }
.section-head { display:grid; grid-template-columns:1fr minmax(260px,500px); gap:50px; align-items:end; margin-bottom:55px; }
.section-head p { margin:0; }

/* Homepage — studio arms */
.studio-arms-section {
  background:
    radial-gradient(circle at 18% 18%,rgba(216,189,120,.055),transparent 24%),
    linear-gradient(180deg,#0d1118,#0b1017);
}
.studio-arms-head { margin-bottom:48px; }
.studio-arms-head .lead { max-width:560px; }

.world-grid.studio-arms-grid {
  display:grid;
  grid-template-columns:1.16fr 1fr .92fr;
  gap:18px;
  align-items:stretch;
}
.world-card {
  position:relative;
  min-height:405px;
  padding:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.035);
  display:flex;
  flex-direction:column;
  text-decoration:none;
}
.world-card::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.97;
  transition:transform .35s ease,filter .35s ease;
}
.world-card:hover::before { transform:scale(1.018); filter:brightness(1.045); }
.world-card > * { position:relative; z-index:1; }

.world-card.story {
  min-height:430px;
  border-color:rgba(216,189,120,.20);
  box-shadow:0 26px 70px rgba(0,0,0,.16);
}
.world-card.story::before {
  background:
    radial-gradient(circle at 77% 18%,rgba(216,189,120,.31),transparent 27%),
    radial-gradient(circle at 18% 84%,rgba(47,101,84,.20),transparent 34%),
    linear-gradient(150deg,rgba(23,63,58,.94),rgba(9,17,18,.97));
}
.world-card.security::before {
  background:
    radial-gradient(circle at 74% 19%,rgba(99,130,177,.28),transparent 29%),
    radial-gradient(circle at 24% 84%,rgba(38,74,112,.15),transparent 31%),
    linear-gradient(150deg,#1a2941,#0c121c);
}
.world-card.media::before {
  background:
    radial-gradient(circle at 72% 18%,rgba(182,119,75,.27),transparent 28%),
    linear-gradient(150deg,#392b29,#111318);
}

.world-card-topline {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  padding:25px 27px 0;
}
.world-card .mini {
  font-size:.67rem;
  text-transform:uppercase;
  letter-spacing:.145em;
  color:var(--gold-soft);
  font-weight:850;
}
.world-status {
  flex:0 0 auto;
  padding:6px 8px;
  border:1px solid rgba(216,189,120,.22);
  border-radius:999px;
  color:#e5d49e;
  background:rgba(8,14,17,.28);
  font-size:.56rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.world-status.technical {
  color:#c9d9e8;
  border-color:rgba(153,186,218,.21);
}
.world-status.developing {
  color:#ddc3ad;
  border-color:rgba(215,167,129,.19);
}

.world-card-body {
  margin-top:auto;
  padding:26px 30px 30px;
}
.world-card h3 {
  font-family:Georgia,serif;
  font-size:clamp(2rem,2.5vw,2.7rem);
  font-weight:500;
  line-height:1;
  letter-spacing:-.025em;
  margin:8px 0 15px;
}
.world-card p {
  color:#cbd2da;
  max-width:560px;
  line-height:1.66;
  margin:0;
}
.world-card p em { color:#eee8db; }
.world-card-tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:22px;
}
.world-card-tags span {
  padding:6px 8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:#bfc7d0;
  font-size:.59rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.world-card .arrow,
.world-card-proof {
  display:block;
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.09);
  color:#fff;
  font-size:.82rem;
  font-weight:760;
}
.world-card-proof {
  color:#d5dbe2;
  letter-spacing:.015em;
}

/* Homepage — operating principle */
.quote-band.principle-band {
  position:relative;
  overflow:hidden;
  padding:52px 0;
  border-block:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 15% 50%,rgba(216,189,120,.06),transparent 24%),
    linear-gradient(90deg,#111928 0%,#101722 45%,#0d131b 100%);
}
.principle-band::after {
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  left:calc(50% - min(var(--shell),92vw)/2);
  width:1px;
  background:linear-gradient(transparent,rgba(216,189,120,.22),transparent);
  pointer-events:none;
}
.principle-layout {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:54px;
  align-items:center;
}
.principle-label {
  padding-left:20px;
}
.principle-label .eyebrow {
  margin-bottom:8px;
}
.principle-index {
  display:block;
  color:#7f8996;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.principle-copy blockquote {
  margin:0;
  max-width:940px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.2rem,3.7vw,4rem);
  line-height:1.05;
  letter-spacing:-.025em;
  color:#eef1f5;
}
.principle-copy blockquote em {
  color:var(--gold-soft);
  font-weight:inherit;
}
.principle-copy p {
  max-width:760px;
  margin:17px 0 0;
  color:#9fa9b5;
  font-size:.91rem;
  line-height:1.65;
}

.two-col { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); border-radius:18px; overflow:hidden; }
.stat { background:#111722; padding:28px 24px; }
.stat strong { display:block; font-family:Georgia,serif; font-size:2.3rem; font-weight:500; color:#fff; }
.stat span { color:#aab2c0; font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; }

/* Homepage — Anastasia / Book One feature */
.home-book-section {
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 48%, rgba(216,189,120,.10), transparent 26%),
    radial-gradient(circle at 24% 58%, rgba(23,63,58,.25), transparent 35%),
    linear-gradient(180deg,#121a2a,#0d1118);
}
.home-book-feature {
  display:grid;
  grid-template-columns:minmax(330px,.88fr) minmax(0,1.12fr);
  gap:84px;
  align-items:center;
}
.home-book-visual {
  position:relative;
  min-height:590px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(216,189,120,.20);
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216,189,120,.18), transparent 31%),
    radial-gradient(circle at 50% 60%, rgba(35,86,78,.48), transparent 52%),
    linear-gradient(155deg,#17251f 0%,#101923 58%,#0b1017 100%);
  box-shadow:0 34px 80px rgba(0,0,0,.28);
}
.home-book-visual::before,
.home-book-visual::after {
  content:'';
  position:absolute;
  border:1px solid rgba(216,189,120,.10);
  border-radius:50%;
  pointer-events:none;
}
.home-book-visual::before { width:78%; aspect-ratio:1; }
.home-book-visual::after { width:54%; aspect-ratio:1; }
.home-book-halo {
  position:absolute;
  width:66%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(216,189,120,.17),rgba(216,189,120,.04) 46%,transparent 72%);
  filter:blur(2px);
}
.home-book-badge {
  position:absolute;
  top:26px;
  left:26px;
  z-index:3;
  padding:8px 12px;
  border:1px solid rgba(216,189,120,.32);
  border-radius:999px;
  background:rgba(9,15,18,.66);
  color:var(--gold-soft);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
}
.home-book-cover {
  position:relative;
  z-index:2;
  width:min(390px,72%);
  filter:drop-shadow(0 28px 32px rgba(0,0,0,.46));
  transform:rotate(-1deg);
}
.home-book-copy .section-title { margin-bottom:.7rem; }
.home-book-title {
  margin:.2rem 0 1.2rem;
  color:var(--gold-soft);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.35rem,2.1vw,1.9rem);
}
.home-book-copy .lead { max-width:650px; }
.home-book-meta {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:26px 0 2px;
}
.home-book-meta span {
  padding:8px 12px;
  border:1px solid rgba(216,189,120,.24);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#d8dde5;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.home-book-storybooks {
  display:inline-block;
  margin-top:22px;
  color:var(--gold-soft);
  font-size:.88rem;
  font-weight:760;
}
.home-book-storybooks:hover { color:#fff; }

/* Storybooks */
.storybook-page { background:#efe3c4; color:#2b2a23; }
.storybook-page .site-header:not(.scrolled) { background:linear-gradient(to bottom,rgba(20,33,29,.72),transparent); }
.storybook-header.scrolled { background:rgba(18,43,39,.91); }
.storybook-header .brand-copy small { color:#d7cba9; }
.storybook-hero {
  position:relative; min-height:92vh; display:grid; align-items:center; overflow:hidden;
  background:linear-gradient(180deg,rgba(15,49,43,.20),rgba(13,36,31,.78)), url('../images/storybooks-hero.png') center/cover;
  color:#fff;
}
.storybook-hero::after { content:''; position:absolute; left:0; right:0; bottom:0; height:180px; background:linear-gradient(transparent,#efe3c4); }
.storybook-hero .shell { position:relative; z-index:2; padding:160px 0 130px; }
.storybook-hero h1 { font-family:Georgia,serif; font-weight:500; font-size:clamp(3.8rem,8vw,8rem); line-height:.95; letter-spacing:-.04em; max-width:940px; margin:12px 0 22px; text-shadow:0 3px 32px rgba(0,0,0,.38); }
.storybook-hero p { max-width:650px; font-size:1.2rem; color:#f3ead5; text-shadow:0 2px 20px rgba(0,0,0,.45); }
.storybook-kicker { display:inline-flex; padding:7px 12px; border:1px solid rgba(255,255,255,.45); border-radius:999px; font-size:.72rem; letter-spacing:.15em; text-transform:uppercase; font-weight:800; }

.parchment-panel {
  position:relative; background:#f3e7c8; border:1px solid rgba(85,69,41,.22); border-radius:18px; box-shadow:0 18px 55px rgba(59,46,24,.12); overflow:hidden;
}
.parchment-panel::before { content:''; position:absolute; inset:10px; border:1px solid rgba(157,116,44,.2); border-radius:12px; pointer-events:none; }
.story-section { padding:100px 0; }
.story-section h2 { font-family:Georgia,serif; font-weight:500; font-size:clamp(2.4rem,4.7vw,4.8rem); line-height:1; letter-spacing:-.035em; margin:.25rem 0 1rem; }
.story-section .eyebrow { color:#785a24; }
.story-section .lead { color:#5a5448; }
.book-feature { display:grid; grid-template-columns:minmax(260px,.75fr) 1.25fr; gap:70px; align-items:center; }
.book-cover { width:min(420px,100%); margin:auto; filter:drop-shadow(0 25px 28px rgba(53,38,19,.24)); }
.book-copy h2 { font-size:clamp(3rem,6vw,6.2rem); }
.book-copy .subtitle { font-family:Georgia,serif; color:#6e3f31; font-size:clamp(1.35rem,2.4vw,2rem); font-style:italic; }
.book-meta { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.book-meta span { padding:7px 11px; border:1px solid rgba(56,48,35,.22); border-radius:999px; font-size:.74rem; font-weight:750; letter-spacing:.07em; text-transform:uppercase; color:#4c483f; }

.story-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.story-card { background:#f5ead0; border:1px solid rgba(93,71,34,.2); border-radius:18px; overflow:hidden; box-shadow:0 20px 50px rgba(49,37,18,.08); }
.story-card img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.story-card div { padding:24px; }
.story-card h3 { font-family:Georgia,serif; font-weight:500; font-size:1.45rem; margin:0 0 8px; }
.story-card p { margin:0; color:#655f54; }

.edition-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.edition-intro { max-width: none; width: 100%; }
.edition-card { background:#fffaf0; border:1px solid rgba(67,55,36,.18); border-radius:18px; padding:28px; display:flex; flex-direction:column; min-height:350px; }
.edition-card.featured { border-color:#8d6c2f; box-shadow:0 18px 50px rgba(94,68,25,.12); transform:translateY(-8px); }
.edition-card .tag { font-size:.7rem; text-transform:uppercase; letter-spacing:.14em; color:#87682e; font-weight:850; }
.edition-card h3 { font-family:Georgia,serif; font-weight:500; font-size:1.75rem; margin:10px 0; }
.edition-card .pages { color:#7b7467; font-size:.9rem; }
.edition-card ul { padding-left:18px; color:#554f46; margin:18px 0 26px; }
.edition-card .btn { margin-top:auto; }
.edition-note,
.toll-goblin {
  margin: 12px 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: #71695c;
}

.toll-goblin {
  color: #6d5428;
  font-style: italic;
}

.edition-badge,
.limited-badge {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .66rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.edition-badge {
  margin-bottom: 14px;
  color: #fffaf0;
  background: #87682e;
}

.collector-card {
  min-height: auto;
}

.collector-options {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.collector-option {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(67,55,36,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.38);
}

.collector-option > div {
  display: grid;
  gap: 2px;
}

.collector-option strong {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2d2a23;
}

.collector-option span {
  font-size: .78rem;
  line-height: 1.4;
  color: #71695c;
}

.collector-option.numbered {
  border-color: rgba(141,108,47,.55);
  background: #f6e9c7;
  box-shadow: 0 10px 28px rgba(94,68,25,.10);
}

.collector-option .limited-badge {
  color: #fffaf0;
  background: #6e3f31;
  font-weight: 900;
  letter-spacing: .14em;
}

.collector-option small {
  color: #6d5428;
  font-size: .72rem;
  font-style: italic;
  text-align: center;
}

.edition-card.featured {
  position: relative;
  border-color: #8d6c2f;
  box-shadow: 0 24px 58px rgba(94,68,25,.16);
}

.edition-card.featured .btn-primary {
  box-shadow: 0 8px 22px rgba(141,108,47,.18);
}

.storykeeper-band { background:var(--forest); color:#fff; padding:90px 0; position:relative; overflow:hidden; }
.storykeeper-band::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 80% 20%,rgba(216,189,120,.16),transparent 34%); }
.storykeeper-grid { position:relative; display:grid; grid-template-columns:1fr .9fr; gap:70px; align-items:center; }
.storykeeper-mark { max-width:180px; margin-bottom:24px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-field { display:flex; flex-direction:column; gap:7px; margin-bottom:12px; }
.form-field label { font-size:.72rem; text-transform:uppercase; letter-spacing:.13em; font-weight:800; color:inherit; opacity:.75; }
.form-field input,.form-field textarea { width:100%; border:1px solid rgba(255,255,255,.24); background:rgba(255,255,255,.08); color:#fff; border-radius:10px; padding:13px 14px; outline:none; }
.form-field input:focus,.form-field textarea:focus { border-color:var(--gold-soft); box-shadow:0 0 0 3px rgba(216,189,120,.11); }
.form-field textarea { min-height:150px; resize:vertical; }
.form-status { min-height:1.3rem; margin:.8rem 0 0; color:#e6d59f; font-size:.9rem; }

/* Homepage — Story-Keeper feature */
.home-storykeeper-section {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 50%, rgba(216,189,120,.11), transparent 24%),
    radial-gradient(circle at 82% 35%, rgba(31,81,71,.34), transparent 34%),
    linear-gradient(145deg,#0f1718 0%,#13231f 48%,#0b1115 100%);
  border-top:1px solid rgba(216,189,120,.10);
  border-bottom:1px solid rgba(216,189,120,.08);
}
.home-storykeeper {
  display:grid;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
  gap:82px;
  align-items:center;
}
.home-storykeeper-mark-wrap {
  position:relative;
  min-height:420px;
  display:grid;
  place-items:center;
}
.home-storykeeper-mark-wrap::before,
.home-storykeeper-mark-wrap::after {
  content:'';
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(216,189,120,.11);
}
.home-storykeeper-mark-wrap::before { width:82%; aspect-ratio:1; }
.home-storykeeper-mark-wrap::after { width:58%; aspect-ratio:1; }
.home-storykeeper-orbit {
  position:absolute;
  width:72%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(216,189,120,.16),rgba(216,189,120,.035) 48%,transparent 72%);
}
.home-storykeeper-mark {
  position:relative;
  z-index:2;
  width:min(300px,68%);
  filter:drop-shadow(0 24px 34px rgba(0,0,0,.40));
}
.home-storykeeper-copy .section-title { margin-bottom:1rem; }
.home-storykeeper-copy .lead { max-width:690px; }
.home-storykeeper-note {
  display:flex;
  align-items:flex-start;
  gap:15px;
  max-width:680px;
  margin:27px 0 4px;
  padding:17px 19px;
  border:1px solid rgba(216,189,120,.19);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.home-storykeeper-note strong {
  flex:0 0 auto;
  color:var(--gold-soft);
}
.home-storykeeper-note span {
  color:#c4cdc8;
}
.home-storykeeper-link {
  align-self:center;
  color:var(--gold-soft);
  font-size:.88rem;
  font-weight:760;
  padding:12px 0;
}
.home-storykeeper-link:hover { color:#fff; }

/* General content */
.inner-hero { padding:165px 0 90px; background:radial-gradient(circle at 78% 0,rgba(183,146,58,.14),transparent 30%),linear-gradient(150deg,#101827,#0c1118); border-bottom:1px solid var(--line); }
.inner-hero h1 { font-size:clamp(3.3rem,7vw,6.7rem); margin:.3rem 0 1rem; }
.content-section { padding:90px 0; }
.prose { max-width:790px; }
.prose h2 { font-family:Georgia,serif; font-weight:500; font-size:2.1rem; margin-top:2.2rem; }
.prose p,.prose li { color:#cbd1db; }
.prose ul { padding-left:20px; }
.callout { padding:28px; border:1px solid var(--line); background:rgba(255,255,255,.035); border-radius:16px; margin:32px 0; }
.bio-grid { display:grid; grid-template-columns:.72fr 1.28fr; gap:65px; align-items:start; }
.bio-portrait { border-radius:20px; overflow:hidden; border:1px solid var(--line); background:#151b24; box-shadow:var(--shadow); }
.bio-portrait img { width:100%; }

/* William Ochs — author / technologist profile */
.william-hero .lead { max-width:860px; }
.william-profile-section {
  background:
    radial-gradient(circle at 92% 8%,rgba(99,130,177,.08),transparent 25%),
    linear-gradient(180deg,#0d1118,#0b1017);
}
.william-profile-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:52px;
  align-items:start;
}
.william-bio-grid {
  display:grid;
  grid-template-columns:minmax(250px,.67fr) minmax(0,1.33fr);
  gap:42px;
  align-items:start;
}
.william-bio-grid .bio-portrait {
  position:sticky;
  top:112px;
}
.william-prose {
  max-width:none;
}
.william-prose > .eyebrow {
  margin-bottom:7px;
}
.william-prose h2 {
  margin:.1rem 0 1.3rem;
  font-size:clamp(2rem,3vw,2.75rem);
}
.william-family-note {
  margin-top:1.3rem;
  padding-top:1.25rem;
  border-top:1px solid rgba(216,189,120,.15);
}
.william-story-callout {
  margin-top:30px;
  background:
    radial-gradient(circle at 90% 0,rgba(216,189,120,.07),transparent 34%),
    rgba(255,255,255,.035);
}

.william-sidebar {
  position:sticky;
  top:112px;
  display:grid;
  gap:13px;
}
.william-side-card {
  padding:21px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.032);
}
.william-side-card.current {
  border-color:rgba(216,189,120,.22);
  background:
    radial-gradient(circle at 86% 8%,rgba(216,189,120,.10),transparent 32%),
    linear-gradient(155deg,rgba(24,43,39,.72),rgba(13,19,25,.82));
}
.william-side-label {
  display:block;
  margin-bottom:10px;
  color:var(--gold-soft);
  font-size:.62rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.william-side-card h3 {
  margin:0 0 9px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.55rem;
  font-weight:500;
}
.william-side-card p {
  margin:0;
  color:#bbc4ce;
  font-size:.88rem;
  line-height:1.58;
}
.william-side-card ul {
  list-style:none;
  padding:0;
  margin:0;
}
.william-side-card > ul:not(.william-credential-list) li {
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.065);
  color:#ccd3dc;
  font-size:.82rem;
}
.william-side-card > ul:not(.william-credential-list) li:last-child {
  border-bottom:0;
}
.william-side-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:17px;
}
.william-side-tags span {
  padding:5px 7px;
  border:1px solid rgba(216,189,120,.18);
  border-radius:999px;
  color:#d8d1bd;
  font-size:.55rem;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.william-credential-list {
  display:grid;
  gap:13px;
}
.william-credential-list li {
  padding-bottom:13px;
  border-bottom:1px solid rgba(255,255,255,.065);
}
.william-credential-list li:last-child {
  padding-bottom:0;
  border-bottom:0;
}
.william-credential-list strong,
.william-credential-list span {
  display:block;
}
.william-credential-list strong {
  color:#f1ede5;
  font-size:.8rem;
}
.william-credential-list span {
  margin-top:3px;
  color:#aeb8c4;
  font-size:.72rem;
  line-height:1.45;
}
.william-side-card.compact {
  padding-bottom:17px;
}
.william-facts {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.william-facts span {
  padding:6px 8px;
  border-radius:8px;
  background:rgba(255,255,255,.035);
  color:#c7ced6;
  font-size:.69rem;
}
.william-thread-lead {
  max-width:780px;
  margin-bottom:0;
}
.william-timeline {
  max-width:980px;
}

.timeline { display:grid; gap:1px; border:1px solid var(--line); border-radius:16px; overflow:hidden; margin-top:35px; }
.timeline div { display:grid; grid-template-columns:150px 1fr; gap:25px; padding:19px 22px; background:rgba(255,255,255,.035); }
.timeline strong { color:var(--gold-soft); }
.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; }
.contact-card { padding:30px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.035); }
.contact-card a { color:var(--gold-soft); }
.contact-form .form-field input,.contact-form .form-field textarea { background:#121925; }

/* Footer */
.site-footer { padding:70px 0 28px; border-top:1px solid var(--line); background:#090d13; }
.footer-grid { display:grid; grid-template-columns:1.5fr .8fr .8fr; gap:50px; }
.site-footer .brand { margin-bottom:18px; }
.site-footer h2 { font-size:.76rem; letter-spacing:.15em; text-transform:uppercase; color:#fff; margin:0 0 16px; }
.site-footer a:not(.brand) { display:block; color:#9fa7b5; margin:8px 0; font-size:.9rem; }
.site-footer a:hover { color:#fff; }
.footer-note { color:#7f8998; max-width:300px; font-size:.9rem; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); margin-top:50px; padding-top:24px; color:#6f7886; font-size:.75rem; }
.storybook-footer { background:#17352f; border-color:rgba(255,255,255,.12); }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .7s ease,transform .7s ease; }
.reveal.revealed { opacity:1; transform:none; }

@media (max-width: 900px) {
  :root { --shell:min(100% - 30px,1180px); }
  .header-inner { height:74px; }
  .nav-toggle { display:block; z-index:3; }
  .primary-nav { position:absolute; top:74px; left:15px; right:15px; display:none; flex-direction:column; align-items:stretch; gap:0; padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(10,14,21,.97); box-shadow:var(--shadow); }
  .primary-nav.open { display:flex; }
  .primary-nav a { padding:12px 10px; }
  .hero { min-height:86vh; }
  .hero-content { padding-top:130px; }
  .hero h1 { font-size:clamp(3.6rem,16vw,6rem); }
  .section,.story-section,.content-section { padding:75px 0; }
  .section-head,.two-col,.book-feature,.storybook-grid,.bio-grid,.contact-grid { grid-template-columns:1fr; }
  .william-profile-layout { grid-template-columns:1fr; gap:42px; }
  .principle-layout { grid-template-columns:170px minmax(0,1fr); gap:35px; }
  .william-sidebar { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .william-bio-grid .bio-portrait { position:static; }
  .hero-layout { grid-template-columns:1fr; gap:42px; padding:140px 0 78px; }
  .hero-content { max-width:900px; padding-top:0; }
  .hero-title-line { white-space:normal; }
  .hero-capability-panel { max-width:720px; min-height:0; margin-top:0; }
  .hero-network { right:-6%; top:5%; width:70vw; opacity:.34; }
  .home-book-feature { grid-template-columns:1fr; gap:44px; }
  .home-storykeeper { grid-template-columns:1fr; gap:28px; }
  .home-storykeeper-mark-wrap { min-height:330px; }
  .home-storykeeper-mark { width:min(260px,60%); }
  .home-book-visual { min-height:500px; }
  .home-book-cover { width:min(350px,68%); }
  .world-grid.studio-arms-grid { grid-template-columns:1fr; }
  .world-card,.world-card.story { min-height:330px; }
  .world-card-topline { padding:23px 24px 0; }
  .world-card-body { padding:24px; }
  .stats { grid-template-columns:1fr; }
  .story-grid,.edition-grid { grid-template-columns:1fr; }
  .edition-card.featured { transform:none; }
  .storybook-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
  .storykeeper-grid { grid-template-columns:1fr; }
  .timeline div { grid-template-columns:1fr; gap:4px; }
  .william-bio-grid { grid-template-columns:1fr; gap:30px; }
  .quote-band.principle-band { padding:42px 0; }
  .principle-layout { grid-template-columns:1fr; gap:20px; }
  .principle-label { padding-left:0; }
  .principle-band::after { display:none; }
  .principle-copy blockquote { font-size:clamp(2.05rem,10vw,3rem); }
  .william-bio-grid .bio-portrait { max-width:430px; }
  .william-sidebar { grid-template-columns:1fr; }
  .brand-logo { width: 155px; }
}

@media (max-width: 560px) {
  .brand-copy strong { font-size:.75rem; }
  .hero-layout { padding:122px 0 68px; gap:34px; }
  .hero h1 { font-size:clamp(3.15rem,14.2vw,4.8rem); }
  .hero-capability-tags { gap:6px; }
  .hero-capability-tags span { font-size:.61rem; }
  .hero-note { align-items:flex-start; flex-direction:column; gap:8px; margin-top:42px; }
  .hero-capability-panel { padding:20px; border-radius:18px; }
  .hero-panel-core { padding:34px 0 23px; }
  .hero-panel-core h2 { font-size:2.35rem; }
  .hero-panel-footer { flex-direction:column; gap:5px; }
  .home-book-visual { min-height:430px; }
  .home-book-badge { top:18px; left:18px; }
  .home-book-cover { width:min(300px,76%); }
  .home-storykeeper-mark-wrap { min-height:270px; }
  .home-storykeeper-mark { width:min(230px,62%); }
  .home-storykeeper-note { flex-direction:column; gap:5px; }
  .storybook-hero .shell { padding-top:135px; }
  .storybook-hero h1 { font-size:clamp(3.4rem,16vw,5.2rem); }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:first-child { grid-column:auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; animation:none!important; }
  .reveal { opacity:1; transform:none; }
}
