/* inner.css. Built by scripts/build-site.mjs from scripts/website/inner.mjs and ask.mjs. Edit the source, not this file. */
/* The navbar: the home page's 5A (a fixed bar, the logo mark, a rule that draws as you scroll). */
.wrap { width: min(1320px, calc(100% - 112px)); margin: 0 auto; }
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; } /* see-through: site.css, "The navbar" */
/* The links sit right, beside the toggle (owner, 2026-11-28, picked in the navbar lab: N0, right-aligned like N1, no button). */
.top .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; height: 76px; }
.top .who { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); justify-self: start; }
.top .who .logo-pb { height: 46px; }
.top nav { display: flex; justify-self: end; gap: 34px; font-weight: 600; font-size: 15.5px; }
.top nav a { text-decoration: none; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--nav-u, var(--yellow)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--e-std); }
.top nav a:hover::after { transform: scaleX(1); }
.top .end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.top .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--line); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .top .rule { animation: rule linear both; animation-timeline: scroll(root); animation-range: 0 100%; }
  @keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.top nav a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 1099px) {
  .wrap { width: calc(100% - 64px); }
  .top .wrap { height: 64px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .top .who .logo-pb { height: 38px; }
  .top nav { justify-self: end; gap: 24px; font-size: 15px; }
}
@media (max-width: 819px) {
  .top .wrap { width: calc(100% - 36px); gap: 14px; }
  .top nav { gap: 16px; font-size: 14.5px; }
}
/* Phones (a stand-in until the phone-app view): the logo stands in for Home, so the bar keeps
   three links on one line. Work with me is the contact page (owner, 2026-11-27). */
@media (max-width: 559px) {
  .top nav { gap: 14px; font-size: 14px; white-space: nowrap; }
  .top nav a[href="index.html"], .top nav a[href="#top"] { display: none; }
}


/* Each section's tone (data-tone) sets its colours; a fixed layer behind it in the same tone
   grows as a circle from the left as the section comes up (the Story style of the page labs). */
:root { --gut: max(44px, 7vw); }
[data-tone="base"] { --cbg: var(--paper); --cfg: var(--ink); }
[data-tone="tint"] { --cbg: var(--soft); --cfg: var(--ink); }
[data-tone="pop"] { --cbg: var(--yellow); --cfg: var(--ink); }
[data-tone="night"] { --cbg: var(--ink); --cfg: var(--paper); }



/* Without the script each section wears its own colour; with it, the fixed layers take over. */
.a-ch { background: var(--cbg); }
.a-bgs { display: none; }
.wipes .a-bgs { display: block; } .wipes .a-ch:not([data-wipe="none"]) { background: transparent; }
.a-bgs i { position: fixed; inset: 0; z-index: 0; background: var(--cbg); }
.a-main { position: relative; z-index: 2; display: block; }
.a-ch { position: relative; min-height: 100vh; padding: 140px var(--gut) 110px; display: flex; flex-direction: column; justify-content: center; color: var(--cfg); --cmut: color-mix(in srgb, var(--cfg) 68%, var(--cbg)); }
.a-ch .label { color: var(--cfg); }
.a-ch h2 { font-size: clamp(42px, 4.2vw, 66px); letter-spacing: -.04em; line-height: .98; margin-bottom: 26px; max-width: 13ch; }
.a-ch p.body { font-size: 21px; line-height: 1.6; max-width: 34em; margin: 0 0 18px; }
.a-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; color: var(--cmut); }
.a-foot .fl { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; } .a-foot a { color: inherit; font-weight: 600; }
.a-foot .fs { width: 1.5px; background: currentColor; opacity: .35; }


/* The ask (scripts/website/ask.mjs): a yellow panel, the envelope drawing on the left, the dots
   dense at the bottom and fading out just under the email (as on the home page's disc). */
.d-ask-pn { --ay: var(--yellow, #FFEC00); --ai: var(--ink, #141414); --ap: var(--paper, #FBF9F3);
  position: relative; width: 100%; min-height: min(620px, 74vh); background: var(--ay); color: var(--ai); border: 3px solid var(--ai); box-shadow: 6px 6px 0 var(--shadow, var(--ai)); overflow: hidden; display: flex; align-items: center; box-sizing: border-box; }
/* The dots, at the owner's values (2026-11-26, from the tuner), for this panel on the inner pages
   only: the home page and everything else keep their own. --eb is the email's bottom, measured. */
.d-ask-pn { --eb: 70%; --s: -120; --f: 150; --dk: 27; --dr: 1.5; --dg: 15; }
/* The dots run 140px past the panel's foot so they can rise into place (--dy, the parallax) with
   no gap showing; the panel clips them. */
.d-ask-pn::before { content: ""; position: absolute; inset: 0 0 -140px; pointer-events: none; translate: 0 var(--dy, 0px);
  background: radial-gradient(color-mix(in srgb, var(--ai) calc(var(--dk) * 1%), transparent) calc(var(--dr) * 1px), transparent calc(var(--dr) * 1px + .5px)) 0 0 / calc(var(--dg) * 1px) calc(var(--dg) * 1px);
  -webkit-mask: linear-gradient(to bottom, transparent calc(var(--eb) + var(--s) * 1px), #000 calc(var(--eb) + var(--f) * 1px));
  mask: linear-gradient(to bottom, transparent calc(var(--eb) + var(--s) * 1px), #000 calc(var(--eb) + var(--f) * 1px)); }
.d-fig { position: absolute; left: 3%; bottom: -6%; width: min(40%, 64vh); aspect-ratio: 1100 / 1241; }
.d-fig img { width: 100%; height: auto; display: block; max-width: none; }
.d-bb { position: absolute; z-index: 2; left: 57%; top: 3%; margin: 0; width: max-content; white-space: nowrap; background: var(--ap); color: var(--ai); border: 2.5px solid var(--ai); border-radius: 28px; padding: 14px 22px 16px; font: 700 clamp(20px, 1.6vw, 25px)/1.2 var(--lf); }
.d-bb svg { position: absolute; left: 10px; top: calc(100% - 3px); width: 30px; height: 40px; overflow: visible; }
.d-bb path { fill: var(--ap); stroke: var(--ai); stroke-width: 2.5; stroke-linejoin: round; }
.d-tx { position: relative; z-index: 2; margin-left: 48%; padding: 50px 50px 50px 0; display: grid; gap: 26px; }
.d-tx h2 { font: var(--hw) clamp(56px, 5.4vw, 92px)/.92 var(--hf) !important; letter-spacing: -.05em !important; color: var(--ai); max-width: 9ch; margin: 0 !important; }
.d-email { justify-self: start; font: var(--hw) clamp(46px, 4.4vw, 76px)/1.05 var(--hf); letter-spacing: -.045em; color: var(--ai); text-decoration: none; background: linear-gradient(var(--ai), var(--ai)) 0 100% / 100% 7px no-repeat; padding-bottom: 8px; }
/* The letters hop on hover, one after another, clipped as on the home page. */
.d-email .w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; }
.d-email .c { display: inline-block; }
.d-email:hover .c { animation: d-hop .36s ease-out calc(var(--i) * 20ms); }
@keyframes d-hop { 50% { translate: 0 -20px; } }
/* Where GSAP isn't on the page, the bubble pops and the drawing rises as a transition (.io). */
.d-ask-pn.io .d-bb { scale: .3; opacity: 0; transform-origin: 8% 130%; transition: scale .55s cubic-bezier(.3,1.8,.5,1), opacity .25s; }
.d-ask-pn.io .d-fig { translate: 0 90px; rotate: -4deg; transition: translate 1s cubic-bezier(.2,.8,.2,1), rotate 1s cubic-bezier(.2,.8,.2,1); }
.d-ask-pn.io.in .d-bb { scale: 1; opacity: 1; transition-delay: .35s; }
.d-ask-pn.io.in .d-fig { translate: 0 0; rotate: 0deg; }
@media (prefers-reduced-motion: reduce) { .d-email:hover .c { animation: none; } }
@media (max-width: 819px) {
  .d-ask-pn { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .d-fig { position: relative; left: auto; bottom: auto; width: 78%; margin: 70px auto -6px; }
  .d-bb { left: 40%; top: -74px; width: auto; max-width: 58%; white-space: normal; font-size: 17px; padding: 10px 16px 12px; }
  .d-tx { margin-left: 0; padding: 34px 24px 0; gap: 18px; }
  .d-tx h2 { font-size: 46px !important; }
  .d-email { font-size: 32px; }
}
