:root {
  --ink: #102b36;
  --deep: #081b29;
  --paper: #f5f2eb;
  --cream: #ebe5d7;
  --aqua: #4fb6a3;
  --blue: #183853;
  --ocean-blue: #15415a;
  --ocean: #0f2b38;
  --ocean-deep: #0a1b26;
  --ocean-light: #6fb3c8;
  --project-blue: #122033;
  --project-blue-deep: #09121a;
  --project-blue-soft: #1f3850;
  --project-card: #eef1f4;
  --orange: #c06d42;
  --line: rgba(15, 35, 45, .18);
  --font: "Inter", sans-serif;
  --serif: var(--font);
  --mono: var(--font);
  --sans: var(--font);
  --display: var(--font);
  --heading-base-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--serif); line-height: 1.65; }
p { margin: 0 0 1.25rem; font: 500 1rem var(--sans); line-height: 1.75; }
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section-pad { position: relative; padding: 4.5rem max(4vw, 2rem); }
.section-pad::before { content: ""; position: absolute; top: 0; left: max(4vw, 2rem); right: max(4vw, 2rem); height: 1px; background: linear-gradient(90deg, transparent, rgba(79, 182, 163, .74), rgba(192, 109, 66, .35), transparent); }
.section-pad::after { content: ""; position: absolute; top: 0; left: max(4vw, 2rem); width: 74px; height: 16px; border-top: 2px solid rgba(79, 182, 163, .9); border-left: 2px solid rgba(79, 182, 163, .9); pointer-events: none; }
.eyebrow, .section-label { margin: 0 0 1.4rem; font: 500 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.profile-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 40vw; min-width: 360px; overflow: hidden; color: var(--paper); background: var(--deep); animation: sidebar-dock 6.2s cubic-bezier(.76, 0, .2, 1) 1 forwards; }
.sidebar-bg, .sidebar-shade { position: absolute; inset: 0; height: 100%; }
.sidebar-bg { object-fit: cover; object-position: center; }
.sidebar-shade { background: linear-gradient(180deg, rgba(3, 25, 38, .2), rgba(5, 31, 48, .78)), linear-gradient(90deg, rgba(5, 28, 44, .42), rgba(7, 44, 66, .08)); }
.profile-sidebar::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(79, 153, 194, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 153, 194, .065) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .15)); }
.vision-overlay { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; background: rgba(4, 16, 25, .96); animation: canny-screen 6.2s ease-in-out 1 forwards; }
.vision-overlay::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, transparent 0%, rgba(216, 247, 255, .18) 48%, rgba(216, 247, 255, .62) 50%, rgba(216, 247, 255, .18) 52%, transparent 100%); transform: translateX(-115%); animation: canny-trace 6.2s ease-in-out 1 forwards; mix-blend-mode: screen; }
.vision-overlay::after { content: "MATLAB CANNY EDGE DETECTION"; position: absolute; left: 2rem; bottom: 1.55rem; z-index: 3; color: rgba(216, 247, 255, .78); font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: 0; animation: canny-label 6.2s ease-in-out 1 forwards; }
.canny-edges { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; filter: drop-shadow(0 0 5px rgba(111, 179, 200, .5)); mix-blend-mode: screen; clip-path: inset(0 100% 0 0); animation: canny-edges 6.2s ease-in-out 1 forwards; }
@keyframes canny-screen {
  0%, 13% { opacity: 0; background: rgba(4, 16, 25, .96); }
  19%, 43% { opacity: 1; background: rgba(4, 16, 25, .96); }
  50%, 62% { opacity: 1; background: rgba(4, 16, 25, 0); }
  72%, 100% { opacity: 0; background: rgba(4, 16, 25, 0); }
}
@keyframes canny-trace {
  0%, 16% { transform: translateX(-115%); opacity: 0; }
  20% { opacity: 1; }
  43% { transform: translateX(115%); opacity: 1; }
  52%, 100% { transform: translateX(115%); opacity: 0; }
}
@keyframes canny-edges {
  0%, 16% { opacity: 0; clip-path: inset(0 100% 0 0); }
  22% { opacity: .96; }
  43% { opacity: .96; clip-path: inset(0 0 0 0); }
  50%, 62% { opacity: .72; clip-path: inset(0 0 0 0); }
  72%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes canny-label {
  0%, 17% { opacity: 0; }
  24%, 58% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
.sidebar-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 4rem max(3vw, 2rem); text-align: center; animation: sidebar-content-settle 6.2s ease-out 1 both; }
@keyframes sidebar-content-settle {
  0%, 78% { opacity: 0; transform: translateY(10px); }
  88%, 100% { opacity: 1; transform: none; }
}
.headshot { width: clamp(140px, 13vw, 210px); aspect-ratio: 1; object-fit: cover; border: 6px solid #071f24; border-radius: 50%; box-shadow: 0 0 0 1px rgba(120, 215, 202, .55), 0 22px 55px rgba(0, 0, 0, .38); }
.profile-intro { margin-top: 2rem; }
.profile-intro h1 { margin: 0 0 1rem; font: inherit; }
.profile-intro p { margin: .45rem 0; color: rgba(243, 241, 233, .92); font: 600 clamp(.96rem, 1.35vw, 1.22rem)/1.35 var(--sans); letter-spacing: .01em; text-transform: none; }
.profile-intro span { display: block; margin-top: .6rem; color: rgba(243, 241, 233, .78); font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: none; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 3rem; }
.profile-links a { padding: .7rem .9rem; border: 1px solid rgba(243, 241, 233, .44); color: var(--paper); font: 500 .66rem var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; background: rgba(7, 31, 36, .38); backdrop-filter: blur(12px); }
.profile-links a:hover { color: var(--deep); background: var(--aqua); border-color: var(--aqua); }
  .social-links { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
  .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(243, 241, 233, .44); background: rgba(7, 31, 36, .38); color: #ffffff; border-radius: 16px; text-decoration: none; }
.social-links a:hover { color: var(--deep); background: var(--aqua); border-color: var(--aqua); }
.social-links svg { width: 1.2rem; height: 1.2rem; display: block; }
.image-credit { position: absolute; right: .75rem; bottom: .6rem; z-index: 4; max-width: min(24rem, calc(100% - 1.5rem)); margin: 0; color: rgba(245, 242, 235, .68); font: 6pt/1.25 var(--mono); letter-spacing: .02em; text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, .58); opacity: 0; animation: image-credit-reveal .35s ease-out 6.2s forwards; }
.image-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.image-credit a:hover { color: var(--paper); }
@keyframes image-credit-reveal {
  to { opacity: 1; }
}
.page-content { margin-left: 40vw; opacity: 0; animation: page-reveal 6.2s ease-out 1 forwards; }
.page-footer { margin-left: 40vw; width: calc(100% - 40vw); opacity: 0; animation: page-reveal 6.2s ease-out 1 forwards; }
@keyframes sidebar-dock {
  0%, 80% { width: 100vw; }
  100% { width: 40vw; }
}
@keyframes page-reveal {
  0%, 82% { opacity: 0; transform: translateX(1.2rem); }
  100% { opacity: 1; transform: none; }
}


.site-header { position: fixed; z-index: 20; inset: 0 0 auto 40vw; display: flex; align-items: center; justify-content: space-between; min-height: 4.8rem; padding: 1rem max(4vw, 2rem); color: var(--paper); background: rgba(7, 31, 36, .94); border-bottom: 1px solid rgba(120, 215, 202, .42); opacity: 0; backdrop-filter: blur(16px); animation: page-reveal 6.2s ease-out 1 forwards; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--aqua), transparent 42%, var(--orange)); opacity: .78; }
.brand { position: relative; display: flex; align-items: center; gap: .8rem; min-width: min(430px, 48vw); min-height: 3rem; padding: .72rem 1.55rem .72rem 1.7rem; overflow: hidden; color: var(--paper); font: 700 1.08rem/1 var(--display); letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.brand::before { content: ""; position: absolute; left: 0; width: 7px; height: 1.2rem; background: var(--orange); box-shadow: 12px 0 0 rgba(120, 215, 202, .86); }
.brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(120, 215, 202, .92), rgba(120, 215, 202, .08)); }
.brand-name { position: relative; z-index: 2; display: inline-block; min-width: 18ch; min-height: 1.2em; color: var(--paper); text-shadow: 0 0 12px rgba(120, 215, 202, .28); white-space: pre; }
.brand-name.decoding { color: var(--aqua); font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; text-shadow: 0 0 14px rgba(120, 215, 202, .85); }
.brand.decoded .brand-name { color: #f8fbfb; text-shadow: 0 0 14px rgba(120, 215, 202, .42); }
.robot-fish { position: absolute; z-index: 4; left: -3rem; top: 50%; width: 3rem; height: 1.15rem; opacity: 0; transform: translateY(-50%); filter: drop-shadow(0 0 9px rgba(120, 215, 202, .48)); pointer-events: none; }
.brand.decoded .robot-fish { animation: fish-swim 1.45s ease-in-out .08s forwards; }
.fish-body { position: absolute; inset: .16rem .08rem .16rem .82rem; background: linear-gradient(90deg, #16415f, #55a7cb 48%, #e4fbff); border: 1px solid rgba(243, 241, 233, .85); clip-path: polygon(0 50%, 22% 8%, 82% 8%, 100% 50%, 82% 92%, 22% 92%); box-shadow: inset 8px 0 0 rgba(7, 31, 36, .22); }
.fish-body::before { content: ""; position: absolute; left: 32%; top: 18%; width: 32%; height: 64%; border-left: 1px solid rgba(7, 31, 36, .42); border-right: 1px solid rgba(7, 31, 36, .28); }
.fish-tail { position: absolute; left: .02rem; top: .13rem; width: .76rem; height: .84rem; background: linear-gradient(90deg, #de6b45, #55a7cb); border: 1px solid rgba(243, 241, 233, .7); clip-path: polygon(100% 50%, 0 0, 30% 50%, 0 100%); transform-origin: right center; animation: tail-flick .18s ease-in-out infinite alternate; }
.fish-eye { position: absolute; right: .52rem; top: .4rem; width: .16rem; height: .16rem; background: #071f24; box-shadow: 0 0 0 1px rgba(243, 241, 233, .75), 0 0 5px rgba(120, 215, 202, .8); }
@keyframes fish-swim {
  0% { opacity: 0; transform: translate(-3rem, -50%) rotate(0deg); }
  10% { opacity: 1; }
  34% { transform: translate(7rem, -62%) rotate(-5deg); }
  62% { transform: translate(15rem, -40%) rotate(5deg); opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(min(430px, 48vw) + 3rem), -50%) rotate(0deg); }
}
@keyframes tail-flick {
  from { transform: skewY(10deg) scaleX(.92); }
  to { transform: skewY(-12deg) scaleX(1.04); }
}
nav { display: flex; gap: clamp(.85rem, 1.7vw, 2rem); }
nav a { font: 500 .72rem var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--aqua); }
.menu-button { display: none; color: inherit; background: none; border: 0; }

.hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; padding: 10rem max(5vw, 2rem) 6rem; overflow: hidden; color: var(--paper); background: var(--deep); }
.hero-photo, .hero-shade { position: absolute; inset: 0; height: 100%; }
.hero-photo { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(4, 20, 24, .76) 0%, rgba(4, 20, 24, .48) 42%, rgba(4, 20, 24, .06) 72%), linear-gradient(0deg, rgba(4, 20, 24, .3), transparent 52%); }
.hero-content { position: relative; z-index: 2; max-width: 980px; }
h1 { margin: 0; font: 700 clamp(2.2rem, 4vw, 3.4rem)/1.05 var(--serif); letter-spacing: .01em; text-transform: none; line-height: 1.05; }
h2 { margin: 0; font: 600 var(--heading-base-size)/1.08 var(--serif); letter-spacing: .01em; text-transform: none; line-height: 1.08; }
h3 { margin: 0; font: 600 clamp(1.2rem, 1.8vw, 1.65rem)/1.2 var(--serif); letter-spacing: .01em; text-transform: none; line-height: 1.2; }
h4 { margin: 0; font: 600 1rem/1.3 var(--serif); letter-spacing: .02em; text-transform: none; }
.hero h1 em { color: var(--aqua); font-weight: 500; }
.hero-degree { max-width: 760px; margin: 1.5rem 0 0; color: var(--paper); font: 500 clamp(1.05rem, 2vw, 1.45rem)/1.4 var(--sans); }
.hero-intro { max-width: 650px; margin: .9rem 0 2rem; color: rgba(243, 241, 233, .78); font-size: clamp(.95rem, 1.35vw, 1.1rem); }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 230px; padding: 1rem 1.2rem; border: 1px solid currentColor; font: 500 .7rem var(--mono); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--deep); background: var(--aqua); border-color: var(--aqua); }
.button-small { padding: .6rem .9rem; font-size: .65rem; min-width: 160px; }
.button-dark { margin-top: 1.5rem; color: var(--paper); background: var(--deep); border-color: var(--deep); }
.text-link { font: 500 .72rem var(--mono); text-decoration: none; text-transform: uppercase; }
.text-link span { color: var(--aqua); }
.hero-note { position: absolute; z-index: 2; right: max(5vw, 2rem); bottom: 2rem; margin: 0; font: .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; }

.about-intro { isolation: isolate; padding-top: 5.5rem; padding-bottom: 2rem; overflow: hidden; background: linear-gradient(110deg, rgba(10, 30, 44, .96) 0%, rgba(10, 30, 44, .88) 60%, rgba(79, 182, 163, .08) 100%); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.about-intro::before { opacity: .18; background: linear-gradient(90deg, transparent, rgba(79, 182, 163, .12), transparent); }
.about-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 22% 24%, rgba(255, 255, 255, .05) 0%, transparent 28%), radial-gradient(circle at 78% 72%, rgba(255, 255, 255, .03) 0%, transparent 22%); }
.about-intro .eyebrow { color: rgba(243, 241, 233, .72); }
.about-intro h2 { margin: 0 0 1.25rem; color: var(--paper); font-weight: 500; letter-spacing: .01em; text-shadow: none; text-transform: none; }
.about-intro p:not(.eyebrow) { max-width: 720px; margin: 0; color: rgba(243, 241, 233, .8); font: 400 clamp(.95rem, 1vw, 1.1rem)/1.85 var(--sans); text-shadow: none; }

.resume { background: #ebe8dd; }
.resume-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.resume-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 2.25rem; background: var(--paper); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.document-label { color: var(--blue); font: 500 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.resume-card h3 { margin: 1.2rem 0 .8rem; color: var(--ink); font: 600 calc(var(--heading-base-size) * .66)/1.2 var(--serif); }
.resume-card p { max-width: 520px; margin: 0; color: rgba(16, 44, 48, .75); }
.document-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.document-download { display: inline-flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid currentColor; font: 500 .65rem var(--mono); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.document-download:hover { color: var(--orange); }

.section-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem); align-items: start; gap: 2.5rem; margin-bottom: 2.4rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(16, 44, 48, .12); }
.section-heading::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px; background: var(--orange); }
.section-heading h2 { font: 600 var(--heading-base-size)/1.08 var(--serif); letter-spacing: .01em; text-transform: none; }
.section-heading > p { max-width: 32rem; margin: .2rem 0 0; color: rgba(16, 44, 48, .68); font: 400 .95rem var(--sans); line-height: 1.8; text-align: right; }
.filter-bar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.filter { padding: .65rem 1rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; font: 500 .64rem var(--mono); text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.filter.active, .filter:hover { color: var(--paper); background: var(--ink); }
.projects { isolation: isolate; padding-top: 3rem; overflow: hidden; color: var(--paper); background: linear-gradient(180deg, var(--project-blue) 0%, var(--project-blue-deep) 100%); }
.projects::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(111, 179, 200, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 179, 200, .035) 1px, transparent 1px); background-size: 48px 48px; }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; align-items: stretch; }
.project { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 1rem; overflow: hidden; color: var(--ink); background: var(--project-card); border: 1px solid rgba(111, 179, 200, .26); box-shadow: 0 24px 70px rgba(0, 10, 18, .28); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.project::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ocean-light); opacity: .95; }
.project-copy { display:flex; flex-direction: column; gap:1rem; align-items:stretch; flex: 1; }
.project-icon { width:100%; height: clamp(190px, 20vw, 280px); padding: 0; border-radius: 4px; object-fit: contain; flex: 0 0 auto; border: 1px solid rgba(16, 44, 48, .12); background: transparent; }
.project-text { min-width:0; display: flex; flex-direction: column; flex: 1; }
.project.hidden { display: none; }
.project-index { position: absolute; top: 1.65rem; right: 1.6rem; z-index: 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--paper); background: var(--project-blue); border: 1px solid rgba(111, 179, 200, .5); font: .68rem var(--mono); }
.project-type { margin-top: 0; color: var(--blue); font: 500 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project h3 { margin: .25rem 0 .7rem; font: 600 calc(var(--heading-base-size) * .66)/1.2 var(--serif); }
.project-text p { margin-bottom: 0; }
.project-copy > p:not(.project-type) { max-width: 760px; }
.technical-list { display: grid; gap: .65rem; padding: 0; margin: 1.1rem 0 0; list-style: none; }
.technical-list li { position: relative; padding-left: 1.15rem; color: rgba(16, 44, 48, .82); font-size: .92rem; line-height: 1.55; }
.technical-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .38rem; height: .38rem; background: var(--ocean-light); border-radius: 50%; box-shadow: 0 0 0 3px rgba(111, 179, 200, .14); }
.tags { display: flex; flex-wrap: wrap; gap: .42rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.tags li { padding: .36rem .58rem; color: var(--project-blue); background: #e8eef2; border: 1px solid rgba(23, 42, 66, .1); border-radius: 4px; font: .6rem var(--mono); text-transform: uppercase; box-shadow: 0 2px 0 rgba(16, 44, 48, .05); }
.project-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1.4rem; margin-top: auto; }
.project-actions a { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem .72rem; color: var(--paper); background: var(--project-blue); border: 1px solid rgba(111, 179, 200, .34); font: 500 .62rem var(--mono); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.project-actions a:hover { color: var(--ocean-light); }

.skills { color: var(--paper); background: var(--ink); }
.section-heading.light > p { color: rgba(243, 241, 233, .66); }
.skills-banner { background: rgba(7, 31, 36, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); padding: 2rem; border-radius: 24px; }
.skills-banner .skill-header p:not(.section-label) { margin: 1rem 0 0; color: rgba(255, 255, 255, .72); font: 500 1rem var(--sans); line-height: 1.75; text-transform: none; max-width: 44rem; }
.skill-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.skill-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02); padding: 1.5rem; border-radius: 16px; }
.skill-card h4 { margin: 0 0 1rem; color: #ffffff; }
.skill-pill { display: inline-flex; align-items: center; justify-content: center; margin: .35rem .4rem .35rem 0; padding: .55rem .95rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px; color: #ffffff; font: 500 .82rem var(--mono); background: rgba(255, 255, 255, .04); text-transform: none; }



footer#connect { display: block; width: calc(100% - 40vw); padding: clamp(2.25rem, 3vw, 3rem) 2rem 2.5rem; color: var(--paper); background: linear-gradient(120deg, var(--ocean) 0%, var(--ocean-deep) 55%, var(--ocean-deep) 100%); border-top: 1px solid rgba(192, 109, 66, .18); }
footer#connect h2 { font: 600 var(--heading-base-size)/1.05 var(--serif); max-width: 46rem; margin-top: .75rem; line-height: 1.05; letter-spacing: .02em; }
footer#connect .connect-copy { margin: 1rem 0 0; font: 500 1rem var(--sans); line-height: 1.75; color: rgba(255, 255, 255, .75); text-transform: none; max-width: 44rem; }
.footer-meta { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; color: rgba(243, 241, 233, .78); font: .76rem/1.8 var(--mono); text-transform: none; gap: .75rem; }
.footer-meta a, .footer-meta .copy-email { color: #ffffff; font-weight: 500; }
.footer-meta .contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin: 1.1rem 0 0; font-size: .88rem; }
.footer-meta .contact-links a, .footer-meta .contact-links .copy-email { color: #ffffff; background: rgba(255, 255, 255, .04); padding: .65rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); text-transform: none; letter-spacing: .05em; transition: background .25s ease, border-color .25s ease; }
.footer-meta .contact-links a:hover, .footer-meta .contact-links .copy-email:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.footer-meta .contact-links .copy-email { cursor: pointer; }
.footer-meta .copyright { margin: 0; color: rgba(243, 241, 233, .55); font-size: .72rem; }

.lightbox { width: min(94vw, 1200px); padding: 0; color: var(--paper); background: var(--deep); border: 0; }
.lightbox::backdrop { background: rgba(0, 15, 18, .9); }
.lightbox img { max-height: 82vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 1rem 1.5rem; font: .68rem var(--mono); text-transform: uppercase; }
.lightbox-close { position: absolute; z-index: 2; top: .6rem; right: .8rem; width: 2.5rem; height: 2.5rem; color: white; background: var(--deep); border: 0; cursor: pointer; font-size: 1.5rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) and (min-width: 901px) {
  .project-list { grid-template-columns: 1fr; }
  .project-icon { height: 300px; }
}

@media (max-width: 900px) {
  .profile-sidebar { position: relative; width: 100%; min-width: 0; min-height: 620px; animation: none; }
  .sidebar-content { padding: 7rem 1.5rem 4rem; }
  .page-content, .page-footer { margin-left: 0; opacity: 1; animation: none; }
  .site-header { inset: 0 0 auto; color: var(--paper); background: rgba(7, 31, 36, .88); border-bottom-color: rgba(255, 255, 255, .12); opacity: 1; animation: none; }
  nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; gap: 0; padding: 1rem 2rem; background: var(--deep); }
  nav.open { display: flex; }
  nav a { padding: .9rem 0; }
  .menu-button { display: grid; gap: 7px; }
  .menu-button span:not(.sr-only) { display: block; width: 25px; height: 1px; background: currentColor; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 20, 24, .78), rgba(4, 20, 24, .2)); }
  .about-intro { padding-top: 4rem; }
  .section-heading, footer { grid-template-columns: 1fr; }
  .resume-container { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .project { padding: 1rem; }
  .project-icon { height: clamp(220px, 42vw, 360px); }
  .project-actions { padding-top: 1.25rem; }
  .skill-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .section-pad { padding: 6rem 1.25rem; }
  .site-header { padding-inline: 1.25rem; }
  .brand { min-width: min(280px, 72vw); font-size: .78rem; letter-spacing: .09em; }
  .profile-sidebar { min-height: 100svh; }
  .headshot { width: 150px; }
  .profile-intro h1 { font-size: 2.75rem; }
  .profile-intro p { font-size: 1rem; }
  .profile-links { margin-top: 2rem; }
  .about-intro { padding-top: 3.5rem; padding-bottom: 2rem; }
  .hero { padding: 8rem 1.25rem 4rem; }
  .hero h1 { font-size: 3.55rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-note { display: none; }
  .resume-card { min-height: 0; padding: 1.5rem; }
  .document-actions { align-items: flex-start; flex-direction: column; }
  .filter-bar { overflow-x: auto; padding-bottom: .5rem; }
  .filter { white-space: nowrap; }
  .project { padding: .85rem; }
  .project-icon { height: 210px; }
  .project-index { top: 1.35rem; right: 1.35rem; }
  .skill-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .robot-fish, .fish-tail { animation: none; }
  .robot-fish { display: none; }
  .brand-name, .brand-name.decoding { color: #f8fbfb; font-family: var(--display); font-size: inherit; letter-spacing: inherit; text-shadow: 0 0 14px rgba(120, 215, 202, .42); }
  .profile-sidebar, .page-content, .page-footer, .site-header { animation: none; opacity: 1; transform: none; }
  .profile-sidebar { width: 40vw; }
  .vision-overlay, .vision-overlay::before, .vision-overlay::after, .canny-edges { animation: none; }
  .vision-overlay { display: none; }
  .sidebar-content { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .profile-sidebar { width: 100%; z-index: 1; }
}
