/* Direction A, The Drawing Set: the sections after the opening.
   The statement, the simplified services rows and How I work. */

/* "I say no to most off-plan projects." The red pen circles "no". */
.stance {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "line line" "body figure" "facts facts";
  gap: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 90px);
  padding-block: clamp(84px, 12vw, 176px) clamp(60px, 8vw, 120px);
}
.frame h2.stance-line {
  grid-area: line;
  max-width: 15ch;
  font-size: clamp(52px, 8.6vw, 148px);
  font-weight: 720;
  letter-spacing: -.062em;
  line-height: .9;
  text-wrap: balance;
}
.stance-line b { color: var(--red); font-weight: inherit; }
.frame h2.stance-line > span { color: inherit; }
.stance-no { position: relative; display: inline-block; }
.stance-no svg {
  position: absolute;
  left: -16%;
  top: -12%;
  width: 132%;
  height: 128%;
  overflow: visible;
  pointer-events: none;
}
.stance-no ellipse { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stance-body { grid-area: body; align-self: start; }
.stance-body p { max-width: 46ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--muted); }
.stance-figure { grid-area: figure; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #e3decf; }
.stance-figure img { height: 100%; object-fit: cover; object-position: 50% 60%; }
.stance-figure--ahmad { aspect-ratio: 1 / 1; }
.stance-figure--ahmad img { object-position: 50% 50%; }
/* Round 4: the photo grows out to its frame as it scrolls in. plan.js sets --g (0 to 1). */
.stance-figure.is-growing { clip-path: inset(calc((1 - var(--g, 1)) * 12%) calc((1 - var(--g, 1)) * 16%)); will-change: clip-path; }
.stance-figure.is-growing img { transform: scale(calc(1 + (1 - var(--g, 1)) * .14)); transform-origin: 50% 40%; will-change: transform; }
.stance-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(10px, 2vw, 30px) 0 0;
  border-top: 1.5px solid var(--ink);
}
.stance-facts > div { display: flex; gap: clamp(12px, 1.4vw, 22px); align-items: flex-start; padding: clamp(16px, 2vw, 28px) 16px 0 0; min-width: 0; }
.stance-facts dt { font-size: clamp(56px, 7vw, 120px); font-weight: 680; letter-spacing: -.07em; line-height: .82; font-variant-numeric: tabular-nums; }
.stance-facts dd { margin: 0; padding-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.stance-facts dd b { display: block; color: var(--ink); font-size: clamp(16px, 1.3vw, 20px); font-weight: 640; letter-spacing: -.02em; }

/* How I can help: one row style, one headline per row. */
.help { padding-block: clamp(40px, 6vw, 90px) clamp(80px, 11vw, 160px); }
.frame.help h2 { font-size: clamp(42px, 5.4vw, 88px); }
.help-lede { margin-top: 18px; max-width: 52ch; font-size: 18px; line-height: 1.5; color: var(--muted); }
/* Every column has the same shape: heading, text, ruled list. Subgrid lines the three rows up across columns. */
.help-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; margin-top: clamp(30px, 4.5vw, 64px); border-top: 1px solid var(--ink); }
.help-rows article { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; padding: clamp(20px, 2.4vw, 34px) clamp(16px, 2.6vw, 44px) 8px 0; min-width: 0; }.help-rows article + article { padding-left: clamp(16px, 2.6vw, 44px); border-left: 1px solid var(--rule); }
.help-rows h3 { font-size: clamp(24px, 2.4vw, 38px); font-weight: 640; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.help-rows p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 42ch; }
.help-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.help-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 600; letter-spacing: -.02em; }
.help-list li::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--red); }

/* How I work: four steps, numbered because the order matters. */
.process-sheet { padding-block: clamp(80px, 11vw, 160px); }
.ps-head p { margin-top: 16px; font: 500 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: #a9a597; letter-spacing: .02em; }
.ps-steps {
  list-style: none;
  margin: clamp(40px, 6vw, 90px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
}
.ps-steps li { position: relative; padding-top: clamp(16px, 1.8vw, 24px); border-top: 1px solid #4a4840; min-width: 0; }
.ps-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: var(--red);
  transform-origin: left;
}
.ps-n { display: block; font-size: clamp(56px, 6.6vw, 112px); font-weight: 650; letter-spacing: -.065em; line-height: .85; font-variant-numeric: tabular-nums; }
.ps-steps h3 { margin-top: clamp(16px, 2vw, 26px); font-size: clamp(20px, 1.75vw, 28px); font-weight: 640; letter-spacing: -.035em; line-height: 1.08; }
.ps-steps p { margin-top: 10px; color: #c9c5b7; font-size: 15.5px; line-height: 1.55; max-width: 34ch; }

/* Scroll-linked drawing, where the browser supports it. Everything rests visible without it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stance-no ellipse { animation: ds-ring linear both; animation-timeline: view(); animation-range: entry 40% cover 38%; }
    .ps-steps li::before { animation: ds-rule linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
    .ps-steps li:nth-child(2)::before { animation-range: entry 75% cover 52%; }
    .ps-steps li:nth-child(3)::before { animation-range: entry 90% cover 59%; }
    .ps-steps li:nth-child(4)::before { animation-range: entry 100% cover 66%; }
    @keyframes ds-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes ds-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (max-width: 900px) {
  .ps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .help-rows { grid-template-columns: 1fr; }
  .help-rows article, .help-rows article + article { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 670px) {
  .stance { grid-template-columns: 1fr; grid-template-areas: "line" "body" "figure" "facts"; }
  .stance-facts { grid-template-columns: 1fr; }
  .stance-facts > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .stance-facts dt { min-width: 1.4em; }
  .ps-steps { grid-template-columns: 1fr; row-gap: 34px; }
}

/* =====================================================================
   How I work, as a plan chart (round 3, 23 Nov 2026). After the 39 week chart:
   four equal steps on an engraved scale, a red marker that travels with the
   scroll, bars that fill as it passes. Red means "in progress": one bar at a
   time is red, and it settles to paper once the marker moves on.
   At rest (no script, reduced motion, short screens) the chart is drawn
   complete and the four steps are listed beneath it.
   ===================================================================== */
.pl { --pl-line: rgba(255,253,241,.13); --pl-line-strong: rgba(255,253,241,.3); --pl-muted: #a9a597; overflow: clip; }
.pl-in { display: grid; row-gap: clamp(28px, 4.2vh, 52px); }
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; }
.pl .pl-head h2 { font-size: clamp(46px, 5.6vw, 92px); }
.pl-count { display: flex; align-items: flex-start; gap: 14px; margin: 0; color: var(--pl-muted); }
.pl-label, .pl-cols li { font: 500 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.pl-count .pl-label { padding-top: .5em; }
.pl-n { color: var(--paper); font-size: clamp(88px, min(10vw, 17vh), 172px); font-weight: 650; letter-spacing: -.06em; line-height: .78; font-variant-numeric: tabular-nums; min-width: 1.15em; text-align: right; }

.pl-chart { position: relative; --x: 1; }
.pl-cols { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-cols li { color: var(--pl-muted); transition: color .4s var(--ease); }
.pl-cols li.is-now { color: var(--paper); }
.pl-body { position: relative; }
.pl-scale { border-top: 1px solid var(--pl-line-strong); }
.pl-ticks { display: block; width: 100%; height: 16px; overflow: visible; }
.pl-ticks line { stroke: var(--pl-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.pl-ticks line.major { stroke: rgba(255,253,241,.62); }
.pl-ticks--v { display: none; }

.pl-lanes { list-style: none; margin: 10px 0 0; padding: 0; position: relative; background: repeating-linear-gradient(90deg, var(--pl-line) 0 1px, transparent 1px 25%); }
.pl-lane { position: relative; height: clamp(52px, 7vh, 66px); border-bottom: 1px solid var(--pl-line); }
.pl-bar {
  --f: 1;
  position: absolute; top: 9px; bottom: 9px;
  left: calc(var(--s) * 25% + 6px); width: calc(25% - 12px);
  background: rgba(255,253,241,.04);
  box-shadow: inset 0 0 0 1px var(--pl-line-strong);
}
.pl-name { position: absolute; z-index: 1; left: 16px; top: 50%; translate: 0 -50%; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; color: var(--paper); font-size: 15px; font-weight: 620; letter-spacing: -.015em; }
.pl-name b { font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; opacity: .7; }
.pl-fill { position: absolute; z-index: 2; inset: 0; background: var(--paper); clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0); }
.pl-fill .pl-name { color: var(--ink); }
.pl-fill::before { content: ""; position: absolute; inset: 0; background: var(--red); opacity: 0; transition: opacity .5s var(--ease); }
.pl-bar.is-live .pl-fill::before { opacity: 1; transition-duration: .18s; }
.pl-rail { display: none; }

.pl-notes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--pl-line); }
.pl-note { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(20px, 2.4vw, 36px); align-items: baseline; padding-block: 22px; border-top: 1px solid var(--pl-line); }
.pl-note h3 { font-size: clamp(20px, 1.75vw, 28px); font-weight: 640; letter-spacing: -.035em; line-height: 1.08; }
.pl-num { display: none; }
.pl-chip { display: inline-block; flex: none; width: .42em; height: .42em; margin: 0 .5em .12em 0; background: var(--paper); }
/* Round 4: a two-line step name lines up under its first word, not under the chip. */
.pl-note h3 { display: flex; align-items: baseline; }
.pl-t { min-width: 0; }
.pl-note p { color: #c9c5b7; font-size: 16px; line-height: 1.55; max-width: 52ch; }

/* Desktop, armed: pinned, scroll-driven. */
@media (min-width: 721px) and (min-height: 640px) {
  .pl.is-armed { padding-block: 0; }
  .pl.is-armed .pl-track { height: calc(100vh + 1800px); height: calc(100svh + 1800px); }
  .pl.is-armed .pl-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; padding-block: calc(var(--atalla-header-height) + 28px) 36px; }
  .pl.is-armed .pl-rail { display: block; position: absolute; inset: 0 0 -10px 0; pointer-events: none; transform: translateX(calc(var(--x) * 100%)); will-change: transform; }
  .pl-marker { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--red); }
  .pl-marker i { position: absolute; left: -5px; top: -7px; width: 12px; height: 15px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
  .pl.is-armed .pl-notes { display: grid; border: 0; }
  .pl.is-armed .pl-note { grid-area: 1 / 1; border: 0; padding-block: 0; align-items: start; opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease); }
  .pl.is-armed .pl-note.is-active { opacity: 1; filter: none; transform: none; transition: opacity .6s var(--ease) .1s, filter .6s var(--ease) .1s, transform .6s var(--ease) .1s; }
  .pl.is-armed .pl-note h3 { font-size: clamp(32px, 3.3vw, 56px); line-height: 1; letter-spacing: -.045em; }
  .pl.is-armed .pl-note.is-active .pl-chip { background: var(--red); }
  .pl.is-armed .pl-note p { color: var(--paper); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 34em; }
}
@media (min-width: 721px) and (min-height: 640px) and (max-height: 800px) {
  .pl .pl-head p { display: none; }
  .pl-n { font-size: clamp(80px, min(9vw, 14vh), 130px); }
  .pl-lane { height: 50px; }
}

/* Phone: the chart stands on end. Steps run down the screen, the four lanes step right,
   and the marker travels down. The bars carry their numbers; the note names the step. */
@media (max-width: 720px) {
  .pl-head { column-gap: 16px; }
  .pl-n { font-size: clamp(64px, 19vw, 88px); }
  .pl-count .pl-label { padding-top: .2em; }
  .pl-chart { --tall: 320px; display: grid; grid-template-columns: 56px minmax(0, 1fr); }
  .pl-cols { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); margin: 0; height: var(--tall); }
  .pl-cols li { font-size: 10.5px; letter-spacing: .08em; padding-top: 6px; }
  .pl-body { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 12px minmax(0, 1fr); height: var(--tall); }
  .pl-scale { border-top: 0; border-left: 1px solid var(--pl-line-strong); }
  .pl-ticks--h { display: none; }
  .pl-ticks--v { display: block; width: 100%; height: 100%; }
  .pl-lanes { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--pl-line); background: repeating-linear-gradient(180deg, var(--pl-line) 0 1px, transparent 1px 25%); }
  .pl-lane { height: auto; border-bottom: 0; border-right: 1px solid var(--pl-line); }
  /* each bar fills its row from line to line, no gap above or below (Phil, 25 Nov) */
  .pl-bar { left: 5px; right: 5px; width: auto; top: calc(var(--s) * 25% + 1px); bottom: auto; height: calc(25% - 1px); }
  .pl-name { left: 8px; top: 9px; translate: none; }
  .pl-name > span { display: none; }
  .pl-name b { font-size: 12px; opacity: .85; }
  .pl-fill { clip-path: inset(0 0 calc((1 - var(--f)) * 100%) 0); }
  .pl-note { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding-block: 18px; }
}
@media (max-width: 720px) and (min-height: 640px) {
  .pl.is-armed { padding-block: 0; }
  .pl.is-armed .pl-track { height: calc(100vh + 1200px); height: calc(100svh + 1200px); }
  .pl.is-armed .pl-stage { position: sticky; top: 0; min-height: 100vh; min-height: var(--live-vh, 100dvh); display: grid; align-items: center; padding-block: calc(var(--atalla-header-height) + 16px) 20px; }
  /* Safari's toolbar changes the visible height mid-scroll: ease to the new size, never jump (Phil, 25 Nov) */
  .vh-ready .pl.is-armed .pl-stage { transition: min-height .45s cubic-bezier(.23,1,.32,1); }
  .vh-ready .pl.is-armed .pl-cols, .vh-ready .pl.is-armed .pl-body { transition: height .45s cubic-bezier(.23,1,.32,1); }
  .pl.is-armed .pl-in { row-gap: 22px; }
  .pl.is-armed .pl-chart { --tall: clamp(250px, calc(var(--live-vh, 100dvh) - 400px), 520px); }
  .pl.is-armed .pl-rail { display: block; position: absolute; inset: 0; grid-column: 1 / -1; pointer-events: none; transform: translateY(calc(var(--x) * 100%)); will-change: transform; }
  .pl-marker { position: absolute; left: -4px; right: 0; top: -1px; height: 2px; background: var(--red); }
  .pl-marker i { position: absolute; left: -6px; top: -6px; width: 13px; height: 14px; background: var(--red); clip-path: polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%); }
  .pl.is-armed .pl-notes { display: grid; border: 0; }
  .pl.is-armed .pl-note { grid-area: 1 / 1; border: 0; padding-block: 0; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .pl.is-armed .pl-note.is-active { opacity: 1; transform: none; transition: opacity .55s var(--ease) .1s, transform .55s var(--ease) .1s; }
  .pl.is-armed .pl-note h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.04em; }
  .pl.is-armed .pl-note.is-active .pl-chip { background: var(--red); }
  .pl.is-armed .pl-note p { color: var(--paper); font-size: 16px; }
}
@media (max-width: 720px) and (max-height: 740px) {
  .pl .pl-head p { display: none; }
}

/* =====================================================================
   How I can help, as three drawings (round 3, 23 Nov 2026). One question at a
   time: a red pen draws its answer as you scroll. The map draws the coast and
   lights the four emirates; three routes split to the three goals; a receipt
   prints and the pen rings who pays. --d (0..1) is each panel's drawing progress;
   every mark has its own start (--a) and length (--l) inside that.
   At rest the three panels are listed with their drawings complete.
   ===================================================================== */
.hd { padding-block: clamp(40px, 6vw, 90px) clamp(80px, 11vw, 160px); overflow: clip; }
.hd-in { display: grid; row-gap: clamp(26px, 4vh, 48px); }
.hd .hd-top h2 { font-size: clamp(46px, 5.6vw, 92px); }
.hd-panels { list-style: none; margin: 0; padding: 0; display: grid; row-gap: clamp(48px, 7vw, 96px); }
.hd-panel { --d: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 72px); align-items: center; border-top: 1px solid var(--ink); padding-top: clamp(20px, 2.4vw, 32px); }
.hd-step { font: 500 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--muted); }
.hd-text h3 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 56px); font-weight: 640; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.hd-text p:not(.hd-step) { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; max-width: 40ch; }
.hd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hd-draw { margin: 0; min-width: 0; }
.hd-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: Inter, "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif; }

/* the pen */
.hd-pen { --p: clamp(0, (var(--d) - var(--a)) / var(--l), 1); fill: none; stroke: var(--red); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--p)); opacity: clamp(0, var(--p) * 40, 1); }
.hd-land { stroke: none; }
.hd-sea { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; fill: #8d897d; }
.hd-pin { --on: clamp(0, (var(--d) - var(--a)) * 14, 1); }
.hd-pin-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hd-pin-ring { fill: var(--red); opacity: calc(var(--on) * .16); transform-box: fill-box; transform-origin: center; scale: calc(.4 + var(--on) * .6); }
.hd-pin text { font-size: 17px; font-weight: 640; letter-spacing: -.02em; fill: var(--ink); opacity: calc(.28 + var(--on) * .72); }
.hd-pin .hd-pin-dot { fill: color-mix(in srgb, var(--red) calc(var(--on) * 100%), var(--paper)); stroke: color-mix(in srgb, var(--red) calc(var(--on) * 100%), var(--ink)); }
.hd-guide { stroke: var(--rule); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; }
.hd-start { fill: var(--ink); }
.hd-goal { font-size: 22px; font-weight: 640; letter-spacing: -.03em; fill: var(--ink); opacity: clamp(0, (var(--d) - var(--a)) * 8, 1); }
.hd-slip { transform: translateY(calc((1 - clamp(0, var(--d) / .26, 1)) * 26px)); opacity: clamp(0, var(--d) / .12, 1); }
.hd-paper { fill: #fbf6df; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hd-rule { stroke: var(--ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hd-dots { stroke: #8d897d; stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 1 5; stroke-linecap: round; }
.hd-mono { font: 500 15px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; fill: var(--ink); }
.hd-strong { font-weight: 700; }
.hd-line { opacity: clamp(0, (var(--d) - var(--a)) * 9, 1); }

/* Desktop and phone, armed: the section pins and the three panels take turns. */
@media (min-width: 721px) and (min-height: 640px) {
  .hd.is-armed { padding-block: 0; }
  .hd.is-armed .hd-track { height: calc(100vh + 2400px); height: calc(100svh + 2400px); }
  .hd.is-armed .hd-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; padding-block: calc(var(--atalla-header-height) + 24px) 32px; }
  .hd.is-armed .hd-panels { row-gap: 0; }
  .hd.is-armed .hd-panel { grid-area: 1 / 1; }
  .hd.is-armed .hd-draw { max-height: calc(100dvh - 330px); }
  .hd.is-armed .hd-svg { max-height: calc(100dvh - 330px); }
}
@media (min-width: 721px) and (min-height: 640px) and (max-height: 820px) {
  .hd.is-armed .help-lede { display: none; }
}
@media (max-width: 720px) {
  .hd-panel { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .hd-draw { order: -1; }
  .hd-text h3 { font-size: 30px; }
  .hd-pen { stroke-width: 4.6; }
}
@media (max-width: 720px) and (min-height: 640px) {
  .hd.is-armed { padding-block: 0; }
  .hd.is-armed .hd-track { height: calc(100vh + 1800px); height: calc(100svh + 1800px); }
  .hd.is-armed .hd-stage { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: grid; align-content: start; padding-block: calc(var(--atalla-header-height) + 18px) 20px; }
  .hd.is-armed .help-lede { display: none; }
  .hd.is-armed .hd-in { row-gap: 14px; }
  .hd.is-armed .hd-panels { row-gap: 0; }
  .hd.is-armed .hd-panel { grid-area: 1 / 1; align-content: start; padding-top: 14px; }
  .hd.is-armed .hd-text p:not(.hd-step) { margin-top: 12px; font-size: 15.5px; }
}
/* The panel change: the outgoing one fades, the incoming one rises in. Text and drawing together. */
.hd.is-armed .hd-panel { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.hd.is-armed .hd-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease) .08s, transform .55s var(--ease) .08s, visibility 0s; }

/* ---------- Round 4 (23 Nov): landmarks, goal cards, the printing receipt, tall drawings for phones ---------- */
.hd-svg--tall { display: none; }
.hd-lm { opacity: clamp(0, (var(--d) - var(--a)) * 7, 1); }
.hd-lm-line { fill: none; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hd-cap { font: 500 11px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; fill: #6d695e; }
.hd-card { --k: clamp(0, (var(--d) - var(--a)) * 7, 1); opacity: var(--k); transform: translateX(calc((1 - var(--k)) * -14px)); }
.hd-tile { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hd-icon { fill: var(--red); }
.hd-feed { transform: translateY(calc((1 - clamp(0, var(--d) / .62, 1)) * -1 * var(--feed))); }
.hd-printer { fill: var(--ink); }
.hd-slot { fill: #2b2a26; }
.hd-note { font-size: 14px; fill: var(--muted); }
@media (max-width: 720px) {
  .hd-svg--wide { display: none; }
  .hd-svg--tall { display: block; }
  .hd-cap { font-size: 12px; }
  .hd-note { font-size: 13px; }
}

/* Round 4 (23 Nov), phones: one spacing standard. Every plain section has 72px above and below
   its content and the 5.25vw side gutter; pinned stages centre their content in the screen. */
@media (max-width: 670px) {
  .stance.frame, .budget, .insights, .questions.frame { padding-block: 72px; }
  .contact { padding-top: 72px; }
}
@media (max-width: 720px) and (min-height: 640px) {
  .hd.is-armed .hd-stage { align-content: center; }
}

/* Round 5 (23 Nov). Nothing may push the page sideways on a phone. clip, not hidden, so the
   pinned sections still stick. */
html, body { overflow-x: clip; }
/* The three facts: number and label side by side in a plain two-column grid, the number column
   wide enough for two digits so the count-up never moves the label. */
.stance-facts > div:first-child dt { min-width: 1.15em; }
@media (max-width: 670px) {
  .stance-facts > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .stance-facts dt { min-width: 0; font-size: 56px; }
  .stance-facts dd { min-width: 0; padding-top: 0; }
}
/* "From first message to handover": the line breaks evenly, never one word on its own. */
.pl-head p { text-wrap: balance; }
/* Phones, pinned: the drawing gives way so the whole panel always fits between header and screen foot. */
@media (max-width: 720px) and (min-height: 640px) {
  .hd.is-armed .hd-draw { display: flex; justify-content: center; }
  .hd.is-armed .hd-svg--tall { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 72px - 380px); }
  .hd.is-armed .hd-stage { padding-block: calc(var(--atalla-header-height) + 16px) 16px; }
}
/* Each help panel centres in the shared space, so a short panel is not left hanging at the top. */
.hd.is-armed .hd-panel { align-content: center; }
/* No single word left on the last line of a step's text (Phil, 23 Nov). */
.pl-note p { text-wrap: pretty; }

/* ---------- 23 Nov: option B (Phil's pick). The three drawings side by side, joined by one pen line. ----------
   The coast carries on into the goal routes; the middle route carries on to the receipt.
   Desktop: the section pins and the pen draws left to right as you scroll.
   Phone: the drawings stack and the pen line runs down the left margin, drawing as you scroll past. */
.hdb .hdb-board { position: relative; border-top: 1px solid var(--ink); padding-top: clamp(18px, 2.6vh, 30px); }
.hdb .hdb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 3.8vw, 64px); }
.hdb .hdb-step { --d: 1; display: grid; row-gap: clamp(14px, 2.6vh, 26px); align-content: start; }
.hdb .hdb-step .hd-draw { order: -1; display: grid; align-items: center; }
.hdb .hdb-step .hd-svg--wide { max-height: none; }
.hdb .hd-guide { display: none; }
.hdb-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper); }
.hdb .hd-text h3 { margin-top: 12px; font-size: clamp(22px, 1.95vw, 32px); letter-spacing: -.04em; line-height: 1.05; }
.hdb .hd-text p { margin-top: 10px; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.5; max-width: 42ch; }
.hdb-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hdb-link path { --p: 1; fill: none; stroke: var(--red); stroke-width: var(--w, 2.4px); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--p)); opacity: clamp(0, var(--p) * 40, 1); }
@media (min-width: 721px) and (min-height: 640px) {
  .hdb.is-armed .hd-in { row-gap: clamp(18px, 3vh, 40px); }
}
@media (max-width: 720px) {
  .hdb .hdb-board { padding-left: 26px; }
  .hdb .hdb-steps { grid-template-columns: minmax(0, 1fr); row-gap: 46px; }
  .hdb .hd-text h3 { font-size: 26px; }
  .hdb .hd-text p { font-size: 15.5px; }
}
/* Phone, pinned (23 Nov, Phil): the three drawings sit side by side as full screens. Scrolling draws one,
   the pen runs off the right edge, the strip slides left with your finger, and the next one draws. */
@media (max-width: 720px) and (min-height: 640px) {
  .hdb.is-armed .hd-stage { height: 100vh; height: 100dvh; }
  .hdb.is-armed .hd-in { grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; row-gap: 0; }
  .hdb.is-armed .hd-top { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
  .hdb.is-armed .hdb-board { margin-inline: calc(var(--gutter) * -1); padding: 18px 0 0; border-top: 0; overflow: clip; min-height: 0; display: grid; }
  .hdb.is-armed .hdb-steps { grid-template-columns: repeat(3, 100%); row-gap: 0; column-gap: 0; min-height: 0; will-change: transform; }
  .hdb.is-armed .hdb-step { padding-inline: var(--gutter); grid-template-rows: minmax(0, 1fr) auto; row-gap: 14px; min-height: 0; }
  .hdb.is-armed .hdb-step .hd-draw { display: block; min-height: 0; }
  .hdb.is-armed .hdb-step .hd-svg--tall { width: 100%; height: 100%; max-height: none; }
  .hdb.is-armed .hdb-link { will-change: transform; }
  .hdb.is-armed .hd-text h3 { margin-top: 10px; }
  .hdb.is-armed .hd-text p { margin-top: 8px; font-size: 15px; }
}

/* Phones: room for the scroll cue (Phil, 24 Nov 2026, "make room"). The cue is 50px tall and sits
   24px off the bottom, so the chart gives up 66px and the stage keeps 86px clear underneath. */
@media (max-width: 720px) and (min-height: 640px) {
  .pl.is-armed .pl-stage { padding-bottom: 86px; }
  .pl.is-armed .pl-chart { --tall: clamp(250px, calc(var(--live-vh, 100dvh) - 466px), 520px); }
}
