.seatback-section { position: relative; width: 100%; margin: 24px auto 0; text-align: center; scroll-margin-top: 28px; }
.seatback-section h2 { width: 100%; margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.25px; }
.seatback-note { margin: 4px 0 0; font-size: 13px; font-weight: 500; line-height: 1.625; color: color-mix(in srgb, #666, #a3a2a0 var(--theme-mix)); }
.seatback { --seat-reading-light: 0; position: relative; width: min(380px, 100%); aspect-ratio: 19 / 28; margin: 6px auto 0; isolation: isolate; transition: --seat-reading-light .65s ease, opacity .5s var(--ease); }
.reading-light-on .seatback { --seat-reading-light: 1; }
.seat-loading { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--muted); font: 11px/1.6 var(--mono); }
.seatback[data-renderer="pending"] { opacity: 0; }
.seatback[data-renderer="pending"] .seat-loading { display: flex; }
.seatback[data-renderer="pending"] .seatback-fallback { visibility: hidden; pointer-events: none; }
.seatback-fallback { position: absolute; left: 50%; top: 0; width: min(310px, 82%); aspect-ratio: 284 / 500; transform: translateX(-50%); container-type: inline-size; }
.seatback-fallback::after { content: ""; position: absolute; inset: 0 6% 16%; z-index: 4; border-radius: 13% 13% 5% 5%; background: radial-gradient(ellipse at 88% 15%, #ffe2b28c, #ffe2b22b 43%, #ffe2b200 85%); opacity: calc(var(--seat-reading-light) * .28); pointer-events: none; }
.seat3d-ready .seatback-fallback::after { display: none; }
.seat3d-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; touch-action: pan-y; }
.seatback.seat3d-ready .seatback-fallback { display: contents; }
.seat3d-ready .seatback-fallback > :not(.resume-file) { visibility: hidden; pointer-events: none; }
.seat3d-ready .resume-file, .seat3d-ready .resume-file:hover, .seat3d-ready .resume-file:focus-visible { position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 0; transform: none; background: transparent; box-shadow: none; transition: none; }
.seat3d-ready .resume-file > * { visibility: hidden; }
.seat3d-ready .resume-file:focus, .seat3d-ready .resume-file:focus-visible { outline: none; background: transparent; }
.seat3d-ready .resume-file[data-keyboard-focus="true"]:focus-visible:not([aria-busy="true"]) { box-shadow: inset 0 0 0 1.5px var(--accent-on-light); }
.resume-file, .resume-paper-controls > *, .resume-pages { -webkit-tap-highlight-color: transparent; }
.resume-file img, .resume-page img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.seat3d-status { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); margin: 0; padding: 7px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--body); font-size: 11px; line-height: 1.5; }
.seatback:not(.seat3d-ready) { aspect-ratio: 19 / 28; }
.seat-shell { position: absolute; inset: 6% 4% 16%; overflow: hidden; border-radius: 15% 15% 6% 6%; transform: perspective(700px) rotateX(-9deg); transform-origin: center bottom; background: linear-gradient(90deg, #9facb7, #d7dfe5 9%, #e0e5e9 48%, #b6c4cf 92%, #80929f) padding-box, linear-gradient(125deg, #4c6477, #2c4355 22%, #243b4e 70%, #3f5669) border-box; border: 3.1cqw solid transparent; box-shadow: inset 0 2px 2px #eef3f9, inset 0 -4px 7px #41556870; }
.seat-upholstery { display: none; }
.seat-headrest { position: absolute; top: 4.5%; left: 20%; width: 60%; height: 3%; border-radius: 5cqw 5cqw 3cqw 3cqw; background: linear-gradient(150deg, #526d82, #354d61 35%, #293f52 80%); border: 1px solid #7890a12b; box-shadow: inset 0 1px 3px #c9d8e130, inset 0 -3px 6px #0d233730, 0 3px 4px #1a304c20; }
.seat-headrest::before, .seat-headrest::after { content: ""; position: absolute; top: 5%; bottom: 8%; width: 16%; border-radius: 3cqw; background: linear-gradient(130deg, #425f75, #20394d); }
.seat-headrest::before { left: -7%; }
.seat-headrest::after { right: -7%; }
.seat-number { position: absolute; top: 3%; left: 0; right: 0; color: #607584; font: 2.46cqw/1.4 var(--mono); letter-spacing: .7cqw; opacity: .65; }
.seat-tray { position: absolute; top: 35%; left: 12%; width: 76%; height: 22%; border: 1px solid #8da0af; border-radius: 4% 4% 3% 3%; background: linear-gradient(#d7dfe5, #cbd5de); box-shadow: inset 0 1px 1px #edf3f6, inset 0 -2px 2px #90a3b355, 0 2px 2px #71869631; }
.seat-tray::before { content: ""; position: absolute; inset: 7px 8px; border: 1px solid #9badbb73; border-radius: 7px 7px 15px 15px; }
.seat-latch { position: absolute; top: 33%; left: 49%; z-index: 1; width: 2cqw; height: 6cqw; border: 1px solid #7f93a4; border-radius: 4px; background: linear-gradient(90deg, #e7edf1, #b1c0cb); box-shadow: 0 1px 2px #5670823d; }
.seat-latch::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 12%; border-top: 1px solid #8399aa; }
.resume-file { position: absolute; left: 30%; top: 54%; z-index: 2; width: 40%; height: auto; aspect-ratio: 1800 / 2330; border: 1px solid #d3dce4; border-radius: 3px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; transform: rotate(1.4deg); transform-origin: center bottom; box-shadow: 1px 3px 8px #233f6045; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.resume-file:hover, .resume-file:focus-visible { transform: translateY(-10px) rotate(.5deg); box-shadow: 2px 8px 13px #233f6052; }
.resume-file img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.resume-file-tab { position: absolute; top: 0; right: 0; padding: 1.06cqw 2.46cqw; border-radius: 0 0 0 4px; background: #eef3f9; color: #566d87; font: 1.76cqw/1.5 var(--mono); letter-spacing: .21cqw; }
.seat-pocket { position: absolute; left: 15%; right: 15%; bottom: 15%; z-index: 3; height: 22%; border: 1px solid #788d9e; border-top: 3px solid #718596; border-radius: 4px 4px 19px 19px; background: repeating-linear-gradient(60deg, transparent 0 4px, #657c8e80 4px 5px), repeating-linear-gradient(-60deg, transparent 0 4px, #61788b80 4px 5px), linear-gradient(#596f7e30, #596f7e75); box-shadow: 0 -2px 5px #344c6229, inset 0 -3px 6px #5b718650, 0 2px 1px #e0e8ee8f; pointer-events: none; }
.seat-pocket::before { content: ""; position: absolute; top: -4px; left: 4px; right: 4px; border-top: 1px dashed #cdd9e36e; }
.seat-pocket-label { position: absolute; bottom: 3.87cqw; left: 50%; transform: translateX(-50%); padding: 1.06cqw 3.52cqw; border-radius: 3px; color: #e4edf3; background: #5b7385; font: 1.76cqw/1.5 var(--mono); letter-spacing: .35cqw; }
.seatback:not(.seat3d-ready) :is(.seat-shell, .seat-headrest, .seat-pocket, .seat-armrest, .seat-support-frame, .resume-file) { filter: brightness(calc(1 - var(--theme-progress) * .84 + var(--seat-reading-light) * .15)); }
.seat-monitor { position: absolute; z-index: 1; top: 14%; left: 23%; width: 54%; height: 16%; transform: perspective(700px) rotateX(-9deg); border: 1px solid #b4c0c9; padding: 1.2cqw 1.2cqw 2.6cqw; border-radius: 2.6cqw; background: linear-gradient(135deg, #d8e0e5, #bdc9d1); box-shadow: inset 0 1px 0 #ffffff70; pointer-events: none; }
.seat-armrest { position: absolute; top: 44%; width: 10%; height: 3%; border-top: 1.2cqw solid #3e566a; border-radius: 1cqw; background: linear-gradient(#e0e6eb, #aab9c5); box-shadow: 0 2px 3px #20374730; pointer-events: none; }
.seat-armrest-left { left: 1%; }
.seat-armrest-right { right: 1%; }
.seat-support-frame { position: absolute; z-index: -1; left: 20%; right: 20%; top: 77%; bottom: 2%; pointer-events: none; }
.seat-support-frame::before, .seat-support-frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4.5cqw; border-bottom: 1.5cqw solid #677784; clip-path: polygon(0 0, 100% 0, 78% 83%, 100% 100%, 12% 100%, 28% 78%); background: linear-gradient(90deg, #536b7a, #b8c8d2 40%, #687f8e); }
.seat-support-frame::before { left: 10%; transform: rotate(-6deg); }
.seat-support-frame::after { right: 10%; transform: rotate(6deg); }
.seat-monitor-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid #111d29; border-radius: 4px; color: #ecf5ff; text-align: left; background: radial-gradient(ellipse at 72% 50%, #2d6283, transparent 66%), linear-gradient(145deg, #162e46, #203f5c 62%, #152f48); box-shadow: inset 0 0 7px #0005; }
.seat-monitor-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(123deg, #ffffff12, #ffffff03 44%, transparent 45%); border-radius: inherit; pointer-events: none; }
.monitor-header { position: absolute; top: 2.46cqw; left: 2.82cqw; right: 2.82cqw; display: flex; justify-content: space-between; font: 1.41cqw/1.4 var(--mono); letter-spacing: .35cqw; color: #b0c7dc; }
.monitor-route { position: absolute; inset: 0; width: 100%; height: 100%; fill: #b6dded; }
.monitor-contour { stroke: #80b6d51c; stroke-width: .7; fill: none; }
.monitor-flightpath { stroke: #b7d7ee70; stroke-width: .9; fill: none; stroke-dasharray: 2 3; }
.monitor-plane { fill: #e9f6ff; }
.monitor-welcome { position: absolute; left: 3.52cqw; bottom: 8.45cqw; font: 500 4.23cqw/1.3 var(--sans); letter-spacing: -.11cqw; text-shadow: 0 1px 5px #173550; }
.monitor-name { position: absolute; left: 3.52cqw; right: 3.52cqw; bottom: 4.23cqw; display: flex; justify-content: space-between; font: 1.41cqw/1.4 var(--mono); letter-spacing: .21cqw; color: #a8c4db; }
.monitor-name > span { font-size: 1.06cqw; letter-spacing: .088cqw; }
.monitor-progress { position: absolute; bottom: 2.11cqw; left: 3.52cqw; right: 3.52cqw; height: 1px; background: #afcadd26; }
.monitor-progress i { display: block; width: 42%; height: 1px; background: #d1e6f6ae; }
.monitor-brand { position: absolute; left: 0; bottom: 3px; width: 100%; text-align: center; font: 500 4px/1 var(--sans); letter-spacing: 1px; color: #93a7b8; }
.monitor-brand i { position: absolute; right: 8px; width: 2px; height: 2px; border-radius: 50%; background: #84b6c5; box-shadow: 0 0 3px #85bdd087; }

.portfolio-hover-hint { position: fixed; inset: auto; margin: 0; max-width: calc(100vw - 20px); padding: 7px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--accent-ink); font: 10px/1.5 var(--mono); box-shadow: 0 4px 16px #12273f1f; pointer-events: none; }
.portfolio-hover-hint:popover-open { animation: resume-hint-in .16s ease-out both; }
.portfolio-hover-hint::backdrop { display: none; }
.resume-flight-layer { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: transparent; }
.resume-flight-paper { position: absolute; max-width: none; display: block; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; user-select: none; -webkit-user-select: none; background: #fff; }
.resume-flight-scrim { position: absolute; inset: 0; background: #0c1827a3; opacity: 0; }
.resume-file[aria-busy="true"] { cursor: progress; }
.resume-viewer { --resume-aspect: .773; width: min(760px, calc(100vw - 32px), calc((100dvh - 112px) * var(--resume-aspect))); height: fit-content; max-width: none; max-height: calc(100dvh - 112px); padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); overflow: visible; box-shadow: 0 20px 80px #0c1b3266; }
.resume-viewer[open] { display: block; }
.resume-viewer.is-preparing { display: block; position: fixed; inset: 0; visibility: hidden; pointer-events: none; }
.resume-viewer.is-arriving .resume-paper-controls { animation: resume-controls-arrive .2s ease-out both; }
.resume-viewer::backdrop { background: #0c1827a3; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.resume-paper-controls { position: absolute; top: -44px; right: 0; display: flex; gap: 8px; }
.resume-download, .resume-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid #dce2e8; border-radius: 50%; background: #fffffff2; color: #435362; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px #0c18271a; }
.resume-download:hover, .resume-close:hover { background: #fff; color: var(--accent-on-light); }
.resume-download svg, .resume-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.resume-pages { max-height: calc(100dvh - 112px); padding: 0; overflow: auto; overscroll-behavior: contain; background: #fff; }
.resume-viewer[data-input-mode="pointer"] :focus { outline: none; }
.resume-viewer[data-input-mode="keyboard"] :focus-visible { outline: 1.5px solid var(--accent-on-light); outline-offset: 2px; }
.resume-pages:empty { min-height: min(240px, calc(100dvh - 112px)); }
.resume-page { width: 100%; margin: 0; }
.resume-page + .resume-page { margin-top: 12px; }
.resume-page img { width: 100%; max-width: none; height: auto; display: block; background: #fff; }
.resume-viewer-status { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--body); font-size: 12px; }
@media (max-width: 620px) {
  .seatback-section { margin-top: 36px; }
  .seatback { width: min(320px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .resume-file, .seatback { transition: none; } }
@keyframes resume-hint-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes resume-controls-arrive { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@property --seat-reading-light {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
