/* Hunter Velasquez portfolio. One stylesheet for every page.
   Two themes: Engineering (light, sage) and Photo/Video (dark). body.film switches them. */

:root {
  --ink: #141414;
  --muted: #5f5a52;
  --line: rgba(20, 20, 20, .16);
  --bg: #ffffff;
  --bg-soft: #efefeb;
  --cream: #f3eee4;
  --night: #0d0d10;
  --sage: #bdd6a9;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 2.6vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* --mix blends the two themes: 0 = Engineering (light), 1 = Photo/Video (dark).
   Home sets it live from the switch (so the colors slide while you drag); other pages use body.film = 1. */
body { --mix: 0; }
body.film { --mix: 1; }
body {
  --m: calc(var(--mix) * 100%);
  --ink: color-mix(in srgb, #141414, #f3eee4 var(--m));
  --muted: color-mix(in srgb, #5f5a52, rgba(243, 238, 228, .68) var(--m));
  --line: color-mix(in srgb, rgba(20, 20, 20, .16), rgba(243, 238, 228, .22) var(--m));
  --bg: color-mix(in srgb, #ffffff, #0d0d10 var(--m));
  --bg-soft: color-mix(in srgb, #efefeb, #0d0d10 var(--m));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-size: clamp(11px, .78vw, 15px); letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--ink); }
.label.muted { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.6em; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: clamp(13px, .9vw, 16px);
  font-weight: 400; cursor: pointer; transition: opacity .2s ease, background-color .7s ease, color .7s ease;
}
.pill:hover { opacity: .82; }
.pill.ghost { background: transparent; color: var(--ink); }

/* swap fade for text that changes with the switch */
[data-k], [data-swap] { transition: opacity .22s ease; }
.swapping [data-k], .swapping [data-swap] { opacity: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--pad); transition: background-color .35s ease, box-shadow .35s ease, color .7s ease;
}
.site-header.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 500; font-size: clamp(16px, 1.25vw, 22px); letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.nav { display: flex; gap: clamp(24px, 7vw, 150px); }
.nav a { text-decoration: none; font-size: clamp(14px, 1vw, 18px); font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-header .pill { justify-self: end; padding: .5em 1.15em; }
.menu-btn { display: none; justify-self: end; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; margin: 7px 8px; transition: transform .25s ease, opacity .25s ease; }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .pill { display: none; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .nav a { font-family: var(--serif); font-size: 34px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 110px var(--pad) 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  --glow: color-mix(in srgb, #b2d595, #6a2a10 var(--m));
  --glow2: color-mix(in srgb, #e4f5d2, #c2531a var(--m));
  --glow3: color-mix(in srgb, #94c27a, #3a1508 var(--m));
  --haze: color-mix(in srgb, rgba(244, 246, 240, .98), rgba(255, 140, 70, .22) var(--m));
  background: linear-gradient(180deg, color-mix(in srgb, #dadcd6, #0d0d10 var(--m)) 0%, color-mix(in srgb, #d3dacb, #0d0d10 var(--m)) 55%, color-mix(in srgb, #c4d8b2, #140b07 var(--m)) 100%); }
.hero-bg i { position: absolute; display: block; border-radius: 50%; will-change: transform, opacity; }
/* main glow: grows and shrinks like the old site's pulsing circle */
.hero-bg .g1 { width: 70vmin; height: 70vmin; left: calc(50% - 35vmin); top: calc(46% - 35vmin);
  background: radial-gradient(circle, var(--glow) 0, var(--glow) 48%, transparent 70%); animation: breathe 5.5s ease-in-out infinite; }
/* bright core drifting around inside the glow */
.hero-bg .g2 { width: 44vmin; height: 44vmin; left: calc(50% - 22vmin); top: calc(46% - 22vmin); opacity: .9; filter: blur(4vmin);
  background: radial-gradient(circle, var(--glow2) 0, transparent 68%); animation: orbit 11s linear infinite; }
/* deeper-toned blob circling the other way, so the color visibly shifts */
.hero-bg .g4 { width: 38vmin; height: 38vmin; left: calc(50% - 19vmin); top: calc(46% - 19vmin); opacity: .75; filter: blur(5vmin);
  background: radial-gradient(circle, var(--glow3) 0, transparent 68%); animation: orbit2 14s linear infinite; }
/* light pooling at the bottom edge */
.hero-bg .g3 { width: 100vmin; height: 38vmin; left: calc(50% - 50vmin); bottom: -14vmin;
  background: radial-gradient(ellipse, var(--haze) 0, transparent 68%); animation: swell 5.5s ease-in-out infinite; }
/* deeper green glow in both bottom corners, swelling together */
.hero-bg .c1, .hero-bg .c2 { width: calc(62vmax - 16vmax * var(--mix)); height: calc(41vmax - 11vmax * var(--mix)); bottom: calc(-24vmax + 4vmax * var(--mix));
  --corner: color-mix(in srgb, #8fbf72, #5c230c var(--m));
  background: radial-gradient(ellipse, var(--corner) 0, var(--corner) 22%, transparent 66%); animation: cornerSwell 5.5s ease-in-out infinite; }
.hero-bg .c1 { left: calc(-24vmax + 4vmax * var(--mix)); transform-origin: 20% 80%; }
.hero-bg .c2 { right: calc(-24vmax + 4vmax * var(--mix)); transform-origin: 80% 80%; }
@keyframes cornerSwell { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.26); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.16); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(15vmin) rotate(0deg) scale(1); } 50% { transform: rotate(180deg) translateX(15vmin) rotate(-180deg) scale(1.2); } to { transform: rotate(360deg) translateX(15vmin) rotate(-360deg) scale(1); } }
@keyframes orbit2 { from { transform: rotate(360deg) translateX(13vmin) rotate(-360deg); } to { transform: rotate(0deg) translateX(13vmin) rotate(0deg); } }
@keyframes swell { 0%, 100% { transform: scale(.85, .8); opacity: .7; } 50% { transform: scale(1.3, 1.6); opacity: 1; } }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vh, 56px); text-align: center; }
.hero h1 { font-size: clamp(42px, 6.25vw, 112px); line-height: 1.12; max-width: 20ch; text-wrap: balance; }
.down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 44px; height: 64px; display: grid; place-items: center; color: var(--ink); }
.down svg { width: 28px; height: 60px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* the Engineering / Photo-Video switch */
.switch { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); user-select: none; -webkit-user-select: none; }
.switch .side { font-size: clamp(10px, .72vw, 13px); letter-spacing: .16em; font-weight: 500; text-transform: uppercase; background: none; border: 0; padding: 6px 2px; cursor: pointer; color: var(--muted); transition: color .3s ease; }
.switch .side.on { color: var(--ink); }
.track { position: relative; width: clamp(88px, 6.4vw, 120px); aspect-ratio: 2 / 1; border-radius: 999px; background: color-mix(in srgb, #141414, #f3eee4 var(--m)); border: 0; padding: 0; cursor: grab; touch-action: none; box-shadow: 0 0 0 0 rgba(20, 20, 20, .35); animation: nudge 2.6s ease-out infinite; }
body.film .track { animation-name: nudgeFilm; }
.knob { position: absolute; top: 8%; left: 4%; height: 84%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, #ffffff, #0d0d10 var(--m)); }
.track.dragging { cursor: grabbing; animation: none; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(20, 20, 20, .35); } 70% { box-shadow: 0 0 0 14px rgba(20, 20, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0); } }
@keyframes nudgeFilm { 0% { box-shadow: 0 0 0 0 rgba(243, 238, 228, .35); } 70% { box-shadow: 0 0 0 14px rgba(243, 238, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(243, 238, 228, 0); } }

/* ---------- sections ---------- */
section { position: relative; }
.wrap { padding: clamp(56px, 7vw, 120px) var(--pad); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 31%) minmax(0, 1fr); gap: clamp(24px, 3vw, 64px); align-items: start; }
.about h2 { font-size: clamp(40px, 4.2vw, 80px); margin: .25em 0 .55em; }
.about .intro { font-size: clamp(15px, 1.05vw, 20px); line-height: 1.6; }
.caps { margin-top: clamp(28px, 3vw, 48px); }
.caps .label { display: block; padding-bottom: .7em; border-bottom: 1px solid var(--line); margin-bottom: .4em; color: var(--muted); font-size: clamp(10px, .7vw, 13px); letter-spacing: .18em; }
.cap { padding: .8em 0 0; }
.cap h3 { font-size: clamp(19px, 1.45vw, 27px); line-height: 1.3; }
.cap p { font-size: clamp(13px, .9vw, 17px); color: var(--muted); line-height: 1.5; margin-top: .2em; }
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0d0d10; }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .5s ease; }
.reel video.on { opacity: 1; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .reel { order: 2; } }

/* process */
.process { text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--sage), #0d0d10 var(--m)) 0%, var(--bg-soft) 77%); perspective: 1000px; }
.process .stmt { font-family: var(--serif); font-size: clamp(26px, 2.9vw, 60px); line-height: 1.32; max-width: 24ch; margin: clamp(18px, 2vw, 32px) auto 0; text-wrap: balance; transform-style: preserve-3d; will-change: transform; }
.process hr { width: 64px; border: 0; border-top: 1px solid var(--ink); opacity: .5; margin: clamp(28px, 3vw, 48px) auto; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(28px, 8vw, 180px); }
.stat { display: flex; align-items: center; gap: .6em; text-align: left; }
.stat b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 3.4vw, 64px); line-height: 1; }
.stat span { font-size: clamp(12px, .85vw, 16px); line-height: 1.3; white-space: pre-line; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; justify-items: center; gap: 22px; } }

/* case study */
.case { display: grid; grid-template-columns: minmax(0, 31%) minmax(0, 1fr); gap: clamp(24px, 3vw, 64px); align-items: start; }
.case .text { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 24px); }
.case h2 { font-size: clamp(36px, 3.6vw, 72px); }
.case .text p { font-size: clamp(14px, .95vw, 18px); line-height: 1.6; }
.case .text .pill { align-self: flex-start; margin-top: 8px; }
.case .pic { position: relative; aspect-ratio: 2.35 / 1; border-radius: 4px; overflow: hidden; }
.case .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case .text .pill { margin-top: 8px; } }

/* featured slider (always dark) */
.featured { background: #000; color: #f3eee4; }
.featured .head { display: flex; justify-content: space-between; align-items: center; padding-bottom: clamp(14px, 1.4vw, 24px); border-bottom: 1px solid rgba(243, 238, 228, .22); margin-bottom: clamp(24px, 2.6vw, 44px); }
.featured .label { color: #f3eee4; }
.featured .pill { background: #f3eee4; color: #000; border-color: #f3eee4; padding: .45em 1.2em; }
.slider { position: relative; }
.track-x { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 46.5vw, 1100px); gap: clamp(12px, 1.2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.track-x::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; text-decoration: none; color: inherit; cursor: pointer; }
.slide .media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.slide h3 { font-family: var(--sans); font-weight: 400; font-size: clamp(14px, 1vw, 19px); margin-top: .9em; }
.slide p { font-size: clamp(12px, .78vw, 15px); opacity: .8; }
.arrows { position: absolute; top: calc(clamp(280px, 46.5vw, 1100px) * 9 / 32); right: 0; left: 0; display: flex; justify-content: space-between; pointer-events: none; padding: 0 10px; }
.arrows button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(243, 238, 228, .9); color: #000; font-size: 22px; cursor: pointer; transform: translateY(-50%); }
.arrows button:disabled { opacity: 0; pointer-events: none; }

/* shared hover-play media (featured slides + work tiles) */
.hp { position: relative; overflow: hidden; }
.hp > img, .hp > video, .hp > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hp > video, .hp > iframe { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.hp.playing > video.on, .hp.playing > iframe.on { opacity: 1; }
.hp .play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(13, 13, 16, .55); display: grid; place-items: center; transition: opacity .3s ease; }
.hp .play::after { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.hp.playing .play { opacity: 0; }
.hp > img { transition: transform .6s var(--ease); }
a:hover .hp > img, button:hover .hp > img { transform: scale(1.025); }

/* contact + footer */
.contact { background: var(--bg-soft); }
.contact h2 { font-size: clamp(36px, 3.6vw, 72px); font-style: italic; display: flex; align-items: center; gap: .2em; }
.contact h2 svg { width: .8em; height: .8em; fill: currentColor; }
.contact .lede { margin-top: .9em; font-size: clamp(14px, 1vw, 19px); max-width: 26ch; }
.contact address { font-style: normal; margin-top: clamp(20px, 2vw, 36px); font-size: clamp(14px, .95vw, 18px); line-height: 1.7; }
.site-footer { background: var(--bg-soft); padding: clamp(36px, 5vw, 96px) var(--pad) clamp(20px, 2vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 220px)) 1fr; gap: 20px; align-items: end; font-size: clamp(12px, .8vw, 15px); }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { justify-self: end; }
@media (max-width: 700px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer .copy { justify-self: start; grid-column: 1 / -1; } }

/* ---------- inner pages (Work is dark, Resume is light) ---------- */
.page-top { padding: clamp(110px, 12vw, 200px) var(--pad) clamp(28px, 3vw, 56px); text-align: center; }
.page-top h1 { font-size: clamp(48px, 7vw, 132px); }
.page-top .label { margin-top: 1.4em; display: block; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(22px, 2.4vw, 40px); }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .55em 1.2em; font-size: clamp(12px, .8vw, 14px); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 3vw, 56px) clamp(14px, 1.2vw, 24px); padding: 0 var(--pad) clamp(64px, 7vw, 120px); max-width: 1680px; margin: 0 auto; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
.tile { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.tile .hp { aspect-ratio: 16 / 9; border-radius: 4px; background: #1a1a1d; }
.tile h3 { font-family: var(--sans); font-weight: 400; font-size: clamp(14px, .95vw, 17px); margin-top: .85em; line-height: 1.35; }
.tile .label { font-size: clamp(10px, .62vw, 12px); margin-top: .35em; display: block; }
.tile[hidden] { display: none; }

/* project viewer (dialog) */
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .72); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.viewer.open { opacity: 1; pointer-events: auto; }
.vbox { --bg: #f3eee4; --ink: #141414; --muted: #6b665d; --line: rgba(20, 20, 20, .14);
  position: relative; width: min(1320px, 94vw); height: min(840px, 88vh); background: var(--bg); color: var(--ink); border-radius: 6px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); transform: translateY(12px); transition: transform .3s var(--ease); }
.viewer.open .vbox { transform: none; }
.stage { position: relative; background: #0f0f0f; display: flex; flex-direction: column; min-height: 0; }
.view { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.view img, .view video, .view iframe { width: 100%; height: 100%; object-fit: contain; display: block; border: 0; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(243, 238, 228, .92); color: #141414; font-size: 22px; line-height: 44px; cursor: pointer; z-index: 2; }
.vnav.prev { left: 14px; } .vnav.next { right: 14px; }
.thumbs { display: flex; gap: 8px; padding: 10px 12px 12px; justify-content: center; flex-wrap: wrap; }
.thumbs button { width: 78px; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 4px; padding: 0; background: #222 center / cover no-repeat; cursor: pointer; opacity: .55; position: relative; }
.thumbs button:hover { opacity: .85; }
.thumbs button.on { border-color: #f3eee4; opacity: 1; }
.thumbs button.vid::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; text-shadow: 0 0 6px rgba(0, 0, 0, .8); }
.info { padding: 56px 40px 36px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.info .cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info h2 { font-size: clamp(26px, 2.6vw, 38px); }
.info .short { font-size: 15px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.info .body { font-size: 15px; line-height: 1.65; white-space: pre-line; }
.info .note { font-size: 13px; line-height: 1.55; color: #3d3a34; background: rgba(20, 20, 20, .05); border-left: 3px solid var(--ink); padding: 10px 14px; border-radius: 2px; }
.info .h3 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.info ul { padding-left: 18px; margin: 0; font-size: 14.5px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; line-height: 1; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fbf8f2; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.tabs button { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); }
.info .pill { align-self: flex-start; margin-top: 6px; }
.vclose { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; line-height: 36px; cursor: pointer; }
.hide { display: none !important; }
@media (max-width: 760px) {
  .vbox { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; display: block; overflow: auto; }
  .view { aspect-ratio: 16 / 9; flex: none; }
  .info { padding: 22px 20px 40px; overflow: visible; }
  .thumbs button { width: 64px; }
}
body.lock { overflow: hidden; }

/* resume page */
.resumes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad) clamp(56px, 6vw, 96px); }
.rcard { background: color-mix(in srgb, #fbf8f2, #17171b var(--m)); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; grid-template-columns: minmax(150px, 42%) 1fr; gap: 22px; align-items: start; }
.rcard .preview { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 24px rgba(20, 20, 20, .10); transition: transform .2s ease, box-shadow .2s ease; background: #fff; }
.rcard .preview:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(20, 20, 20, .16); }
.rcard .preview img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; }
.rcard .meta { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.rcard h2 { font-size: 28px; }
.rcard .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.resume-note { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 48px; }
@media (max-width: 860px) { .resumes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rcard { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; } .rcard h2 { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* resume page: cream on the Engineering side, dark on Photo/Video */
body.resume { --bg: color-mix(in srgb, #f3eee4, #0d0d10 var(--m)); }
