/* Prototype: dotted paper plane hero. */
.plane-stage{position:relative;height:190px;margin:0 0 6px}
/* a page from a dotted notebook: soft dot grid fading out at the edges */
.plane-stage::before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle,color-mix(in srgb,var(--quiet) 30%,transparent) 1px,transparent 1.2px);background-size:16px 16px;background-position:8px 6px;mask-image:linear-gradient(180deg,transparent,#000 24%,#000 82%,transparent),linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-composite:intersect;-webkit-mask-composite:source-in;pointer-events:none}
.plane-caption{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--quiet);margin:0 0 34px}
.plane-stats{display:flex;gap:10px;align-items:baseline;flex-shrink:0}
.plane-stats button{border:0;background:none;padding:0;color:var(--quiet);font-size:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.plane-stats button:hover{color:var(--accent)}
.plane-stats button[hidden]{display:none}

.plane-layer{position:fixed;inset:0;pointer-events:none;z-index:20;overflow:hidden}
/* touch screens: the layer spans the page and scrolls natively (height set in plane.js) */
.plane-layer--page{position:absolute;inset:0 0 auto 0}
.plane-layer canvas{display:block}
.plane-handle{position:absolute;top:0;left:0;width:88px;height:46px;border:0;padding:0;background:none;border-radius:12px;cursor:grab;touch-action:none;pointer-events:auto}
.plane-layer.is-grabbing .plane-handle{cursor:grabbing}
.plane-handle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.plane-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media(max-width:600px){.plane-stage{height:180px}.plane-caption{font-size:14px;margin-bottom:26px}}

/* With a mouse, the paper plane is the cursor on this page */
html.plane-cursor, html.plane-cursor *{cursor:none!important}
html.plane-cursor dialog, html.plane-cursor dialog *{cursor:url(./assets/cursor-arrow.svg?v=2) 4 3, auto!important}
html.plane-cursor dialog button, html.plane-cursor dialog a{cursor:url(./assets/cursor-arrow-hover.svg?v=2) 4 3, pointer!important}
/* over a link the plane steps aside and the purple arrow shows */
html.plane-cursor.plane-on-link, html.plane-cursor.plane-on-link *{cursor:url(./assets/cursor-arrow-hover.svg?v=2) 4 3, pointer!important}

/* Soft daytime sky behind the hero; it scrolls away and the white page takes over */
.sky{position:absolute;top:0;left:0;width:100%;overflow:hidden;pointer-events:none;z-index:0}
.sky-base{position:absolute;inset:0;width:100%;height:100%}
.sky-clouds{position:absolute;inset:0;will-change:transform,opacity}
.sky-cloud{position:absolute;top:0;left:0;will-change:transform}
.notebook-header,.notebook-main,.notebook-footer{position:relative;z-index:1}
/* the sky replaces the dot grid in light mode; dark mode keeps the plain page for now */
:root[data-theme=dark] .sky{display:none}
/* a hand over the bin: open on hover, closed while dragging */
html.plane-cursor.plane-over-bin, html.plane-cursor.plane-over-bin *{cursor:grab!important}
html.plane-cursor.plane-moving-bin, html.plane-cursor.plane-moving-bin *{cursor:grabbing!important}
/* sky hidden for now (the code stays, so it can come back by removing this line) */
.sky{display:none!important}

/* Homepage: semibold name, and more vertical breathing room between parts */

.intro p{margin-bottom:22px}
.plane-stage{margin-top:48px}
.plane-caption{margin-bottom:12px}
.home-section{margin-top:80px}
.section-title{margin-bottom:22px}
.feed-post{padding:26px 0}
.feed-text{margin-bottom:14px}
.experience .chapter{padding:22px 0}
.notebook-footer{margin-top:88px}
@media(max-width:600px){.plane-stage{margin-top:36px}.home-section{margin-top:60px}.feed-post{padding:22px 0}.notebook-footer{margin-top:64px}}
/* Phones: the caption stacks (flight time on one line, count and wind on the next) in a smaller size */
@media(max-width:600px){
  .plane-caption{flex-direction:column;align-items:flex-start;gap:2px;font-size:13px;line-height:1.5}
  .plane-stats{flex-wrap:wrap;gap:4px 8px}
}
/* Touch: a bigger grab area around the plane, so it's easy to pick up with a thumb */
@media(pointer:coarse){.plane-handle{width:128px;height:84px}}
/* The hint and score sit back until you're playing: faint by default, full grey on hover/focus */
.plane-caption{font-size:13px;color:color-mix(in srgb,var(--quiet) 55%,var(--paper));transition:color .25s}
.plane-caption .plane-stats button{color:inherit;text-decoration-color:currentColor}
.plane-stage:hover+.plane-caption,.plane-caption:hover,.plane-caption:focus-within{color:var(--quiet)}
.plane-caption .plane-stats button:hover{color:var(--ink)}
@media(max-width:600px){.plane-caption{font-size:12px}}
/* wind: a small gust icon instead of an arrow; mirrored when the breeze blows left */
[data-plane-wind]{display:inline-flex;align-items:center;gap:5px}
.plane-wind-icon{flex-shrink:0;opacity:.85}
.plane-wind-icon.is-left{transform:scaleX(-1)}
/* Experience: "Read more" opens the full list of what a role covered, in place */
.chapter-more{margin-top:10px}
.chapter-more summary{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--plane);cursor:pointer;list-style:none;border-radius:4px}
.chapter-more summary::-webkit-details-marker{display:none}
.chapter-more summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.chapter-more[open] summary::after{transform:translateY(1px) rotate(225deg)}
.chapter-more summary:focus-visible{outline:2px solid var(--plane);outline-offset:3px}
.chapter-more .less-label,.chapter-more[open] .more-label{display:none}
.chapter-more[open] .less-label{display:inline}
.chapter-more ul{list-style:none;margin:12px 0 2px;padding:0;display:grid;gap:8px}
.chapter-more li{position:relative;padding-left:28px;font-size:14px;line-height:1.65;color:var(--body-ink)}
/* the same ticks as a case study's "In short" summary */
.chapter-more li::before{content:'';position:absolute;left:0;top:2px;width:19px;height:19px;border-radius:50%;background:color-mix(in srgb,var(--plane) 14%,transparent)}
.cm-tick{position:absolute;left:0;top:2px;width:19px;height:19px}
.cm-tick path{fill:none;stroke:var(--plane);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:14;stroke-dashoffset:0}
/* first opening only (plane.js): the points arrive one by one and their ticks draw in */
.chapter-more.is-armed li:not(.is-on){display:none}
.chapter-more.is-armed .cm-tick path{stroke-dashoffset:14}
.chapter-more li.is-on{animation:cm-check-in .35s ease both}
.chapter-more li.is-on .cm-tick path{stroke-dashoffset:0;transition:stroke-dashoffset .35s ease .12s}
@keyframes cm-check-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.chapter-more summary::after{transition:none}}
/* Selected work progress pill (plane.js): fades in only while the case study feed is on screen */
.work-progress{position:fixed;left:50%;bottom:20px;z-index:80;display:flex;align-items:center;gap:10px;padding:7px 16px 7px 10px;border:1px solid transparent;border-radius:999px;font:13px/1 Runde,Arial,sans-serif;letter-spacing:.02em;color:var(--ink);white-space:nowrap;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.work-progress.is-visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.work-progress-dots{display:flex}
.work-progress-dots button{width:16px;height:22px;padding:0;border:0;background:none;display:grid;place-items:center;cursor:pointer}
.work-progress-dots button::before{content:"";width:6px;height:6px;border-radius:50%;background:color-mix(in srgb,var(--ink) 18%,transparent);transition:background .2s,transform .2s}
.work-progress-dots button.is-done::before{background:var(--plane)}
.work-progress-dots button[aria-current]::before{transform:scale(1.35)}
.work-progress-dots button:hover::before{background:color-mix(in srgb,var(--plane) 60%,transparent)}
.work-progress-dots button:focus-visible{outline:2px solid var(--plane);outline-offset:-2px;border-radius:6px}
.work-progress-label{font-variant-numeric:tabular-nums}
#work .feed-post{scroll-margin-top:24px}
html.chat-docked .work-progress{display:none}
@media(prefers-reduced-motion:reduce){.work-progress{transition:opacity .2s}.work-progress,.work-progress.is-visible{transform:translate(-50%,0)}.work-progress-dots button::before{transition:none}}
/* it floats over busy carousel images, so it frosts more than the other glass pills */
.work-progress.liquid-glass{--glass-blur:14px;background:color-mix(in srgb,var(--paper) 58%,transparent)}
/* touch screens turn glass blur off site-wide (it made scrolling stutter); this pill is small enough to keep it */
@media (pointer:coarse){.work-progress.liquid-glass{-webkit-backdrop-filter:blur(14px) saturate(1.8);backdrop-filter:blur(14px) saturate(1.8);background:color-mix(in srgb,var(--paper) 58%,transparent)}}
