* { box-sizing: border-box; }
:root {
  --ink: #06101b;
  --deep: #071a2a;
  --royal: #0174F3;
  --electric: #56d9ff;
  --aqua: #8ff3e8;
  --paper: #f6f3e8;
  --gold: #ffe6ad;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: #06101b; color: #f6f3e8; font-family: Inter, Arial, sans-serif; line-height: 1.5; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: linear-gradient(120deg, #050913 0%, #073a62 48%, #08111c 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 74% 16%, rgba(86, 217, 255, .2), transparent 32%), radial-gradient(circle at 12% 72%, rgba(1, 116, 243, .22), transparent 38%); pointer-events: none; }
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 3.5rem); background: rgba(3, 7, 14, .72); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(246, 243, 232, .12); }
.brand, .nav a, .kicker, .btn, .thumb-title, .meta, footer { font-family: Inter, Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.brand { text-decoration: none; font-size: .78rem; color: #ffe6ad; }
.links { display: flex; gap: .95rem; flex-wrap: wrap; justify-content: flex-end; }
.links a { font-size: .68rem; text-decoration: none; color: rgba(246, 243, 232, .74); }
.links a:hover { color: #8ff3e8; }
.hero { min-height: 88vh; display: grid; align-items: center; padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.studio-entry::before { content: ""; position: absolute; inset: 12% 6%; border: 1px solid rgba(143, 243, 232, .14); background: linear-gradient(180deg, rgba(246, 243, 232, .045), rgba(246, 243, 232, .015)); pointer-events: none; }
.studio-entry::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: 8%; height: 36%; background: repeating-radial-gradient(ellipse at 50% 100%, rgba(143, 243, 232, .13) 0 1px, transparent 2px 28px); opacity: .42; transform: rotate(-2deg); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.kicker { margin: 0 0 .8rem; color: #8ff3e8; font-size: .72rem; }
.hero h1, .section h2, .viewer-copy h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; color: #ffe6ad; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 6.6rem); line-height: .98; }
.hero p { max-width: 620px; margin: 1rem 0 0; color: rgba(246, 243, 232, .78); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero .welcome { color: rgba(246, 243, 232, .9); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.actions, .controls { display: flex; gap: .75rem; flex-wrap: wrap; }
.actions { margin-top: 1.55rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .82rem 1rem; border: 1px solid rgba(246, 243, 232, .18); background: rgba(246, 243, 232, .06); color: #fff; text-decoration: none; font-size: .68rem; cursor: pointer; }
.btn.primary { background: #0174F3; border-color: #56d9ff; box-shadow: 0 0 34px rgba(1, 116, 243, .18); }
.btn:hover { transform: translateY(-1px); border-color: #8ff3e8; }
.viewer-media img, .modal img { width: 100%; height: 100%; object-fit: contain; background: #02050c; }
.section { padding: 4.5rem clamp(1rem, 5vw, 4.5rem); border-top: 1px solid rgba(246, 243, 232, .1); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section h2 { margin: .25rem 0 0; font-size: clamp(2rem, 4vw, 4.25rem); line-height: 1; }
.section-head p, .about-panel p { max-width: 650px; margin: .7rem 0 0; color: rgba(246, 243, 232, .72); }
.portfolio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 1rem; align-items: stretch; }
.viewer { min-height: 680px; border: 1px solid rgba(143, 243, 232, .3); background: #040812; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.viewer-media { min-height: 0; display: grid; place-items: center; background: #02050c; }
.viewer-copy { padding: 1rem 1.1rem; border-top: 1px solid rgba(246, 243, 232, .1); background: rgba(3, 7, 14, .9); }
.viewer-copy h3 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.6rem); }
.viewer-copy p { margin: .35rem 0 0; color: rgba(246, 243, 232, .72); }
.side { display: flex; flex-direction: column; gap: .8rem; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.rail { display: grid; grid-template-columns: 1fr; gap: .65rem; max-height: 680px; overflow: auto; padding-right: .25rem; }
.thumb { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: .75rem; align-items: center; width: 100%; min-height: 88px; padding: .5rem; border: 1px solid rgba(246, 243, 232, .14); background: rgba(246, 243, 232, .045); color: #fff; text-align: left; cursor: pointer; }
.thumb[aria-current="true"] { border-color: #8ff3e8; background: rgba(143, 243, 232, .12); }
.thumb img { width: 82px; height: 72px; object-fit: cover; background: #02050c; }
.thumb-title { display: block; font-size: .62rem; color: #ffe6ad; line-height: 1.35; }
.thumb small { display: block; margin-top: .22rem; color: rgba(246, 243, 232, .58); font-size: .78rem; line-height: 1.35; }
.about-panel { max-width: 860px; }
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .88); }
.modal.open { display: grid; }
.modal-inner { width: min(1200px, 96vw); height: min(850px, 90vh); display: grid; grid-template-rows: 1fr auto; background: #02050c; border: 1px solid rgba(143, 243, 232, .4); }
.modal-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 1rem; background: #07101b; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; border: 1px solid rgba(246, 243, 232, .12); padding: 1.2rem; background: rgba(246, 243, 232, .05); }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem clamp(1rem, 5vw, 4.5rem); border-top: 1px solid rgba(246, 243, 232, .1); color: rgba(246, 243, 232, .56); font-size: .63rem; }
@media (max-width: 940px) { .portfolio, .contact { grid-template-columns: 1fr; } .hero { min-height: 82vh; } .viewer { min-height: 560px; } .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; padding-right: 0; } }
@media (max-width: 560px) { .nav { align-items: flex-start; } .links { justify-content: flex-start; } .hero { padding-top: 4rem; min-height: 76vh; } .section-head { display: block; } .viewer { min-height: 500px; } .rail, .controls { grid-template-columns: 1fr; } .contact { align-items: start; } .thumb { grid-template-columns: 74px minmax(0, 1fr); } .thumb img { width: 74px; height: 66px; } }

.doorway-section { min-height: 54vh; display: grid; align-items: center; }
.doorway-panel { max-width: 820px; }
.doorway-panel p { max-width: 680px; margin: .7rem 0 0; color: rgba(246, 243, 232, .74); }
.gallery-entry { min-height: 62vh; }

/* Connected Inkspirations world map */
.world-section { padding-top: 4.75rem; }
.world-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.15rem); }
.world-card { position: relative; display: grid; align-content: end; min-height: 220px; grid-column: span 4; padding: 1.1rem; border: 1px solid rgba(246, 243, 232, .12); background: linear-gradient(145deg, rgba(1, 116, 243, .14), rgba(86, 217, 255, .045)), rgba(2, 5, 12, .7); color: #f6f3e8; text-decoration: none; overflow: hidden; box-shadow: 0 22px 80px rgba(0, 0, 0, .24); }
.world-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 18%, rgba(86, 217, 255, .2), transparent 34%), linear-gradient(180deg, transparent, rgba(2, 5, 12, .48)); pointer-events: none; }
.world-card > * { position: relative; z-index: 1; }
.world-card.featured-world { grid-column: span 6; min-height: 260px; border-color: rgba(86, 217, 255, .28); }
.world-card:hover, .world-card:focus-visible { transform: translateY(-3px); border-color: rgba(143, 243, 232, .5); outline: none; }
.world-card strong { margin-top: .35rem; color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.2vw, 2.12rem); line-height: 1.02; font-weight: 500; }
.world-card span:last-child { margin-top: .55rem; color: rgba(246, 243, 232, .74); line-height: 1.45; }
.feature-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; border: 1px solid rgba(246, 243, 232, .12); background: linear-gradient(135deg, rgba(1, 116, 243, .11), rgba(86, 217, 255, .035)), rgba(246, 243, 232, .035); padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 20px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(246, 243, 232, .035); }
.feature-panel-wide { grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr); }
.feature-panel h2 { font-size: clamp(1.9rem, 3.6vw, 3.5rem); }
.feature-panel p { max-width: 780px; margin: .7rem 0 0; color: rgba(246, 243, 232, .74); }
.poem-card, .asset-slot { border: 1px solid rgba(86, 217, 255, .2); background: rgba(2, 5, 12, .48); box-shadow: inset 0 1px 0 rgba(246, 243, 232, .04); }
.poem-card { padding: clamp(1rem, 2vw, 1.35rem); }
.poem-card h3 { margin: .35rem 0 .55rem; color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.5rem); font-weight: 500; line-height: 1; }
.poem-lines { color: rgba(143, 243, 232, .86) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.slot-label, .asset-slot span, .asset-slot small { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.slot-label, .asset-slot span { color: rgba(143, 243, 232, .78); }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.asset-slot { display: grid; align-content: end; min-height: 170px; padding: .9rem; background: radial-gradient(circle at 24% 18%, rgba(86, 217, 255, .14), transparent 36%), linear-gradient(145deg, rgba(1, 116, 243, .12), rgba(2, 5, 12, .56)); }
.asset-slot strong { display: block; margin-top: .35rem; color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.05; font-weight: 500; }
.asset-slot small { margin-top: .45rem; color: rgba(246, 243, 232, .5); }
@media (max-width: 980px) { .world-card, .world-card.featured-world { grid-column: span 6; } .feature-panel, .feature-panel-wide { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .slot-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .world-grid { grid-template-columns: 1fr; } .world-card, .world-card.featured-world { grid-column: auto; min-height: 190px; } }

/* Portfolio polish: keep the gallery focused on one selected work. */
.gallery-entry { min-height: 68vh; background: linear-gradient(145deg, rgba(4, 12, 22, .96), rgba(6, 34, 52, .86)); }
.gallery-entry .hero-copy { max-width: 680px; }
.gallery-mood { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.gallery-mood span { display: inline-flex; align-items: center; min-height: 34px; padding: .5rem .72rem; border: 1px solid rgba(143, 243, 232, .18); background: rgba(246, 243, 232, .055); color: rgba(246, 243, 232, .72); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.viewer { box-shadow: 0 28px 80px rgba(0, 0, 0, .36); }
.viewer-copy { padding: 1.15rem 1.25rem 1.25rem; }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.viewer-heading .kicker { margin: 0; }
.work-count { flex: 0 0 auto; min-width: 72px; padding: .38rem .55rem; border: 1px solid rgba(143, 243, 232, .24); background: rgba(143, 243, 232, .08); color: #ffe6ad; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.controls { gap: .85rem; padding: .85rem; border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .035); }
.controls .btn { min-height: 48px; }
.thumb-drawer { border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .035); padding: .8rem; }
.thumb-drawer summary { cursor: pointer; color: #ffe6ad; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.thumb-drawer[open] .rail { margin-top: .85rem; }
.thumb-drawer:not([open]) { opacity: .78; }
.rail { max-height: 440px; }
.thumb { border-color: rgba(246, 243, 232, .11); background: rgba(246, 243, 232, .035); }
.thumb:hover { border-color: rgba(143, 243, 232, .42); }
@media (max-width: 940px) { .thumb-drawer .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-entry { min-height: 66vh; } .gallery-mood span { width: 100%; justify-content: center; } .viewer-copy { padding: .95rem; } .viewer-heading { align-items: flex-start; flex-direction: column; gap: .35rem; } .work-count { min-width: 0; } .controls { grid-template-columns: 1fr; gap: .6rem; padding: .7rem; } .thumb-drawer { padding: .7rem; } .thumb-drawer .rail { grid-template-columns: 1fr; } }
/* Interactive portfolio gallery */
.gallery-section { padding-top: 4rem; }
.gallery-head { align-items: flex-start; }
.gallery-tools { display: grid; gap: 1rem; margin: 1.2rem 0 1.4rem; padding: 1rem; border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .035); }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-chip { min-height: 38px; padding: .55rem .78rem; border: 1px solid rgba(246, 243, 232, .15); background: rgba(246, 243, 232, .055); color: rgba(246, 243, 232, .76); cursor: pointer; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.filter-chip[aria-pressed="true"] { color: #06101b; background: #8ff3e8; border-color: #8ff3e8; }
.gallery-fields { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto minmax(150px, 220px) auto; gap: .65rem; align-items: center; }
.field-label { color: rgba(246, 243, 232, .62); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.gallery-input, .gallery-select { width: 100%; min-height: 44px; border: 1px solid rgba(246, 243, 232, .16); background: rgba(3, 7, 14, .72); color: #f6f3e8; padding: .7rem .8rem; font: inherit; }
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-card { display: inline-block; width: 100%; margin: 0 0 1rem; padding: 0; border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .045); color: #f6f3e8; text-align: left; cursor: pointer; break-inside: avoid; overflow: hidden; vertical-align: top; }
.gallery-card:hover, .gallery-card:focus-within, .gallery-card:focus-visible { border-color: rgba(143, 243, 232, .55); transform: translateY(-2px); outline: none; }
.gallery-open { display: block; width: 100%; min-height: inherit; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.gallery-image-wrap { display: block; background: #02050c; }
.gallery-image-wrap img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.gallery-card-copy { display: grid; gap: .2rem; padding: .82rem .88rem .95rem; }
.gallery-card-kicker, .gallery-card-medium { color: rgba(143, 243, 232, .74); font-size: .62rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.gallery-card-title { color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; line-height: 1.1; }
.gallery-card-medium { color: rgba(246, 243, 232, .58); }
.modal-details { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: .55rem; margin: .85rem 0 0; }
.modal-details div { border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .04); padding: .58rem .65rem; }
.modal-details dt { margin: 0 0 .2rem; color: rgba(143, 243, 232, .74); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.modal-details dd { margin: 0; color: rgba(246, 243, 232, .78); font-size: .82rem; line-height: 1.25; }
.gallery-card-actions { position: absolute; top: .72rem; left: .72rem; right: .72rem; z-index: 4; display: flex; flex-wrap: wrap; gap: .42rem; align-items: center; }
.mini-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .48rem .58rem; border: 1px solid rgba(246, 243, 232, .24); background: rgba(3, 7, 14, .78); color: #f6f3e8; text-decoration: none; cursor: pointer; font-size: .56rem; line-height: 1; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; backdrop-filter: blur(14px); }
.mini-action.primary { background: rgba(1, 116, 243, .9); border-color: rgba(143, 243, 232, .64); color: #fff; }
.mini-action:hover, .mini-action:focus-visible { border-color: #8ff3e8; outline: none; transform: translateY(-1px); }
.empty-gallery { padding: 1.2rem; border: 1px solid rgba(246, 243, 232, .12); color: rgba(246, 243, 232, .72); background: rgba(246, 243, 232, .04); }
.tour-panel { margin: 1rem 0 1.3rem; }
.tour-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr); min-height: 420px; border: 1px solid rgba(143, 243, 232, .24); background: rgba(3, 7, 14, .72); overflow: hidden; }
.tour-media { display: grid; place-items: center; background: #02050c; }
.tour-media img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.tour-copy { align-self: center; padding: 1.25rem; }
.tour-copy h3, .modal-bar h3 { margin: .15rem 0 .35rem; color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.05; }
.tour-copy p, .modal-bar p { margin: 0; color: rgba(246, 243, 232, .72); }
.tour-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
body.modal-open { overflow: hidden; }
.gallery-lightbox { position: relative; width: min(1260px, 96vw); height: min(900px, 92vh); grid-template-rows: minmax(0, 1fr) auto; }
.gallery-lightbox img { min-height: 0; object-fit: contain; }
.modal-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; min-height: 40px; padding: .65rem .8rem; border: 1px solid rgba(246, 243, 232, .18); background: rgba(3, 7, 14, .84); color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 800; }
.modal-nav { position: absolute; top: 45%; z-index: 2; min-height: 44px; padding: .7rem .8rem; border: 1px solid rgba(246, 243, 232, .16); background: rgba(3, 7, 14, .78); color: #fff; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 800; }
.modal-prev { left: .8rem; }
.modal-next { right: .8rem; }
.gallery-lightbox .modal-bar { align-items: flex-end; }
@media (max-width: 980px) { .gallery-grid { column-count: 2; } .gallery-fields { grid-template-columns: 1fr; } .field-label { margin-top: .2rem; } .tour-card { grid-template-columns: 1fr; } .tour-media { min-height: 420px; } }
@media (max-width: 560px) { .gallery-section { padding-left: .85rem; padding-right: .85rem; } .gallery-tools { padding: .8rem; } .filter-chip { flex: 1 1 auto; } .gallery-grid { column-count: 1; } .gallery-image-wrap img { max-height: none; } .tour-media { min-height: 320px; } .tour-actions .btn { width: 100%; } .gallery-lightbox { width: 100vw; height: 100vh; border-left: 0; border-right: 0; } .modal-nav { top: 42%; bottom: auto; } .modal-prev { left: .55rem; } .modal-next { right: .55rem; } .modal-bar { display: block; padding: .9rem; } .modal-bar h3 { font-size: 1.45rem; } .modal-bar .btn { width: 100%; margin-top: .75rem; } .modal-details { grid-template-columns: 1fr; } }

.resume-interactive { display: grid; gap: 1.2rem; max-width: 880px; }
.resume-copy { margin: 0 0 1rem; color: rgba(246, 243, 232, .72); }
.resume-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.resume-tab { min-height: 48px; padding: .85rem .95rem; border: 1px solid rgba(246, 243, 232, .18); background: rgba(246, 243, 232, .05); color: #f6f3e8; font: inherit; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.resume-tab:hover, .resume-tab:focus-visible { border-color: #8ff3e8; outline: none; transform: translateY(-1px); }
.resume-tab.active { color: #06101b; background: #8ff3e8; border-color: #8ff3e8; }
.resume-panel { padding: 1.4rem 1.25rem; border: 1px solid rgba(246, 243, 232, .12); background: rgba(3, 7, 14, .84); }
.resume-panel h3 { margin: 0 0 .85rem; font-size: clamp(1.75rem, 2.6vw, 2.55rem); color: #ffe6ad; }
.resume-panel p { margin: .75rem 0 0; color: rgba(246, 243, 232, .72); }
.resume-panel a { color: #8ff3e8; text-decoration: none; }
.resume-panel a:hover { text-decoration: underline; }

@media (max-width: 920px) { .resume-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .resume-tabs { grid-template-columns: 1fr; } }
/* Static studio atmosphere: ocean depth and soft overhead light. */
body { position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% -12%, rgba(255, 230, 173, .12), transparent 30%), radial-gradient(ellipse at 82% 18%, rgba(86, 217, 255, .14), transparent 34%), linear-gradient(120deg, #050913 0%, #073a62 48%, #08111c 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .72; background: linear-gradient(180deg, rgba(246, 243, 232, .05), transparent 30%, rgba(2, 5, 12, .24)), radial-gradient(circle at 18% 72%, rgba(1, 116, 243, .16), transparent 36%); }
.nav, main, footer { position: relative; }
main, footer { z-index: 1; }
.modal { z-index: 80; }
.gallery-card, .tour-card, .viewer, .contact, .gallery-tools { box-shadow: 0 20px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(246, 243, 232, .035); }
.gallery-image-wrap, .tour-media, .modal-inner { box-shadow: inset 0 24px 90px rgba(143, 243, 232, .035); }
.audio-toggle[aria-pressed="true"] { border-color: #8ff3e8; color: #8ff3e8; background: rgba(143, 243, 232, .08); }

/* Focused portfolio entry with optional collection browsing. */
.featured-panel { margin-top: 1.25rem; margin-bottom: 1.35rem; }
.collection-drawer { margin-top: 1rem; border: 1px solid rgba(246, 243, 232, .12); background: rgba(246, 243, 232, .028); padding: .9rem; }
.collection-drawer summary { cursor: pointer; color: #ffe6ad; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.collection-drawer .gallery-tools { margin-top: .9rem; }
.collection-drawer:not([open]) { max-width: 680px; }
@media (max-width: 560px) { .collection-drawer { padding: .75rem; } }
/* Photographer gallery presentation */
.photographer-gallery { padding-top: 5rem; }
.photographer-gallery .gallery-head { align-items: flex-end; margin-bottom: 1.6rem; }
.photographer-gallery .gallery-head h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); }
.photographer-tools { position: sticky; top: 58px; z-index: 12; margin-bottom: 1.4rem; background: rgba(4, 10, 18, .84); backdrop-filter: blur(18px); }
.photographer-tools .filter-row { gap: .5rem; }
.photographer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.15rem); column-count: initial; }
.photographer-card { position: relative; display: block; grid-column: span 4; margin: 0; min-height: 260px; border: 1px solid rgba(246, 243, 232, .1); background: #02050c; overflow: hidden; box-shadow: 0 22px 80px rgba(0, 0, 0, .26); }
.photographer-card:nth-child(1), .photographer-card:nth-child(8), .photographer-card:nth-child(13) { grid-column: span 6; }
.photographer-card:nth-child(5), .photographer-card:nth-child(11) { grid-row: span 2; }
.photographer-card .gallery-open { height: 100%; }
.photographer-card .gallery-image-wrap { height: 100%; min-height: 280px; background: #02050c; }
.photographer-card .gallery-image-wrap img { width: 100%; height: 100%; min-height: 280px; max-height: none; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.photographer-card .gallery-card-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.8rem 1rem .95rem; background: linear-gradient(180deg, transparent, rgba(2, 5, 12, .9)); transform: translateY(8px); transition: transform .25s ease, opacity .25s ease; }
.photographer-card:hover .gallery-image-wrap img, .photographer-card:focus-visible .gallery-image-wrap img { transform: scale(1.035); filter: saturate(1.04) contrast(1.04); }
.photographer-card:hover .gallery-card-copy, .photographer-card:focus-visible .gallery-card-copy { transform: translateY(0); }
.photographer-card .gallery-card-title { font-size: clamp(1.08rem, 1.8vw, 1.55rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.photographer-card .gallery-card-kicker, .photographer-card .gallery-card-medium { color: rgba(246, 243, 232, .72); }
.photographer-gallery .empty-gallery { margin-top: 1rem; }
.gallery-lightbox { width: min(1380px, 96vw); height: min(920px, 92vh); border-color: rgba(246, 243, 232, .18); }
.gallery-lightbox img { background: #02050c; }
.gallery-lightbox .modal-bar { background: rgba(3, 7, 14, .94); border-top: 1px solid rgba(246, 243, 232, .1); }
.modal-nav, .modal-close { backdrop-filter: blur(14px); }
@media (max-width: 1080px) { .photographer-card, .photographer-card:nth-child(1), .photographer-card:nth-child(8), .photographer-card:nth-child(13) { grid-column: span 6; } }
@media (max-width: 720px) { .photographer-tools { position: static; } .photographer-grid { grid-template-columns: 1fr; } .photographer-card, .photographer-card:nth-child(1), .photographer-card:nth-child(8), .photographer-card:nth-child(13), .photographer-card:nth-child(5), .photographer-card:nth-child(11) { grid-column: auto; grid-row: auto; min-height: 280px; } .photographer-card .gallery-image-wrap, .photographer-card .gallery-image-wrap img { min-height: 280px; } .gallery-card-actions { position: static; padding: .7rem .75rem 0; background: #02050c; } .mini-action { flex: 1 1 auto; } }
/* Ink particle atmosphere */
.ink-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .72; mix-blend-mode: screen; }
.ink-particles span { position: absolute; display: block; width: var(--s, 9px); height: var(--s, 9px); left: var(--x, 50%); top: var(--y, 50%); border-radius: 999px; background: radial-gradient(circle, rgba(143, 243, 232, .32), rgba(1, 116, 243, .14) 48%, transparent 72%); filter: blur(var(--b, 1px)); transform: translate3d(0, 0, 0); animation: ink-drift var(--d, 18s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.ink-particles span:nth-child(1) { --x: 8%; --y: 18%; --s: 18px; --b: 4px; --d: 22s; --delay: -3s; }
.ink-particles span:nth-child(2) { --x: 24%; --y: 72%; --s: 11px; --b: 3px; --d: 18s; --delay: -8s; }
.ink-particles span:nth-child(3) { --x: 41%; --y: 28%; --s: 7px; --b: 2px; --d: 19s; --delay: -5s; }
.ink-particles span:nth-child(4) { --x: 58%; --y: 76%; --s: 16px; --b: 5px; --d: 26s; --delay: -12s; }
.ink-particles span:nth-child(5) { --x: 73%; --y: 22%; --s: 12px; --b: 4px; --d: 21s; --delay: -1s; }
.ink-particles span:nth-child(6) { --x: 88%; --y: 62%; --s: 20px; --b: 6px; --d: 28s; --delay: -15s; }
.ink-particles span:nth-child(7) { --x: 15%; --y: 48%; --s: 6px; --b: 2px; --d: 17s; --delay: -10s; }
.ink-particles span:nth-child(8) { --x: 35%; --y: 88%; --s: 14px; --b: 4px; --d: 24s; --delay: -6s; }
.ink-particles span:nth-child(9) { --x: 51%; --y: 12%; --s: 9px; --b: 2px; --d: 20s; --delay: -14s; }
.ink-particles span:nth-child(10) { --x: 67%; --y: 50%; --s: 6px; --b: 2px; --d: 16s; --delay: -4s; }
.ink-particles span:nth-child(11) { --x: 79%; --y: 84%; --s: 10px; --b: 3px; --d: 23s; --delay: -11s; }
.ink-particles span:nth-child(12) { --x: 92%; --y: 34%; --s: 8px; --b: 2px; --d: 19s; --delay: -7s; }
@keyframes ink-drift { 0% { transform: translate3d(-12px, 8px, 0) scale(.86); opacity: .22; } 45% { opacity: .52; } 100% { transform: translate3d(18px, -24px, 0) scale(1.35); opacity: .34; } }
@media (prefers-reduced-motion: reduce) { .ink-particles span { animation: none; opacity: .25; } }
/* Interactive portfolio rooms */
.interactive-section { padding-top: 4.75rem; }
.room-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.15rem); }
.room-card { position: relative; display: grid; align-content: end; min-height: 210px; grid-column: span 4; padding: 1.05rem; border: 1px solid rgba(246, 243, 232, .12); background: linear-gradient(150deg, rgba(246, 243, 232, .07), rgba(1, 116, 243, .065)), rgba(2, 5, 12, .72); color: #f6f3e8; text-decoration: none; overflow: hidden; box-shadow: 0 22px 80px rgba(0, 0, 0, .22); }
.room-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 16%, rgba(143, 243, 232, .18), transparent 34%), linear-gradient(180deg, transparent, rgba(2, 5, 12, .42)); opacity: .78; pointer-events: none; }
.room-card > * { position: relative; z-index: 1; }
.room-card.featured-room { grid-column: span 6; min-height: 250px; border-color: rgba(143, 243, 232, .28); }
.room-card:hover, .room-card:focus-visible { transform: translateY(-3px); border-color: rgba(143, 243, 232, .5); outline: none; }
.room-kicker { color: rgba(143, 243, 232, .78); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.room-card strong { margin-top: .35rem; color: #ffe6ad; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.02; font-weight: 500; }
.room-card span:last-child { margin-top: .55rem; color: rgba(246, 243, 232, .72); line-height: 1.45; }
@media (max-width: 980px) { .room-card, .room-card.featured-room { grid-column: span 6; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } .room-card, .room-card.featured-room { grid-column: auto; min-height: 190px; } }

/* Restored suspended ink atmosphere and rainstorm audio control */
.ink-particles {
  z-index: 2;
  opacity: .95;
  mix-blend-mode: screen;
}
.ink-particles::before,
.ink-particles::after {
  content: "";
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 243, 232, .13), rgba(1, 116, 243, .08) 34%, transparent 68%);
  filter: blur(28px);
  animation: ink-haze 30s ease-in-out infinite alternate;
}
.ink-particles::before { left: -12vmax; top: 8vh; }
.ink-particles::after { right: -16vmax; bottom: 2vh; animation-duration: 38s; animation-delay: -12s; }
.ink-particles span {
  box-shadow: 0 0 26px rgba(143, 243, 232, .18);
}
@keyframes ink-haze {
  0% { transform: translate3d(-2vw, 1vh, 0) scale(.9); opacity: .35; }
  100% { transform: translate3d(3vw, -3vh, 0) scale(1.12); opacity: .62; }
}
.audio-toggle {
  border-color: rgba(143, 243, 232, .32);
  background: rgba(1, 116, 243, .12);
}
.audio-toggle[aria-pressed="true"] {
  border-color: #8ff3e8;
  color: #8ff3e8;
  background: rgba(143, 243, 232, .12);
}
@media (prefers-reduced-motion: reduce) {
  .ink-particles::before,
  .ink-particles::after { animation: none; }
}


/* Lockdown pass: real coaster images inside the existing functional art cards. */
.asset-slot.image-asset { position: relative; min-height: 240px; overflow: hidden; padding: 0; background: #02050c; }
.asset-slot.image-asset img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; filter: saturate(1.04) contrast(1.02); }
.asset-slot.image-asset span,
.asset-slot.image-asset strong,
.asset-slot.image-asset small { position: absolute; left: .9rem; right: .9rem; z-index: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .72); }
.asset-slot.image-asset span { bottom: 4.8rem; }
.asset-slot.image-asset strong { bottom: 2rem; }
.asset-slot.image-asset small { bottom: .8rem; color: rgba(246, 243, 232, .78); }
.asset-slot.image-asset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(2, 5, 12, .86)); pointer-events: none; }

/* Gallery alignment pass: compact, consistent previews with the artwork enlarged
   only after a visitor opens the lightbox. */
.photographer-gallery { padding-inline: clamp(1rem, 4vw, 3.5rem); }
.photographer-gallery > .gallery-head,
.photographer-gallery > .photographer-tools,
.photographer-gallery > .photographer-grid,
.photographer-gallery > .empty-gallery,
.photographer-gallery > .actions {
  width: min(980px, 100%);
  margin-inline: auto;
}
.photographer-gallery .gallery-head { align-items: flex-end; margin-bottom: 1.25rem; }
.photographer-tools { padding: .8rem; margin-block: 0 1rem; }
.photographer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.photographer-card,
.photographer-card:nth-child(1),
.photographer-card:nth-child(5),
.photographer-card:nth-child(8),
.photographer-card:nth-child(11),
.photographer-card:nth-child(13) {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
}
.photographer-card .gallery-open,
.photographer-card .gallery-image-wrap { height: 100%; min-height: 0; }
.photographer-card .gallery-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.photographer-card .gallery-card-copy { padding: 2.35rem .75rem .7rem; transform: none; }
.photographer-card .gallery-card-title { font-size: 1rem; }
.photographer-card .gallery-card-kicker,
.photographer-card .gallery-card-medium { font-size: .55rem; }
.photographer-card .gallery-card-actions { top: .5rem; left: .5rem; right: .5rem; gap: .3rem; }
.photographer-card .mini-action { min-height: 30px; padding: .4rem .48rem; font-size: .5rem; }
@media (max-width: 1040px) {
  .photographer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .photographer-gallery .gallery-head { align-items: flex-start; }
  .photographer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photographer-card,
  .photographer-card:nth-child(1),
  .photographer-card:nth-child(5),
  .photographer-card:nth-child(8),
  .photographer-card:nth-child(11),
  .photographer-card:nth-child(13) { aspect-ratio: 1 / 1; min-height: 0; }
  .photographer-card .gallery-card-actions { position: absolute; padding: 0; background: transparent; }
}
@media (max-width: 480px) {
  .photographer-grid { grid-template-columns: 1fr; }
  .photographer-card,
  .photographer-card:nth-child(1),
  .photographer-card:nth-child(5),
  .photographer-card:nth-child(8),
  .photographer-card:nth-child(11),
  .photographer-card:nth-child(13) { aspect-ratio: 4 / 3; }
}
