/* Desktop: the rail wrappers disappear and the cards keep their fitted stage positions. */
.about-rail,.about-rail-track{display:contents}
.about-photo-notes{display:none}

/* Mobile: the same pinned, document-driven rail as Capabilities and Selected work. */
@media(max-width:960px){
  .about-rail{display:block;grid-column:1/-1;min-width:0;width:100vw;margin-left:calc(50% - 50vw)}
  .about-rail[data-mobile-rail]{position:relative;height:var(--cap-scroll-height);overflow:visible;overflow-anchor:none;scroll-margin-top:calc(64px + env(safe-area-inset-top,0px));--cap-pin-top:calc(64px + env(safe-area-inset-top,0px));--cap-pin-height:calc(100svh - 160px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .about-rail[data-mobile-rail]>.about-rail-pin{position:sticky;top:var(--cap-pin-top);display:flex;flex-direction:column;gap:10px;width:100%;height:var(--cap-pin-height);min-height:230px;padding:14px 0 5px;box-sizing:border-box;background:var(--site-bg)}
  .about-rail-pin>.capability-window{display:block;flex:1;min-height:0;width:100%;overflow:hidden;overflow:clip;overflow-anchor:none;touch-action:pan-y pinch-zoom}
  .about-rail[data-mobile-rail] .about-rail-track{position:relative;display:flex;align-items:stretch;gap:16px;width:var(--cap-track-width);max-width:none;height:100%;padding:0 16px;box-sizing:border-box;margin:0;will-change:transform}
  .about-rail[data-mobile-rail] .about-rail-track>.about-card{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;flex:0 0 var(--cap-card-width);width:var(--cap-card-width)!important;max-width:var(--cap-card-width);height:100%!important;min-height:0;max-height:100%;margin:0;grid-column:auto!important;grid-row:auto!important;touch-action:pan-y pinch-zoom;translate:none!important}
  .about-rail-pin>.capability-rail-controls{display:flex;align-items:center;gap:10px;flex:none;padding:0 16px;min-height:44px;color:var(--site-muted);font:12px/1.3 var(--font-ui)}
  .about-rail[data-mobile-rail="swipe"]{height:auto}
  .about-rail[data-mobile-rail="swipe"]>.about-rail-pin{position:static;height:auto;min-height:0}
  .about-rail[data-mobile-rail="swipe"] .capability-window{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:16px;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
  .about-rail[data-mobile-rail="swipe"] .about-rail-track{height:auto}
  .about-rail[data-mobile-rail="swipe"] .about-rail-track>.about-card{height:min(560px,75svh)!important;scroll-snap-align:start}
}

/* Mobile-first card interiors for the tall rail frame. Scoped to the rail, so desktop is untouched. */
@media(max-width:960px){
  .about-rail[data-mobile-rail] .about-card{border-radius:16px}
  .about-rail[data-mobile-rail] .about-chip{font-size:13px}

  /* Experience: larger type, rows spread through the card. */
  .about-rail[data-mobile-rail] .xp{top:64px;bottom:18px;display:flex;flex-direction:column}
  .about-rail[data-mobile-rail] .xp-list{flex:1;display:flex;flex-direction:column;padding-top:8px}
  .about-rail[data-mobile-rail] .xp-row{flex:1 1 auto;align-content:start;grid-template-columns:22px minmax(0,1fr) auto;padding:6px 0}
  .about-rail[data-mobile-rail] .xp-row strong{font-size:16px}
  .about-rail[data-mobile-rail] .xp-row>div>span{font-size:13.5px}
  .about-rail[data-mobile-rail] .xp-row.is-active>div>span{max-height:22px;margin-top:4px}
  .about-rail[data-mobile-rail] .xp-row time{font-size:13px}
  .about-rail[data-mobile-rail] .xp-row::after,.about-rail[data-mobile-rail] .xp-row::before{top:21px;bottom:-11px;left:6.6px}
  .about-rail[data-mobile-rail] .xp-dot{width:11px;height:11px;margin-top:5px}

  /* Focus: the sketch leads at full width, copy and controls follow. */
  .about-rail[data-mobile-rail] .about-focus{display:flex;flex-direction:column;padding:62px 18px 16px}
  .about-rail[data-mobile-rail] .about-focus-cover{position:relative;left:auto;top:auto;width:100%;height:auto;flex:1 1 0;min-height:140px;border-radius:6px;background-color:var(--sk-paper);background-image:linear-gradient(var(--sk-grid) .6px,transparent .6px),linear-gradient(90deg,var(--sk-grid) .6px,transparent .6px);background-size:20px 20px;background-position:center}
  .about-rail[data-mobile-rail] .about-focus-art .sk-paper,.about-rail[data-mobile-rail] .about-focus-art .sk-grid{display:none}
  .about-rail[data-mobile-rail] .about-focus-copy{position:relative;left:auto;right:auto;top:auto;width:100%;margin-top:16px;flex:none}
  .about-rail[data-mobile-rail] .about-focus-copy>h3{font-size:22px}
  .about-rail[data-mobile-rail] .about-focus-copy>p{height:auto;min-height:44px;font-size:15px}
  .about-rail[data-mobile-rail] .about-focus-controls{justify-content:space-between;margin-top:8px}
  .about-rail[data-mobile-rail] .about-focus-controls button{width:44px;height:44px}

  /* Principle: statement on top, the notebook centred beneath it. */
  .about-rail[data-mobile-rail] .about-principle .about-principle-copy{left:20px;right:20px;top:66px;width:auto}
  .about-rail[data-mobile-rail] .about-principle .about-principle-copy h3{font-size:28px;line-height:1.18}
  .about-rail[data-mobile-rail] .about-principle .about-principle-copy p{font-size:15px;margin-top:12px}
  .about-rail[data-mobile-rail] .about-notebook.sk-book{right:50%;bottom:54px;width:min(168px,46%);height:auto;aspect-ratio:133/199;translate:50% 0}
  .about-rail[data-mobile-rail] .about-principle-pager{left:14px;bottom:12px}
  .about-rail[data-mobile-rail] .about-principle-pager button{width:32px;height:32px}

  /* Mesh portrait slide: the picture keeps its original 360:242 proportions at the top of a
     full-height card; a short résumé note fills the rest in the photo's own dark tone. */
  .about-rail[data-mobile-rail] .about-rail-track>.about-photo{--photo-h:calc(var(--cap-card-width) * 242 / 360);background:#0c1823;border-color:#1d3346}
  .about-rail[data-mobile-rail] .about-photo>img,.about-rail[data-mobile-rail] .about-photo>canvas{inset:0 0 auto 0;height:var(--photo-h);border-radius:0}
  .about-rail[data-mobile-rail] .about-photo>.about-photo-caption{bottom:auto;top:calc(var(--photo-h) - 46px)}
  .about-rail[data-mobile-rail] .about-photo-notes{position:absolute;left:0;right:0;top:var(--photo-h);bottom:0;display:flex;flex-direction:column;justify-content:flex-start;padding:20px 20px 18px;overflow:hidden;color:#e7eef4}
  .about-photo-notes h3{margin:0;font-size:22px;line-height:1.2;font-weight:500;letter-spacing:-.02em;color:#f2f6f9}
  .about-photo-notes p{margin:10px 0 0;font-size:14.5px;line-height:1.6;color:#a9bccb}
  .about-photo-notes dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:auto 0 0;padding-top:16px;border-top:1px solid #23394d}
  .about-photo-notes dl>div{min-width:0}
  .about-photo-notes dt{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;color:#f2f6f9}
  .about-photo-notes dd{margin:2px 0 0;font-size:12px;line-height:1.35;color:#8fa6b8}

  /* How I work: content centred in the frame, route close to the copy. */
  .about-rail[data-mobile-rail] .about-process{display:flex;flex-direction:column;justify-content:center;padding:64px 20px 20px}
  .about-rail[data-mobile-rail] .about-process .about-process-copy{position:relative;left:auto;right:auto;top:auto;width:100%;height:190px;flex:none}
  .about-rail[data-mobile-rail] .about-process .about-process-layer h3{font-size:30px;line-height:1.15}
  .about-rail[data-mobile-rail] .about-process .about-process-layer p{font-size:16px;line-height:1.6;margin-top:14px}
  .about-rail[data-mobile-rail] .about-step-control{position:relative;left:auto;right:auto;bottom:auto;width:100%;height:72px;margin-top:22px;flex:none}
  .about-rail[data-mobile-rail] .about-step-control>button{min-height:44px;font-size:14px!important}
}
/* Short phones: keep the notebook at the side so the statement stays readable. */
@media(max-width:960px) and (max-height:740px){
  .about-rail[data-mobile-rail] .about-notebook.sk-book{right:10px;bottom:-14px;width:118px;translate:none}
  .about-rail[data-mobile-rail] .about-principle .about-principle-copy{right:auto;width:58%}
  .about-rail[data-mobile-rail] .about-principle .about-principle-copy h3{font-size:23px}
  .about-rail[data-mobile-rail] .about-process .about-process-copy{height:150px}
  .about-rail[data-mobile-rail] .about-photo-notes{padding:14px 18px 12px}
  .about-rail[data-mobile-rail] .about-photo-notes h3{font-size:19px}
  .about-rail[data-mobile-rail] .about-photo-notes p{margin-top:6px;font-size:13px;line-height:1.5}
  .about-rail[data-mobile-rail] .about-photo-notes dl{padding-top:10px}
  .about-rail[data-mobile-rail] .about-photo-notes dt{font-size:17px}
  .about-rail[data-mobile-rail] .about-photo-notes dd{font-size:11px}
}

/* Phone intro: the greeting sits beside the portrait; the rest of the sentence flows below. */
.about-photo-quote{display:none}
@media(max-width:960px){
  #about-stage.about-stage{display:block}
  #about-stage>:not(.about-rail){margin-top:0;margin-bottom:16px}
  #about-stage>.about-avatar{float:left;width:124px!important;height:136px!important;margin:0 12px 6px -10px}
  #about-stage>.about-role{margin:14px 0 4px;font-size:13px}
  #about-stage .about-heading{font-size:clamp(23px,6.5vw,30px);line-height:1.15}
  /* "Hi, I'm" and the name sit beside the photo; the name is sized to stay on one line. */
  #about-stage .about-heading .about-hello{display:block;font-size:min(34px,calc((100vw - 166px) / 8.9));line-height:1.12}
  #about-stage .about-heading .about-name{display:block;white-space:nowrap}
  #about-stage .about-heading .about-lead{display:block;clear:both;padding-top:10px}
  #about-stage .about-heading br{display:none}
  #about-stage .about-heading .about-dash{display:none}
  #about-stage>.about-bio{clear:both}

  /* Calligraphic line in the mesh portrait card. */
  .about-rail[data-mobile-rail] .about-photo-quote{display:block;margin:22px 0 0}
  .about-photo-quote p{margin:0;font-family:'Allura',cursive!important;font-size:40px!important;line-height:1.02!important;color:#f2f6f9!important}
  .about-photo-quote svg{display:block;width:64%;height:12px;margin-top:4px;overflow:visible}
  .about-photo-quote path{fill:none;stroke:#86b8dc;stroke-width:1.4;stroke-linecap:round}
  .about-photo-quote cite{display:block;margin:2px 0 0 46%;font-family:'Allura',cursive!important;font-style:normal;font-size:24px;color:#9fb6c8}
}
@media(max-width:960px) and (max-height:740px){.about-rail[data-mobile-rail] .about-photo-quote{display:none}}

/* How I work on taller phones: the six steps become a vertical route under the current step. */
@media(max-width:960px) and (min-height:741px){
  .about-rail[data-mobile-rail] .about-process{justify-content:flex-start;padding:62px 20px 16px}
  .about-rail[data-mobile-rail] .about-process .about-process-copy{height:158px}
  .about-rail[data-mobile-rail] .about-process .about-process-layer h3{font-size:27px}
  .about-rail[data-mobile-rail] .about-process .about-process-layer p{font-size:15.5px;margin-top:10px}
  .about-rail[data-mobile-rail] .about-step-control{display:flex;flex-direction:column;flex:1 1 auto;height:auto;margin-top:10px}
  .about-rail[data-mobile-rail] :is(.about-step-route,.about-step-pill){display:none}
  .about-rail[data-mobile-rail] .about-step-control>button{position:relative;flex:1 1 0;flex-direction:row;justify-content:flex-start;align-items:center;gap:14px;width:100%;min-height:38px;padding:0;font-size:15px!important;text-align:left}
  .about-rail[data-mobile-rail] .about-step-control>button::before{margin:0;flex:none;position:relative;z-index:1}
  .about-rail[data-mobile-rail] .about-step-control>button::after{content:'';position:absolute;left:7px;top:calc(50% + 9px);height:calc(100% - 18px);width:1.6px;background:var(--site-line,#cbd4d0);transition:background .3s}
  .about-rail[data-mobile-rail] .about-step-control>button:last-of-type::after{display:none}
  .about-rail[data-mobile-rail] .about-step-control>button:has(~ button[aria-selected="true"])::after,
  .about-rail[data-mobile-rail] .about-step-control>button:has(~ button[aria-selected="true"])::before{background:var(--site-accent,#335d65);border-color:var(--site-accent,#335d65)}
  .about-rail[data-mobile-rail] .about-step-control>button[aria-selected="true"]{font-weight:500}
  .about-rail[data-mobile-rail] .step-label{padding:0 6px;margin-left:-6px;background:linear-gradient(var(--site-yellow,#eeeacb),var(--site-yellow,#eeeacb)) no-repeat 0 62%/0% 48%;transition:background-size .5s ease .1s}
  .about-rail[data-mobile-rail] .about-step-control>button[aria-selected="true"] .step-label{background-size:100% 48%}
  /* Infographic per step on the right: faint until reached, drawn in when current. */
  .about-rail[data-mobile-rail] .step-glyph{display:block;width:34px;height:34px;margin-left:auto;flex:none;overflow:visible;opacity:.32;transition:opacity .3s,transform .4s}
  .about-rail[data-mobile-rail] .step-glyph path{fill:none;stroke:var(--site-ink,#1e2a2d);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}
  .about-rail[data-mobile-rail] .about-step-control>button:has(~ button[aria-selected="true"]) .step-glyph{opacity:.6}
  .about-rail[data-mobile-rail] .about-step-control>button[aria-selected="true"] .step-glyph{opacity:1;transform:scale(1.18) rotate(-4deg)}
  .about-rail[data-mobile-rail] .about-step-control>button[aria-selected="true"] .step-glyph path{stroke:var(--site-accent,#335d65);stroke-width:1.8;animation:about-glyph-draw .9s cubic-bezier(.45,.05,.25,1) both}
}
@keyframes about-glyph-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media(max-width:960px) and (max-height:740px){.about-rail[data-mobile-rail] .about-step-control>button{font-size:11px!important}}

/* How the work connects, phones: the whole map as a globe you can turn and pinch. */
.about-network-hint{display:none}
@media(max-width:960px){
  .about-constellation .about-network-header{flex-direction:column;align-items:flex-start;gap:16px}
  .about-constellation .about-network-header button{font-size:15px;min-height:44px;white-space:nowrap}
  .about-constellation .about-network-filters{flex-wrap:wrap;gap:8px;margin-top:20px}
  .about-constellation .about-network-filters button{min-height:44px;font-size:15px}
  .about-constellation .about-network-stage{height:min(118vw,580px);min-height:360px;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
  .about-constellation .about-network-stage:active{cursor:grabbing}
  .about-constellation .about-network-node{font-size:13px!important;max-width:116px;text-align:center}
  /* Far side of the globe: dots only, so the front stays readable. */
  .about-constellation .about-network-node:first-child{font-size:14px!important}
  .about-constellation .about-network-node.is-hub{font-size:17px!important}
  .about-constellation .about-network-margin{display:none}
  .about-network-hint{display:block;position:absolute;left:50%;bottom:8px;translate:-50% 0;padding:4px 10px;border-radius:999px;background:var(--site-surface,#fff);border:1px solid var(--site-line,#cbd4d0);font-size:12px;color:var(--site-muted,#526169);pointer-events:none;white-space:nowrap}
  .about-constellation .about-network-detail{grid-template-columns:1fr;gap:10px}
  .about-constellation .about-network-nodes .about-network-node.is-far{font-size:0!important;gap:0;color:transparent}
}

/* How I work on taller phones: the step's scene sits beside the route, replacing the small icons. */
@media(max-width:960px) and (min-height:741px){
  .about-rail[data-mobile-rail] .about-process .process-art{top:auto;bottom:22px;right:18px;width:46%;height:calc(100% - 270px);min-height:220px;rotate:1deg}
  .about-rail[data-mobile-rail] .about-step-control{width:52%}
  .about-rail[data-mobile-rail] .step-glyph{display:none}
}
@media(max-width:960px) and (max-height:740px){.about-rail[data-mobile-rail] .about-process .process-art{display:none}}
@media(max-width:960px){.about-process:not(.about-rail-track>*) .process-art{display:none}}

/* Globe filters on phones: one swipeable row of sketched chips, each with its cluster's dot. */
@media(max-width:960px){
  .about-constellation .about-network-filters{flex-wrap:nowrap;gap:8px;margin:18px -20px 0;padding:6px 20px 10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 28px),transparent)}
  .about-constellation .about-network-filters::-webkit-scrollbar{display:none}
  .about-constellation .about-network-filters button{position:relative;flex:none;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px 0 12px!important;border:1.4px solid var(--site-ink,#1e2a2d)!important;border-radius:9px 18px 8px 15px!important;background:var(--site-surface,#fff)!important;box-shadow:2px 2px 0 var(--site-line,#cbd4d0);color:var(--site-ink,#1e2a2d)!important;font-size:14px!important;white-space:nowrap;scroll-snap-align:start;rotate:-.8deg}
  .about-constellation .about-network-filters button:nth-child(2n){rotate:.9deg;border-radius:16px 8px 17px 9px!important}
  .about-constellation .about-network-filters button::before{content:'';width:9px;height:9px;flex:none;border:1.3px solid var(--site-ink,#1e2a2d);border-radius:46% 54% 40% 60%;background:var(--chip-dot,var(--site-surface,#fff))}
  .about-constellation .about-network-filters button:nth-child(1){--chip-dot:var(--site-ink,#1e2a2d)}
  .about-constellation .about-network-filters button:nth-child(2){--chip-dot:#f3d36b}
  .about-constellation .about-network-filters button:nth-child(3){--chip-dot:#8fd3c7}
  .about-constellation .about-network-filters button:nth-child(4){--chip-dot:#9fb7f0}
  .about-constellation .about-network-filters button:nth-child(5){--chip-dot:#f2a7cf}
  .about-constellation .about-network-filters button:nth-child(6){--chip-dot:#c6b0f0}
  .about-constellation .about-network-filters button[aria-pressed="true"]{background:var(--site-yellow,#eeeacb)!important;font-weight:500;box-shadow:3px 3px 0 var(--site-ink,#1e2a2d)}
  .about-constellation .about-network-filters button[aria-pressed="true"]::after{content:'';position:absolute;left:12px;right:14px;bottom:5px;height:2px;border-radius:2px;background:var(--site-accent,#335d65);rotate:-1deg}
  /* A larger globe that fills the frame. */
  .about-constellation .about-network-stage{height:min(128vw,620px)!important}
}

/* Notebook on phones: readable flow, no overlaps. */
@media(max-width:960px){
  .about-notebook-heading>span{text-align:left!important;rotate:0deg!important;margin-top:10px;font-size:17px!important}
  .about-character-art{height:min(62svh,460px)!important}
  .about-character-figure{gap:10px}
  .about-character-figure figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
  .about-character-note{font-family:'Allura',cursive!important;font-size:28px!important;line-height:1.05!important;color:var(--site-ink,#1e2a2d)}
  .about-character-controls{margin-top:0}
  .about-notebook-pages{display:flex;flex-direction:column;gap:20px;margin-top:22px}
  .about-note-paper{padding:24px 20px 22px!important;margin:0!important}
  .about-note-paper h3{font-size:26px!important;line-height:1.2!important}
  .about-note-paper h4{font-size:21px!important}
  .about-note-paper p{font-size:15px!important;line-height:1.65!important}
  .about-note-margin{display:block;width:auto!important;margin:18px 0 0!important;text-align:left!important;rotate:-1deg!important;font-family:'Allura',cursive!important;font-size:26px!important;line-height:1.1!important;color:var(--site-accent,#335d65)!important;position:static!important}
  .about-notebook-snapshot{position:relative!important;inset:auto!important;align-self:center;width:min(64%,250px)!important;height:auto!important;margin:4px auto!important;rotate:3deg!important;transform:none!important}
  .about-notebook-snapshot>span{position:static!important;display:block;margin-top:6px;text-align:center;rotate:0deg!important}
}
@media(max-width:960px){
  .about-note-paper>a.portfolio-action{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin-top:18px;padding:10px 16px!important;border:1.4px solid var(--site-ink,#1e2a2d)!important;border-radius:6px 14px 7px 12px!important;background:var(--site-surface,#fff)!important;box-shadow:2px 3px 0 var(--site-line,#cbd4d0);color:var(--site-ink,#1e2a2d)!important;font-size:15px!important;text-decoration:none!important}
  :root[data-style="sketch"] .about-note-paper>a.portfolio-action{background:var(--site-yellow)!important}
}

/* Footer on phones: dark all the way to the bottom (under the nav), compact and centred. */
@media(max-width:960px){
  .site-footer#contact{display:flex!important;flex-direction:column;align-items:stretch;gap:0;margin-bottom:-96px!important;padding:44px 20px calc(118px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;height:auto!important}
  .site-footer-copy{position:static!important;width:auto!important;text-align:left}
  .site-footer-copy h2{font-size:clamp(38px,11vw,48px)!important;line-height:1.05!important;margin:0!important}
  .site-footer-subtitle{margin:12px 0 0!important;font-size:17px!important}
  .site-footer-email{display:inline-block;margin-top:22px!important;font-size:18px!important;word-break:break-all}
  .site-footer-phone{display:block;margin-top:10px!important;font-size:16px!important}
  .site-footer-links{position:static!important;display:grid!important;grid-template-columns:1fr 1fr;gap:10px;width:auto!important;margin:24px 0 0!important}
  .site-footer-links a{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px!important;border:1.4px solid #ffffffcc!important;border-radius:7px 15px 8px 13px!important;font-size:17px!important;text-decoration:none!important;box-shadow:2px 3px 0 #ffffff26;rotate:-.6deg}
  .site-footer-links a+a{rotate:.7deg;border-radius:14px 7px 15px 8px!important}
  .site-footer-portrait{position:relative!important;inset:auto!important;width:min(76%,300px)!important;height:auto!important;aspect-ratio:3/4;margin:30px auto 0!important;transform:none!important}
  .site-footer-portrait>img,.site-footer-portrait>canvas{width:100%!important;height:100%!important}
  .site-footer-toys{position:relative!important;inset:auto!important;align-self:center;margin:-30px auto 0!important;z-index:2;transform:none!important}
  .site-footer-meta{position:static!important;margin:22px 0 0!important;text-align:center!important;width:auto!important;transform:none!important}
}
@media(max-width:960px){
  .site-footer-links a{width:100%!important;max-width:none!important;justify-self:stretch}
  .site-footer-meta{display:block!important;align-self:stretch!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding:0!important;left:auto!important}
}


/* Notebook pages rail (phones). Desktop: wrappers vanish. */
.about-notebook-rail{display:contents}
@media(max-width:960px){
  .about-notebook-rail{display:block;width:100vw;margin-left:calc(50% - 50vw)}
  .about-notebook-rail[data-mobile-rail]{position:relative;height:var(--cap-scroll-height);overflow:visible;overflow-anchor:none;--cap-pin-top:calc(64px + env(safe-area-inset-top,0px));--cap-pin-height:calc(100svh - 160px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .about-notebook-rail[data-mobile-rail]>.notebook-rail-pin{position:sticky;top:var(--cap-pin-top);display:flex;flex-direction:column;gap:8px;width:100%;height:var(--cap-pin-height);min-height:230px;padding:12px 0 4px;box-sizing:border-box;background:var(--site-bg)}
  .notebook-rail-pin>.capability-window{display:block;flex:1;min-height:0;width:100%;overflow:hidden;overflow:clip;touch-action:pan-y pinch-zoom}
  .about-notebook-rail[data-mobile-rail] .about-notebook-pages{position:relative;display:flex!important;flex-direction:row!important;align-items:stretch;gap:16px!important;width:var(--cap-track-width);max-width:none;height:100%;margin:0!important;padding:0 16px;box-sizing:border-box;will-change:transform}
  .about-notebook-rail[data-mobile-rail] .about-notebook-snapshot{display:none!important}
  .about-notebook-rail[data-mobile-rail] .about-note-paper{position:relative!important;inset:auto!important;flex:0 0 var(--cap-card-width);width:var(--cap-card-width)!important;max-width:var(--cap-card-width)!important;height:100%!important;margin:0!important;padding:22px 18px 18px!important;overflow:hidden;overflow:clip;rotate:0deg!important;transform:none!important;touch-action:pan-y pinch-zoom}
  .about-notebook-rail[data-mobile-rail] .about-note-paper h3{font-size:23px!important;margin-top:6px!important}
  .about-notebook-rail[data-mobile-rail] .about-note-paper h4{font-size:18px!important;margin:14px 0 6px!important}
  .about-notebook-rail[data-mobile-rail] .about-note-paper p{font-size:14px!important;line-height:1.55!important;margin:10px 0 0!important}
  .about-notebook-rail[data-mobile-rail] .about-note-margin{font-size:22px!important;margin-top:12px!important}
  .about-notebook-rail[data-mobile-rail] .about-note-paper>a.portfolio-action{margin-top:14px;min-height:42px}
  /* Controls row is tall enough for the companion to walk along it. */
  .notebook-rail-pin>.capability-rail-controls{display:flex;align-items:flex-end;gap:10px;flex:none;min-height:96px;padding:0 16px 4px;color:var(--site-muted);font:12px/1.3 var(--font-ui)}
  .notebook-rail-pin .capability-rail-hint,.notebook-rail-pin .capability-rail-meter{visibility:hidden}
  .notebook-rail-pin .capability-rail-meter{flex:1}
  .about-notebook-rail[data-mobile-rail="swipe"]{height:auto}
  .about-notebook-rail[data-mobile-rail="swipe"]>.notebook-rail-pin{position:static;height:auto}
  .about-notebook-rail[data-mobile-rail="swipe"] .capability-window{overflow-x:auto;scroll-snap-type:x mandatory;touch-action:pan-x pan-y pinch-zoom}
  .about-notebook-rail[data-mobile-rail="swipe"] .about-note-paper{height:auto!important;scroll-snap-align:start}
}

@media(max-width:960px){.notebook-rail-pin>.capability-rail-controls{min-height:96px!important;padding-left:calc(min(150px,38vw) + 14px)!important}}
