/* Dao House Digital, the house style for everything after the Kali hero (20 Oct 2026). REFERENCE-PRINCIPLES.md:
   crimson, warm near-black and warm paper; Anton for the giants, Archivo for the rest; hairline rules; notched
   corners; grain. Three grounds that alternate down the page: black, paper, crimson. */
:root { --h-red: #e40038; --h-paper: #faf3e9; --h-ink: #201408; --h-black: #14100e; --h-gut: clamp(20px, 6vw, 115px); }

.h-sec { position: relative; padding: clamp(90px, 16vh, 170px) 0; overflow: hidden; }
.h--black { background: var(--h-black); color: var(--h-paper); }
.h--paper { background: var(--h-paper); color: var(--h-ink); }
.h--red { background: var(--h-red); color: var(--h-paper); }
.h-sec::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.h--black::after { mix-blend-mode: screen; opacity: .07; }
.h-wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 var(--h-gut); }

/* the kicker: a number and a name on a hairline */
.h-kick { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(24px, 4vh, 44px); font: 800 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; }
.h-kick span { color: var(--h-red); }
.h--red .h-kick span { color: var(--h-ink); }
.h-kick::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

.h-big { margin: 0 0 clamp(36px, 6vh, 64px); font: 400 clamp(64px, 9vw, 168px)/.86 var(--big); text-transform: uppercase; letter-spacing: -.01em; }
.h-giant { margin: 0 0 clamp(36px, 6vh, 70px); font: 400 clamp(110px, 21vw, 360px)/.78 var(--big); text-transform: uppercase; letter-spacing: -.02em; color: var(--h-red); }
.h-lede { margin: 0; font: 600 clamp(18px, 1.6vw, 23px)/1.45 var(--head); max-width: 34ch; }
.h-note { margin: 28px 0 0; font: 700 14px/1.4 var(--head); opacity: .8; }

/* 2 studio: the lede beside a ruled record of facts */
.h-studio .h-big { color: var(--h-paper); }
.h-studio .h-big::first-line { color: var(--h-red); }
.h-studio__cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.h-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid currentColor; }
.h-facts div { padding: 20px 18px 22px 0; border-bottom: 1px solid rgba(250, 243, 233, .4); }
.h-facts div:nth-child(odd) { border-right: 1px solid rgba(250, 243, 233, .4); }
.h-facts div:nth-child(even) { padding-left: 22px; }
.h-facts dt { font: 800 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--h-red); margin-bottom: 10px; }
.h-facts dd { margin: 0; font: 400 clamp(24px, 2.3vw, 34px)/1 var(--big); text-transform: uppercase; }

/* 3 make: four ruled cards with notched corners */
.h-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-card { position: relative; padding: 26px 24px 28px; outline: 1px solid var(--h-ink); outline-offset: -10px; background: var(--h-paper); transition: background .35s, color .35s; }
.h-card::before, .h-card::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--h-paper); }
.h-card::before { left: 0; top: 0; } .h-card::after { right: 0; bottom: 0; }
.h-card__top { display: flex; justify-content: space-between; font: 800 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--h-red); padding: 6px 4px 0; }
.h-card h3 { margin: 56px 4px 12px; font: 400 clamp(40px, 3.6vw, 60px)/.88 var(--big); text-transform: uppercase; }
.h-card p { margin: 0 4px 22px; font: 600 16px/1.4 var(--head); min-height: 2.8em; }
.h-card ul { list-style: none; margin: 0 4px; padding: 0; border-top: 1px solid currentColor; }
.h-card li { font: 700 13.5px/1.3 var(--head); padding: 10px 0; border-bottom: 1px solid rgba(32, 20, 8, .3); }
.h-card:hover { background: var(--h-red); color: var(--h-paper); outline-color: var(--h-paper); }
.h-card:hover .h-card__top { color: var(--h-paper); }
.h-card:hover li { border-bottom-color: rgba(250, 243, 233, .45); }

/* 4 how: four steps on crimson, joined by a line that draws through them */
.h-how .h-big { color: var(--h-paper); }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; border-top: 1px solid rgba(250, 243, 233, .5); }
.h-steps::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--h-paper); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.h-steps li { padding: 28px 24px 0 0; }
.h-steps__n { display: block; font: 400 clamp(60px, 6vw, 104px)/.8 var(--big); color: var(--h-ink); margin-bottom: 22px; }
.h-steps b { display: block; font: 400 clamp(28px, 2.6vw, 40px)/1 var(--big); text-transform: uppercase; margin-bottom: 10px; }
.h-steps p { margin: 0; font: 600 16px/1.45 var(--head); max-width: 24ch; }

/* 5 work: a ruled index; the open row shows the site */
.h-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--h-ink); }
.h-row { border-bottom: 1px solid var(--h-ink); }
.h-row__head { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 18px; padding: 22px 0; }
.h-row__head:focus-visible { outline: 2px solid var(--h-red); outline-offset: 4px; }
.h-row__n { font: 800 12px/1 var(--head); letter-spacing: .14em; color: var(--h-red); }
.h-row__head b { font: 400 clamp(38px, 5.2vw, 88px)/.9 var(--big); text-transform: uppercase; transition: color .3s, transform .4s; }
.h-row__head:hover b { color: var(--h-red); transform: translateX(10px); }
.h-row__s { font: 800 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.h-row__head i { position: relative; width: 26px; height: 26px; justify-self: end; }
.h-row__head i::before, .h-row__head i::after { content: ""; position: absolute; left: 0; top: 12px; width: 26px; height: 2px; background: currentColor; transition: transform .35s; }
.h-row__head i::after { transform: rotate(90deg); }
.h-row.is-open .h-row__head i::after { transform: rotate(0deg); }
.h-row__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; overflow: hidden; height: 0; }
.h-row.is-open .h-row__body { height: auto; padding: 0 0 30px; }
.h-row__body img { width: 100%; display: block; outline: 1px solid var(--h-ink); }
.h-row__body p { margin: 0; font: 600 18px/1.45 var(--head); max-width: 30ch; }

/* 6 begin: DAO, its O the two koi joined */
.h-dao { display: flex; align-items: center; margin: 0 0 clamp(30px, 5vh, 60px); font: 400 clamp(150px, 28vw, 470px)/.78 var(--big); text-transform: uppercase; letter-spacing: -.02em; color: var(--h-paper); }
.h-dao__o { position: relative; display: inline-block; width: .82em; height: .82em; margin-left: .06em; }
.h-dao__koi { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.h-begin__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(250, 243, 233, .4); }
.h-mail { font: 400 clamp(30px, 4vw, 64px)/1 var(--big); text-transform: uppercase; color: var(--h-red); text-decoration: none; border-bottom: 2px solid currentColor; }
.h-mail:hover { color: var(--h-paper); }
.h-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(70px, 12vh, 130px); padding-top: 22px; border-top: 1px solid rgba(250, 243, 233, .4); font: 800 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }

/* the koi: fixed over the page, swimming as you scroll; hidden until the hero is behind us */
.koi { position: fixed; inset: 0; pointer-events: none; z-index: 30; display: none; }
html.motion .koi { display: block; }
.koi__fish { position: absolute; left: 0; top: 0; width: clamp(120px, 13vw, 210px); height: auto; will-change: transform; opacity: 0; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18)); }
html.motion .h-dao__koi { opacity: 0; }

@media (max-width: 900px) {
  .h-studio__cols { grid-template-columns: 1fr; }
  .h-cards { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .h-row__body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .h-cards { grid-template-columns: 1fr; }
  .h-card h3 { margin-top: 34px; }
  .h-facts { grid-template-columns: 1fr; }
  .h-facts div:nth-child(odd) { border-right: 0; } .h-facts div:nth-child(even) { padding-left: 0; }
  .h-steps { grid-template-columns: 1fr; }
  .h-row__head { grid-template-columns: 36px 1fr 30px; } .h-row__s { display: none; }
  .koi__fish { width: 96px; }
}
/* the O sits on a paper disc, so the black koi reads on the black ground */
.h-dao__o::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: var(--h-paper); transform: scale(var(--disc, 1)); }
html.motion .h-dao__o::before { transform: scale(var(--disc, 0)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
html.motion .h-dao__o.is-joined::before { --disc: 1; }
/* make, refined (20 Oct): two by two, each card an emblem beside its words */
.h-cards { grid-template-columns: 1fr 1fr; gap: 22px; }
.h-card { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; grid-template-rows: auto 1fr; column-gap: 30px; padding: 30px 32px 32px; }
.h-card__top { grid-column: 1 / -1; margin-bottom: 18px; }
.h-card__em { width: 100%; max-height: 240px; object-fit: contain; align-self: center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.h-card:hover .h-card__em { transform: scale(1.06) rotate(-2deg); }
.h-card h3 { margin: 6px 0 12px; font-size: clamp(42px, 4vw, 70px); }
.h-card p { margin: 0 0 20px; min-height: 0; }
.h-card ul { margin: 0; }
@media (max-width: 900px) { .h-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .h-card { grid-template-columns: 1fr; padding: 24px 22px 26px; } .h-card__em { max-height: 170px; margin-bottom: 18px; } }
.h-card:hover { background: var(--h-paper); color: var(--h-ink); outline-color: var(--h-red); }
.h-card:hover .h-card__top { color: var(--h-red); }
.h-card:hover h3 { color: var(--h-red); }
.h-card:hover li { border-bottom-color: rgba(32, 20, 8, .3); }
.koi__pond { position: absolute; inset: 0; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .16)); }
/* the emblems are gone (Joe, 20 Oct): a big crimson numeral holds the card's left side instead */
.h-card__num { align-self: start; font: 400 clamp(120px, 12vw, 210px)/.78 var(--big); color: var(--h-red); letter-spacing: -.02em; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.h-card:hover .h-card__num { transform: translateY(-6px); }
@media (max-width: 560px) { .h-card__num { font-size: 110px; margin-bottom: 14px; } }
/* how we work: the step labels are times, not numerals (the cards above own I to IV) */
.h-steps__n { font-size: clamp(34px, 3.4vw, 58px); line-height: 1; white-space: nowrap; }
.h-howtag { margin: 26px 0 0; }

/* the landing: the studio sits under the last 100vh of the Kali runway, behind the hero; the hero opens a hole the
   shape of her third eye, and you fall through it into the studio as it rises into place */
.stack { background: var(--h-black); }
.hero { z-index: 2; }
.h-studio { margin-top: -100vh; margin-top: -100svh; z-index: 1; }
.hero.is-through { visibility: hidden; }
.h-steps__n { text-transform: uppercase; }
/* the koi swim behind the words: the pond sits over the section grounds but under their content */
.koi { z-index: 1; }
.h-wrap { z-index: 2; }
.h-studio { z-index: auto; }
/* no disc behind the yin-yang: a fine paper ring frames it instead */
.h-dao__o::before { background: none; box-shadow: inset 0 0 0 2px rgba(250, 243, 233, .55); inset: -2%; }
/* floating lotus: on the water of each section, behind the words, half off the edge */
.h-lotus { position: absolute; z-index: 1; height: auto; min-width: 110px; pointer-events: none; transform: rotate(var(--rot, 0deg)); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .18)); }
@media (max-width: 560px) { .h-lotus { opacity: .85; } }
