:root {
  --bg: #050b16; --panel: #0b1629; --panel-2: #0f1e36; --line: rgba(125, 211, 252, .16); --line-strong: rgba(125, 211, 252, .34);
  --ink: #eef6ff; --ink-2: #b7cbe4; --ink-3: #8ba5c6; --blue: #3b82f6; --cyan: #5ee7ff; --amber: #ffc46b; --violet: #b69cff;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 56px); --gap: clamp(48px, 6vw, 84px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--panel-2); padding: 8px 14px; border-radius: 8px; }

header { position: sticky; top: 0; z-index: 10; background: rgba(5, 11, 22, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.name { color: var(--ink); text-decoration: none; font: 650 18px/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.name i { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 14px var(--cyan); }
nav ul { display: flex; gap: clamp(14px, 3vw, 34px); margin: 0; padding: 0; list-style: none; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 10px 0; display: inline-block; }
nav a:hover { color: var(--ink); }

.eyebrow { margin: 0 0 16px; color: var(--cyan); font: 600 13px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 650; line-height: 1.08; }
h3 { font-size: 24px; font-weight: 620; }
h4 { font-size: 19px; font-weight: 620; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section { padding-top: var(--gap); }
.lede { color: var(--ink-2); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--cyan); }
.button.primary { border: 0; background: linear-gradient(100deg, var(--cyan), #6aa8ff); color: #03101f; }

/* hero: the person */
.hero { padding-top: clamp(52px, 8vw, 112px); background: radial-gradient(ellipse 46% 50% at 80% 46%, rgba(59, 130, 246, .24), rgba(94, 231, 255, .06) 55%, transparent 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(64px, 11vw, 136px); font-weight: 700; letter-spacing: -.045em; line-height: .94; }
.hero h1 span { display: block; }
.hero h1, .hero h1 span { color: #eef2f6; -webkit-text-fill-color: currentColor; }
.hero h1 span + span { padding-bottom: .06em; }
.hero .role { margin-top: 28px; font: 600 clamp(23px, 2.6vw, 32px)/1.3 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.hero .lede { margin-top: 14px; }
.signature { justify-self: end; width: 100%; max-width: 440px; }
.years { display: flex; align-items: flex-end; gap: 18px; }
.years strong { font: 700 clamp(150px, 19vw, 250px)/.78 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--cyan); background: linear-gradient(170deg, rgba(94, 231, 255, .3), rgba(59, 130, 246, 0) 75%); -webkit-background-clip: text; background-clip: text; }
.years span { padding-bottom: 6px; color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.pillars { margin-top: 34px; }
.pillars li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-strong); font: 560 20px/1.35 var(--display); }
.pillars li span { flex: 0 0 auto; color: var(--cyan); font: 600 13px var(--text); letter-spacing: .1em; }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.about .big { font: 500 clamp(26px, 3.2vw, 40px)/1.32 var(--display); letter-spacing: -.018em; }
.about .more-copy { margin-top: 24px; max-width: 62ch; color: var(--ink-2); }

.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line-strong); }
.proof li { display: flex; flex-direction: column; gap: 10px; padding: 32px 32px 34px 0; border-bottom: 1px solid var(--line-strong); }
.proof li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.proof p { color: var(--ink-2); }
.proof span { margin-top: auto; color: var(--cyan); font-size: 14px; }

/* Guided career presentation. Equal stations imply chronology only, never duration. */
[hidden] { display: none !important; }
button { font: inherit; }
.resume-note { margin-top: 16px; max-width: 52ch; color: var(--ink-3); font-size: 14px; }
.section-intro { max-width: 64ch; color: var(--ink-2); margin-top: 18px; }
/* Career journey: an original canvas scene (receding data wall, floor grid, milestone path) with HTML circles and a flat, readable details panel.
   Without JavaScript the employer list and all eleven role articles are shown as plain content. */
.career-tour { margin-top: 30px; }
.tour-help, .tour-instructions { color: var(--ink-3); font-size: 14px; }
.tour-instructions { margin-top: 12px; }
.career-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 16px; }
.career-stop { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: center; gap: 1px 8px; min-height: 48px; height: 100%; padding: 8px 10px; border: 1px solid #1d2c42; border-radius: 10px; text-decoration: none; background: #091322; color: #aebdd0; transition: border-color .3s ease, background-color .3s ease; }
.stop-number { grid-row: span 2; align-self: center; font-size: 12px; font-weight: 600; color: #7f94ab; }
.career-stop strong { font: 600 14px/1.25 var(--text); overflow-wrap: anywhere; }
.stop-date { font-size: 12px; line-height: 1.35; color: #93a6bb; }
.career-stop:hover { border-color: var(--line-strong); color: var(--ink); }
.career-stop[aria-current="step"] { border-color: rgba(94, 231, 255, .85); background: linear-gradient(100deg, rgba(94, 231, 255, .17), #0d2033 70%); color: var(--ink); box-shadow: inset 3px 0 0 var(--cyan); }
.career-stop[aria-current="step"] .stop-number { color: var(--cyan); }
.journey-main { margin-top: 18px; min-width: 0; }
.career-role { padding: 26px 0; border-bottom: 1px solid var(--line); }
.role-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; color: var(--ink-3); font-size: 13px; }
.role-meta span:first-child { color: var(--cyan); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.career-role h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.16; }
.role-title { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.role-contribution { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.role-contribution h4 { font-size: 18px; margin-bottom: 8px; }
.role-contribution p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.role-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.career-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.tour-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-buttons button { min-height: 44px; min-width: 44px; padding: 8px 17px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.tour-buttons button:hover:not(:disabled) { border-color: var(--cyan); }
.tour-buttons button:focus-visible, .journey-node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tour-buttons button:disabled { opacity: .4; cursor: default; }
.tour-buttons .tour-play { min-width: 148px; background: var(--cyan); color: #04101b; border-color: var(--cyan); }
.tour-status { color: var(--ink-2); font-size: 14px; }

/* enhanced layout: one module with the scene left and the details right. A one line employer strip sits above it, or a side list when there is room.
   Sizes follow the width of this section, not the window. Only a phone width stacks the details under the scene. */
#experience > .wrap { container: career / inline-size; }
.career-tour.is-enhanced { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.career-tour.is-enhanced .career-nav, .career-tour.is-enhanced .journey-main { min-width: 0; margin-top: 0; }
.career-tour.is-enhanced .career-index { display: flex; gap: 6px; margin-top: 0; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3a4d68 transparent; }
.career-tour.is-enhanced .career-index li { flex: 0 0 auto; }
.career-tour.is-enhanced .career-stop { min-height: 48px; max-width: 260px; padding: 6px 12px 6px 8px; white-space: nowrap; }
.career-tour.is-enhanced .career-stop strong { overflow: hidden; text-overflow: ellipsis; }
.career-tour.is-enhanced .stop-date { overflow: hidden; text-overflow: ellipsis; }
.career-tour.is-enhanced .journey-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 53%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #020814; box-shadow: 0 40px 90px -50px rgba(38, 120, 255, .75); }
.journey-scene { position: relative; min-width: 0; min-height: 340px; }
.journey-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.journey-nodes { position: absolute; inset: 0; }
.journey-node { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.journey-node i { position: absolute; left: 50%; top: 50%; width: var(--size, 16px); height: var(--size, 16px); transform: translate(-50%, -50%); border: 2px solid rgba(var(--path-rgb), .58); border-radius: 50%; background: linear-gradient(rgba(var(--path-rgb), .2), rgba(var(--path-rgb), .2)), #0a1b33; box-shadow: 0 0 0 1px rgba(2, 8, 20, .85); }
.journey-node[data-past] i { border-color: rgba(var(--path-rgb), .82); background: linear-gradient(rgba(var(--path-rgb), .46), rgba(var(--path-rgb), .46)), #0a1b33; }
.journey-node[aria-current="step"] i { border-color: rgb(var(--path-rgb)); background: radial-gradient(circle, #fff 0 22%, rgb(var(--path-rgb)) 36% 100%); box-shadow: 0 0 0 2px #06142a, 0 0 0 4px rgb(var(--path-rgb)), 0 0 8px 5px rgba(var(--path-rgb), .2); }
.journey-node:hover i { border-color: #fff; }
.node-label { position: absolute; left: 50%; top: calc(50% + var(--size, 16px) / 2 + 10px); transform: translateX(-50%); display: grid; justify-items: center; color: #c9dcf5; font-size: 12px; line-height: 1.3; white-space: nowrap; text-shadow: 0 1px 8px #020814, 0 0 4px #020814; pointer-events: none; }
.node-label b { font-weight: 600; }
.node-label small { color: #86a6d0; font-size: 12px; }
.journey-node[aria-current="step"] .node-label { color: #fff; font-size: 14px; }
.journey-node:not([data-label]) .node-label { display: none; }
.career-tour.is-enhanced .journey-panel { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid rgba(125, 211, 252, .3); background: linear-gradient(165deg, #0e203e, #050d1c 62%); }
.panel-count { padding: 14px 18px 0; color: var(--ink-3); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
/* every role shares one cell, so the module keeps one height; a shorter role sits in the middle of it */
.career-tour.is-enhanced .career-stage { display: grid; flex: 1 1 auto; padding: 0 18px; }
.career-tour.is-enhanced .career-role { grid-area: 1 / 1; align-self: center; min-width: 0; padding: 10px 0 12px; border-bottom: 0; visibility: hidden; pointer-events: none; }
.career-tour.is-enhanced .role-meta { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 8px; }
.career-tour.is-enhanced .career-role h3 { font-size: clamp(21px, 3.4cqw, 30px); }
.career-tour.is-enhanced .role-title { margin-top: 4px; font-size: 16px; line-height: 1.4; }
.career-tour.is-enhanced .role-contribution { margin-top: 10px; padding-top: 10px; }
.career-tour.is-enhanced .role-contribution h4 { margin-bottom: 4px; font-size: 16px; line-height: 1.3; }
.career-tour.is-enhanced .role-contribution p { font-size: 15px; line-height: 1.5; }
.career-tour.is-enhanced .role-note { margin-top: 10px; font-size: 13px; line-height: 1.5; }
/* the new role is visible the moment it is chosen (the old one is gone at once) and fades and slides into place */
.career-tour.is-enhanced .career-role[data-active] { visibility: visible; pointer-events: auto; animation: role-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes role-in { from { opacity: .4; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.journey-progress { height: 3px; margin: 0 18px 12px; border-radius: 3px; background: rgba(125, 211, 252, .16); overflow: hidden; }
.journey-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; transform: scaleX(0); }

/* room for a side list beside the module */
@container career (min-width: 960px) {
  .career-tour.is-enhanced { grid-template-columns: 216px minmax(0, 1fr); column-gap: 14px; align-items: stretch; }
  .career-tour.is-enhanced .journey-main { display: flex; flex-direction: column; }
  .career-tour.is-enhanced .journey-view { flex: 1 0 auto; }
  .career-tour.is-enhanced .tour-help { grid-column: 1 / -1; }
  .career-tour.is-enhanced .career-index { flex-direction: column; gap: 4px; padding: 0; overflow: visible; }
  .career-tour.is-enhanced .career-stop { min-height: 44px; max-width: none; padding-block: 4px; white-space: normal; }
  .career-tour.is-enhanced .journey-view { grid-template-columns: minmax(0, 1fr) 380px; }
  .career-tour.is-enhanced .panel-count, .career-tour.is-enhanced .journey-progress { margin-inline: 4px; }
  .career-tour.is-enhanced .career-stage { padding-inline: 22px; }
}
/* phone width: scene above, details below */
@container career (max-width: 519px) {
  .career-tour.is-enhanced .journey-view { grid-template-columns: minmax(0, 1fr); }
  .journey-scene { min-height: 0; height: 210px; }
  .career-tour.is-enhanced .journey-panel { border-left: 0; border-top: 1px solid rgba(125, 211, 252, .3); }
  .career-tour.is-enhanced .career-role h3 { font-size: 23px; }
}
@media (max-width: 560px) {
  .tour-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .tour-buttons button { padding: 8px 4px; }
  .tour-buttons .tour-play { grid-row: 1; grid-column: 1 / -1; }
}
.contribution-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.contribution-grid article { padding: 24px; border-top: 1px solid var(--line-strong); background: linear-gradient(180deg, #0b1629, transparent); }
.story-company { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.contribution-grid h3 { font-size: 25px; line-height: 1.2; }
.contribution-grid dl { margin: 22px 0 0; }
.contribution-grid dl div + div { margin-top: 17px; }
.contribution-grid dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.contribution-grid dd { margin: 0; font-size: 16px; color: var(--ink-2); }
.game-showcase { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 28px; margin-top: 28px; }
.game-showcase li { position: relative; border-top: 1px solid var(--line-strong); padding: 22px 0 28px; }
.game-showcase li span { font-size: 12px; color: var(--ink-3); }
.game-showcase h3 { margin-top: 12px; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; }
.more-titles { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.more-titles summary { cursor: pointer; padding: 12px 0; color: var(--ink); }
.more-titles ul { columns: 2; margin-top: 10px; }
.more-titles li { padding: 6px 0; break-inside: avoid; }
@media (max-width: 880px) { .contribution-grid { grid-template-columns: 1fr; gap: 16px; } .game-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
 .contribution-grid article { padding: 22px 18px; }
 .game-showcase { gap: 0 20px; }
 .more-titles ul { columns: 1; }
}


.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.skills > li { padding: 26px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--panel); }
.skills h3 { font-size: 22px; margin-bottom: 14px; }
.skills p { color: var(--ink-2); font-size: 16px; }
.skills .skill-example { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 15px; }
.learning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.learning h3 { font-size: 22px; margin-bottom: 16px; }
.learning dl { margin: 0; }
.learning dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.learning dt { font-weight: 600; }
.learning dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.project { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 40px; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(120deg, #10264a, var(--panel) 60%); }
.project img { width: 84px; height: 84px; }
.project p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }

.contact { margin-top: var(--gap); padding-block: var(--gap) clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 15% 100%, rgba(59, 130, 246, .22), transparent 70%); }
.contact h2 { font-size: clamp(42px, 8vw, 96px); letter-spacing: -.04em; max-width: 12ch; }
footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 26px 34px; }

.reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .2s; } .reveal.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* KIF case study page (kif.html) */
#kif { padding-top: 0; }
.case-title { font-size: clamp(34px, 5vw, 60px); font-weight: 650; letter-spacing: -.025em; line-height: 1.08; }
.case-head { display: flex; gap: 22px; align-items: flex-start; justify-content: space-between; }
#kif .case-head { margin-top: 28px; }
.case-head img { width: 96px; height: 96px; flex: 0 0 auto; }
.case-head .lede { margin-top: 20px; max-width: 46ch; }
.case-end { padding-bottom: 64px; }
.back { display: inline-block; margin-top: 36px; padding-block: 8px; }
.wide { margin: 36px 0 0; }
.lead-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: end; margin-top: clamp(56px, 8vw, 104px); }
.lead-chapter ul { margin: 0; }
.frame { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(59, 130, 246, .55); }
.frame img { width: 100%; height: auto; }
figure { margin: 0; }
figure.span { margin-top: 40px; }
figcaption { margin-top: 14px; color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(64px, 9vw, 128px); }
.chapter.flip .story { order: 2; }
.num { display: block; margin-bottom: 14px; color: var(--cyan); font: 600 15px var(--text); letter-spacing: .12em; }
.story p { margin-top: 18px; color: var(--ink-2); }
.story ul { margin-top: 22px; }
.story li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: 17px; }
.story li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--cyan); }
/* A window onto the Test Case Builder part of the tall product screen (full image linked below it). */
.crop { aspect-ratio: 700 / 770; }
.crop img { margin-top: -87%; }
.overview-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-block: 1px solid var(--line); }
.overview-strip div { padding: 26px 24px 28px 0; }
.overview-strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.overview-strip strong { display: block; margin-bottom: 6px; font: 620 20px/1.3 var(--display); }
.overview-strip span { color: var(--ink-2); font-size: 16px; }
.video { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: clamp(64px, 9vw, 112px); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(120deg, #10264a, var(--panel) 60%); }
.play { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #03101f; }
.video p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

@media (max-width: 880px) {
  .hero .wrap, .about, .chapter, .lead-chapter, .learning { grid-template-columns: minmax(0, 1fr); }
  .signature { justify-self: start; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof li, .proof li:nth-child(even) { padding: 26px 0; border-left: 0; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .timeline .feature > div { padding: 20px; margin-top: 6px; }
  .earlier { grid-template-columns: minmax(0, 1fr); }
  .earlier li, .earlier li:nth-child(n+4) { grid-column: auto; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project, .video { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .chapter.flip .story { order: 0; }
  .overview-strip { grid-template-columns: 1fr; }
  .overview-strip div { padding: 20px 0; }
  .overview-strip div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 12px; }
  header { position: static; }
  header .wrap { flex-wrap: wrap; gap: 0; padding-block: 12px 4px; }
  nav ul { gap: 0 18px; flex-wrap: wrap; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .axis { margin-left: 0; }
  .bar { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 6px; }
  .bar i { min-height: 16px; height: 16px; }
  .bar em { top: 3px; height: 10px; }
  .case-head { flex-direction: column-reverse; gap: 14px; }
  .case-head img { width: 64px; height: 64px; }
  /* The wide two pane screen is unreadable at phone width: show the KIF pane. */
  .wide .frame { aspect-ratio: 1 / 1.52; }
  .wide .frame img { width: 202%; max-width: none; margin-left: -101%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}

/* page atmosphere: a clean navy ground that shifts gently down the page, with soft drifting lights drawn by assets/atmosphere.js behind all content.
   No grids, dots or lines. Without that script the plain ground remains. The case study page is not affected. */
html.atmosphere-page { background: linear-gradient(180deg, #050b16 0, #07132a 16%, #060e1e 32%, #07142c 50%, #060e1e 68%, #07132a 84%, #050b16 100%) #050b16; }
html.atmosphere-page body { background: transparent; }
.atmosphere { position: fixed; z-index: -1; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
@media (forced-colors: active), print { .atmosphere { display: none; } }
