
/* ─────────────────────────────────────────────
   tokens
   ───────────────────────────────────────────── */
:root{
  --paper:#EFE9DE;
  --ink:#1B1815;
  --soft:#6E6459;
  --accent:#3A2410;
  --rule:rgba(27,24,21,.18);

  --home:#2B2826;          /* homepage panel */
  --night:#2B2826;         /* sidebar, menu overlay, Chapter II */
  --night-text:#EDE8E0;
  --night-soft:#9C948B;
  --night-accent:#D8C7A6;
  --copper:#DD9F68;


  --bar:clamp(58px,5.5vw,88px);
  --gutter:clamp(1.5rem,3.5vw,4rem);
  --measure:38ch;

  --sans:"Bricolage Grotesque","Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(1rem,.95rem + .2vw,1.075rem);
  line-height:1.55;
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,p,figure,figcaption,blockquote,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
.sidebar :focus-visible,.menu-panel :focus-visible{outline-color:var(--night-accent)}

/* ─────────────────────────────────────────────
   sidebar
   ───────────────────────────────────────────── */
.sidebar{
  position:fixed;z-index:60;inset:0 auto 0 0;
  width:var(--bar);
  background:var(--night);color:var(--night-text);
  display:flex;flex-direction:column;align-items:center;
  padding-bottom:1.25rem;
}
.menu{
  width:100%;height:var(--bar);
  display:grid;place-content:center;gap:5px;
  border-bottom:1px solid rgba(237,232,224,.18);
}
.menu span{
  display:block;width:20px;height:1px;background:currentColor;
  transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .3s ease;
}
/* open state collapses the icon to the single rule shown in the reference */
.menu[aria-expanded="true"] span:nth-child(2),
.menu[aria-expanded="true"] span:nth-child(3){opacity:0;transform:translateY(-6px)}

.vtext{writing-mode:vertical-rl;transform:rotate(180deg)}
.side-label{
  margin-top:1.75rem;font-size:.85rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--night-soft);
  transition:color .3s ease;
}
.side-label:hover{font-weight:700;color:var(--night-text)}
.wordmark{margin:auto 0;font-size:clamp(.9rem,1.1vw,1.1rem);font-weight:300;letter-spacing:.08em;
  color:#DD9F68}
.side-foot{font-size:.7rem;letter-spacing:.1em;color:var(--night-soft)}

/* ─────────────────────────────────────────────
   full-page menu
   ───────────────────────────────────────────── */
.menu-panel{
  position:fixed;z-index:55;inset:0 0 0 var(--bar);
  background:var(--night);color:var(--night-text);
  padding:var(--gutter);
  display:grid;grid-template-rows:auto 1fr auto;gap:2rem;
  transform:translateX(-101%);visibility:hidden;
  transition:transform .7s cubic-bezier(.76,0,.24,1),visibility 0s linear .7s;
}
.menu-panel[data-open="true"]{
  transform:none;visibility:visible;
  transition:transform .7s cubic-bezier(.76,0,.24,1),visibility 0s;
}
.menu-top{display:flex;justify-content:flex-end;align-items:flex-start}
.menu-close{font-size:.85rem;letter-spacing:.16em;color:var(--night-text)}
.menu-close:hover{color:var(--night-accent)}

.menu-list{align-self:center;display:grid}
.menu-list a{
  display:flex;align-items:baseline;gap:clamp(.75rem,2vw,2rem);
  font-size:clamp(2.25rem,7.5vw,6.25rem);
  font-weight:250;line-height:1.02;letter-spacing:-.035em;
  opacity:.26;transition:opacity .4s ease;
}
.menu-list li.on a{opacity:1}
.menu-list:hover li a{opacity:.26}
.menu-list:hover li a:hover{opacity:1}
.menu-list a:focus-visible{opacity:1}
.menu-list .n{font-size:.22em;letter-spacing:0;opacity:.55;flex:0 0 auto}

.menu-foot{display:flex;justify-content:flex-end;gap:2rem;font-size:.82rem;color:var(--night-soft)}
.menu-foot a:hover{color:var(--night-text)}

/* ─────────────────────────────────────────────
   horizontal engine
   ───────────────────────────────────────────── */
.viewport{position:fixed;z-index:10;inset:0 0 0 var(--bar);overflow:hidden}
.track{display:flex;align-items:stretch;height:100svh;width:max-content;will-change:transform}
.spacer{width:1px;pointer-events:none}      /* height set by JS = scroll length */

.panel[hidden]{display:none}
.panel{
  flex:0 0 auto;
  width:calc(100vw - var(--bar));
  min-width:660px;
  height:100svh;
  padding:var(--gutter);
  display:flex;flex-direction:column;justify-content:center;
  border-right:1px solid var(--rule);
  position:relative;
}
/* Programs keeps a Home button in its top-right corner */
.panel-corner{
  position:absolute;z-index:2;
  top:var(--gutter);right:var(--gutter);
  display:flex;flex-direction:column;align-items:flex-end;gap:.85rem;
}
.btn-sm{padding:.5rem 1rem;font-size:.78rem}
.dark .btn-ghost{border-color:var(--night-text);color:var(--night-text)}
.dark .btn-ghost:hover{background:var(--night-text);color:var(--home)}

.panel-wide{width:calc((100vw - var(--bar)) * 1.3);min-width:940px}
.dark{
  background:var(--home);color:var(--night-text);
  --soft:var(--night-soft);--accent:var(--night-accent);--rule:rgba(237,232,224,.18);
}
.track > .panel:last-child{border-right:0}

/* floating chrome */
.ticker,.ticker-rule{
  position:fixed;z-index:40;
  color:#14100B;pointer-events:none;
}
/* invert the chrome over the dark panels, black over the light ones */
body.on-dark .ticker,body.on-dark .ticker-rule,
body.on-dark .clock{color:#fff;mix-blend-mode:difference}
.ticker{
  right:var(--gutter);bottom:var(--gutter);
  width:min(520px,44vw);overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
}
.ticker-track{display:flex;gap:1.6rem;width:max-content;font-size:.78rem;will-change:transform}
.ticker-track span{opacity:.28;transition:opacity .3s ease}
.ticker-track span.on{opacity:1}
.ticker-rule{
  right:var(--gutter);bottom:calc(var(--gutter) + 1.9rem);
  width:min(520px,44vw);height:1px;background:currentColor;opacity:.28;
}
.ticker-rule::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--progress,0%);background:currentColor}
.clock{
  position:fixed;z-index:40;
  left:calc(var(--bar) + var(--gutter));bottom:var(--gutter);
  display:grid;gap:.15rem;font-size:.78rem;line-height:1.35;
  color:#14100B;pointer-events:none;
}

/* ─────────────────────────────────────────────
   hero
   ───────────────────────────────────────────── */
.hero{
  background:var(--home);color:var(--night-text);
  --soft:var(--night-soft);--accent:var(--night-accent);--rule:rgba(237,232,224,.18);
  display:grid;align-content:center;
  grid-template-columns:minmax(0,1fr) minmax(0,38%);
  grid-template-rows:auto;
  gap:clamp(1.5rem,3vw,3.5rem);
  padding-top:calc(var(--gutter) + .5rem);
}
.hero-name{
  grid-column:1;grid-row:1;align-self:center;
  font-size:clamp(3.5rem,10vw,11rem);
  font-weight:250;line-height:.92;letter-spacing:-.035em;
  font-variation-settings:"opsz" 48;
}
.hero-name .line{display:block;overflow:hidden;padding-bottom:.2em}
.hero-name .line > span{display:block;transform:translateY(135%)}
.hero-name .line:nth-child(2){padding-left:.14em}
.hero-name em{font-style:normal;font-weight:600}
.hero-side{
  grid-column:2;grid-row:1;align-self:center;justify-self:end;
  display:flex;flex-direction:column;align-items:flex-end;
  gap:clamp(1rem,2.5vh,1.75rem);
}
.hero-lede{
  max-width:34ch;opacity:0;
  font-size:clamp(1.2rem,1.7vw,1.62rem);line-height:1.45;font-weight:300;
}
.hero-lede strong{
  font-size:1.6em;font-weight:600;letter-spacing:-.025em;
  white-space:nowrap;
}
.loaded .hero-name .line > span{transform:translateY(0);transition:transform 1.1s cubic-bezier(.22,1,.36,1)}
.loaded .hero-name .line:nth-child(2) > span{transition-delay:.1s}
.loaded .hero-lede{opacity:1;transition:opacity .8s ease .55s}

.chapter-head{display:flex;gap:1.5rem;align-items:baseline;padding-bottom:clamp(1.75rem,4vh,3rem)}
.chapter-head h2{font-size:clamp(1.75rem,3.5vw,3rem);font-weight:300;letter-spacing:-.02em;line-height:1.05}
.chapter-head h2.strong{font-weight:700}

/* ─────────────────────────────────────────────
   Chapter I
   ───────────────────────────────────────────── */
#ch1{
  display:grid;align-content:center;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:clamp(1.25rem,2vw,2rem);
}
#ch1 .chapter-head{grid-column:1;grid-row:1}
#ch1 .intro-copy{grid-column:1;grid-row:2}
#ch1 .portrait{grid-column:2;grid-row:1 / span 2}
.intro{display:contents}
.portrait{
  position:relative;overflow:hidden;
  align-self:stretch;min-height:clamp(320px,46vh,520px);
  display:flex;align-items:center;
}
.portrait img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:62% center;
}
/* keeps the cream line readable over the photo's left edge */
.portrait::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,9,14,.72),rgba(8,9,14,.25) 45%,transparent 70%);
}
.portrait figcaption{
  position:relative;z-index:1;
  padding:1.5rem;max-width:none;
  color:#EDE8E0;font-weight:700;line-height:1.25;letter-spacing:-.01em;
  font-size:clamp(1.1rem,1.5vw,1.4rem);
}
.intro-copy{flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(1.25rem,2.5vh,2rem)}
.intro-copy p{max-width:none}
.intro-copy .muted{color:var(--soft)}
blockquote{font-size:1em;font-weight:700;line-height:1.5;max-width:none}
.link{display:inline-block;align-self:flex-start;padding-bottom:.15rem;border-bottom:1px solid currentColor;color:var(--accent)}

/* ─────────────────────────────────────────────
   Chapter II — program list
   ───────────────────────────────────────────── */
.work{border-top:1px solid var(--rule)}
.work-row{
  display:grid;grid-template-columns:clamp(26rem,38vw,42rem) minmax(0,1fr) 7rem;gap:1.5rem;
  align-items:baseline;padding:clamp(.4rem,1vh,.75rem) 0;
  border-bottom:1px solid var(--rule);
  transition:padding-left .5s cubic-bezier(.22,1,.36,1),opacity .35s ease;
}
.work-title{font-size:clamp(1rem,1.6vw,1.5rem);font-weight:300;letter-spacing:-.025em;line-height:1.15}
.work-note,.work-level{font-size:.82rem;color:var(--soft)}
.work-note{width:min(100%,25.5rem);margin-inline:auto;text-align:left}
.work-level{text-align:right}
@media (hover:hover){
  .work:hover .work-row{opacity:.35}
  .work:hover .work-row:hover{opacity:1;padding-left:1.25rem}
}
.work-foot{padding-top:1.25rem;font-size:.82rem;color:var(--soft)}




/* ─────────────────────────────────────────────
   end panel
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   program pages (programs/*.html) — vertical, not horizontal
   ───────────────────────────────────────────── */
.course{
  margin-left:var(--bar);
  padding:clamp(3rem,8vh,6rem) var(--gutter) calc(var(--gutter) + 3rem);
  display:grid;gap:clamp(2rem,5vh,3.5rem);max-width:76rem;
}
.course-head{display:grid;gap:1rem}
.course .meta{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.course h1{
  font-size:clamp(2.25rem,6vw,4.5rem);font-weight:300;
  letter-spacing:-.03em;line-height:1.02;max-width:20ch;
}
.course .sub{font-size:clamp(1.05rem,1.5vw,1.35rem);max-width:56ch}
.course-block{display:grid;gap:1.25rem}
.course-block h2{
  font-size:1.1rem;font-weight:700;letter-spacing:-.01em;
  padding-bottom:.75rem;border-bottom:1px solid var(--rule);
}
.modules{display:grid;gap:1.35rem;counter-reset:m}
.modules li{position:relative;display:grid;gap:.3rem;padding-left:2.75rem;counter-increment:m}
.modules li::before{
  content:counter(m,decimal-leading-zero);
  position:absolute;left:0;top:.2rem;font-size:.78rem;color:var(--soft);
}
.modules h3{font-size:1.05rem;font-weight:600;letter-spacing:-.01em}
.modules p{color:var(--soft);max-width:62ch}
.ticks{display:grid;gap:.6rem}
.ticks li{position:relative;padding-left:1.35rem;color:var(--soft)}
.ticks li::before{
  content:"";position:absolute;left:0;top:.65em;
  width:.55rem;height:1px;background:currentColor;
}
.course-cols{
  display:grid;gap:clamp(2rem,4vw,3.5rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));
}
.course-note{
  font-size:.85rem;color:var(--soft);max-width:60ch;
  padding-top:1.25rem;border-top:1px solid var(--rule);
}
.course-nav{
  display:flex;flex-wrap:wrap;gap:1rem;font-size:.9rem;
  padding-top:1.5rem;border-top:1px solid var(--rule);
}

/* ─────────────────────────────────────────────
   Desk Drawers — hover describes the drawer, click opens it
   ───────────────────────────────────────────── */
.drawers{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:3px;background:var(--ink);border:3px solid var(--ink);
}
.drawer{
  position:relative;display:block;overflow:hidden;
  aspect-ratio:1.55/1;min-height:0;
  background:var(--home);
  -webkit-tap-highlight-color:transparent;
}

/* the drawer front — stays shut at all times */
.drawer-front{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#D3C7B8 0%,#C4B7A7 52%,#AEA192 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -3px 8px rgba(27,24,21,.22);
  transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .45s ease;
}
.drawer-front::before{
  content:"";position:absolute;
  width:clamp(54px,6vw,96px);height:clamp(16px,1.8vw,24px);border-radius:999px;
  background:rgba(27,24,21,.13);
  box-shadow:inset 0 1px 2px rgba(27,24,21,.28);
}
.drawer-front::after{
  content:"";position:relative;
  width:clamp(42px,4.8vw,80px);height:clamp(7px,.8vw,11px);border-radius:999px;
  background:linear-gradient(180deg,#F2CDA2 0%,#DD9F68 48%,#A2703E 100%);
  box-shadow:0 2px 3px rgba(27,24,21,.45),inset 0 1px 0 rgba(255,255,255,.55);
}

/* what the drawer is about — fades over the closed front on hover */
.drawer-label{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;justify-content:center;gap:.3rem;
  padding:clamp(.85rem,1.3vw,1.4rem);
  background:rgba(20,17,14,.88);color:var(--paper);
  opacity:0;transition:opacity .28s ease;
}
.drawer-label b{font-size:clamp(.85rem,1.05vw,1.15rem);font-weight:600;letter-spacing:-.01em}
.drawer-label em{
  font-style:normal;font-size:clamp(.65rem,.78vw,.86rem);line-height:1.4;
  color:rgba(239,233,222,.72);
}
.drawer-label i{
  font-style:normal;font-size:.72rem;letter-spacing:.1em;color:var(--copper);margin-top:.15rem;
}
.drawer.is-peek .drawer-label{opacity:1}

/* the contents, revealed when the drawer is clicked open */
.drawer-inside{
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:flex-start;gap:.22rem;
  padding:clamp(.7rem,1.05vw,1.05rem) clamp(.8rem,1.2vw,1.35rem) 0;
  color:var(--night-text);
  opacity:0;transition:opacity .3s ease .15s;
}
.drawer-inside b{font-size:clamp(.8rem,.98vw,1.08rem);font-weight:600;margin-bottom:.28rem}
.drawer-inside em{
  position:relative;font-style:normal;padding-left:.75rem;
  font-size:clamp(.6rem,.72vw,.8rem);line-height:1.45;color:var(--night-soft);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.drawer-inside em::before{
  content:"";position:absolute;left:0;top:.68em;width:.4rem;height:1px;background:currentColor;
}
.drawer-inside .more{padding-left:0;color:var(--copper);margin-top:.15rem}
.drawer-inside .more::before{display:none}

.drawer.is-open .drawer-front{
  transform:translateY(74%);
  box-shadow:0 -14px 22px rgba(27,24,21,.45),inset 0 1px 0 rgba(255,255,255,.45);
}
.drawer.is-open .drawer-inside{opacity:1}
.drawer.is-open .drawer-label{opacity:0}

/* counts down the three seconds before the page opens */
.drawer-timer{
  position:absolute;left:0;bottom:0;z-index:3;
  height:3px;width:0;background:var(--copper);
}
.drawer.is-open .drawer-timer{width:100%;transition:width 3s linear}
.drawer:focus-visible{outline:2px solid var(--copper);outline-offset:-2px}

/* ─────────────────────────────────────────────
   About us — oversized headline, profile card alongside
   ───────────────────────────────────────────── */
/* the panel matches the homepage; the content sits on an off-white sheet */
.about-sheet{
  background:var(--paper);color:var(--ink);
  --soft:#6E6459;--accent:#3A2410;--rule:rgba(27,24,21,.18);
  padding:clamp(2rem,3.5vw,4rem);
  box-shadow:0 30px 70px rgba(0,0,0,.38);
}
.about{
  display:grid;align-items:start;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:clamp(2.5rem,5.5vw,6rem);
  row-gap:clamp(1.25rem,3vh,2rem);
}
.about-title{
  grid-column:1;grid-row:1 / span 2;align-self:center;
  font-size:clamp(3.25rem,9vw,8.5rem);font-weight:700;
  line-height:.86;letter-spacing:-.05em;max-width:6ch;
}

/* avatar, name and LinkedIn, top right */
.about-id{
  grid-column:2;grid-row:1;justify-self:start;
  display:flex;align-items:center;gap:clamp(.85rem,1.4vw,1.35rem);
}
.about-avatar{
  width:clamp(64px,7vw,104px);aspect-ratio:1;border-radius:50%;
  overflow:hidden;flex:0 0 auto;
  box-shadow:0 6px 18px rgba(27,24,21,.28);
}
.about-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.about-id-text{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}
.about-name{font-size:clamp(1.05rem,1.5vw,1.5rem);font-weight:600;letter-spacing:-.015em}
.about-linkedin{
  display:inline-flex;width:clamp(22px,2.2vw,28px);aspect-ratio:1;
  color:var(--soft);transition:color .25s ease;
}
.about-linkedin:hover{color:var(--accent)}
.about-linkedin svg{width:100%;height:100%;display:block;fill:currentColor}

/* the copy sits under the logo, in the same column */
.about-main{grid-column:2;grid-row:2;width:max-content;max-width:100%}
.about-copy{
  max-width:none;color:var(--soft);
  font-size:clamp(.8rem,1vw,1.3rem);line-height:1.55;
}
/* one sentence per line, as specified */
.about-copy-set span{display:block;white-space:nowrap}
/* the following paragraph wraps to the same width, balanced across its lines */
.about-copy-wrap{text-wrap:balance}
.about-copy + .about-copy{margin-top:1rem}
.about-actions{margin-top:clamp(1.5rem,3vh,2.25rem);display:flex;flex-wrap:wrap;gap:1rem}

@media (max-width:900px){
  .about{grid-template-columns:1fr}
  .about-title{grid-column:1;grid-row:1}
  .about-id{grid-column:1;grid-row:2}
  .about-main{grid-column:1;grid-row:3;width:auto}
  .about-copy-set span{white-space:normal}
}

/* buttons */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  padding:.85rem 1.5rem;font-size:.9rem;font-weight:500;
  border:1px solid var(--ink);
  transition:background .3s ease,color .3s ease;
}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:var(--home)}
.btn-ghost{background:transparent;color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:var(--paper)}
/* buy — the primary commercial action, deliberately the loudest button */
.btn-buy{
  background:#AC6F00;color:#FFFFFF;border-color:#AC6F00;
  font-size:1.2rem;font-weight:700;padding:.95rem 1.9rem;letter-spacing:-.01em;
}
.btn-buy:hover{background:#8C5A00;border-color:#8C5A00}
.btn-buy:focus-visible{outline:2px solid #AC6F00;outline-offset:3px}

/* decorative art on a course page — fades into the page on its left edge */
.course.has-art{max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.course.has-art > *{grid-column:1}
.course.has-art > .course-block-wide{grid-column:1 / -1}
.course.has-art > .course-head{grid-row:1}
.course.has-art > .course-art{grid-column:2;grid-row:1;width:100%}
.course-art{margin-left:auto;width:min(100%,44rem)}
.course-art img{display:block;width:100%;height:auto}
@media (max-width:900px){
  .course.has-art{grid-template-columns:1fr}
  .course.has-art > .course-art{grid-column:1;grid-row:auto}
  .course-art{width:100%}
  .course-nav .btn{flex:1 1 14rem;justify-content:center}
}

/* course detail, shown over the page so it works served or standalone */
.course-overlay{
  position:fixed;z-index:70;inset:0 0 0 var(--bar);
  background:var(--paper);color:var(--ink);
  overflow-y:auto;overscroll-behavior:contain;
  transform:translateY(101%);visibility:hidden;
  transition:transform .6s cubic-bezier(.76,0,.24,1),visibility 0s linear .6s;
}
.course-overlay[data-open="true"]{
  transform:none;visibility:visible;
  transition:transform .6s cubic-bezier(.76,0,.24,1),visibility 0s;
}
.course-overlay .course{margin-left:0}
/* the close button sits top-right, so art in the overlay starts lower */
.course-overlay .course-art{margin-top:clamp(1.75rem,3.5vh,3rem)}
.course-close{
  position:absolute;z-index:2;top:var(--gutter);right:var(--gutter);
  font-size:.85rem;letter-spacing:.16em;color:var(--soft);
}
.course-close:hover{color:var(--ink)}
@media (max-width:900px){
  .course-overlay{inset:var(--bar) 0 0 0}
}

/* ─────────────────────────────────────────────
   narrow screens — vertical stacking
   ───────────────────────────────────────────── */
@media (max-width:900px){
  :root{--bar:52px}
  body{padding-top:var(--bar)}
  .sidebar{inset:0 0 auto 0;width:auto;height:var(--bar);flex-direction:row;align-items:center;padding:0}
  .menu{width:var(--bar);height:100%;border-bottom:0;border-right:1px solid rgba(237,232,224,.18)}
  .vtext{writing-mode:horizontal-tb;transform:none}
  .side-label{margin:0 0 0 1rem}
  .wordmark{margin:0 0 0 auto;padding-right:1rem}
  .side-foot{display:none}
  .menu-panel{inset:var(--bar) 0 0 0;transform:translateY(-101%)}
  .menu-panel[data-open="true"]{transform:none}
  .viewport{position:static;overflow:visible}
  .track{display:block;height:auto;width:auto;transform:none !important}
  .spacer{display:none}
  .panel{
    width:auto;min-width:0;height:auto;
    border-right:0;border-bottom:1px solid var(--rule);
    padding-block:clamp(4rem,10vh,7rem);
  }
  .panel-wide,.panel-wider{width:auto;min-width:0}
  .hero{
    min-height:80svh;
    grid-template-columns:1fr;grid-template-rows:auto auto;
  }
  .hero-name{grid-column:1;grid-row:1}
  .hero-side{grid-column:1;grid-row:2;justify-self:start;align-items:flex-start}
  .hero-lede{max-width:none}
  .ticker,.ticker-rule,.clock{display:none}
  .course{margin-left:0}
  #ch1{display:flex;flex-direction:column;gap:clamp(1.5rem,4vh,2.5rem)}
  .portrait{height:52vh;margin-top:0}
  .work-row{grid-template-columns:minmax(0,1fr) 6rem;row-gap:.35rem}
  .panel-corner{gap:.6rem}
  .work-note{grid-column:1/-1;order:3;width:auto;margin-inline:0}
  .drawers{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .hero-name .line > span{transform:none}
  .hero-lede{opacity:1}
}

/* ─────────────────────────────────────────────
   Contact form
   ───────────────────────────────────────────── */
/* ---- contact: condition of sale, and the gate to the instruction ---- */
.gate{max-width:46rem}
.disclaimer{
  border:1px solid var(--rule);border-left:4px solid #AC6F00;
  background:rgba(172,111,0,.06);padding:1.9rem 2rem;margin-bottom:2.6rem;
}
.disclaimer h2{
  font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  color:#8C5A00;margin:0 0 1.1rem;
}
.disclaimer p{font-size:1.02rem;line-height:1.7;color:var(--ink);margin:0 0 1rem}
.disclaimer p:last-child{margin-bottom:0}
.buying{font-size:.88rem;letter-spacing:.06em;text-transform:uppercase;color:var(--soft);margin:0 0 1.4rem}
.buying b{color:var(--ink);font-weight:600;text-transform:none;letter-spacing:0;font-size:1.05rem}
.ack{
  display:flex;align-items:flex-start;gap:.9rem;cursor:pointer;
  padding:1.15rem 1.25rem;border:1px solid var(--rule);background:#FFFFFF;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.ack:hover{border-color:#AC6F00}
.ack.is-missing{border-color:#A32A1E;box-shadow:0 0 0 3px rgba(163,42,30,.12)}
.ack input{width:1.25rem;height:1.25rem;margin:.15rem 0 0;flex:0 0 auto;accent-color:#AC6F00;cursor:pointer}
.ack span{font-size:1rem;line-height:1.6;color:var(--ink)}
.gate-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.8rem}
.btn-proceed{
  display:inline-flex;align-items:center;gap:.6rem;
  background:#AC6F00;color:#FFFFFF;border:1px solid #AC6F00;
  padding:.95rem 2rem;font-size:1.2rem;font-weight:700;font-family:inherit;
  letter-spacing:-.01em;cursor:pointer;text-decoration:none;
  transition:background .3s ease,border-color .3s ease,opacity .3s ease;
}
.btn-proceed:hover{background:#8C5A00;border-color:#8C5A00}
.btn-proceed.is-waiting{opacity:.55}
.gate-msg{
  display:none;margin-top:1.4rem;padding:1.1rem 1.25rem;
  border-left:3px solid #A32A1E;background:rgba(163,42,30,.07);
  font-size:.98rem;line-height:1.6;color:var(--ink);
}
.gate-msg[data-show="true"]{display:block}
.gate-note{
  margin-top:2.4rem;padding-top:1.5rem;border-top:1px solid var(--rule);
  font-size:.9rem;color:var(--soft);max-width:44rem;line-height:1.65;
}
.gate-note a{color:#8C5A00}

/* ---- purchase instruction ---- */
.buy{max-width:48rem}
.buy-step{margin-bottom:2.8rem}
.buy-step > h2{
  font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  color:#8C5A00;margin:0 0 1rem;display:flex;align-items:baseline;gap:.7rem;
}
.buy-step > h2 .num{font-variant-numeric:tabular-nums;color:var(--soft);font-weight:500}
.buy p{font-size:1.02rem;line-height:1.7;color:var(--ink);margin:0 0 1rem}
.buy .methods{margin:0 0 1.8rem}
.buy .methods .only{margin:0 0 .5rem}
.buy .methods .only:last-child{margin-bottom:0}
.buy .only{
  font-size:clamp(1.15rem,1.9vw,1.45rem);font-weight:600;letter-spacing:-.015em;
  line-height:1.4;color:var(--ink);margin:0 0 1.6rem;
}
.pay{border:1px solid var(--rule);border-left:4px solid #AC6F00;background:#FFFFFF;padding:1.7rem 1.9rem}
.pay dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.85rem 1.6rem;align-items:baseline}
.pay dt{
  font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--soft);font-weight:500;white-space:nowrap;
}
.pay dd{margin:0;font-size:1.12rem;line-height:1.4;color:var(--ink);font-weight:600}
.pay dd.amount{font-size:1.6rem;letter-spacing:-.02em;color:#AC6F00}
.pay dd a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(172,111,0,.45)}
.pay[hidden]{display:none}
.pay-alt{margin-top:1.1rem;border-left-color:rgba(172,111,0,.45);background:#FBFAF8}
.pay-alt .alt-lead{
  font-size:.98rem;line-height:1.6;color:var(--ink);margin:0 0 1.2rem;
  padding-bottom:1.1rem;border-bottom:1px solid rgba(27,24,21,.14);
}
.pay-alt dd.amount{font-size:1.35rem;color:#8C5A00}
.buy .tmpl{
  background:var(--dark);color:var(--night-text);padding:1.5rem 1.7rem;
  font-size:1rem;line-height:2;white-space:pre-wrap;margin:0 0 1.2rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.buy .tmpl .named{color:#E8B25E;font-weight:600}
.mailto{
  display:inline-flex;align-items:center;gap:.55rem;
  background:#AC6F00;color:#FFFFFF;border:1px solid #AC6F00;
  padding:.85rem 1.7rem;font-size:1.2rem;font-weight:700;font-family:inherit;
  letter-spacing:-.01em;text-decoration:none;
  transition:background .3s ease,border-color .3s ease;
}
.mailto:hover{background:#8C5A00;border-color:#8C5A00}
.copy{
  background:none;border:1px solid rgba(27,24,21,.35);color:var(--ink);
  padding:.85rem 1.4rem;font-size:.95rem;font-family:inherit;cursor:pointer;
  transition:border-color .25s ease,background .25s ease;
}
.copy:hover{border-color:#AC6F00;background:rgba(172,111,0,.07)}
.buy-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem}
.buy .promise{
  margin-top:.4rem;padding:1.2rem 1.4rem;border-left:3px solid #AC6F00;
  background:rgba(172,111,0,.08);font-size:1.05rem;line-height:1.6;
  font-weight:500;color:var(--ink);
}
.buy .buy-foot{
  margin-top:3rem;padding-top:1.6rem;border-top:1px solid var(--rule);
  font-size:.9rem;color:var(--soft);line-height:1.65;max-width:44rem;
}
.buy .buy-foot a{color:#8C5A00}
@media (max-width:560px){
  .pay dl{grid-template-columns:1fr;gap:.25rem 0}
  .pay dt{margin-top:.9rem}
}

