/* Shared look for the mock inner pages (Work, project, Video, About, Contact). */
:root { --bg: #0e0e0f; --panel: #161618; --ink: #e8e6e1; --dim: #9a9893; --line: #2a2a2d; --accent: #7fc8c0; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
             font-family: Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
         padding: 22px 48px; background: rgba(14,14,15,.92); backdrop-filter: blur(8px); }
header .name { display: block; overflow: visible; }
nav { display: flex; gap: 30px; font-size: 11px; letter-spacing: .12em; }
nav a { text-decoration: none; opacity: .75; padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover { color: var(--accent); opacity: 1; }
nav a.on { opacity: 1; border-bottom-color: var(--ink); }

main { padding: 40px 48px 120px; max-width: 1500px; margin: 0 auto; }
.kicker { font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.lede { font-size: 22px; line-height: 1.5; max-width: 760px; margin: 18px 0 0; opacity: .92; font-weight: 300; }

/* Work grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 30px; font-size: 11px; letter-spacing: .12em; }
.filters button { background: none; border: 0; color: var(--ink); opacity: .55; font: inherit; letter-spacing: inherit;
                  cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent; }
.filters button:hover { opacity: 1; }
.filters button.on { opacity: 1; border-bottom-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 28px; }
.tile { text-decoration: none; display: block; }
.tile .frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); }
.tile .frame img, .tile .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                                       transition: opacity .5s, transform 1.2s ease; }
.tile .frame video { opacity: 0; }
.tile:hover .frame video.ready { opacity: 1; }
.tile:hover .frame img { transform: scale(1.03); }
.tile .t { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tile .m { margin-top: 5px; font-size: 12px; color: var(--dim); }
.tile .badge { position: absolute; left: 12px; bottom: 10px; font-size: 9px; letter-spacing: .14em; padding: 4px 7px;
               background: rgba(0,0,0,.55); border-radius: 2px; }
.tile.hide { display: none; }

/* Project page */
.hero { aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; background: #000; overflow: hidden; }
.hero video, .hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; margin: 44px 0 60px; }
.facts p { font-size: 17px; line-height: 1.65; margin: 0 0 1em; font-weight: 300; max-width: 70ch; }
.facts dl { margin: 0; font-size: 13px; line-height: 1.55; }
.facts dt { color: var(--dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 16px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; white-space: pre-line; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery > * { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--panel); }
.gallery > .wide { grid-column: 1 / -1; }
.film { margin-top: 60px; }
.film iframe, .film video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.pager { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 26px; border-top: 1px solid var(--line);
         font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pager a { text-decoration: none; opacity: .8; } .pager a:hover { color: var(--accent); opacity: 1; }
.pager small { display: block; color: var(--dim); font-size: 9px; margin-bottom: 6px; }

/* Video page */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-top: 40px; }
.vgrid button { all: unset; cursor: pointer; display: block; }
.vgrid .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.vgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .3s; opacity: .85; }
.vgrid button:hover img { transform: scale(1.03); opacity: 1; }
.vgrid .play { position: absolute; inset: 0; display: grid; place-items: center; }
.vgrid .play::before { content: ""; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
                       background: rgba(0,0,0,.35); }
.vgrid .play::after { content: ""; position: absolute; border-left: 13px solid #fff; border-top: 8px solid transparent;
                      border-bottom: 8px solid transparent; margin-left: 4px; }
.vgrid .t { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.vgrid .m { margin-top: 5px; font-size: 12px; color: var(--dim); }
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 40px; }
.lightbox.open { display: grid; }
.lightbox iframe { width: min(1200px, 100%); aspect-ratio: 16 / 9; border: 0; }
.lightbox .x { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* About */
.about { display: grid; grid-template-columns: 289px minmax(0, 640px); gap: 40px; align-items: start; }
.about img { width: 285px; margin-left: 4px; aspect-ratio: 4 / 5; object-fit: cover; }   /* same width and left edge as the letters of the name */
.about .bio p { font-size: 12.5px; line-height: 1.7; font-weight: 300; margin: 0 0 1em; }
.about .bio p:first-child { margin-top: -0.62em; }   /* line up the first line of text with the top of the photo */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--line); }
.cols h2 { font-size: 10px; letter-spacing: .16em; color: var(--dim); font-weight: 600; margin: 0 0 16px; text-transform: uppercase; }
.cols ul { list-style: none; padding: 0; margin: 0; font-size: 11.5px; line-height: 1.5; }
.cols li { margin-bottom: 12px; }
.cols li b { font-weight: 500; display: block; }
.cols li span { color: var(--dim); }
.more { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-decoration: none; border-bottom: 1px solid var(--dim); padding-bottom: 3px; }
.more:hover { color: var(--accent); border-color: var(--accent); }
.news { margin-top: 22px; padding: 24px 30px; background: var(--panel); display: grid; grid-template-columns: 200px 1fr; gap: 30px; }
.news ul { list-style: none; margin: 0; padding: 0; font-size: 11.5px; line-height: 1.5; }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; padding-top: 0; }
.news li span { color: var(--dim); font-size: 10.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin-top: 50px; }
.contact .aside p { font-size: 15px; line-height: 1.7; font-weight: 300; margin: 0 0 1.4em; color: var(--ink); }
.contact .aside h2 { font-size: 10px; letter-spacing: .16em; color: var(--dim); font-weight: 600; margin: 34px 0 10px; text-transform: uppercase; }
.contact .aside a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact .aside a:hover { color: var(--accent); }
form { display: grid; gap: 22px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 8px; font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
input, select, textarea { font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--ink);
                          background: transparent; border: 0; border-bottom: 1px solid #3a3a3e; padding: 8px 0; border-radius: 0; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--bg); }
textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { all: unset; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; font-size: 12px; letter-spacing: .04em; padding: 8px 14px; border: 1px solid #3a3a3e;
              border-radius: 20px; cursor: pointer; color: var(--ink); text-transform: none; }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.send { justify-self: start; font: inherit; font-size: 11px; letter-spacing: .16em; padding: 14px 30px; background: var(--ink);
        color: var(--bg); border: 0; cursor: pointer; }
.send:hover { background: var(--accent); }
.note { font-size: 11px; color: var(--dim); }

footer { padding: 40px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between;
         font-size: 11px; letter-spacing: .1em; color: var(--dim); }
footer a { text-decoration: none; } footer a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .grid, .vgrid { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  header { padding: 16px 16px; } header .name { width: 128px; height: 19px; }
  nav { gap: 12px; font-size: 9.5px; letter-spacing: .08em; }
  main { padding: 26px 18px 90px; }
  .lede { font-size: 18px; }
  .grid, .vgrid, .gallery { grid-template-columns: 1fr; gap: 34px; }
  .gallery { gap: 12px; }
  .facts, .about, .contact, .news { grid-template-columns: 1fr; gap: 34px; }
  .about { gap: 22px; } .about img { width: 170px; margin-left: 0; }
  .cols { grid-template-columns: 1fr; gap: 30px; margin-top: 60px; }
  .news { padding: 22px 18px; } .news li { grid-template-columns: 1fr; gap: 2px; }
  form .row { grid-template-columns: 1fr; }
  .hero { aspect-ratio: 4 / 5; max-height: none; }
  footer { padding: 30px 18px; flex-direction: column; gap: 10px; }
}

/* Recent & upcoming: type tag, "to confirm" marker, earlier items folded away */
.news li { grid-template-columns: 120px 1fr; }
.news li > div { position: relative; padding-left: 92px; }   /* wrapped lines stay aligned with the start of the text */
.news li em { position: absolute; left: 0; top: .2em; font-style: normal; font-size: 9px;
              letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.news li.up span { color: var(--accent); }
.news .q, .cols .q { color: #e0a85a; font-size: 10px; margin-left: 3px; cursor: help; }
.more-news { margin-top: 6px; border-top: 1px solid var(--line); }
.more-news summary { cursor: pointer; list-style: none; padding: 12px 0 4px; font-size: 10px; letter-spacing: .14em;
                     text-transform: uppercase; color: var(--dim); }
.more-news summary::-webkit-details-marker { display: none; }
.more-news summary::after { content: " +"; }
.more-news[open] summary::after { content: " –"; }
.more-news summary:hover { color: var(--accent); }
@media (max-width: 700px) { .news li { grid-template-columns: 1fr; } .news li > div { padding-left: 0; } .news li em { position: static; display: block; margin: 0 0 2px; } }

/* Fade-in on load and as things scroll into view (About page). */
/* Hidden from the very first paint (not only once the script runs), so the top of the page really fades in. */
.reveal, [data-page="about"] [data-reveal]:not([data-reveal="each"]), [data-page="about"] [data-reveal="each"] > *, [data-page="contact"] [data-reveal]:not([data-reveal="each"]), [data-page="contact"] [data-reveal="each"] > * { opacity: 0; transform: translateY(16px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.6,.2,1); }
.reveal.in, [data-page="about"] [data-reveal]:not([data-reveal="each"]).in, [data-page="about"] [data-reveal="each"] > .in, [data-page="contact"] [data-reveal]:not([data-reveal="each"]).in, [data-page="contact"] [data-reveal="each"] > .in { opacity: 1; transform: none; }
/* Reduced motion: keep a plain fade, no sliding. */
@media (prefers-reduced-motion: reduce) { .reveal, [data-page="about"] [data-reveal]:not([data-reveal="each"]), [data-page="about"] [data-reveal="each"] > *, [data-page="contact"] [data-reveal]:not([data-reveal="each"]), [data-page="contact"] [data-reveal="each"] > * { transform: none; transition: opacity 1s ease; } }

/* Project page: epigraph quote and photo credit carried over from the old site */
.epigraph { margin: 0 0 28px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.7;
            font-style: italic; font-weight: 300; color: var(--dim); max-width: 70ch; }
.epigraph cite { display: block; margin-top: 8px; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.facts p.credit { font-size: 11px; color: var(--dim); margin-top: 18px; }
/* Quote sits above the first clip, as on the old site */
.epigraph.top { margin: 6px 0 26px; font-size: 12px; max-width: none; }   /* full width, same as the clip below */
/* Title at the top of the project page, above the quote and the first clip */
h1.ptitle { margin: 4px 0 20px; }

/* About: statement on the left, photo on the right (photo stays on top on phones) */
@media (min-width: 701px) {
  .about { grid-template-columns: minmax(0, 640px) 285px; justify-content: space-between; column-gap: 56px; }
  .about img { order: 2; margin-left: 0; }
  .about .bio { order: 1; }
}
/* Smallest phones (e.g. 320px wide): tighten the header so HOME, WORK, ABOUT, CONTACT still fit beside the name. */
@media (max-width: 360px) {
  header { padding: 14px 12px; } header .name { width: 112px; height: 17px; }
  nav { gap: 8px; font-size: 8.5px; letter-spacing: .04em; }
}

/* Work tab row: categories, a thin divider, then the studio pages a little quieter. */
.bar { align-items: center; }
.bar .grp { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.bar .sep { width: 1px; height: 12px; background: var(--ink); opacity: .25; }
.bar .studio a { opacity: .4; }
.bar .studio a:hover, .bar .studio a.on { opacity: 1; }
@media (max-width: 700px) {
  .bar { flex-direction: column; gap: 12px; }
  .bar .grp { gap: 8px 18px; }
  .bar .sep { width: 28px; height: 1px; }
}

/* About: one row of three, all the same height on any screen.
   Recent & upcoming (scrolls inside) | statement (type sized to fit, see about.html) | photo (fills the height). */
.trio { --h: clamp(460px, calc(100vh - 150px), 760px);
        display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.45fr) min(calc(var(--h) * .8), 30vw);
        gap: 44px; height: var(--h); align-items: stretch; }
.trio > * { min-height: 0; }
.trio .photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.trio .bio { overflow: hidden; display: flex; flex-direction: column; }
.trio .bio p:first-child { margin-top: -.42em; }   /* first line level with the top of the photo */
.trio .bio p { font-size: 1em; line-height: 1.68; font-weight: 300; margin: 0 0 .95em; }
.trio .bio .more { align-self: flex-start; margin-top: auto; }   /* CV link sits on the bottom edge */
.trio .news { margin: 0; padding: 0; background: none; display: flex; flex-direction: column; gap: 0; }   /* no panel: same black as the page */
.trio .news .kicker { margin: 0 0 14px; }
.trio .news .scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
                      -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.trio .news .scroll > :last-child { margin-bottom: 28px; }
.trio .news li { display: block; padding: 11px 0; }
.trio .news li > div { padding-left: 0; }
.trio .news li span { display: inline-block; margin-right: 10px; }
.trio .news li em { position: static; display: block; margin: 3px 0 2px; }
.trio .news li span, .trio .news li em { line-height: 1.4; }
.trio .news li > div { margin-top: 2px; }
/* Narrower screens: the photo stays on the right, beside the statement (it never jumps to the top); news goes underneath. */
@media (max-width: 1000px) {
  .trio { height: auto; grid-template-columns: minmax(0, 1fr) clamp(110px, 34%, 280px); gap: 34px 28px; }
  .trio .bio { grid-column: 1; grid-row: 1; overflow: visible; font-size: 13px; }
  .trio .photo { grid-column: 2; grid-row: 1; height: auto; aspect-ratio: 4 / 5; align-self: start; }
  .trio .news { grid-column: 1 / -1; grid-row: 2; }
  .trio .news .scroll > :last-child { margin-bottom: 0; }
  .trio .news .scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 700px) { .trio { gap: 30px 16px; } .trio .bio { font-size: 12.5px; } }

/* Photos moved over from the old site: a loose three-column wall, each photo at its own shape. */
.photos { columns: 3; column-gap: 14px; margin-top: 18px; }
.photos a { display: block; break-inside: avoid; margin: 0 0 14px; background: var(--panel); cursor: zoom-in; }
.photos img { display: block; width: 100%; height: auto; transition: opacity .3s; }
.photos a:hover img { opacity: .85; }
@media (max-width: 1000px) { .photos { columns: 2; } }
@media (max-width: 600px) { .photos { columns: 1; } }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.viewer.open { display: flex; }
.viewer img { max-width: 92vw; max-height: 88vh; object-fit: contain; cursor: pointer; }
.viewer button { position: absolute; background: none; border: 0; color: #fff; opacity: .6; cursor: pointer; font: 300 34px/1 inherit; padding: 14px; }
.viewer button:hover { opacity: 1; }
.viewer .x { top: 10px; right: 14px; }
.viewer .prev { left: 6px; top: 50%; transform: translateY(-50%); font-size: 46px; }
.viewer .next { right: 6px; top: 50%; transform: translateY(-50%); font-size: 46px; }
.viewer .count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.55); }

/* About: artist-run spaces, under the four columns */
.spaces { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.spaces h2 { font-size: 10px; letter-spacing: .16em; color: var(--dim); font-weight: 600; margin: 0; text-transform: uppercase; }
.spaces p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; font-weight: 300; max-width: 78ch; }
.spaces b { font-weight: 500; }
@media (max-width: 700px) { .spaces { grid-template-columns: 1fr; gap: 14px; } }

/* Project page: theme links next to Type */
.facts dd .tag { display: inline-block; margin: 0 10px 4px 0; text-decoration: none; opacity: .8; border-bottom: 1px solid var(--line); }
.facts dd .tag:hover { opacity: 1; }

/* DIVE tab: set apart, a little brighter */
.bar .dive-grp a { opacity: .75; letter-spacing: .3em; }
.bar .dive-grp a:hover { opacity: 1; }
/* DIVE mode: everything else fades, the word settles in the middle, themes appear under it. */
body > header, .bar, .banners, body > footer { transition: opacity 1.1s ease; }
body.diving > header, body.diving .bar, body.diving .banners, body.diving > footer { opacity: 0; pointer-events: none; }
body.diving { overflow: hidden; }
.dive { position: fixed; inset: 0; z-index: 40; overflow-y: auto; visibility: hidden; }
.dive.open { visibility: visible; }
.dive-in { max-width: 1100px; margin: 0 auto; padding: 22vh 24px 120px; text-align: center; }
.dive-word { display: inline-block; font-size: 30px; font-weight: 400; letter-spacing: .6em; margin-right: -.6em;
             transition: transform 1.5s cubic-bezier(.6,0,.2,1), letter-spacing 1.5s cubic-bezier(.6,0,.2,1),
                         margin-right 1.5s cubic-bezier(.6,0,.2,1), opacity 1.5s ease; transform-origin: 0 50%; }
.dive-hint, .dive-tags, .dive-n, .dive-res, .surface { opacity: 0; transition: opacity 1s ease; }
.dive.settled .dive-hint, .dive.settled .dive-tags, .dive.settled .dive-n, .dive.settled .dive-res, .dive.settled .surface { opacity: 1; transition-delay: 1.3s; }
.dive.settled .dive-hint.gone { opacity: 0; transition-delay: 0s; }
.dive-hint { margin: 18px 0 0; font-size: 12px; color: var(--dim); font-weight: 300; letter-spacing: .04em; }
.surface { position: fixed; top: 22px; right: 26px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 10px;
           letter-spacing: .2em; cursor: pointer; opacity: .6; }
.dive.settled .surface:hover { opacity: 1; }
.dive-tags { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 26px 54px; margin: 46px auto 0; text-align: left; }
.dive-tags em { display: block; font-style: normal; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
                padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dive-tags button { display: block; background: none; border: 0; padding: 5px 0; color: var(--ink); opacity: .5; font: inherit; font-size: 14px;
                    font-weight: 300; letter-spacing: .04em; cursor: pointer; text-align: left; transition: opacity .3s, color .3s; }
.dive-tags button:hover { opacity: .9; }
.dive-tags button.on { opacity: 1; color: var(--accent); }
.dive-tags button.none { opacity: .16; }
.dive-n { margin-top: 54px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); min-height: 1em; }
.dive-res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; margin-top: 22px; text-align: left; }
.dive-res a { text-decoration: none; color: var(--ink); animation: diveUp .7s ease both; }
.dive-res .im { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); }
.dive-res img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.85); transition: filter .4s, transform 1.2s; }
.dive-res a:hover img { filter: brightness(1); transform: scale(1.03); }
.dive-res .t { display: block; margin-top: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dive-res .y { display: block; margin-top: 3px; font-size: 11px; color: var(--dim); }
@keyframes diveUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .dive-tags { grid-template-columns: repeat(3, auto); } .dive-res { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .dive-in { padding-top: 14vh; } .dive-word { font-size: 22px; }
  .dive-tags { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; } .dive-tags button { font-size: 13px; }
  .dive-res { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}
@media (prefers-reduced-motion: reduce) { .dive-word, .dive-res a { transition: none; animation: none; } }

/* DIVE: the sea. Very dark blue at the top to black at the bottom, with sun shafts and drifting specks. */
.sea { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.4s ease;
       background: linear-gradient(to bottom, #0a2240 0%, #061629 30%, #030a14 65%, #000 100%); }
body.diving .sea { opacity: 1; }
.sea canvas { position: absolute; inset: 0; }
.sea .sun { position: absolute; left: 0; right: 0; top: -30vh; height: 70vh; opacity: 0;
            background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(120,190,255,.16), rgba(120,190,255,0) 70%); }
.sea .sun.go { animation: sunPulse 4.5s ease-in-out; }
.sea .ray { position: absolute; top: -20vh; height: 95vh; opacity: 0; transform-origin: 50% 0; filter: blur(14px); mix-blend-mode: screen;
            background: linear-gradient(to bottom, rgba(150,210,255,.55), rgba(150,210,255,.12) 45%, rgba(150,210,255,0) 85%); }
.sea .ray.go { animation: rayFlash 3.5s ease-in-out both; }
@keyframes rayFlash { 0% { opacity: 0; } 35% { opacity: .22; } 50% { opacity: .12; } 62% { opacity: .2; } 100% { opacity: 0; } }
@keyframes sunPulse { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sea .ray, .sea .sun { display: none; } }

/* SURFACE fades out first when clicked */
.dive .surface.leaving { opacity: 0 !important; transition: opacity .6s ease 0s !important; pointer-events: none; }


/* Project text fitted to the facts table (fitText) */
.facts .fit p { font-size: 1em; margin-bottom: .8em; max-width: none; line-height: 1.6; }
.facts .fit p.credit { font-size: .72em; margin-top: 1em; }
.facts .fit p:last-child { margin-bottom: 0; }
.facts { align-items: start; }   /* the table keeps its own height (fitText measures it) */

/* crop: full width, but shorter (16:9 height x crop), the clip filling it edge to edge */
.hero.cropped, .gallery.cropped > * { aspect-ratio: 16 / var(--crop); max-height: none; }
@media (max-width: 700px) { .hero.cropped, .gallery.cropped > * { aspect-ratio: 16 / 9; } }
.gallery.cropped > * { object-position: 50% var(--gy, 50%); }   /* galY: which part of the frame the crop keeps (0 = top) */

.dive.leaving .dive-in { opacity: 0; transition: opacity .8s ease; }   /* DIVE fades as you go to a work */

/* About row at 80%: narrower, shorter, smaller type (computers only; phones keep the stacked layout) */
@media (min-width: 1001px) {
  .trio { --h: clamp(368px, calc((100vh - 150px) * .8), 608px); width: 80%; margin: 0 auto; gap: 35px;
          grid-template-columns: minmax(184px, 1fr) minmax(0, 1.45fr) min(calc(var(--h) * .8), 24vw); }
  .trio .news .kicker { font-size: 8.8px; margin-bottom: 11px; }
  .trio .news ul { font-size: 9.2px; }
  .trio .news li { padding: 9px 0; }
  .trio .news li span { font-size: 8.4px; }
  .trio .news li em { font-size: 7.2px; }
  .trio .news .more-news summary { font-size: 8.8px; }
  .trio .bio .more { font-size: 8.8px; }
}

/* DIVE tag table: centred, text at about half size */
.dive-tags { text-align: center; gap: 18px 40px; margin-top: 38px; }
.dive-tags em { font-size: 7px; letter-spacing: .24em; padding-bottom: 7px; margin-bottom: 6px; }
.dive-tags button { display: block; width: 100%; text-align: center; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; padding: 4px 0; }
.dive-hint { font-size: 9px; letter-spacing: .1em; }
.dive-n { font-size: 8px; margin-top: 44px; }
@media (max-width: 600px) { .dive-tags { gap: 16px 24px; } .dive-tags button { font-size: 8.5px; } }

/* DIVE's own scrollbar: thin, over the sea */
.dive { scrollbar-width: thin; scrollbar-color: rgba(190,225,255,.18) transparent; }
