/* ============================================================
   Gianni Arone — portfolio stylesheet
   Direction: studio poster. Paper + ink, one hard accent (brick),
   condensed display type at poster scale, mono captions, ruled and
   numbered sections, square geometry, offset-ink shadows.
   ============================================================ */

/* ── Type faces (self-hosted, latin subsets) ── */
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/big-shoulders-display-700.woff2') format('woff2');}
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/big-shoulders-display-800.woff2') format('woff2');}
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/big-shoulders-display-900.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-sans-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-sans-500.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-sans-600.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/ibm-plex-sans-700.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-mono-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-mono-500.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-mono-600.woff2') format('woff2');}

:root {
  --paper: #f1ede4;      /* stone */
  --paper-2: #faf8f3;    /* bone */
  --paper-3: #e6e1d6;    /* deeper stone */
  --ink: #151515;
  --ink-2: #3a3a3a;
  --muted: #6f6b64;
  --rule: #151515;
  /* Legacy token names, kept because the markup uses them as class names. */
  --pink: #a83a26;    /* brick — THE accent */
  --orange: #ae5e1f;  /* amber */
  --yellow: #c79433;  /* brass */
  --lime: #5c6a2b;    /* olive */
  --blue: #1f5069;    /* petrol */
  --violet: #3b4372;  /* slate */
  --cyan: #356f81;    /* steel */
  --pink-t: #ebe1da;
  --orange-t: #ece3d6;
  --yellow-t: #ece5d3;
  --lime-t: #e5e6d8;
  --blue-t: #dfe4e3;
  --violet-t: #e2e2e6;
  --cyan-t: #dfe5e6;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1280px;
  --r: 6px;
  --bw: 2px;
  --shadow: 6px 6px 0 var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); min-height: 100vh; counter-reset: sec; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── Type ── */
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: 0; }
h1 { font-size: clamp(72px, 12.5vw, 184px); font-weight: 900; text-transform: uppercase; line-height: .84; letter-spacing: -.005em; }
h2 { font-size: clamp(46px, 7vw, 108px); font-weight: 800; text-transform: uppercase; line-height: .88; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.02; }
p { color: var(--ink-2); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 720px; color: var(--ink); }
.lede b, .lede strong { font-weight: 600; }
.mono, .eyebrow, .meta, .badge, .chips span, .btn, .dur, .nav li a, .filters button, .card .sub, footer .links a, footer .copy, .domain, .job .when, .built .stack, .kit h3, .awards li .yr, .resume .contact, .tile .cap small, .tcard .cap small, .player .meta span, .modal .m-title, .lb .cap, .micro .info .meta, .browser .bar .url { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--pink); flex: 0 0 auto; }
.sec-head .eyebrow { counter-increment: sec; }
.sec-head .eyebrow::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; color: var(--pink); font-weight: 600; }
.eyebrow.pink, .eyebrow.blue, .eyebrow.lime, .eyebrow.violet, .eyebrow.cyan, .eyebrow.orange { color: var(--ink); }
.mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; color: var(--pink); }
.mark::before { content: none; }
.mark.pink { color: var(--pink); } .mark.blue { color: var(--blue); } .mark.lime { color: var(--lime); } .mark.violet { color: var(--violet); } .mark.orange { color: var(--orange); }
.grad-text { color: var(--pink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 500; background: var(--paper); border-bottom: var(--bw) solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.brand .dot { width: 18px; height: 18px; background: var(--pink); border: var(--bw) solid var(--ink); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.brand:hover .dot { transform: rotate(135deg); }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav li a { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.nav li a:hover { border-bottom-color: var(--ink); }
.nav li a.active { border-bottom-color: var(--pink); color: var(--pink); }
.nav-toggle { display: none; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border: var(--bw) solid var(--ink); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: var(--bw) solid var(--rule); flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav ul.open { display: flex; }
  .nav li a { font-size: 16px; padding: 14px 4px; border-bottom: 1px solid rgba(21,21,21,.15); }
  .nav li a.active { border-bottom: 1px solid rgba(21,21,21,.15); }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: var(--bw) solid var(--ink); border-radius: 3px; background: var(--paper-2); color: var(--ink); font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .2s; white-space: nowrap; }
.btn:hover { box-shadow: 6px 6px 0 var(--pink); transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); }
.btn:active { box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.pink { background: var(--pink); color: #fff; } .btn.yellow { background: var(--yellow); color: var(--ink); } .btn.blue { background: var(--blue); color: #fff; } .btn.lime { background: var(--lime); color: #fff; } .btn.cyan { background: var(--cyan); color: #fff; }
.btn.sm { padding: 9px 14px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ── Sections ── */
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
section.tint-pink { background: var(--paper-3); } section.tint-blue { background: var(--blue-t); } section.tint-yellow { background: var(--paper-2); } section.tint-lime { background: var(--lime-t); } section.tint-violet { background: var(--violet-t); } section.tint-cyan { background: var(--cyan-t); } section.tint-orange { background: var(--orange-t); }
section.bordered { border-top: var(--bw) solid var(--rule); }
.sec-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; padding-bottom: 22px; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bw); background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
.sec-head.in::after { transform: scaleX(1); }
.sec-head:not(.reveal)::after { transform: none; }
.sec-head p { max-width: 640px; margin-top: 16px; font-size: 17px; }
.sec-head .more { flex-shrink: 0; margin-bottom: 4px; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
/* Motion runs by the owner's choice; nothing here gates on prefers-reduced-motion. */

/* ── Tiles ── */
.tile { position: relative; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s cubic-bezier(.2,.7,.2,1); display: block; transform-style: preserve-3d; }
.tile:hover { box-shadow: 10px 10px 0 var(--pink); transform: translateY(-3px) scale(1.012); }
.tile.tilt { transition: box-shadow .25s, transform .12s linear; }
.tile .media { position: relative; overflow: hidden; background: var(--ink); }
.tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover .media img, .tile:hover .media video { transform: scale(1.04); }
.tile .body { padding: 18px 20px 20px; border-top: var(--bw) solid var(--ink); }
.tile .body h3 { margin-bottom: 6px; }
.tile .meta { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .desc { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--yellow); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 3px; padding: 4px 8px; }
.badge.right { left: auto; right: 10px; }
.badge.pink { background: var(--pink); color: #fff; } .badge.blue { background: var(--blue); color: #fff; } .badge.lime { background: var(--lime); color: #fff; } .badge.white { background: var(--paper-2); } .badge.cyan { background: var(--cyan); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 11px; font-weight: 500; letter-spacing: .06em; border: 1px solid var(--ink); border-radius: 3px; padding: 4px 8px; background: transparent; }

/* ── Video cards ── */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.vcard { cursor: pointer; }
.vcard .media { aspect-ratio: 16 / 9; }
.vcard .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; background: rgba(21,21,21,.28); }
.vcard:hover .play { opacity: 1; }
.playbtn { width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 5px; color: var(--ink); transition: transform .2s, background .2s, color .2s; }
.vcard:hover .playbtn, .player:hover .playbtn { background: var(--pink); color: #fff; transform: scale(1.08); }
.player .play .playbtn { position: relative; }
.player .play .playbtn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink); animation: ping 2.2s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.vcard .dur { position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 7px; border-radius: 3px; }
.vcard .body h3 { font-size: 22px; }

/* Bento for featured video */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento .vcard:first-child { grid-column: span 8; }
.bento .vcard:first-child .body h3 { font-size: 34px; }
.bento .vcard:nth-child(2) { grid-column: span 4; }
.bento .vcard:nth-child(n+3) { grid-column: span 4; }
@media (max-width: 900px) { .bento .vcard:first-child, .bento .vcard:nth-child(2), .bento .vcard:nth-child(n+3) { grid-column: span 6; } }
@media (max-width: 600px) { .bento .vcard:first-child, .bento .vcard:nth-child(2), .bento .vcard:nth-child(n+3) { grid-column: span 12; } }

/* ── Big inline player ── */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--pink); cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.player .play .playbtn { width: 96px; height: 96px; font-size: 34px; }
.player .play .lbl { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 3px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); }
.player .meta { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.player .meta span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 3px; padding: 5px 10px; }

/* ── Filters ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 11px 14px; border: var(--bw) solid var(--ink); border-radius: 3px; background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, background .2s; }
.filters button:hover { box-shadow: 3px 3px 0 var(--pink); }
.filters button.active { background: var(--ink); color: var(--paper); }
.filters button small { opacity: .55; margin-left: 8px; font-weight: 500; }

/* ── Modal (video) ── */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(21,21,21,.94); align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; animation: fadeIn .25s ease; }
.modal .frame { width: min(1240px, 100%); aspect-ratio: 16 / 9; max-height: 82vh; background: #000; position: relative; border: 3px solid var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 12px 12px 0 var(--pink); animation: popIn .35s cubic-bezier(.2,.9,.3,1.2); }
.modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal .m-bar { position: absolute; left: 24px; right: 24px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--paper); flex-wrap: wrap; }
.modal .m-title { font-size: 13px; letter-spacing: .06em; }
.modal .m-title a { color: var(--yellow); margin-left: 12px; font-weight: 600; filter: brightness(1.4); }
.modal .m-nav { display: flex; gap: 10px; }
.modal .m-nav button, .modal .close { background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 3px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; box-shadow: 3px 3px 0 var(--pink); }
.modal .close { position: absolute; top: 18px; right: 22px; font-size: 20px; width: 46px; height: 46px; padding: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }

/* ── Site micro-page lightbox ── */
.micro { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(21,21,21,.9); align-items: stretch; justify-content: center; padding: 24px; }
.micro.open { display: flex; animation: fadeIn .25s ease; }
.micro .sheet { position: relative; width: min(1320px, 100%); margin: auto; max-height: calc(100vh - 48px); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 14px 14px 0 var(--accent, var(--pink)); animation: slideUp .45s cubic-bezier(.2,.9,.3,1.1); display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr); }
.micro .info { padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.micro .info h2 { font-size: clamp(44px, 5vw, 76px); }
.micro .info .tag { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.micro .info .meta { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.micro .info p.desc { font-size: 17px; line-height: 1.6; }
.micro .info .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.micro .stage { position: relative; background: var(--accent, var(--pink)) radial-gradient(rgba(255,255,255,.26) 1.5px, transparent 1.6px) 0 0 / 20px 20px; border-left: 3px solid var(--ink); padding: 40px 34px 40px 44px; overflow: hidden; min-height: 520px; }
.browser { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; height: 100%; max-height: 560px; display: flex; flex-direction: column; }
.browser .bar { height: 38px; background: var(--paper); border-bottom: 3px solid var(--ink); display: flex; align-items: center; gap: 8px; padding: 0 14px; flex-shrink: 0; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); }
.browser .bar i:nth-child(2) { background: var(--yellow); } .browser .bar i:nth-child(3) { background: var(--lime); }
.browser .bar .url { margin-left: auto; margin-right: auto; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: 2px 12px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .scroller { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; background: #fff; scrollbar-width: thin; }
.browser .scroller img { width: 100%; height: auto; display: block; }
.browser .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 3px; pointer-events: none; opacity: .9; }
.browser .scroller:hover ~ .hint, .browser.scrolled .hint { opacity: 0; transition: opacity .3s; }
.phone { position: absolute; right: 22px; bottom: -6px; width: 150px; aspect-ratio: 9 / 19.5; background: #fff; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); --tilt: -4deg; animation: float 6s ease-in-out infinite; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.micro .close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 46px; height: 46px; border-radius: 3px; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 22px; font-weight: 700; }
.micro .step { display: none; } /* prev/next live in the info column's button row (built by portfolio.js) */
.micro .info .m-nav { margin-top: 4px; padding-top: 18px; border-top: 1px solid rgba(21,21,21,.18); gap: 10px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .micro { padding: 12px; }
  .micro .sheet { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
  .micro .info { padding: 32px 24px 8px; }
  .micro .stage { border-left: 0; border-top: 3px solid var(--ink); padding: 28px 22px 30px; min-height: 420px; }
  .browser { max-height: 400px; }
  .phone { width: 110px; right: 14px; }
}

/* ── Site cards ── */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px 26px; }
.scard { cursor: pointer; }
.scard .media { aspect-ratio: 16 / 10; }
.scard .media img { object-position: top; }
.scard .body { display: flex; flex-direction: column; gap: 8px; }
.scard .body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scard .domain { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.scard:hover .domain { color: var(--ink); }
.scard .open { position: absolute; right: 12px; top: 12px; z-index: 2; opacity: 0; transform: translateY(6px); transition: all .25s; }
.scard:hover .open { opacity: 1; transform: none; }
.sfeature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; }
.sfeature .media { aspect-ratio: auto; min-height: 340px; border-right: var(--bw) solid var(--ink); }
.sfeature .body { border-top: 0; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.sfeature .body h3 { font-size: clamp(34px, 3.4vw, 52px); }
.sfeature:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.sfeature:nth-child(even) .media { order: 2; border-right: 0; border-left: var(--bw) solid var(--ink); }
@media (max-width: 860px) { .sfeature, .sfeature:nth-child(even) { grid-template-columns: 1fr; } .sfeature .media, .sfeature:nth-child(even) .media { order: 0; border: 0; border-bottom: var(--bw) solid var(--ink); min-height: 240px; aspect-ratio: 16/10; } }

/* ── Art ── */
.masonry { columns: 3 300px; column-gap: 24px; }
.masonry .tile { margin: 0 0 24px; break-inside: avoid; cursor: zoom-in; }
.masonry .tile .media { aspect-ratio: auto; }
.masonry .tile .media img, .masonry .tile .media video { width: 100%; height: auto; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.agrid .tile { cursor: zoom-in; }
.agrid .tile .media { aspect-ratio: 1; }
.agrid .tile .cap { padding: 12px 14px; border-top: var(--bw) solid var(--ink); font-weight: 500; font-size: 14px; line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; }
.agrid .tile .cap small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.cards5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.cards5 .tile .media { aspect-ratio: 5 / 7; }
.cards5 .tile .cap { padding: 12px 14px; border-top: var(--bw) solid var(--ink); font: 700 18px/1 var(--display); letter-spacing: .02em; }
.cards5 .tile .cap small { display: block; color: var(--muted); font: 500 11px/1.4 var(--mono); margin-top: 6px; }
.gifwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gifwall a { display: block; aspect-ratio: 1; border: var(--bw) solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.gifwall a { transition: transform .2s, box-shadow .2s; }
.gifwall a:hover { box-shadow: 6px 6px 0 var(--pink); transform: scale(1.06); z-index: 2; position: relative; }
.gifwall video, .gifwall img { width: 100%; height: 100%; object-fit: cover; }
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 6px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.strip .tile { flex: 0 0 260px; scroll-snap-align: start; }
.strip .tile .media { aspect-ratio: 4 / 5; }

/* Art lightbox */
.lb { display: none; position: fixed; inset: 0; z-index: 1200; background: rgba(21,21,21,.95); align-items: center; justify-content: center; padding: 24px; }
.lb.open { display: flex; animation: fadeIn .2s; }
.lb .inner { position: relative; max-width: min(1100px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; align-items: center; gap: 14px; animation: popIn .3s cubic-bezier(.2,.9,.3,1.2); }
.lb .inner img, .lb .inner video { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border: 3px solid var(--paper); border-radius: var(--r); box-shadow: 12px 12px 0 var(--pink); background: #000; }
.lb .cap { color: var(--paper); font-size: 13px; letter-spacing: .04em; text-align: center; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.lb .cap a { color: var(--yellow); font-weight: 600; filter: brightness(1.4); }
.lb .cap small { color: rgba(255,255,255,.6); }
.lb .close, .lb .step { position: fixed; z-index: 2; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 3px; width: 48px; height: 48px; font-size: 22px; font-weight: 700; box-shadow: 3px 3px 0 var(--pink); }
.lb .close { top: 18px; right: 22px; }
.lb .step { top: 50%; transform: translateY(-50%); }
.lb .step.prev { left: 18px; } .lb .step.next { right: 18px; }

/* ── Marquees ── */
.marquee { overflow: hidden; border-top: var(--bw) solid var(--rule); border-bottom: var(--bw) solid var(--rule); background: var(--ink); padding: 14px 0; }
.marquee .track { display: flex; gap: 12px; width: max-content; transform: translate3d(0,0,0); backface-visibility: hidden; }
.marquee .item { width: 170px; height: 170px; flex: 0 0 auto; border: 2px solid var(--paper); border-radius: 3px; overflow: hidden; background: #222; }
.marquee .item img, .marquee .item video { width: 100%; height: 100%; object-fit: cover; }
.text-marquee { overflow: hidden; background: var(--pink); color: var(--paper); border-top: var(--bw) solid var(--rule); border-bottom: var(--bw) solid var(--rule); padding: 12px 0; }
.text-marquee .track { display: flex; gap: 36px; width: max-content; transform: translate3d(0,0,0); backface-visibility: hidden; font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.text-marquee .track span::after { content: "/"; margin-left: 36px; opacity: .55; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 7vw, 96px); background: var(--paper-2) radial-gradient(rgba(21,21,21,.14) 1.5px, transparent 1.6px) 0 0 / 28px 28px; border-bottom: var(--bw) solid var(--rule); }
.hero .blob { display: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.hero h1 { margin: 6px 0 22px; }
.hero .roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.hero .roles span { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; border: var(--bw) solid var(--ink); border-radius: 3px; padding: 8px 10px; background: var(--paper-2); }
.hero .roles span:nth-child(1) { background: var(--pink); color: #fff; }
.collage { position: relative; height: clamp(340px, 38vw, 500px); transition: transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.collage .piece { position: absolute; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: 8px 8px 0 var(--ink); animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); } 50% { transform: rotate(calc(var(--tilt, 0deg) + 1deg)) translateY(-10px); } }
.collage .piece img, .collage .piece video { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { --tilt: -4deg; width: 52%; aspect-ratio: 1; left: 0; top: 6%; z-index: 2; animation-delay: -1s; }
.collage .p2 { --tilt: 3deg; width: 44%; aspect-ratio: 4/5; right: 0; top: 0; box-shadow: 8px 8px 0 var(--pink); animation-delay: -3.5s; }
.collage .p3 { --tilt: 1.5deg; width: 40%; aspect-ratio: 1; left: 38%; bottom: 0; z-index: 3; animation-delay: -5.5s; }
.collage .p4 { --tilt: -7deg; width: 30%; aspect-ratio: 1; left: 2%; bottom: 4%; box-shadow: 8px 8px 0 var(--yellow); animation-delay: -2s; }
.collage .sticker { position: absolute; right: 6%; bottom: 30%; z-index: 4; width: 112px; height: 112px; border-radius: 50%; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font: 500 11px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 12px; box-shadow: 5px 5px 0 var(--pink); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .collage { height: clamp(300px, 80vw, 420px); margin-top: 10px; } }

/* ── Music ── */
.album { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 0; }
.album .media { aspect-ratio: 1; border-right: var(--bw) solid var(--ink); }
.album .body { padding: 32px; border-top: 0; display: flex; flex-direction: column; gap: 14px; }
.album .body h3 { font-size: clamp(30px, 3.4vw, 46px); }
.album iframe { width: 100%; height: 300px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: #fff; }
@media (max-width: 800px) { .album { grid-template-columns: 1fr; } .album .media { border-right: 0; border-bottom: var(--bw) solid var(--ink); max-height: 360px; } }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tcard { cursor: pointer; }
.tcard .media { aspect-ratio: 1; }
.tcard .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tcard .cap { padding: 14px 16px; border-top: var(--bw) solid var(--ink); }
.tcard .cap b { display: block; font: 700 20px/1.05 var(--display); letter-spacing: .01em; margin-bottom: 4px; }
.tcard .cap small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.tcard .playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; font-size: 22px; }
.tcard:hover .playbtn { background: var(--pink); color: #fff; transform: translate(-50%, -50%) scale(1.08); }

/* ── Resume ── */
.resume { max-width: 960px; position: relative; }
.resume .blob { display: none; }
.resume .head-block { padding: clamp(60px, 8vw, 100px) 0 40px; }
.resume .contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; letter-spacing: .04em; margin-top: 18px; }
.resume .contact a { border-bottom: 2px solid var(--pink); }
.resume .contact a:hover { background: var(--pink-t); }
.resume section { padding: 40px 0 10px; }
.resume h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 26px; }
.resume h2 small { display: block; font: 500 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.kit > div { background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); }
.kit h3 { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--pink); }
.kit p { font-size: 15px; line-height: 1.6; color: var(--ink); }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 8px 28px; padding: 26px 0; border-top: 1px solid rgba(21,21,21,.18); }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job .when { font-size: 12px; letter-spacing: .04em; color: var(--muted); line-height: 1.7; }
.job .when b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.job h3 { font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.job .role { font-weight: 600; color: var(--ink-2); margin: 4px 0 10px; }
.job ul { list-style: none; }
.job li { font-size: 16px; line-height: 1.6; color: var(--ink-2); padding-left: 22px; position: relative; margin-bottom: 6px; }
.job li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px; background: var(--pink); }
.job.current h3::after { content: "now"; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--pink); border-radius: 3px; padding: 5px 8px; margin-left: 12px; vertical-align: middle; }
.built { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.built article { background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 24px; box-shadow: 5px 5px 0 var(--ink); }
.built h3 { font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.built h3 a { display: block; font: 500 12px/1.4 var(--mono); text-transform: none; letter-spacing: .04em; color: var(--pink); margin-top: 6px; }
.built p { font-size: 15px; line-height: 1.6; margin-top: 10px; }
.built .stack { font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.awards { list-style: none; display: grid; gap: 12px; }
.awards li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 14px 18px; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); font-size: 16px; }
.awards li .yr { font-weight: 600; color: var(--pink); font-size: 13px; padding-top: 3px; }
.print-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; gap: 4px; } .job .when b { display: inline; margin-right: 8px; } }

/* ── Footer ── */
footer { border-top: var(--bw) solid var(--rule); background: var(--ink); color: var(--paper); padding: 64px 0 40px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
footer .big { font: 900 clamp(44px, 7vw, 96px)/.88 var(--display); text-transform: uppercase; }
footer .big a { color: var(--pink); filter: brightness(1.35); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
footer .links a { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; padding: 8px 12px; transition: background .2s, color .2s; }
footer .links a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
footer .copy { font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.55); grid-column: 1 / -1; margin-top: 10px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }

/* ── Print (resume) ── */
@media print {
  @page { margin: 14mm; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; font-size: 10.5pt; }
  .nav, footer, .print-bar, .no-print { display: none !important; }
  .resume section { padding: 12pt 0; page-break-inside: avoid; }
  .resume .head-block { padding: 0 0 12pt; }
  .kit > div, .built article, .awards li { box-shadow: none !important; background: #fff !important; border-color: #bbb !important; }
  .job li::before { background: #000; }
  .job.current h3::after { background: #000; }
  .grad-text, .mark { color: #000 !important; }
  a[href^="http"]::after { content: ""; }
}

/* Hero: poster headline spans the full width above the lede + collage */
.hero .hero-head { display: block; margin-bottom: clamp(20px, 3vw, 40px); }
.hero .hero-head h1 { margin: 10px 0 0; }

