/* Skills: a rocket launch in three stages. Stacked by default; html.fly + .launch.pin = pinned flight. */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.sec { position: relative; padding: var(--sec-y) var(--gut); border-top: 1px solid var(--line); }

/* hero: short, so the scene shows in the first screen */
.phead { position: relative; padding: 100px var(--gut) var(--sp4); overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 70% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.crumbs { display: flex; gap: 8px; margin: 0 0 var(--sp3); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.h1 { margin: 0; font: 400 clamp(38px, 4.3vw, 64px)/1.02 var(--sans); letter-spacing: -.045em; text-wrap: balance; view-transition-name: skills-title; }
.hrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp2) var(--sp5); margin-top: var(--sp2); }
.lede { margin: 0; max-width: 60ch; font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.hacts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.to-list { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.to-list:hover { text-decoration-color: var(--ink); }
.eds { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-2); }
.eds-l { padding: 0 10px 0 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eds button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font-size: 13.5px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.eds button:hover { color: var(--ink); }
.eds button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--sp1); }

/* ---------- launch: stacked (mobile, reduced motion, no JS) ---------- */
.launch { position: relative; padding: 0 var(--gut) var(--sp8); }
.ls { position: relative; max-width: var(--maxw); margin: 0 auto; }
.ls-view, .hud, .ls-fallback { display: none; }
.stg { display: grid; gap: var(--sp3); padding: var(--sp5) 0; border-top: 1px solid var(--line); }
.stg-head h3 { margin: 12px 0 0; font: 400 clamp(26px, 2.6vw, 36px)/1.08 var(--sans); letter-spacing: -.035em; }
.stg-d { margin: 8px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.stg-d a { color: var(--ink); text-underline-offset: 3px; }
.stg-fig { margin: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #03050c; aspect-ratio: 4 / 5; }
.stg-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.co:not(.m-callout) { position: relative; padding: 15px 17px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .3s, opacity .3s; }
:root[data-theme="light"] .co:not(.m-callout) { box-shadow: var(--shadow); }
.co-k { margin: 0; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.co-t { margin: 6px 0 0; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.co-tl { margin: 5px 0 0; font: 400 11px/1.5 var(--mono); color: var(--ink-2); }
.co-pf { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); font-weight: 300; }
.co-pf b { font-weight: 500; color: var(--ink); }
.pays { display: grid; gap: 10px; }
.pays-h { margin: var(--sp2) 0 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pay { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.pay:hover { border-color: var(--accent); }
.pay-k { font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pay-t { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.pay-t .arr { display: inline-block; transition: transform .45s var(--ease-out); }
.pay:hover .arr { transform: translateX(3px); }
.pay-d { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); font-weight: 300; }
/* editions: highlight matching skills with the edition accent */
:root:not([data-ed="all"]) .co, :root:not([data-ed="all"]) .pay { --edk: .5; }
:root[data-ed="ecom"] :is(.co, .pay)[data-ed~="ecom"], :root[data-ed="data"] :is(.co, .pay)[data-ed~="data"], :root[data-ed="ops"] :is(.co, .pay)[data-ed~="ops"] { --edk: 1; border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
:root[data-ed="ecom"] .co[data-ed~="ecom"] .co-k, :root[data-ed="data"] .co[data-ed~="data"] .co-k, :root[data-ed="ops"] .co[data-ed~="ops"] .co-k { color: var(--accent); }
.co, .pay { opacity: var(--edk, 1); }
@media (min-width: 760px) {
  .stg { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: var(--sp5); }
  .stg-head { grid-column: 1 / -1; }
  .stg-fig { grid-row: span 2; position: sticky; top: 88px; align-self: start; }
}
.no-gl .stg-fig { display: none; }
.no-gl .ls-fallback { display: block; margin: 0 0 var(--sp3); padding: var(--sp3); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); }
.no-gl .stg { grid-template-columns: 1fr; }
.ls-fallback svg { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto; }
.fb-l { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.fb-g { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 5; }
.fb-a { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.ls-fallback text { font: 500 11px var(--mono); letter-spacing: .14em; fill: var(--accent); }

/* ---------- launch: pinned flight ---------- */
.fly .launch { height: 640vh; padding: 0 var(--gut); }
.fly .ls { position: sticky; top: 74px; height: calc(100vh - 88px); max-width: none; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: #03050c; isolation: isolate;
  --h-ink: #eef1f6; --h-ink2: #b9c0cc; --h-mut: #8b94a4; --h-line: rgba(255, 255, 255, .14); --h-acc: #9fb7ff; --cw: 280px; }
.fly .ls-view { display: block; position: absolute; inset: 0; }
.fly #rocket { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s var(--ease-out); }
.gl-on #rocket { opacity: 1; }
.ls-vig { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 5, 12, .55), transparent 30%, transparent 72%, rgba(3, 5, 12, .5)), linear-gradient(0deg, rgba(3, 5, 12, .55), transparent 22%); }
.ls-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.fly .hud { display: block; position: absolute; inset: 0; pointer-events: none; color: var(--h-ink); z-index: 2; }
.hud > * { pointer-events: auto; }
.hud-chips { position: absolute; left: 24px; top: 22px; flex-wrap: nowrap; }

/* altitude ruler, left edge, log scale */
.hud-ruler { position: absolute; left: 24px; top: 236px; bottom: 100px; width: 104px; --m: 0; pointer-events: none; }
/* two-line caption, so it never runs under the left column of cards */
.hud-ruler .m-ruler-cap { top: -32px; width: 104px; white-space: normal; line-height: 1.3; }


/* mission events, along the bottom */
.hud-events { position: absolute; left: 140px; right: 240px; bottom: 22px; pointer-events: none; }
/* small label that rides above the satellite in the final orbit */
.sat-lbl { position: absolute; left: 0; top: 0; margin: 0; padding: 4px 8px; border-radius: 6px; background: rgba(10, 14, 24, .6); border: 1px solid var(--h-line); font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--h-ink); opacity: 0; pointer-events: none; white-space: nowrap; }

/* stage sections become overlays */
.fly .stages { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fly .stg { position: absolute; inset: 0; display: block; padding: 0; border: 0; }
.fly .stg-fig { display: none; }
.fly .stg-head { position: absolute; left: 26px; top: 76px; width: 330px; opacity: 0; color: var(--h-ink); pointer-events: none; }
.fly .stg-head.on { pointer-events: auto; }
.fly .stg-head .m-eyebrow { color: var(--h-acc); }
.fly .stg-head .m-eyebrow span { color: var(--h-ink); border-color: rgba(159, 183, 255, .45); }
.fly .stg-head h3 { margin-top: 10px; font-size: 26px; color: var(--h-ink); }
.fly .stg-d { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--h-ink2); }
.fly .stg-d a { color: var(--h-ink); }
.fly .cos { display: block; }
.fly .co, .fly .pay { position: absolute; left: 0; top: 0; width: var(--cw); transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: auto;
  opacity: calc(var(--o, 0) * var(--edk, 1)); }
/* callout legibility (G2): the kit styles the glass and lifts a card on hover (mission.js lift()); the edition dim stays fairly strong text here */
:root.fly:not([data-ed="all"]) :is(.co, .pay) { --edk: .8; }
:root.fly[data-ed="ecom"] :is(.co, .pay)[data-ed~="ecom"], :root.fly[data-ed="data"] :is(.co, .pay)[data-ed~="data"], :root.fly[data-ed="ops"] :is(.co, .pay)[data-ed~="ops"] { --edk: 1; }
.fly .pay { z-index: 1; transition: box-shadow .25s var(--ease-out), border-color .3s; }
.fly .pay { background: var(--glass); border-color: var(--line-2); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
.fly .co.off, .fly .pay.off { pointer-events: none; opacity: 0; }
/* over the dark flight the cards stay dark glass in both themes (.stages gets .m-scene in fly mode; Opus Oct 7) */
:root[data-theme="light"].fly .co, :root[data-theme="light"].fly .pay { background: color-mix(in srgb, #0a0d14 94%, transparent); border-color: rgba(255, 255, 255, .14); }
:root[data-theme="light"].fly .pay { background: color-mix(in srgb, var(--m-hl, #9db0ff) 10%, #0a0d14); }
.fly .co:focus-visible, .fly .pay:focus-visible { outline: 2px solid var(--h-acc); outline-offset: 3px; }
.fly .pays { display: block; }
.fly .pays-h { display: none; }
.fly .pay { padding: 14px 16px; border-radius: 16px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent) 10%, color-mix(in srgb, var(--bg-2) 94%, transparent)); }
.fly .pay-k { font-size: 10.5px; } .fly .pay-t { font-size: 18px; } .fly .pay-d { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.fly .pay:hover { border-color: var(--accent); }
/* density steps picked by skills.js when a column of cards would not fit the stage height (short windows, stage 3 has seven cards) */
.ls[data-dn="1"] .m-callout { padding: 11px 14px 12px; }
.ls[data-dn="1"] .m-callout .m-callout-t { font-size: 16px; margin-top: 4px; }
.ls[data-dn="1"] .m-callout .m-callout-tl { font-size: 12.5px; margin-top: 4px; }
.ls[data-dn="1"] .m-callout .m-callout-pf { font-size: 13.5px; margin-top: 5px; line-height: 1.45; }
.ls[data-dn="2"] .m-callout { padding: 9px 13px 10px; }
.ls[data-dn="2"] .m-callout .m-callout-k { font-size: 10px; }
.ls[data-dn="2"] .m-callout .m-callout-t { font-size: 15.5px; margin-top: 3px; line-height: 1.25; }
.ls[data-dn="2"] .m-callout .m-callout-tl { font-size: 12px; margin-top: 3px; line-height: 1.4; }
.ls[data-dn="2"] .m-callout .m-callout-pf { font-size: 13px; margin-top: 4px; line-height: 1.4; }
.ls[data-dn="3"] .m-callout { padding: 8px 12px 9px; }
.ls[data-dn="3"] .m-callout .m-callout-k { font-size: 9.5px; }
.ls[data-dn="3"] .m-callout .m-callout-t { font-size: 15px; margin-top: 2px; line-height: 1.22; }
.ls[data-dn="3"] .m-callout .m-callout-tl { font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.ls[data-dn="3"] .m-callout .m-callout-pf { font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
@media (max-height: 800px) {
  .fly .stg-head h3 { font-size: 22px; }
  .fly .stg-d { display: none; }
  .hud-events li { font-size: 8.5px; }
}
@media (max-width: 1240px) { .hud-events { right: 200px; } .hud-events li { font-size: 8.5px; letter-spacing: .04em; } }

/* plain list */
.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp5); }
.plain section { border-top: 1px solid var(--line-2); padding-top: var(--sp2); }
.plain h3 { margin: 0 0 var(--sp2); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plain ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plain li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px 0; border-radius: 50%; background: var(--line-2); }
@media (max-width: 960px) { .plain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plain { grid-template-columns: 1fr; } }

/* education */
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp2); }
.e-card { padding: 24px 26px; border-radius: var(--r-lg); }
.e-k { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.e-card h3 { margin: 12px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.e-sch { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.edu-more { margin: var(--sp4) 0 0; font-size: 14.5px; color: var(--ink-2); }
.edu-more a { color: var(--ink); text-underline-offset: 4px; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .phead { padding-top: 92px; }
  .hacts { gap: 12px; }
  .eds { border-radius: var(--r-lg); }
  .eds-l { flex-basis: 100%; padding: 8px 12px 4px; }
}
