/* Home. Tokens, header and footer come from chrome.css (values from /design/). */

:root {
  --home-white: #fff;
  --home-clear: transparent;
  --home-rule-dark: #ffffff38;
  --home-rule-light: #ffffff73;
  --home-night-clear: #17131100;
  --home-night-chip: #171311c4;
  --home-night-label: #171311d9;
  --home-night-overlay: #171311b8;
  --home-copy-light: #ffffffe6;
  --home-design-link: #f3d9b5;
  --home-shadow-solid: #000;
  --home-shadow-soft: #0b080799;
  --home-shadow-deep: #0b0807;
  --home-dialog-rule: #2a242066;
  --home-paper-rule: #f3eee640;
  --home-focus-rule: #c3d2f773;
}

/* One canvas tone. JavaScript scrubs these percentages on scroll in every browser. */
html { color-scheme: light; background: var(--paper); }
html, body { overflow-x: clip; }

* { box-sizing: border-box; }
body {
  --tools-mix: 0%;
  --night-mix: 0%;
  --paper-to-tools: color-mix(in oklab, var(--taupe-d) var(--tools-mix), var(--paper));
  --bg: color-mix(in oklab, var(--night) var(--night-mix), var(--paper-to-tools));
  margin: 0;
  min-width: 0;
  min-height: 100%;
  background: var(--paper);
  background: var(--bg);
  color: var(--ink);
  font: 300 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
h1, h2, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 60; transform: translateY(-160%); padding: 10px 14px; color: var(--paper); background: var(--night); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* First screen: one line about the person, then the two portfolios framed by the paper. */
.first-screen { min-height: calc(100svh - 64px); display: grid; grid-template-rows: auto minmax(380px, 1fr); }
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--s-2) var(--s-3); width: 100%; max-width: 1520px; margin-inline: auto; padding: var(--s-2) var(--gut) var(--s-4); }
.statement h1 { grid-column: 1 / span 9; font: 500 clamp(2rem, 4.3vw, 4.75rem)/1.02 var(--serif); letter-spacing: -.03em; font-variant-numeric: oldstyle-nums; }
.statement .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.statement .line > span { display: block; }
.statement p { grid-column: 10 / -1; color: var(--ink-2); font-size: .95rem; line-height: 1.45; padding-bottom: .55em; }
.statement p strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 1.05rem; }

.split { --pad-x: calc(var(--gut) + clamp(16px, 2.6vw, 40px)); --focus: var(--focus-dark); display: flex; min-height: 0; background: var(--night); clip-path: inset(0 var(--gut)); }
.side { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; color: var(--home-white); transition: flex-grow var(--t-scene) var(--ease); }
.side + .side { border-left: .75px solid var(--home-rule-dark); }
.split:hover .side:hover, .split:focus-within .side:focus-visible { flex-grow: 1.4; }
.side:focus-visible { outline-offset: -6px; }
.side > picture { position: absolute; inset: 0; z-index: -2; }
.side-photo { position: absolute; inset: -14px; width: calc(100% + 28px); max-width: none; height: calc(100% + 28px); object-fit: cover; object-position: 50% 46%; translate: calc(var(--tx, 0) * -14px) calc(var(--ty, 0) * -14px); transition: translate var(--t-scene) var(--ease), scale var(--t-scene) var(--ease); }
.side:hover .side-photo { scale: 1.03; }
.side.design::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--home-night-clear) 40%, var(--home-night-label) 78%, var(--night) 100%); }

/* Automation side: the house's own ground floor plan as a blueprint, with a real add-in window over it. */
.side.automation { background: var(--night); }
.side-plan { position: absolute; inset: 0; z-index: -2; overflow: hidden; isolation: isolate; background: var(--night); }
.side-plan img { position: absolute; top: 50%; left: 44%; width: max(118%, 760px); max-width: none; transform: translate(-50%, -50%); filter: grayscale(1) invert(1) brightness(.75) contrast(3); mix-blend-mode: screen; opacity: .55; translate: calc(var(--tx, 0) * 16px) calc(var(--ty, 0) * 16px); transition: translate var(--t-scene) var(--ease), opacity var(--t-reveal); }
.side.automation::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night), var(--home-night-clear) 18%, var(--home-night-clear) 30%, var(--night) 100%); }
.side-dialog { position: absolute; z-index: -1; top: 9%; left: 50%; width: min(70%, 700px); transform: translateX(-50%); border: .75px solid var(--home-rule-dark); box-shadow: 0 40px 70px -30px var(--home-shadow-solid); translate: calc(var(--tx, 0) * -12px) calc(var(--ty, 0) * -12px); transition: translate var(--t-scene) var(--ease), scale var(--t-scene) var(--ease); view-transition-name: automation-dialog; }
.side:hover .side-dialog { scale: 1.02; }
.side:hover .side-plan img { opacity: .8; }

/* Sheet-style tag on a solid chip, so it reads on any part of the picture. */
.side-tag { position: absolute; top: 18px; right: calc(var(--gut) + 18px); padding: 6px 10px; text-align: right; color: var(--on-dark); background: var(--home-night-chip); border-radius: 2px; font: 400 .8125rem/1.45 var(--sans); }
.side.automation .side-tag { right: calc(var(--gut) + 18px); }
.side.design .side-tag { left: calc(var(--gut) + 18px); right: auto; text-align: left; }
.side-tag small { display: block; font-size: inherit; font-weight: 400; color: var(--on-dark-2); }
.side-copy { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 18px; padding: clamp(16px, 2.6vw, 40px) clamp(16px, 2.8vw, 44px); }
.side.design .side-copy { padding-left: var(--pad-x); }
.side.automation .side-copy { padding-right: var(--pad-x); }
/* One display face for both names; the accent only marks them. */
.side-name { grid-column: 1 / -1; font: 500 clamp(3rem, 7vw, 7.6rem)/.86 var(--serif); letter-spacing: -.04em; }
.side-name::after { content: ''; display: block; width: 1.05em; height: 2px; margin-top: .16em; background: var(--brass); }
.automation .side-name::after { background: var(--blueprint); }
.side-text { grid-column: 1; max-width: 34ch; margin-top: 12px; font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.4; color: var(--home-copy-light); }
.side-go { grid-column: 2; display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 2px; font-weight: 400; white-space: nowrap; border-bottom: .75px solid var(--home-rule-light); transition: border-color var(--t-ui); }
.design .side-go { color: var(--home-design-link); }
.automation .side-go { color: var(--focus-dark); }
.side:hover .side-go, .side:focus-visible .side-go { border-color: currentColor; }

/* Design: the house at three stages, drawing, material, light. */
.stages, .about { padding: var(--s-6) var(--gut); }
.caps, .stages { position: relative; isolation: isolate; }
.caps { --hero-feather: max(180px, 32vh); padding-top: calc(var(--hero-feather) + var(--s-4)); }
.stages { padding-top: var(--s-5); padding-bottom: var(--s-7); }
.caps::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--hero-feather);
  pointer-events: none;
  clip-path: inset(0 var(--gut));
  background: linear-gradient(var(--night), var(--umber) 24%, var(--taupe-d) 47%, var(--taupe) 68%, var(--stone) 85%, var(--paper));
}
.stages > *, .tools > *, .about { max-width: 1520px; margin-inline: auto; }
.stages-head {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  background: var(--paper);
  box-shadow: 0 0 0 var(--s-2) var(--paper);
}
h2 { font: 500 clamp(2.4rem, 5.2vw, 5.4rem)/.95 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.stages-head h2 { grid-column: 1 / span 7; }
.stages-note { grid-column: 9 / -1; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.stages-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); align-items: end; }
.stage-01 { grid-column: span 3; position: relative; }
.stage-02 { grid-column: span 4; }
.stage-03 { grid-column: span 5; }
.stage-img { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3.3; }
.stage-03 .stage-img { aspect-ratio: 4 / 2.7; }
.stage-img img, .stage-img picture { width: 100%; height: 100%; object-fit: cover; }
.stage-img.paper { background: var(--paper-2); }
.stage-img.paper img { object-fit: contain; padding: 4%; mix-blend-mode: normal; }
.stages-row a:hover img { scale: 1.03; }
.stage-img img { transition: scale var(--t-scene) var(--ease); }
.stages-row figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 14px; border-top: .75px solid var(--taupe); }
.stages-row b { font: 500 .8125rem/1.4 var(--sans); color: var(--brass-ink); }
.stages-row strong { font: 500 clamp(1rem, 1.3vw, 1.15rem)/1.3 var(--sans); }
.stages-row span { color: var(--ink-2); font-size: .88rem; }

/* Automation: a real crossing. The render pins while the light dialog moves over it and the body becomes taupe-d. */
.tools {
  --focus: var(--focus-dark);
  position: relative;
  isolation: isolate;
  padding: 0 var(--gut) var(--s-6);
  color: var(--on-dark);
  background: var(--home-clear);
}
.tools::before, .about::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.tools::before { background: linear-gradient(var(--paper), var(--stone) 18vh, var(--taupe-d) 42vh, var(--taupe-d)); }
.visual-crossing {
  /* Final values are the no-script fallback; the scrubber writes the travelling values before this enters view. */
  --dialog-x: 0px;
  --dialog-y: 0px;
  --render-scale: 1;
  position: relative;
  height: max(130vh, 860px);
}
.visual-pin {
  position: sticky;
  top: clamp(24px, 8vh, 72px);
  height: clamp(480px, 72vh, 680px);
  isolation: isolate;
}
.cross-render {
  position: absolute;
  inset: 0 18% 8% 0;
  overflow: hidden;
  background: var(--night);
  border-radius: 2px;
  box-shadow: 0 50px 90px -55px var(--home-shadow-soft);
}
.cross-render picture, .cross-render img { display: block; width: 100%; height: 100%; }
.cross-render img { object-fit: cover; object-position: 50% 56%; scale: var(--render-scale); }
.cross-render::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--home-night-clear) 50%, var(--home-night-overlay) 100%); pointer-events: none; }
.cross-render figcaption {
  position: absolute;
  z-index: 1;
  left: var(--s-2);
  bottom: var(--s-2);
  padding: 6px 9px;
  color: var(--on-dark);
  background: var(--home-night-label);
  border-radius: 2px;
  font: 400 .8125rem/1.4 var(--sans);
}
.cross-dialog {
  position: absolute;
  z-index: 2;
  top: 44%;
  right: 0;
  display: block;
  width: min(55%, 720px);
  color: var(--on-dark);
  transform: translate3d(var(--dialog-x), var(--dialog-y), 0);
  will-change: transform;
}
.cross-dialog picture, .cross-dialog img { display: block; width: 100%; }
.cross-dialog img { border: .75px solid var(--home-dialog-rule); border-radius: 4px; box-shadow: 0 50px 80px -40px var(--home-shadow-deep); }
.cross-dialog:focus-visible { outline: 3px solid var(--night); outline-offset: 4px; box-shadow: 0 0 0 6px var(--focus-dark); }
.cross-caption { display: table; margin: 10px 0 0 auto; padding: 5px 8px; color: var(--on-dark); background: var(--home-night-label); border-radius: 2px; font: 400 .8125rem/1.4 var(--sans); text-align: right; }
.tools-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.tools-head { grid-column: 1 / span 6; display: grid; gap: var(--s-3); }
.tools-copy { grid-column: 8 / -1; }
.tools-copy > p { color: var(--on-dark-2); font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 48ch; }
.tool-index { margin: var(--s-4) 0 var(--s-3); border-top: .75px solid var(--home-paper-rule); }
.tool-index a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 2px 16px; padding: 14px 0; border-bottom: .75px solid var(--home-paper-rule); transition: padding var(--t-reveal) var(--ease); }
.tool-index b { grid-row: span 2; font: 500 .8125rem/1.6 var(--sans); color: var(--focus-dark); }
.tool-index strong { font-weight: 500; font-size: 1.1rem; }
.tool-index span { grid-column: 2; color: var(--on-dark-2); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--focus-dark); font-weight: 400; border-bottom: .75px solid var(--home-focus-rule); transition: border-color var(--t-ui); }
.text-link:hover, .text-link:focus-visible { border-color: currentColor; }

/* About takes the one canvas from taupe-d to night before the footer starts on the same night. */
.about { --focus: var(--focus-dark); position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-content: center; gap: var(--s-3); min-height: min(70vh, 680px); color: var(--on-dark); background: var(--home-clear); scroll-margin-top: 24px; }
.about::before { inset-inline: calc(50% - 50vw); background: linear-gradient(var(--taupe-d), var(--umber) 20vh, var(--night) 40vh, var(--night)); }
.about h2 { grid-column: 1 / span 6; }
.about-copy { grid-column: 8 / -1; display: grid; gap: var(--s-2); color: var(--on-dark-2); font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 50ch; }
.about + * { margin-top: 0; }
body > .ax-footer { padding-top: var(--s-5); }

@media (max-width: 860px) {
  .statement h1, .statement p, .stages-head h2, .stages-note, .tools-head, .tools-copy, .about h2, .about-copy { grid-column: 1 / -1; }
  .stage-01, .stage-02 { grid-column: span 6; }
  .stage-03 { grid-column: 1 / -1; }
  /* Captions stack: number and title on one line, the description below. */
  .stages-row figcaption { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; }
  .stages-row figcaption span { grid-column: 1 / -1; }
  .visual-crossing { height: max(125vh, 780px); }
  .visual-pin { height: clamp(500px, 72vh, 640px); }
  .cross-render { inset: 0 0 16% 0; }
  .cross-dialog { top: auto; right: 4%; bottom: 0; width: 92%; }
}
@media (max-width: 700px) {
  .first-screen { grid-template-rows: auto auto; min-height: 0; }
  .split { flex-direction: column; clip-path: inset(0 var(--gut)); }
  .side { flex: none; height: 62svh; min-height: 380px; max-height: 560px; }
  .side + .side { border: 0; }
  .side-copy, .side.design .side-copy, .side.automation .side-copy { grid-template-columns: minmax(0, 1fr); padding-inline: var(--pad-x); }
  .side-go { grid-column: 1; justify-self: start; margin-top: 8px; }
  .side-dialog { top: 15%; width: calc(100% - 2 * var(--pad-x)); }
  .side-tag, .side.design .side-tag, .side.automation .side-tag { top: 12px; left: calc(var(--gut) + 12px); right: auto; text-align: left; font-size: .75rem; }
  .split:hover .side:hover { flex-grow: 0; }
}

/* Motion. Scroll-scrubbed only; nothing fades up on its own. */
@media (prefers-reduced-motion: no-preference) {
  .statement .line > span { animation: line-rise .7s var(--ease-out) both; }
  .statement .line + .line > span { animation-delay: .08s; }
  .statement p { animation: settle .6s var(--ease-out) .1s both; }
  .side { animation: side-open .7s var(--ease-out) both; }
  .side.automation { animation-delay: .08s; }
  .side-dialog { animation: dialog-in .65s var(--ease-out) .08s both; }
  @keyframes line-rise { from { transform: translateY(112%); } to { transform: none; } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
  @keyframes side-open { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes dialog-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }

  @supports (animation-timeline: view()) {
    /* The paper frame opens to full bleed over the first 70vh of scroll. */
    .split, .stages::before { animation: bleed linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes bleed { to { clip-path: inset(0); } }

    /* The drawing settles within its own clipped card at every scrub position. */
    .stage-01 .stage-img img { animation: drawing-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes drawing-settle {
      from { opacity: .72; transform: translateY(-3%) scale(1.03); }
      to { opacity: 1; transform: none; }
    }
    /* Material, then light; pictures move at 0.9x the scroll. */
    .stage-02 img, .stage-03 img { scale: 1.08; animation: drift linear both; animation-timeline: view(); }
    .stage-02 .stage-img { animation: material linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .stage-03 .stage-img { animation: light linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
    @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
    @keyframes material { from { opacity: .7; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    @keyframes light { from { opacity: .55; } to { opacity: 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .side-photo, .side-dialog, .side-plan img { translate: none; }
  .visual-crossing { height: auto; padding: var(--s-4) 0 var(--s-6); }
  .visual-pin { position: relative; top: auto; }
  .cross-dialog { transform: none; will-change: auto; }
  .cross-render img { scale: 1; }
}

/* Hero: who, what, proof, two actions. */
.statement { row-gap: var(--s-3); }
.statement .kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; color: var(--ink); font: 500 1rem/1.3 var(--sans); }
.statement .kicker span { padding-left: 12px; border-left: .75px solid var(--stone); color: var(--ink-2); font-weight: 400; }
.statement h1 { grid-column: 1 / span 8; font-size: clamp(2.6rem, 6vw, 6.4rem); line-height: .95; }
.statement h1 em { color: var(--brass-ink); }
.statement-side { grid-column: 9 / -1; align-self: end; display: grid; gap: var(--s-3); padding-bottom: .4em; }
.statement .statement-sub { grid-column: auto; padding: 0; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; }
.statement-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 2px; font: 500 .95rem/1 var(--sans); text-decoration: none; transition: background var(--t-ui), color var(--t-ui), border-color var(--t-ui); }
.cta-solid { background: var(--ink); color: var(--paper); border: .75px solid var(--ink); }
.cta-solid:hover, .cta-solid:focus-visible { background: var(--brass-ink); border-color: var(--brass-ink); }
.cta-line { border: .75px solid var(--ink); color: var(--ink); }
.cta-line:hover, .cta-line:focus-visible { background: var(--ink); color: var(--paper); }
.skills { grid-column: 1 / span 8; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; border-top: .75px solid var(--stone); }
.skills li { padding: 12px 18px 0 0; margin-right: 18px; color: var(--ink); font: 400 clamp(.95rem, 1.1vw, 1.05rem)/1.3 var(--sans); position: relative; }
.skills li:not(:last-child)::after { content: ''; position: absolute; right: -2px; top: calc(12px + .55em); width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.proof { grid-column: 9 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; border-top: .75px solid var(--stone); }
.proof div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding-top: 10px; }
.proof dd { margin: 0; font: 500 clamp(2rem, 3vw, 3rem)/.9 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.proof dt { color: var(--ink-2); font-size: .82rem; line-height: 1.3; }

/* What I bring: five disciplines, each with its own evidence. */
.caps { padding-inline: var(--gut); padding-bottom: var(--s-5); }
.caps > * { width: 100%; max-width: 1520px; margin-inline: auto; }
.caps-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); align-items: end; margin-bottom: var(--s-4); }
.caps-head h2 { grid-column: 1 / span 7; font: 500 clamp(2.2rem, 4.6vw, 4.6rem)/.95 var(--serif); letter-spacing: -.03em; }
.caps-head p { grid-column: 9 / -1; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.caps-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); margin-inline: auto; margin-block: 0; padding: 0; list-style: none; }
.caps-row a { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; height: 100%; color: var(--ink); text-decoration: none; }
.cap-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; background: var(--night); }
.cap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.caps-row li:nth-child(2) .cap-img { background: var(--paper-2); }
.caps-row li:nth-child(2) .cap-img img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.caps-row li:nth-child(5) .cap-img img { object-position: left top; }
.caps-row a:hover .cap-img img, .caps-row a:focus-visible .cap-img img { transform: scale(1.04); }
.cap-no { color: var(--brass-ink); font: 400 .85rem/1 var(--sans); }
.caps-row strong { font: 500 clamp(1.5rem, 2vw, 2rem)/1.05 var(--serif); letter-spacing: -.02em; }
.cap-text { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.cap-go { justify-self: start; margin-top: 8px; padding-bottom: 2px; border-bottom: .75px solid var(--stone); font-size: .92rem; transition: border-color var(--t-ui); }
.caps-row a:hover .cap-go, .caps-row a:focus-visible .cap-go { border-color: var(--ink); }

.about h2 em { color: var(--brass); }
.about .statement-cta { margin-top: var(--s-1); }
.about .cta-solid { background: var(--paper); color: var(--night); border-color: var(--paper); }
.about .cta-solid:hover, .about .cta-solid:focus-visible { background: var(--brass); border-color: var(--brass); }
.about .cta-line { border-color: var(--on-dark-2); color: var(--on-dark); }
.about .cta-line:hover, .about .cta-line:focus-visible { background: var(--on-dark); color: var(--night); }

@media (max-width: 1100px) {
  .caps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps-row li:last-child { grid-column: 1 / -1; }
  .caps-row li:last-child .cap-img { aspect-ratio: 16 / 7; }
}
@media (max-width: 860px) {
  .statement h1, .statement-side, .skills, .proof, .caps-head h2, .caps-head p { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .caps-row { grid-template-columns: 1fr; }
  .caps-row li:last-child .cap-img { aspect-ratio: 4 / 3; }
  .proof dt { font-size: .76rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .statement .kicker, .statement-side, .skills, .proof { animation: settle .6s var(--ease-out) .12s both; }
}
@media (prefers-reduced-motion: reduce) { .cap-img img { transition: none; } }

/* ---------- Crisp sections: paper, then one night band from Automation to the footer ---------- */
body { background: var(--paper); }
.caps::before { content: none; }
.caps { padding-top: var(--s-6); }
.tools { background: var(--night); padding-top: var(--s-6); }
.tools::before { background: var(--night); inset-inline: calc(50% - 50vw); }
.about::before { background: var(--night); }
.about { border-top: .75px solid var(--chrome-footer-rule); }
.about-head { grid-column: 1 / span 6; display: grid; gap: var(--s-2); align-content: start; }
.about-head h2 { grid-column: auto; }

/* Drawing-sheet labels: a number and a title on a hairline, as on a title block. */
.sheet-label { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-2); padding-top: 10px; border-top: .75px solid var(--stone); color: var(--ink-2); font: 400 .82rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.sheet-label b { font-weight: 500; color: var(--brass-ink); }
.caps-head .sheet-label, .stages-head .sheet-label { grid-column: 1 / -1; }
.tools .sheet-label, .about .sheet-label { border-color: var(--chrome-footer-rule); color: var(--on-dark-2); }
.tools .sheet-label b, .about .sheet-label b { color: var(--brass); }

/* Pictures arrive like a sheet being drawn: a wipe from the left as they enter view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cap-img, .stage-img { animation: sheet-wipe linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .caps-row li:nth-child(2) .cap-img, .stage-02 .stage-img { animation-range: entry 10% cover 40%; }
    .caps-row li:nth-child(3) .cap-img, .stage-03 .stage-img { animation-range: entry 15% cover 45%; }
    .sheet-label { animation: rule-draw linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes sheet-wipe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    @keyframes rule-draw { from { opacity: .2; } to { opacity: 1; } }
  }
}
@media (max-width: 860px) { .about-head { grid-column: 1 / -1; } }

/* About: portrait and facts under the heading (from the CV). */
.about-id { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: var(--s-2) clamp(18px, 2.4vw, 32px); align-items: start; margin-top: var(--s-1); }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 572 / 640; object-fit: cover; border: .75px solid var(--on-dark-2); filter: saturate(.9); }
.about-facts { display: grid; gap: 0; margin: 0; border-top: .75px solid var(--chrome-footer-rule); }
.about-facts div { padding: 10px 0; border-bottom: .75px solid var(--chrome-footer-rule); }
.about-facts dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.about-facts dd { margin: 3px 0 0; color: var(--on-dark); font-size: .95rem; line-height: 1.45; }
@media (max-width: 560px) { .about-id { grid-template-columns: 1fr; } .about-portrait { max-width: 200px; } }
.about-facts .nw { white-space: nowrap; }

/* Home: the browser demos, one line under the tool index. */
.tools-try { margin: 18px 0 4px; color: var(--on-dark-2); }
.tools-try a { color: var(--on-dark, #f3eee6); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.tools-try a:hover { color: var(--brass); }

/* The I3D preview is squarer than the old strip: keep it inside the A-202 render, caption included. */
@media (min-width: 861px) { .cross-dialog { top: auto; bottom: 52px; width: min(40%, 520px); } }
