#closing-chapter { background: #020304; color: #e4e8ef; border-top: 1px solid #1d2533; }
.why-me { width: min(1240px,88%); margin: auto; padding: 120px 0 100px; }
.closing-eyebrow { margin: 0; font: 10px/1.6 'Courier New',monospace; letter-spacing: .13em; text-transform: uppercase; color: #8798b4; }
.why-title-line { display: flex; align-items: baseline; gap: 25px; }
.why-heading { margin-bottom: 105px; }
.why-heading h2 { margin: 27px 0 0; font: 400 clamp(66px,10vw,146px)/1.02 Georgia,'Times New Roman',serif; letter-spacing: -.06em; }
.seraphine-correction { display: flex; flex-direction: column; color: #8ea8e6; transform: rotate(-9deg) translateY(-18px); }
.seraphine-correction small { font: 9px/1.5 Arial,Helvetica,sans-serif; letter-spacing: .05em; }
.seraphine-correction em { font: italic clamp(30px,4vw,52px)/1.2 Georgia,'Times New Roman',serif; }
.why-passage { display: grid; grid-template-columns: minmax(0,1fr) 175px; gap: 9%; margin-bottom: 74px; align-items: center; }
.why-passage > p { margin: 0; font: 400 clamp(24px,2.6vw,37px)/1.55 Georgia,'Times New Roman',serif; letter-spacing: -.022em; color: #b2bac7; text-wrap: pretty; }
.why-passage > p > span { color: #e5eaf3; }
.seraphine-margin { color: #8ea8e6; }
.seraphine-margin > span { font: 9px/1.5 Arial,Helvetica,sans-serif; color: #728bbf; letter-spacing: .05em; }
.seraphine-margin p { margin: 8px 0 0; font: italic 17px/1.65 Georgia,'Times New Roman',serif; text-wrap: pretty; }
.why-passage:nth-child(3) .seraphine-margin { transform: rotate(3deg); }
.why-passage:nth-child(5) .seraphine-margin { transform: rotate(-3deg); }
.why-last-word { border-top: 1px solid #243046; padding-top: 40px; display: grid; grid-template-columns: minmax(0,1fr) 175px; align-items: center; gap: 9%; }
.why-last-word > p { margin: 0; max-width: 580px; font: 24px/1.6 Georgia,'Times New Roman',serif; color: #939fae; }
.closing-paths { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; width: min(1240px,88%); margin: auto; padding: 0 0 100px; }
.work-flip { --card-rx: 0deg; --card-ry: 0deg; position: relative; display: grid; min-height: 435px; perspective: 1200px; }
.work-flip-tilt { height: 100%; transform: rotateX(var(--card-rx)) rotateY(var(--card-ry)); transform-style: preserve-3d; transition: transform .18s ease-out; }
.work-flip-turn { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.22,.75,.16,1); }
.work-flip[data-flipped=true] .work-flip-turn { transform: rotateY(180deg); }
.path-face { grid-area: 1/1; min-width: 0; border-radius: 16px; padding: 32px; border: 1px solid #3c5074; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #101827; color: #e3eaf7; }
.path-front { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; }
.path-front::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at var(--glare-x,50%) var(--glare-y,50%),#d3e1ff12,transparent 58%); }
.work-flip:hover .path-front::after { opacity: 1; }
.path-title { font: 400 clamp(36px,4vw,57px)/1.12 Georgia,'Times New Roman',serif; letter-spacing: -.04em; margin-top: 44px; }
.path-bottom { margin-top: auto; padding-top: 35px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 11px/1.6 Arial,Helvetica,sans-serif; color: #9eafcb; }
.path-bottom > span:last-child { font: 30px/1 Arial,Helvetica,sans-serif; color: #bccff7; }
.path-back { transform: rotateY(180deg); display: flex; flex-direction: column; }
.path-back-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.flip-back { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #17233a; border: 1px solid #425878; color: #d4e3ff; border-radius: 50%; font-size: 24px; }
.work-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.work-mini-grid a { position: relative; display: flex; flex-direction: column; padding: 19px 17px 26px; gap: 10px; border: 1px solid #364762; background: #090f1c; border-radius: 5px; min-height: 126px; transition: background .2s,border-color .2s; }
.work-mini-grid a > span { font: 22px/1.2 Georgia,'Times New Roman',serif; letter-spacing: -.02em; }
.work-mini-grid a small { padding-right: 10px; max-width: 175px; font: 10px/1.65 Arial,Helvetica,sans-serif; color: #96a6c0; }
.work-mini-grid a i { position: absolute; bottom: 12px; right: 12px; font-style: normal; color: #8ea8e6; }
.work-mini-grid a:hover { background: #1a2a46; border-color: #8ba9da; }
.flip-back:hover { background: #293f65; }
.path-about { min-height: 435px; border-radius: 16px; border: 1px solid #2a3547; padding: 32px; display: flex; flex-direction: column; background: #070b11; transition: background .2s,border-color .2s; }
.path-about:hover { background: #0d1420; border-color: #8197c1; }
.about-command { margin-top: 25px; color: #7e92b5; font: 11px/1.7 'Courier New',monospace; }
.terminal-caret { margin-left: 4px; animation: terminal-blink 1.4s steps(1) infinite; }
.minimal-footer { width: min(1240px,88%); margin: auto; padding: 30px 0 max(34px,env(safe-area-inset-bottom)); border-top: 1px solid #273143; display: flex; justify-content: space-between; gap: 20px; }
.minimal-footer a { display: inline-flex; align-items: center; min-height: 44px; font: 12px/1.5 Arial,Helvetica,sans-serif; color: #a9b5c9; }
.minimal-footer a:hover { color: #d4e2ff; }
@keyframes terminal-blink { 50% { opacity: 0; } }
@media(max-width:740px) {
  .why-me { padding: 77px 0 65px; }
  .why-heading { margin-bottom: 65px; }
  .why-heading h2 { font-size: clamp(51px,13vw,90px); }
  .why-title-line { gap: 15px; }
  .seraphine-correction { transform: rotate(-9deg) translateY(-8px); }
  .seraphine-correction em { font-size: 29px; }
  .seraphine-correction small { font-size: 8px; }
  .why-passage { display: block; margin-bottom: 52px; }
  .why-passage > p { font-size: clamp(22px,5.6vw,31px); line-height: 1.6; }
  .seraphine-margin { max-width: 250px; margin: 19px 0 0 auto; padding-left: 17px; border-left: 1px solid #33496d; }
  .seraphine-margin p { font-size: 15px; margin-top: 5px; }
  .why-last-word { display: block; padding-top: 28px; }
  .why-last-word > p { font-size: 21px; }
  .closing-paths { grid-template-columns: 1fr; gap: 18px; padding-bottom: 65px; }
  .work-flip { min-height: 420px; }
  .path-face,.path-about { padding: 24px; }
  .path-title { font-size: 44px; margin-top: 36px; }
  .work-mini-grid { gap: 8px; }
  .work-mini-grid a { padding: 15px 11px 27px; min-height: 139px; }
  .work-mini-grid a > span { font-size: 21px; }
  .work-mini-grid a small { font-size: 10px; }
  .path-about { min-height: 360px; }
  .minimal-footer a { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) {
  .work-flip-tilt,.work-flip-turn { transition: none; }
  .terminal-caret { animation: none; }
}

/* Reflective Card surface adapted from React Bits; uses Matt's supplied image. */
.closing-paths { grid-template-columns: 1.1fr 1fr; }
.work-flip { min-height: 530px; }
.path-front,.path-back { position: relative; overflow: hidden; isolation: isolate; background: #03070d; }
.work-code-rain { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .6; pointer-events: none; }
.path-front::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 35% 55%,#020509e0 4%,#0205099e 52%,#02050933); }
.path-back::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #02050959; }
.path-back .path-back-heading { gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #42536c; }
.path-back .work-terminal-label { width: auto; border: 0; padding: 10px 0; }
.path-back .flip-back { background: #07111fcc; border-color: #42536c; border-radius: 4px; }
.path-back .flip-back:hover { background: #20334ac9; }
.path-back .work-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.path-back .work-mini-grid a { min-width: 0; border-radius: 3px; border-color: #52698480; background: #0309148c; }
.path-back .work-mini-grid a:hover { border-color: #90aacd; background: #101e3373; }
.path-back .work-mini-grid a > span { font: 400 clamp(17px,1.8vw,23px)/1.3 'Cascadia Code',Consolas,monospace; letter-spacing: -.045em; color: #d8e5f7; overflow-wrap: anywhere; }
.path-back .work-mini-grid a small { font-family: 'Cascadia Code',Consolas,monospace; color: #a2b4cd; line-height: 1.75; }
.path-front .path-title { font-family: 'Cascadia Code',Consolas,monospace; font-size: clamp(32px,3.3vw,51px); font-weight: 400; line-height: 1.27; letter-spacing: -.055em; margin-top: auto; padding-top: 60px; color: #d8e5f7; text-shadow: 0 2px 20px #000; }
.work-terminal-label { font: 11px/1.8 'Cascadia Code',Consolas,monospace; color: #9bb4d6; padding: 10px 0; border-bottom: 1px solid #42536c; width: 100%; }
.path-front .path-bottom { margin-top: 45px; padding-top: 25px; font-family: 'Cascadia Code',Consolas,monospace; }
.work-cursor { color: #88a8e5; animation: terminal-blink 1.4s steps(1) infinite; }
.reflective-about { --reflection-x: 50%; --reflection-y: 35%; --reflection-angle: 135deg; --photo-shift: 0px; --portrait-blur: 14px; --portrait-saturation: .2; --portrait-brightness: .72; --portrait-scale: 1.1; --reflection-opacity: .5; --noise-opacity: .16; --sheen-opacity: .68; position: relative; min-width: 0; min-height: 530px; padding: 0; overflow: hidden; isolation: isolate; border: 1px solid #839ac366; background: #0b101a; box-shadow: 0 20px 50px #0004,inset 0 0 0 1px #e3edff12; }
.reflective-about:hover { background: #0b101a; }
.about-reflection-filters { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.about-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(var(--portrait-scale)); filter: blur(var(--portrait-blur)) saturate(var(--portrait-saturation)) contrast(1.08) brightness(var(--portrait-brightness)); transition: filter .65s ease,transform .8s cubic-bezier(.2,.7,.2,1); }
.about-reflection { position: absolute; inset: -5%; z-index: 1; background: url('./media/matt-portrait.jpeg') center 30% / cover; transform: translateX(var(--photo-shift)) scale(1.03); filter: blur(12px) url(#astra-photo-reflection); opacity: var(--reflection-opacity); mix-blend-mode: screen; transition: transform .3s ease,opacity .65s ease; pointer-events: none; }
.about-metal-noise { position: absolute; inset: 0; z-index: 2; opacity: var(--noise-opacity); mix-blend-mode: overlay; transition: opacity .65s ease; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.about-metal-sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: var(--sheen-opacity); transition: opacity .65s ease; background: linear-gradient(var(--reflection-angle),#9fbdea44,transparent 32%,#e2efff1f 41%,transparent 48%,#86a6e019 67%,#c3d9ff38),radial-gradient(ellipse at var(--reflection-x) var(--reflection-y),#d0e3ff29,transparent 62%); }
.reflective-about:focus-visible,.reflective-about[data-revealed=true] { --portrait-blur: 0px; --portrait-saturation: .82; --portrait-brightness: .84; --portrait-scale: 1.03; --reflection-opacity: .055; --noise-opacity: .035; --sheen-opacity: .25; }
@media(hover:hover) and (pointer:fine) {
  .reflective-about:hover { --portrait-blur: 0px; --portrait-saturation: .82; --portrait-brightness: .84; --portrait-scale: 1.03; --reflection-opacity: .055; --noise-opacity: .035; --sheen-opacity: .25; }
}
.about-metal-border { position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 1px; background: linear-gradient(var(--reflection-angle),#cbdcf9b3,#7486a533 45%,#d0e1ff99); -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.about-card-content { position: relative; z-index: 4; display: flex; flex: 1; flex-direction: column; min-height: inherit; padding: 30px; background: linear-gradient(180deg,#02050b45,transparent 35%,#02050b4f 55%,#02050be8 82%,#02050bf5); }
.about-card-content .closing-eyebrow { color: #d5dff0; padding: 12px 0; border-bottom: 1px solid #d9e7ff40; }
.about-card-name { display: block; margin-top: auto; padding-top: 185px; font: 12px/1.6 'Cascadia Code',Consolas,monospace; color: #d4e0f4; }
.about-card-name > span { color: #aab8ce; }
.about-card-name .brand-x { color: #839bdc; }
.about-card-content .path-title { margin-top: 15px; color: #edf3ff; font-size: clamp(34px,3.5vw,51px); text-shadow: 0 2px 22px #0007; }
.about-card-content .path-bottom { margin-top: 22px; padding-top: 20px; border-top: 1px solid #9eb4db38; color: #b6c8e3; }
@media(max-width:740px) {
  .closing-paths { grid-template-columns: minmax(0,1fr); }
  .work-flip { min-height: 440px; }
  .path-front .path-title { font-size: clamp(30px,8.5vw,45px); }
  .work-terminal-label { font-size: 10px; }
  .path-back .work-terminal-label { font-size: 9px; }
  .path-back .work-mini-grid a > span { font-size: clamp(15px,4.4vw,20px); }
  .path-back .work-mini-grid a small { font-size: 9px; }
  .reflective-about { min-height: 510px; }
  .about-card-content { padding: 25px; }
  .about-card-content .path-title { font-size: 43px; }
  .about-card-name { padding-top: 210px; }
}
@media(prefers-reduced-motion:reduce) { .work-cursor { animation: none; } .about-photo,.about-reflection,.about-metal-noise,.about-metal-sheen { transition: none; } }
