/* daedalgames.com home: the deck an investor walks through, one message a screen. Colors, faces, buttons and the
   reveal are packages/ui/base.css; this file holds only what the page adds.
   Spacing: every gap, margin and padding is a step of the DaedalGames/coggs scale (apps/src/ui/DESIGN.md, Space: 4 px
   steps, --s1 to --s8), and what the scale does not reach is a golden step of it: the rhythm between screens is
   --s8 times phi, and every two-column split is 1 to phi. The page gutter is base.css --gutter, shared with the chrome. */
:root {
  --stone: #6B6555; /* small stone text on marble takes the namecard's darker stone, 4.6:1 against #ECE4D2 */
  --night: #0B0712;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --phi: 1.618;
  --rhythm: calc(var(--s8) * var(--phi)); /* 116.5px: the air above and below every screen of the walk */
  --block: var(--s8);                     /* from a screen's words to its figure */
  --split: var(--s8);                     /* between the two columns of a split screen */
}
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .98; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); max-width: 33em; margin: var(--s5) 0 0; text-wrap: pretty; }
mark.hl { color: inherit; background: linear-gradient(transparent 52%, color-mix(in srgb, var(--pink) 38%, transparent) 52%, color-mix(in srgb, var(--pink) 38%, transparent) 88%, transparent 88%) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s cubic-bezier(.22,1,.36,1) .2s; }
.in mark.hl, mark.hl.in { background-size: 100% 100%; }
/* The shared button keeps its 48px height (--s7); its inner spacing takes the scale on this page. */
main .btn { padding: 0 var(--s5); gap: var(--s2); }
.slide-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin: 0 0 var(--s6); color: var(--stone); }
.slide-head .section-label { margin: 0; gap: var(--s3); }
.slide { padding-block: var(--rhythm); border-top: var(--rule); }

/* World plates: every drawing on this page comes from one generator, a rule per plate, a new seed per visit. */
.world, .tree { --w-ink: var(--ink); --w-soft: var(--stone); --w-paper: var(--paper); }
.world { display: block; width: 100%; height: auto; }
.world .wl, .tree .wl { fill: none; stroke: var(--w-ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.world .wd, .tree .wd { fill: none; stroke: var(--w-soft); stroke-width: .9; stroke-dasharray: 2 2.4; }
.world .wd2, .tree .wd2 { fill: none; stroke: var(--w-soft); stroke-width: 4.5; stroke-linejoin: round; opacity: .38; }
.world .wf, .tree .wf { fill: var(--w-ink); }
.world .wp, .tree .wp { fill: var(--pink); }
.world .wc, .tree .wc { fill: var(--w-paper); stroke: var(--w-ink); stroke-width: 1; }
.world .wpk, .tree .wpk { fill: var(--pink); stroke: var(--w-ink); stroke-width: 1; }
.world .wn, .tree .wn { fill: var(--w-paper); }
.cog-spin { transform-origin: 0 0; animation: spin 26s linear infinite; }
.cog-spin.rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 01 The destination: one line goes in, the finished machine turns, the game forks into worlds past the edge.
   The words take 1 part and the scene phi parts; 68px is the chrome header (12px above a 56px bar). */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: var(--s6); align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-top: var(--s5); min-height: min(calc(100svh - 68px), 880px); }
.kicker { color: var(--stone); margin: 0 0 var(--s5); display: inline-flex; gap: var(--s2); align-items: center; }
.kicker i { width: 6px; height: 6px; background: var(--patina); display: inline-block; transform: rotate(45deg); }
.hero h1 { font-size: clamp(46px, 5.5vw, 88px); max-width: 9.4em; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero .lede { max-width: 26em; }
.cta { display: flex; gap: var(--s3) var(--s4); flex-wrap: wrap; align-items: center; margin-top: var(--s6); }
.plaque { margin: var(--s7) 0 0; padding-top: var(--s4); border-top: 1px solid var(--patina); max-width: 30em; color: var(--stone); line-height: 1.7; }
.plaque b { color: var(--ink); font-weight: 500; }
.scene { position: relative; align-self: stretch; min-height: clamp(540px, 80vh, 800px); -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%); mask-image: linear-gradient(to right, #000 90%, transparent 100%); }
.scene svg { position: absolute; inset: 0; overflow: visible; }
.tree text { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; fill: var(--stone); }
.tree text.chip { font-size: 12.5px; letter-spacing: .04em; fill: var(--ink); text-transform: none; }
.tree .line { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.22,1,.36,1) calc(.25s + var(--d) * .28s); }
.tree .line.kin { stroke: var(--pink); stroke-width: 2; }
.tree .node { fill: var(--patina); opacity: 0; transition: opacity .3s ease calc(.6s + var(--d) * .28s); }
.tree .plate { opacity: 0; transition: opacity .5s ease calc(.55s + var(--d) * .28s); }
.tree .plate .face { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.tree .plate.kin .face { stroke-width: 1.8; }
.tree .plate .cast { fill: color-mix(in srgb, var(--pink) 22%, transparent); }
.tree .cog { fill: var(--ink); }
.tree .caret { fill: var(--emerald); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.tree.drawn .line { stroke-dashoffset: 0; }
.tree.drawn .node { opacity: 1; }
.tree.drawn .plate { opacity: var(--o, 1); }

/* 02 Why now: three plinths, the third one empty. The one emerald of this screen marks the seat nobody holds. */
.why h2 { font-size: clamp(44px, 6vw, 100px); max-width: 12em; }
.plinths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7); margin: var(--block) 0 0; max-width: 980px; }
.plinths figure { margin: 0; }
.plinths svg { width: 100%; height: auto; overflow: visible; }
.plinths .st { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.plinths .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plinths .gh { fill: none; stroke: var(--stone); stroke-width: 1.2; stroke-dasharray: 3 4; }
.plinths .live { fill: var(--emerald); }
.plinths .ring { fill: none; stroke: var(--emerald); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.plinths figcaption { margin-top: var(--s3); color: var(--stone); line-height: 1.5; }
.plinths figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.01em; text-transform: none; color: var(--ink); line-height: 1.05; }
.plinths figure:last-child figcaption b { color: var(--stone); }

/* 03 Creed: the five classics take phi parts, the sentence 1. */
.creed h2 { font-size: clamp(48px, 7.4vw, 124px); max-width: 9em; }
.creed-grid { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: var(--split); margin-top: var(--block); align-items: end; }
.canon { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.canon li { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-bottom: var(--rule); font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); line-height: 1.1; }
.canon li .mono { color: var(--stone); }
.canon li .why-rule { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--stone); text-align: right; }
.canon li [data-world] { aspect-ratio: 100 / 70; border: 1px solid var(--ink); background: var(--paper); }
.creed-grid p { margin: 0; font-size: 19px; color: var(--ink-soft); }
.creed-grid strong { color: var(--ink); font-weight: 500; }

/* 04 The machine: every module is one cog of one train, the same form for each; the three painted ones are the moat.
   home.js lays the train and its labels; without it the modules read as a plain grid. */
.machine h2 { font-size: clamp(42px, 5.6vw, 92px); max-width: 12em; }
.train { position: relative; list-style: none; padding: 0; margin: var(--block) 0 0; }
.train svg { position: absolute; left: 0; top: 0; overflow: visible; }
.train .cog { fill: var(--ink); }
.train .cog.hot { fill: var(--pink); }
.train li { position: absolute; }
.train li .g { display: block; color: var(--stone); font-size: 12px; margin-bottom: var(--s1); }
.train li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.train li.hot b { color: var(--pink); }
.train li p { margin: var(--s2) 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.train.wide li { text-align: center; transform: translateX(-50%); }
.train.wide li.up { transform: translate(-50%, -100%); }
.train.laid:not(.wide) li { transform: translateY(-50%); }
.train.laid:not(.wide) li:not(.lead) .g { display: none; }
.train:not(.laid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s5); }
.train:not(.laid) li { position: static; }
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s6); margin-top: var(--block); padding: var(--s6) var(--s7); background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--s3) var(--s3) 0 color-mix(in srgb, var(--pink) 20%, transparent); }
.proof .mono { color: var(--stone); margin: 0; }
.proof .big { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.01em; }

/* 05 Founder: the claim takes 1 part, the record phi. */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: var(--split); align-items: start; }
.founder h2 { font-size: clamp(46px, 6vw, 100px); }
.dots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.dots li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s1) var(--s5); padding: var(--s4) 0; border-bottom: var(--rule); align-items: baseline; }
.dots .mono { color: var(--stone); }
.dots b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.01em; }
.dots p { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: 15px; }
.dots li:last-child b { color: var(--pink); }
.both { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--block); border: 1px solid var(--ink); background: var(--paper); }
.both div { padding: var(--s6); }
.both div + div { border-left: 1px solid var(--ink); }
.both .mono { color: var(--stone); margin: 0 0 var(--s3); }
.both p.big { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; }
.both div:last-child { background: var(--ink); color: var(--marble); }
.both div:last-child .mono { color: var(--pink2); }

/* 06 Where it goes: the night of coggs.ai, and the wall of worlds at full scale on the golden side of the screen. */
.vision { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--marble); padding-block: var(--rhythm); }
.vision .slide-head, .vision .section-label { color: var(--stone-light); }
.vision h2 { font-size: clamp(48px, 6.8vw, 116px); max-width: 8.6em; }
.vision .sub { margin: var(--s5) 0 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; max-width: 17em; color: color-mix(in srgb, var(--marble) 78%, transparent); }
.vision .copy { position: relative; z-index: 2; max-width: 780px; }
.ladder { list-style: none; margin: var(--block) 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--marble) 30%, transparent); max-width: 640px; }
.ladder li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid color-mix(in srgb, var(--marble) 16%, transparent); font-family: var(--serif); font-size: clamp(26px, 2.9vw, 40px); line-height: 1.08; }
.ladder .mono { color: var(--stone-light); }
.ladder .live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); margin-left: var(--s3); vertical-align: middle; box-shadow: 0 0 0 var(--s1) color-mix(in srgb, var(--emerald) 22%, transparent); }
.vision .root { margin: var(--s7) 0 0; max-width: 34em; font-size: 16px; color: color-mix(in srgb, var(--marble) 68%, transparent); }
.wall { position: absolute; z-index: 1; top: -8%; bottom: -8%; right: -6%; width: 61.8%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s3); align-content: center; transform: perspective(1500px) rotateY(-24deg) rotateX(3deg); transform-origin: 100% 50%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 46%); mask-image: linear-gradient(to right, transparent 0, #000 46%); pointer-events: none; }
.wall .world { --w-ink: color-mix(in srgb, var(--marble) 70%, transparent); --w-soft: color-mix(in srgb, var(--marble) 42%, transparent); --w-paper: var(--night); border: 1px solid color-mix(in srgb, var(--marble) 26%, transparent); background: color-mix(in srgb, var(--marble) 4%, transparent); transition: opacity .42s ease; }
.wall .world.kin { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 9%, transparent); --w-ink: var(--marble); }
.wall .world.roll { opacity: 0; }

/* 07 The card: the ask takes 1 part, the two cards phi. A card is 90 by 50, the print size of collateral.md. */
.card-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: var(--split); align-items: center; border-top: 0; }
.card-sec h2 { font-size: clamp(44px, 5.4vw, 88px); max-width: 8em; }
.card-sec .namenote { margin: var(--s5) 0 0; color: var(--stone); font-size: 15px; max-width: 30em; }
.cards { position: relative; display: grid; gap: var(--s5); justify-items: start; container-type: inline-size; }
.bizcard { position: relative; width: min(100%, 520px); aspect-ratio: 90 / 50; background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--s3) var(--s3) 0 color-mix(in srgb, var(--pink) 20%, transparent); padding: var(--s5); display: flex; flex-direction: column; overflow: hidden; }
.bizcard::before, .bizcard::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--ink); pointer-events: none; }
.bizcard::before { top: var(--s2); left: var(--s2); border-width: 1px 0 0 1px; }
.bizcard::after { bottom: var(--s2); right: var(--s2); border-width: 0 1px 1px 0; }
.bizcard .co { color: var(--stone); margin: 0; display: flex; justify-content: space-between; gap: var(--s3); }
.bizcard .nm { margin: auto 0 var(--s2); font-family: var(--serif); font-size: clamp(34px, 9.6cqw, 54px); line-height: 1; letter-spacing: -.02em; }
.bizcard .nm .t { color: var(--patina); }
.bizcard .chip { align-self: flex-start; padding: var(--s1) var(--s2); background: var(--pink); border: 1px solid #C42E6B; color: var(--ink); }
.bizcard dl { margin: auto 0 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s1) var(--s2); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.45; }
.bizcard dt { color: var(--patina); }
.bizcard dd { margin: 0; }
.bizcard.back { margin-left: var(--s7); box-shadow: var(--s3) var(--s3) 0 color-mix(in srgb, var(--patina) 22%, transparent); }
.bizcard.back .lock { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.bizcard.back .lock img { width: 56px; height: 56px; }
.bizcard.back .wm { font-size: clamp(28px, 7.4cqw, 40px); }
.bizcard.back .ping { position: absolute; right: 4%; bottom: -34%; width: 27%; height: auto; }
.bizcard.back .say { margin: auto 0 0; width: 66%; padding: var(--s3) var(--s4); border: 1px solid var(--ink); background: var(--marble); position: relative; font-size: clamp(12px, 3cqw, 15px); line-height: 1.35; }
.bizcard.back .say span { position: absolute; left: var(--s3); top: calc(var(--s3) * -1); padding: var(--s1) var(--s2); line-height: 1; background: var(--pink); border: 1px solid #C42E6B; color: var(--ink); }

/* Below 980px every split screen stacks and the scene follows the words. */
@media (max-width: 980px) {
  :root { --split: var(--s7); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: var(--gutter); min-height: 0; padding-top: var(--s6); }
  .hero h1 { font-size: clamp(46px, 12.4vw, 76px); }
  .hero-copy { display: contents; }
  .hero .lede { margin-top: var(--s4); }
  .hero .cta { margin-top: var(--s5); }
  .hero .plaque { order: 9; margin: 0 0 var(--s2); }
  .hero .scene { margin-top: var(--s6); }
  .scene { min-height: 0; height: 486px; -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); }
  .creed-grid, .founder-grid, .card-sec { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--s4); }
  .vision { display: flex; flex-direction: column; padding-bottom: 0; }
  .wall { order: 2; position: relative; top: auto; bottom: auto; right: auto; left: -10%; width: 120%; margin: var(--s7) 0 calc(var(--s8) * -1); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); transform: perspective(900px) rotateX(40deg); transform-origin: 50% 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%); mask-image: linear-gradient(to bottom, transparent 0, #000 42%); }
}
/* Below 760px, where the chrome header wraps, the rhythm drops one step of the ratio: --s8 between screens, --s7 inside one. */
@media (max-width: 760px) {
  :root { --rhythm: var(--s8); --block: var(--s7); }
  .slide-head { margin-bottom: var(--s5); }
  .plinths { gap: var(--s3); }
  .canon li { grid-template-columns: 40px 64px minmax(0, 1fr); gap: var(--s3); }
  .canon li .why-rule { display: none; }
  .dots li { grid-template-columns: 84px minmax(0, 1fr); gap: var(--s1) var(--s3); }
  .both { grid-template-columns: minmax(0, 1fr); }
  .both div { padding: var(--s5); }
  .both div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .proof { padding: var(--s5); }
  .vision .root { margin-top: var(--s6); }
  .train li b { font-size: 26px; }
  .train li p { font-size: 13px; margin-top: var(--s1); }
  .bizcard { padding: var(--s4); }
  .bizcard.back { margin-left: 0; }
}
/* The Korean home (ko/index.html): Hangul breaks between words, never inside one, and its display lines get the air the
   taller glyphs need. The brand faces carry no Hangul, so Korean display text takes the system Myeongjo beside them. */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
:lang(ko) .display { font-family: var(--serif), "Noto Serif KR", "Nanum Myeongjo", AppleMyungjo, Batang, serif; line-height: 1.14; letter-spacing: -.03em; }
@media (prefers-reduced-motion: reduce) {
  .cog-spin, .tree .caret, .plinths .ring { animation: none; }
  .tree .line, .tree .node, .tree .plate, mark.hl, .wall .world { transition: none; }
  mark.hl { background-size: 100% 100%; }
}
