/* Website-first studio direction. Glass is limited to the nav and media switch. */
:root {
  --studio-metal: #373a37;
  --studio-surface: #191c19;
  --studio-muted: #a8ada7;
  --studio-glass: rgba(25, 29, 25, .88);
  --studio-edge: rgba(238, 245, 235, .16);
  --studio-radius: 18px;
}

/* Navbar: one centered pill with every section link. A green line
   slides under the section being read, and the pill tucks away while
   you scroll down (js/studio.js). Phones get it at the bottom, within
   thumb reach, with four links and More for the rest. */
.chrome-top { top: max(16px, env(safe-area-inset-top)); left: 50%; right: auto; width: auto; min-height: 0; padding: 5px; display: flex; align-items: center; border-radius: 100px; transform: translateX(-50%); transition: transform 320ms cubic-bezier(.23, 1, .32, 1); }
/* Liquid glass, used only on things that float over imagery: the
   navbar, the deck's arrow row and the phone menu. A white sheen over a
   dark tint (readable over light screenshots), a hairline border, and a
   brighter, thicker rim at the top-left and bottom-right. */
.chrome-top, .deck-controls, .menu { background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)), rgba(14, 14, 14, .6); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
/* The menu is a big panel over text, so it gets a heavier tint. */
.menu { background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), rgba(14, 14, 14, .78); }
.chrome-top::after, .deck-controls::after, .menu::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, .06) 68%, rgba(255, 255, 255, .38)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
html.nav-tucked .chrome-top { transform: translate(-50%, calc(-100% - 28px)); }
.chrome-top::before, body::after { display: none; }
.chrome-top .pill-nav { position: relative; z-index: 0; display: flex; align-items: center; padding: 0; background: none; border: 0; }
.chrome-top .chrome-nav-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.chrome-top .chrome-nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 100px; font: 500 14px var(--font-body); letter-spacing: 0; text-transform: none; color: rgba(242, 242, 240, .82); transition: color 160ms ease-out; }
.chrome-top .chrome-nav-link::after { display: none; }
.chrome-top .chrome-nav-link:hover, .chrome-top .chrome-nav-link:focus-visible, .chrome-top .chrome-nav-link[aria-current="true"] { color: var(--text); }
/* The active link sits in a soft glass capsule that slides between links. */
.pill-indicator { position: absolute; z-index: -1; top: 0; left: 0; height: 100%; width: var(--w, 0px); border-radius: 100px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); opacity: 0; transform: translateX(var(--x, 0px)); transition: transform 340ms cubic-bezier(.23, 1, .32, 1), width 340ms cubic-bezier(.23, 1, .32, 1), opacity 200ms ease-out; pointer-events: none; }
.pill-nav.has-active .pill-indicator { opacity: 1; }
.chrome-top .nav-toggle { display: none; min-height: 40px; padding: 0 15px; border: 0; border-radius: 100px; background: none; color: rgba(242, 242, 240, .82); cursor: pointer; }
.chrome-top .nav-toggle-icon { display: block; width: 20px; height: 20px; flex: none; }
.chrome-top .icon-close, html.menu-open .chrome-top .icon-menu { display: none; }
html.menu-open .chrome-top .icon-close { display: block; }
html.menu-open .chrome-top .nav-toggle { color: var(--text); }
.menu { display: flex; inset: auto 5% auto auto; top: max(82px, calc(env(safe-area-inset-top) + 64px)); width: min(330px, 90vw); max-height: calc(100svh - 110px); padding: 20px 24px; gap: 20px; border-radius: 16px; transform-origin: top right; transform: translateY(-6px) scale(.97); transition: opacity 180ms cubic-bezier(.23, 1, .32, 1), transform 180ms cubic-bezier(.23, 1, .32, 1); }
.menu.is-open { transform: translateY(0) scale(1); }
.menu .menu-link { font: 500 22px var(--font-body); border: 0; padding-block: 8px; min-height: 44px; }
.menu .menu-index { display: none; }
.menu .menu-socials { gap: 0 16px; }
.menu .menu-socials a { font: 400 13px var(--font-body); letter-spacing: 0; text-transform: none; }
html.keyboard-input .menu, html.keyboard-input .chrome-top, html.keyboard-input .pill-indicator { transition: none; }
.chrome-bottom, .playhead { display: none; }
@media (max-width: 1023px) {
  .chrome-top .chrome-nav-list { display: flex; }
  .chrome-top .chrome-nav-link { padding: 0 12px; }
}
@media (max-width: 767px) {
  .chrome-top { top: auto; bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--vv-bottom, 0px)); padding: 6px; }
  html.nav-tucked .chrome-top { transform: translate(-50%, calc(100% + 28px)); }
  .chrome-top .chrome-nav-list > li:not(.is-phone) { display: none; }
  .chrome-top .chrome-nav-link, .chrome-top .nav-toggle { min-height: 48px; padding: 0 12px; font-size: 14px; }
  .chrome-top .nav-toggle { display: inline-flex; align-items: center; }
  .menu { inset: auto 50% auto auto; top: auto; bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--vv-bottom, 0px) + 72px); translate: 50% 0; transform-origin: bottom center; transform: translateY(6px) scale(.97); }
  .menu.is-open { transform: translateY(0) scale(1); }
  /* Room for the bottom pill, so it never covers the hero's socials or the footer. */
  .section-hero { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* One selected project keeps the collection compact. */
#work { border-top: 0; padding-block: 80px 90px; }
#work > .section-inner { width: 90%; max-width: 1500px; }
#work .section-title { font-size: clamp(32px, 4.3vw, 64px); letter-spacing: -.04em; text-transform: none; }
.project-deck { max-width: 820px; margin-inline: auto; }
.deck-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.deck-card { min-width: 0; padding: 0; border: 1px solid var(--studio-metal); border-radius: 13px; background: var(--studio-surface); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.deck-browser-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; height: 36px; padding-inline: 13px; }
.mac-window-controls { display: flex; gap: 7px; }
.mac-window-controls i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.mac-window-controls .mac-close { background: #8c8c88; }
.mac-window-controls .mac-minimize { background: #8c8c88; }
.mac-window-controls .mac-zoom { background: #8c8c88; }
.deck-browser-bar span { padding-right: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 12px; color: var(--studio-muted); }
.deck-card .studio-project-image { border-radius: 0; }
.project-cursor-cue { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; padding: 9px 14px; border-radius: 100px; background: var(--text); color: var(--ink-900); font: 600 13px var(--font-body); white-space: nowrap; }
.project-cursor-cue[hidden] { display: none; }
.deck-controls { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; margin: 10px auto 0; padding: 4px; border-radius: 100px; }
.deck-controls[hidden], .deck-card[hidden], .deck-info[hidden] { display: none; }
.deck-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: 400 20px var(--font-body); cursor: pointer; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
.deck-controls button:active { transform: scale(.96); }
.deck-controls button:disabled { opacity: .35; cursor: default; }
.deck-controls button:hover:not(:disabled), .deck-controls button:focus-visible { background: rgba(255, 255, 255, .12); }
.deck-position { min-width: 52px; text-align: center; color: var(--studio-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.deck-descriptions { max-width: 520px; margin-inline: auto; }
/* Every live site stays one click away under the deck. */
.deck-thumbs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; margin-top: 18px; }
.deck-thumbs[hidden] { display: none; }
.deck-thumb { aspect-ratio: 1.6; padding: 0; border: 0; border-radius: 6px; background: var(--studio-surface); overflow: hidden; cursor: pointer; opacity: .42; outline: 1px solid transparent; outline-offset: 3px; transition: opacity 180ms cubic-bezier(.23, 1, .32, 1), transform 180ms cubic-bezier(.23, 1, .32, 1), outline-color 180ms; }
.deck-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.deck-thumb span { display: grid; place-items: center; height: 100%; padding: 4px; font-size: 11px; color: var(--studio-muted); }
.deck-thumb[aria-current="true"] { opacity: 1; outline-color: var(--text); }
.deck-thumb:focus-visible { opacity: 1; outline: 2px solid var(--text); }
.deck-thumb:active { transform: scale(.96); }
/* Desktop: the deck on the left, the active site's details level with it on the right. */
@media (min-width: 1024px) {
  .project-deck.is-enhanced { display: grid; max-width: 1240px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "stage info" "controls info" "thumbs info"; column-gap: 56px; align-items: center; }
  .project-deck.is-enhanced .deck-stage { grid-area: stage; }
  .project-deck.is-enhanced .deck-controls { grid-area: controls; }
  .project-deck.is-enhanced .deck-thumbs { grid-area: thumbs; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .project-deck.is-enhanced .deck-descriptions { grid-area: info; max-width: none; margin: 0; }
  .project-deck.is-enhanced .deck-info { padding-top: 0; }
  .project-deck.is-enhanced .project-description h3 { font-size: clamp(30px, 2.8vw, 44px); }
  .project-deck.is-enhanced .project-meta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; }
}
/* Short laptop screens: flatter tiles keep the active description in view. */
@media (min-width: 768px) and (max-height: 820px) {
  .deck-controls { margin-top: 4px; }
  .deck-controls button { width: 40px; height: 40px; }
  .deck-thumbs { margin-top: 14px; }
  .deck-thumb { aspect-ratio: 2.4; }
}
@media (hover: hover) and (pointer: fine) {
  .deck-thumb:hover { opacity: .85; transform: translateY(-2px); }
  .deck-thumb[aria-current="true"]:hover { transform: none; }
}
.deck-info { padding-block: 12px 0; }
.project-deck.is-enhanced .deck-stage { display: block; position: relative; perspective: 1600px; aspect-ratio: 2.25; touch-action: pan-y pinch-zoom; user-select: none; }
.project-deck.is-enhanced .deck-card { position: absolute; top: 18px; left: 19%; width: 62%; transform-origin: 50% 60%; transition: transform 360ms cubic-bezier(.23, 1, .32, 1), opacity 240ms cubic-bezier(.23, 1, .32, 1); }
.deck-card[data-position="front"] { z-index: 3; opacity: 1; transform: translate3d(0, 0, 30px); }
.deck-card[data-position="next"] { z-index: 2; opacity: .8; transform: translate3d(32%, 36px, -90px) rotate(11deg) scale(.9); pointer-events: none; }
.deck-card[data-position="back"] { z-index: 1; opacity: .6; transform: translate3d(-32%, 38px, -130px) rotate(-12deg) scale(.9); pointer-events: none; }
.project-deck.is-enhanced .deck-info:not([hidden]) { animation: deck-copy-in 200ms cubic-bezier(.23, 1, .32, 1); }
@keyframes deck-copy-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
html.keyboard-input .project-deck .deck-card { transition: none; }
html.keyboard-input .project-deck .deck-info { animation: none; }
.studio-project-image { overflow: hidden; background: var(--studio-surface); aspect-ratio: 1.6; border-radius: 6px; }
.studio-project-image picture, .studio-project-image a { display: block; width: 100%; height: 100%; }
.studio-project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-description { padding-top: 12px; overflow-wrap: anywhere; }
.project-description h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.035em; }
.project-description > p { color: var(--studio-muted); max-width: 64ch; margin-top: 6px; font-size: 16px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
#work .work-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
#work .work-tech { font: 400 13px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--studio-muted); }
.project-visit { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; white-space: nowrap; }
.project-status { font-size: 14px; color: var(--studio-muted); }
@media (max-width: 767px) {
  .project-description { padding-top: 16px; text-align: center; }
  .project-description > p { margin-inline: auto; }
  #work .project-description .work-tags { justify-content: center; }
  .project-description h3 { font-size: 25px; }
  /* Phones: the live link is a full-width button under the tags, easy to hit with a thumb. */
  .project-meta { flex-direction: column; align-items: stretch; gap: 16px; }
  .project-visit { justify-content: center; min-height: 48px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 100px; font-size: 15px; }
}

@media (max-width: 767px) {
  #work { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .chrome-top, .pill-indicator { transition: none; }
  .studio-project-image img { transition: none; }
  .studio-project-image:hover img { transform: none; }
}
/* Opaque fallbacks: no blur support, or reduced transparency asked for. */
@media (prefers-reduced-transparency: reduce) {
  .chrome-top, .deck-controls, .menu { background: var(--studio-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chrome-top, .deck-controls, .menu { background: var(--studio-surface); }
}
/* Touch screens: a lighter blur keeps scrolling smooth. */
@media (hover: none), (pointer: coarse) {
  .chrome-top, .deck-controls, .menu { backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); }
}
/* Lite mode (weak devices, see index.html): the fixed glass would be
   re-blurred on every scroll frame, so it turns solid, and looping
   decorations hold still. */
html.perf-lite .chrome-top, html.perf-lite .deck-controls, html.perf-lite .menu { background: var(--studio-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.perf-lite .status-dot, html.perf-lite .contact-availability::before, html.perf-lite .hero-scroll::before, html.perf-lite .live-status .live-dot { animation: none; }

/* GitHub: a monochrome dot field, backed by the saved daily counts. */
.github { width: min(100%, 820px); margin: 36px auto 0; }
#stack { padding-bottom: 48px; }
.github .github-head { margin-bottom: 18px; }
.github .proof-heading { font: 400 16px var(--font-body); letter-spacing: 0; color: var(--studio-muted); }
.github .text-link { font: 400 14px var(--font-body); letter-spacing: 0; color: var(--studio-muted); }
.github .github-scroll { display: block; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.github .github-scroll[hidden] { display: none; }
.github .gh-chart { width: 100%; --gap: 2px; }
.github .gh-months, .github .gh-playhead { display: none; }
.github .gh-cell { position: relative; border-radius: 50%; background: transparent; box-shadow: none; transition: none; }
.github .gh-cell::after { content: ""; position: absolute; inset: 43%; border-radius: 50%; background: #353834; }
.github .gh-cell[data-level="1"]::after { inset: 31%; background: #868b85; }
.github .gh-cell[data-level="2"]::after { inset: 23%; background: #b2b6af; }
.github .gh-cell[data-level="3"]::after { inset: 14%; background: #d6d9d3; }
.github .gh-cell[data-level="4"]::after { inset: 4%; background: var(--text); }
.github .gh-cell.is-pointed { transform: none; outline: 1px solid var(--studio-muted); outline-offset: 1px; }
.github .gh-tip strong { color: var(--text); }
.github .gh-stats { display: block; margin: 14px 0 0; padding: 0; border: 0; }
.github .gh-stat { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.github .gh-stat dt, .github .gh-stat dd { font: 400 14px var(--font-body); color: var(--studio-muted); letter-spacing: 0; text-transform: none; }
.github .gh-stat dd { order: -1; color: var(--text); }
.github .gh-grid.is-drawing .gh-cell { animation: none; }
.github .gh-grid.is-drawing { animation: gh-dots-reveal 400ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes gh-dots-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  .github .github-head { margin-bottom: 16px; }
  .github .gh-chart { --gap: 1px; }
  .github .gh-stat dt, .github .gh-stat dd { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .github .gh-grid.is-drawing { animation: none; }
}

@media (max-width: 767px) {
  .project-deck.is-enhanced .deck-stage { aspect-ratio: 1.55; }
  .project-deck.is-enhanced .deck-card { left: 9%; width: 82%; top: 12px; padding: 0; border-radius: 9px; transition-duration: 240ms, 180ms; }
  .deck-card[data-position="next"] { transform: translate3d(13%, 18px, -60px) rotate(8deg) scale(.95); }
  .deck-card[data-position="back"] { transform: translate3d(-13%, 20px, -90px) rotate(-8deg) scale(.95); }
  .deck-browser-bar { height: 30px; padding-inline: 10px; }
  .mac-window-controls { gap: 5px; }
  .mac-window-controls i { width: 8px; height: 8px; }
  .deck-browser-bar span { padding-right: 34px; }
  .deck-browser-bar span { font-size: 11px; }
  .deck-controls { margin-top: 4px; }
  .deck-info { padding-top: 12px; }
  /* Phones show the title and stack only; the summary and status wait for a wider screen. */
  .deck-info > p { display: none; }
  /* On phones the strip replaces the arrows; swipe still works. */
  .project-deck.has-thumbs .deck-controls { display: none; }
  /* Clears the fanned side cards, which hang about 24px below the stage. */
  .deck-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .deck-thumb { aspect-ratio: 1.9; }
}
/* Short phones: one row keeps the active description on screen. */
@media (max-width: 767px) and (max-height: 700px) {
  .deck-thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .deck-thumb { aspect-ratio: 1.2; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-deck.is-enhanced .deck-card, .deck-controls button, .deck-thumb { transition: none; }
  .deck-thumb:hover, .deck-thumb:active { transform: none; }
  .project-deck.is-enhanced .deck-info { animation: none; }
}

/* Small, finite hover feedback. Decorative motion is pointer-gated. */
.deck-controls button, .project-visit,
.menu-link, .text-link { transition: color 160ms ease-out, transform 180ms cubic-bezier(.23, 1, .32, 1); }
.deck-card .studio-project-image img, .cert-media img { transition: transform 240ms cubic-bezier(.23, 1, .32, 1); }
.edit-media img { transition: transform 240ms cubic-bezier(.23, 1, .32, 1); }
.stack-logo-icon { transform: none; }
.stack-logo::before { display: none; }
.stack-logo img { transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.stack-logo:hover img { animation: none; filter: none; }
.stack-logo.is-mono:hover img { filter: brightness(0) invert(.94); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .deck-controls button:hover { transform: translateY(-3px); }
  .project-visit:hover, .text-link:hover { transform: translateY(-2px); }
  .menu-link:hover { transform: translateX(4px); }
  .project-deck.is-enhanced .deck-card[data-position="front"]:hover { transform: translate3d(0, -4px, 38px); }
  .deck-card[data-position="front"] a:hover img { transform: scale(1.015); }
  .edit-link:hover .edit-media img { transform: scale(1.025); }
  .cert-card:hover .cert-media img { transform: scale(1.025); }
  .stack-logo:hover img { transform: translateY(-4px); }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .edit-link:hover .edit-media img, .edit-link:focus-visible .edit-media img,
  .stack-logo:hover img, .cert-card:hover .cert-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .project-visit, .text-link, .menu-link, .deck-card img, .edit-media img,
  .cert-media img, .stack-logo img { transition: none; }
}

/* Experience: a timeline rail. One dot per role on a thin line; the
   open role's dot fills and its details slide open beneath. Hover,
   focus, pin and Escape come from js/studio.js; native details stay
   the fallback. */
.experience-list { position: relative; padding-left: 34px; }
.experience-list::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 6px; width: 1px; background: var(--line-strong); }
.experience-entry { position: relative; }
.experience-entry::before { content: ""; position: absolute; top: 25px; left: -33px; width: 11px; height: 11px; border: 1px solid var(--studio-muted); border-radius: 50%; background: var(--ink-900, #0a0a0a); transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 240ms cubic-bezier(.23, 1, .32, 1); }
.experience-entry[open]::before { border-color: var(--accent); background: var(--accent); transform: scale(1.15); }
.experience-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 20px; padding: 18px 0; list-style: none; cursor: pointer; }
.experience-row::-webkit-details-marker { display: none; }
.experience-year { color: var(--studio-muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.experience-role { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.02em; transition: color 200ms ease-out; }
.experience-org { text-align: right; color: var(--studio-muted); font-size: 15px; }
.experience-list:has(.experience-entry[open]) .experience-entry:not([open]) .experience-role { color: var(--studio-muted); }
.experience-panel { padding: 0 0 22px 76px; }
.experience-body { max-width: 640px; }
.experience-entry[open] .experience-body > * { animation: experience-reveal 260ms cubic-bezier(.23, 1, .32, 1) both; }
.experience-entry[open] .experience-body > :nth-child(2) { animation-delay: 40ms; }
.experience-entry[open] .experience-body > :nth-child(3) { animation-delay: 80ms; }
.experience-period { color: var(--studio-muted); font-size: 13px; margin-bottom: 6px; }
.experience-summary { font-size: 16px; line-height: 1.65; }
.experience-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 15px; }
@keyframes experience-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  .experience-list { padding-left: 28px; }
  .experience-list::before { left: 5px; top: 26px; bottom: 26px; }
  .experience-entry::before { top: 22px; left: -28px; }
  .experience-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .experience-role { font-size: 18px; }
  .experience-org { text-align: left; font-size: 14px; }
  .experience-org::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 12px; border-right: 1.5px solid var(--studio-muted); border-bottom: 1.5px solid var(--studio-muted); transform: rotate(45deg); }
  .experience-entry[open] .experience-org::after { transform: rotate(225deg); margin-bottom: 0; }
  .experience-panel { padding: 0 0 20px; }
  .experience-summary { font-size: 15px; }
}
html.keyboard-input .experience-entry[open] .experience-body > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .experience-entry::before, .experience-role { transition: none; }
  .experience-entry[open]::before { transform: none; }
  .experience-entry[open] .experience-body > * { animation: none; }
}

/* Phones: About, Track Record and Services read centered. */
@media (max-width: 767px) {
  #about .section-head, #numbers .section-head, #services .section-head { justify-content: center; text-align: center; }
  #about .about-text { margin-inline: auto; text-align: center; }
  #numbers .live-head { justify-content: center; }
  #numbers .live-row { text-align: center; }
  #numbers .live-platform { grid-column: 1 / -1; justify-self: center; }
  #numbers .live-row > .live-trend { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
  #numbers .live-cell { text-align: center; }
}

/* Phones: Proof centered. Experience keeps its left rail. */
@media (max-width: 767px) {
  #proof .section-head, #proof .proof-head { justify-content: center; text-align: center; }
  #proof .proof-intro { margin-inline: auto; }
  /* Stack: label and logo rows centered so no row ends in empty space.
     The GitHub header keeps its two sides, which already balance. */
  #stack .section-head { justify-content: center; text-align: center; }
  #stack .stack-group { justify-items: center; text-align: center; }
  #stack .stack-logos, #stack .stack-pills { justify-content: center; }
}
