/* ============================================================
   JACK BROCK — PORTFOLIO v2
   Fluid, image-first layout. Helvetica Now Display.
   ============================================================ */

@font-face { font-family: "Helvetica Now Display"; font-weight: 300; src: url("../fonts/HelveticaNowDisplay-Light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; font-weight: 400; src: url("../fonts/HelveticaNowDisplay-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; font-weight: 500; src: url("../fonts/HelveticaNowDisplay-Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; font-weight: 700; src: url("../fonts/HelveticaNowDisplay-Bold.otf") format("opentype"); font-display: swap; }

:root {
  --font: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --red: #ed0000;
  --bg: #050505;
  --fg: #ffffff;
  --fg-2: #a3a3a3;      /* secondary text */
  --fg-3: #5c5c5c;      /* labels, meta */
  --rule: rgba(255,255,255,.12);
  --gutter: clamp(20px, 5vw, 96px);
  --gap: clamp(12px, 1.6vw, 28px);
  --section: clamp(96px, 14vw, 220px);
  --block: clamp(48px, 7vw, 112px);
  --maxw: 1720px;
}
.theme-light { --bg: #e9e7e2; --fg: #0f0f0f; --fg-2: #4a4a4a; --fg-3: #7a7a7a; --rule: rgba(0,0,0,.12); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; animation: pagein .5s ease both; }
@keyframes pagein { from { opacity: 0 } to { opacity: 1 } }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red); color: #fff; }

/* ---------- type ---------- */
.label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.display { font-weight: 700; font-size: clamp(44px, 7.2vw, 128px); line-height: .94; letter-spacing: -.035em; }
.h1 { font-weight: 700; font-size: clamp(36px, 5vw, 84px); line-height: 1; letter-spacing: -.03em; }
.h2 { font-weight: 700; font-size: clamp(26px, 3vw, 48px); line-height: 1.05; letter-spacing: -.025em; }
.lede { font-size: clamp(20px, 2.1vw, 32px); line-height: 1.3; letter-spacing: -.015em; font-weight: 400; }
.copy { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: var(--fg); max-width: 68ch; }
.copy p + p { margin-top: 1.2em; }
.muted { color: var(--fg-2); }

/* ---------- layout ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.bleed { width: 100%; }
.section { padding-top: var(--section); }
.block + .block { margin-top: var(--block); }
.rule { height: 1px; background: var(--rule); }

/* grid of media */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.grid > * { grid-column: span 12; }
.full { grid-column: span 12; }
.half { grid-column: span 6; }
.third { grid-column: span 4; }
.two-thirds { grid-column: span 8; }
.quarter { grid-column: span 3; }
.fifth { grid-column: span 2; }   /* use in rows of 5 with .grid-10 */
.grid-10 { grid-template-columns: repeat(10, 1fr); }
.grid-10 > * { grid-column: span 2; }
@media (max-width: 900px) {
  .quarter, .third { grid-column: span 6; }
  .two-thirds { grid-column: span 12; }
  .grid-10 > * { grid-column: span 5; }
}
@media (max-width: 560px) {
  .half, .third, .quarter { grid-column: span 12; }
  .grid-10 > * { grid-column: span 10; }
  .keep-half { grid-column: span 6 !important; }
}

/* media items */
.media { position: relative; overflow: hidden; }
.media img, .media video { width: 100%; height: auto; opacity: 0; transition: opacity .6s ease; }
.media img.ready, .media video.ready { opacity: 1; }
.media.ratio { aspect-ratio: var(--r, 4/3); }
.media.ratio img, .media.ratio video { height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; }
.media .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 12px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ededed; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.media:hover .cap { opacity: 1; }
.media.sound { cursor: pointer; }
.media.sound .cap { opacity: 1; }
.media.sound .snd { color: #9e9e9e; }
.media.sound.on .snd { color: var(--red); }
figcaption { margin-top: 10px; font-size: 13px; color: var(--fg-2); }

/* ---------- site nav (all pages) — cover-style: JACK BROCK · HOME — ABOUT — PROJECTS ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 22px var(--gutter); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.nav a { pointer-events: auto; opacity: .8; transition: opacity .2s; } .nav a:hover, .nav a.on { opacity: 1; }
.nav nav { display: flex; gap: 10px; align-items: center; } .nav nav i { font-style: normal; opacity: .5; }
.nav .brand { letter-spacing: .12em; opacity: 1; }
body.has-nav .phero { margin-top: 0; }

/* ---------- home: motion cover ---------- */
.cover { position: relative; height: 100svh; min-height: 520px; background: #050505; overflow: hidden; }
.cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .24em; color: #cfcfcf; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .3 } 50% { opacity: 1 } }

/* ---------- home: project chapters ---------- */
.chapter { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: 76px var(--gutter) clamp(24px, 4vh, 44px); overflow: hidden; color: var(--fg); }
.chapter.theme-light { color: #0f0f0f; }
.chapter .bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--red); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.chapter .bar .k { font-weight: 400; letter-spacing: .08em; opacity: .7; text-align: right; }
.chapter .stage { flex: 1; position: relative; margin: clamp(20px, 3vh, 40px) 0; min-height: 52svh; display: block; }
.chapter .stage > img, .chapter .stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(.9); opacity: 0; transition: transform 1.6s cubic-bezier(.16,.8,.2,1), opacity 1s ease; }
.chapter .stage.fill > img, .chapter .stage.fill > video { object-fit: cover; }
.chapter.in .stage > img, .chapter.in .stage > video { transform: scale(1); opacity: 1; }
.chapter.in .stage > img.drift { animation: drift 18s ease-in-out 1.6s infinite alternate; }
@keyframes drift { from { transform: scale(1) translateY(0); } to { transform: scale(1.045) translateY(-1.2%); } }
.chapter .stage .snd { position: absolute; right: 0; bottom: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; color: #9e9e9e; }
.chapter .stage.on .snd { color: var(--red); }
.chapter .foot { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto; gap: clamp(16px, 3vw, 48px); align-items: end; opacity: 0; transform: translateY(18px); transition: opacity .9s ease .35s, transform .9s cubic-bezier(.16,.8,.2,1) .35s; }
.chapter.in .foot { opacity: 1; transform: none; }
.chapter .foot .logo { max-height: clamp(36px, 5vw, 72px); max-width: 100%; width: auto; object-fit: contain; object-position: left bottom; }
.chapter .foot .logo.inv { filter: invert(1); }
.chapter .foot p { font-size: clamp(15px, 1.2vw, 19px); line-height: 1.4; max-width: 48ch; }
.chapter .foot .go { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.chapter .foot .go span { display: inline-block; transition: transform .25s; }
.chapter:hover .foot .go span { transform: translateX(6px); }
.chapter .foot .go:hover { color: var(--red); }
@media (max-width: 760px) { .chapter .foot { grid-template-columns: 1fr; } .chapter .bar .k { display: none; } .chapter { min-height: 0; padding-top: 72px; padding-bottom: 56px; } .chapter .stage { flex: none; min-height: 0; aspect-ratio: 4/5; } }
@media (max-aspect-ratio: 1/1) { .cover video { object-fit: contain; } }

/* chapter index (fixed, right edge) */
.chidx { position: fixed; right: var(--gutter); top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; mix-blend-mode: difference; color: #fff; opacity: 0; transition: opacity .4s; pointer-events: none; }
.chidx.show { opacity: 1; pointer-events: auto; }
.chidx a { display: block; width: 18px; height: 2px; background: currentColor; opacity: .35; transition: width .3s, opacity .3s; }
.chidx a.on { width: 34px; opacity: 1; }
@media (max-width: 760px) { .chidx { display: none; } }

/* ---------- home: about (his About-slide structure, fluid) ---------- */
.about2 { padding-top: var(--section); padding-bottom: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap) clamp(24px, 4vw, 72px); }
.about2 .side { grid-column: span 3; }
.about2 .side img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid #404040; }
.about2 .main { grid-column: 5 / span 8; }
.about2 h3 { font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: .01em; text-transform: uppercase; margin: clamp(36px, 4vw, 56px) 0 14px; }
.about2 .main h3:first-child, .about2 .side h3 { margin-top: 0; }
.about2 .side h3 { margin-top: 28px; }
.about2 p, .about2 li { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; color: #e6e6e6; }
.about2 p + p { margin-top: 1em; }
.about2 ul { list-style: none; }
.about2 a { border-bottom: 1px solid rgba(255,255,255,.3); } .about2 a:hover { border-color: var(--red); color: #fff; }
@media (max-width: 860px) { .about2 .side { grid-column: span 12; max-width: 360px; } .about2 .main { grid-column: span 12; } }

/* ---------- footer (all pages): cover-style bottom line ---------- */
.foot-line { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px var(--gutter); border-top: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.foot-line a:hover { color: var(--fg); }

/* ---------- projects index ---------- */
.pindex { padding-top: clamp(100px, 12vw, 160px); padding-bottom: var(--section); }
.pindex .bar { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: clamp(28px, 4vw, 56px); border-bottom: 2px solid var(--red); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pindex .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.pindex .grid3 a { display: block; }
.pindex .grid3 .media { aspect-ratio: 4/3; }
.pindex .grid3 .media img, .pindex .grid3 .media video { height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.pindex .grid3 a:hover .media img, .pindex .grid3 a:hover .media video { transform: scale(1.03); }
.pindex .grid3 .t { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pindex .grid3 .t span { color: var(--fg-3); }
@media (max-width: 900px) { .pindex .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pindex .grid3 { grid-template-columns: 1fr; } }

/* ---------- project page ---------- */
.phero { position: relative; height: clamp(420px, 82svh, 1000px); overflow: hidden; background: #0a0a0a; }
.phero img, .phero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero.contain img { object-fit: contain; padding: clamp(24px, 6vw, 96px); }
.phead { padding-top: clamp(48px, 7vw, 112px); }
.phead .logo { height: clamp(40px, 5vw, 76px); width: auto; max-width: 70vw; object-fit: contain; object-position: left; margin-bottom: clamp(24px, 3vw, 40px); }
.phead .lede { max-width: 30ch; }
.pmeta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(32px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--rule); }
.pmeta > div { grid-column: span 3; font-size: 14px; line-height: 1.6; color: var(--fg); }
.pmeta .label { display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .pmeta > div { grid-column: span 6; } }
.pbody { margin-top: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.pbody .copy { grid-column: 5 / span 8; }
@media (max-width: 900px) { .pbody .copy { grid-column: span 12; } }

.psec { padding-top: var(--section); }
.psec .head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: clamp(28px, 4vw, 56px); align-items: end; }
.psec .head .label { grid-column: span 12; margin-bottom: 14px; }
.psec .head .h2 { grid-column: span 5; }
.psec .head .copy { grid-column: 7 / span 6; max-width: none; font-size: clamp(15px, 1.05vw, 17px); color: var(--fg-2); }
@media (max-width: 900px) { .psec .head .h2, .psec .head .copy { grid-column: span 12; } .psec .head .copy { margin-top: 16px; } }
.psec .grid + .grid { margin-top: var(--gap); }
.psec .sub { margin-top: var(--block); }
.psec .sub .label { display: block; margin-bottom: 14px; }

.credits { padding-top: var(--section); }
.credits .grid > div { grid-column: span 3; font-size: 14px; line-height: 1.7; }
.credits .label { display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .credits .grid > div { grid-column: span 6; } }

.pnext { margin-top: var(--section); padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule); }
.pnext .label { display: block; margin-bottom: 16px; }
.pnext a.big { display: block; font-weight: 700; font-size: clamp(36px, 7vw, 128px); letter-spacing: -.035em; line-height: .95; }
.pnext a.big:hover { color: var(--red); }
.pnext .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 72px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }

/* page textures (themes) */
.bg-paper  { background: #e9e7e2 url("../img/common/paper-lab-tile.jpg") center top / 100% auto repeat-y; }
.bg-parch  { background: #e6e3de url("../img/common/paper-guestroom-tile.jpg") center top / 100% auto repeat-y; }
.bg-cream  { background: #efeae2 url("../img/common/paper-nonna-tile.jpg") center top / 100% auto repeat-y; }
.bg-plate  { background: #050505 url("../img/sysfm/bg.jpg") center top / 100% auto repeat-y; }
.bg-dark   { background: #050505 url("../img/common/dark-bg.jpg") center top / 100% auto repeat-y; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .proj:hover .media img { transform: none; } }

/* ---------- home: project cards ---------- */
.cards-wrap { padding-top: clamp(64px, 8vw, 120px); padding-bottom: var(--section); }
.cards-head { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: clamp(24px, 3vw, 44px); border-bottom: 2px solid var(--red); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(16px, 1.6vw, 26px); color: #fff; overflow: hidden; opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.16,.8,.2,1); }
.card.in { opacity: 1; transform: none; }
.card.theme-light { color: #0f0f0f; }
.card .bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.card .bar .k { font-weight: 400; letter-spacing: .06em; opacity: .7; text-align: right; }
.card .frame { position: relative; display: block; aspect-ratio: 4/3; margin: clamp(14px, 1.4vw, 22px) 0; overflow: hidden; }
.card .frame img, .card .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s cubic-bezier(.16,.8,.2,1), opacity .6s; }
.card .frame.fill img, .card .frame.fill video { object-fit: cover; }
.card:hover .frame img, .card:hover .frame video { transform: scale(1.04); }
.card .frame .snd { position: absolute; right: 10px; bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #bdbdbd; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.card .frame.on .snd { color: var(--red); }
.cards > * { min-width: 0; }
.card .foot { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 20px; align-items: end; margin-top: auto; }
.card .foot .logo { max-height: clamp(28px, 2.8vw, 44px); max-width: min(220px, 100%); width: auto; object-fit: contain; object-position: left bottom; }
.card .foot .logo.inv { filter: invert(1); }
.card .foot .go { justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.card .foot .go span { display: inline-block; transition: transform .25s; }
.card:hover .foot .go span { transform: translateX(5px); }
.card .foot p { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; opacity: .85; max-width: 52ch; }
.card .cover-link { position: absolute; inset: 0; z-index: 1; }
.card .frame.sound { z-index: 2; cursor: pointer; }
.card .foot a { position: relative; z-index: 2; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card .bar .k { display: none; } }
@media (prefers-reduced-motion: reduce) { .card { opacity: 1; transform: none; } }

/* =========== Figma structure update (Oct 2026) =========== */
/* cover */
/* The cover box always takes the film's own shape, so the logo animation is never cropped:
   16:9 film on wide screens, 9:16 film on tall screens, capped at the screen height. */
.cover2 { position: relative; width: 100%; height: min(100svh, 56.25vw); background: #050505; overflow: hidden; color: #fff; }
.cover2 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } /* box is never narrower than the film, so any trim is top/bottom only — the logo band is never cut */
@media (max-aspect-ratio: 3/4) { .cover2 { height: min(100svh, 177.78vw); } }
.cover2 .corner { position: absolute; top: clamp(16px, 2.5vw, 48px); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cover2 .corner.tl { left: var(--gutter); } .cover2 .corner.tr { right: var(--gutter); }
.cover2 .cnav { position: absolute; left: 0; right: 0; top: 65%; display: flex; justify-content: center; gap: .45em; font-weight: 500; font-size: clamp(15px, 1.35vw, 26px); letter-spacing: .04em; text-transform: uppercase; }
.cover2 .cnav a { opacity: .92; border-bottom: 1px solid transparent; transition: border-color .2s, opacity .2s; } .cover2 .cnav a:hover { opacity: 1; border-color: #fff; }
.cover2 .cfoot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8%; }
.cover2 .cfoot .t { font-weight: 500; font-size: clamp(15px, 1.25vw, 24px); letter-spacing: .06em; text-transform: uppercase; }
.cover2 .cfoot .s { margin-top: 8px; font-size: clamp(11px, .78vw, 15px); color: #d6d6d6; }
/* portrait screens get the 9:16 cover; a soft shade keeps the white type readable on its light frames */
.cover2::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 52%, rgba(0,0,0,.55) 100%); opacity: 0; }
.cover2 > * { z-index: 1; } .cover2 video { z-index: 0; }
.cover2::after { opacity: 1; }
@media (max-width: 560px) { .cover2 .cnav { flex-wrap: nowrap; padding: 0 12px; top: 62%; font-size: clamp(10px, 3.1vw, 13px); gap: .35em; letter-spacing: .05em; } .cover2 .corner { font-size: 10px; } .cover2 .cfoot .t { font-size: 12px; } .cover2 .cfoot .s { font-size: 10px; } }
/* site nav is hidden while the cover is on screen */
body.home .nav { opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }
body.home.past-cover .nav { opacity: 1; transform: none; }
body.home.past-cover .nav a { pointer-events: auto; }
body.home:not(.past-cover) .nav a { pointer-events: none; }
.nav nav i { font-style: normal; opacity: .5; }
@media (max-width: 560px) { .nav nav { gap: 6px; font-size: 10px; letter-spacing: .12em; } .nav .brand { display: none; } }

/* project carousel — 1920 × 779 */
.carousel { position: relative; height: max(420px, 40.57vw); overflow: hidden; background: #0a0a0a; color: #fff; }
.carousel .cs { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.carousel .cs.on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.carousel .cs > img, .carousel .cs > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel .collage { position: absolute; inset: 0; overflow: hidden; }
.carousel .collage img { position: absolute; object-fit: contain; max-width: none; }
.carousel .cs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,0) 48%); pointer-events: none; }
.carousel .ct { position: absolute; z-index: 2; left: max(20px, 2.35vw); top: 43%; transform: translateY(-50%); }
.carousel .ct h2 { font-weight: 500; font-size: clamp(26px, 2.5vw, 52px); line-height: 1.25; letter-spacing: -.005em; }
.carousel .ct a { display: inline-block; margin-top: .25em; font-size: clamp(15px, 1.25vw, 26px); font-weight: 500; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
.carousel .ct a:hover { color: var(--red); }
.carousel .cbars { position: absolute; z-index: 3; left: max(20px, 2.35vw); bottom: clamp(18px, 2.4vw, 40px); display: flex; gap: 8px; }
.carousel .cbars button { width: clamp(28px, 3vw, 56px); height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.carousel .cbars i { display: block; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.carousel .cbars button.on i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: cbar 6.5s linear forwards; }
.carousel.paused .cbars button.on i::after { animation-play-state: paused; }
@keyframes cbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* gallery — 4 × 2 posters (310 × 406) */
.ptitle { text-align: center; font-weight: 700; font-size: clamp(40px, 4.4vw, 84px); letter-spacing: -.025em; line-height: 1; margin-bottom: clamp(28px, 3vw, 52px); }
.gallery { padding-top: var(--section); padding-bottom: var(--section); }
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, .7vw, 14px); max-width: 1280px; margin: 0 auto; }
.ggrid figure { aspect-ratio: 310/406; overflow: hidden; background: #111; }
.ggrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,.8,.2,1); }
.ggrid figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .ggrid { grid-template-columns: repeat(2, 1fr); } }

/* projects page — 3 × 3 cards */
.pindex2 { padding-top: clamp(96px, 9vw, 150px); padding-bottom: var(--section); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.2vw, 22px); max-width: 1680px; margin: 0 auto; }
.pcard { position: relative; display: block; aspect-ratio: 373/256; overflow: hidden; background: #111; }
.pcard .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,.8,.2,1), filter .5s; }
.pcard:hover .bgimg { transform: scale(1.05); }
.pcard .ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8%; text-align: center; color: #fff; background: radial-gradient(ellipse at center, rgba(0,0,0,.28), rgba(0,0,0,0) 70%); }
.pcard .logo { width: 70%; max-height: 34%; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.pcard .logo.inv { filter: invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.pcard p { font-size: clamp(11px, .8vw, 14px); line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pcard.soon { cursor: default; }
.pcard.soon .ov { opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.55); }
.pcard.soon:hover .ov, .pcard.soon:focus-within .ov { opacity: 1; }
.pcard.soon .name { font-weight: 700; font-size: clamp(18px, 1.6vw, 28px); letter-spacing: .02em; text-transform: uppercase; }
.pcard.soon .bgimg { object-fit: contain; }
/* 3 × 3 at every width above phone; one column on phones */
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
/* solid bar so the fixed nav never sits on top of body text */
.nav { mix-blend-mode: normal; background: rgba(8,8,8,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); padding-top: 16px; padding-bottom: 16px; }

/* About on phones/tablets: small headshot on the left, skills beside it, then the copy — lighter, less of a text wall */
@media (max-width: 860px) {
  .about2 { padding-top: clamp(56px, 12vw, 96px); padding-bottom: clamp(56px, 12vw, 96px); row-gap: 36px; }
  .about2 .side { max-width: none; display: grid; grid-template-columns: minmax(110px, 36%) 1fr; column-gap: 18px; align-items: start; }
  .about2 .side img { grid-column: 1; grid-row: 1 / span 2; }
  .about2 .side h3 { grid-column: 2; margin-top: 0; }
  .about2 .side ul { grid-column: 2; }
  .about2 h3 { font-size: 18px; margin: 30px 0 10px; }
  .about2 p, .about2 li { font-size: 14px; line-height: 1.55; }
  .about2 .side li { font-size: 13px; line-height: 1.7; }
}

/* About — short friendly overview + email call to action */
.about3 { padding-top: var(--section); padding-bottom: var(--section); display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 640px); gap: clamp(24px, 5vw, 80px); align-items: center; justify-content: center; }
.about3 .pic { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid #404040; }
.about3 h3 { font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 16px; }
.about3 p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #e6e6e6; }
.about3 p + p { margin-top: 1em; }
.about3 .cta { margin-top: 1.8em; color: #fff; }
.about3 .cta a { display: inline-block; margin-top: 6px; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.005em; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.about3 .cta a:hover { color: var(--red); }
@media (max-width: 700px) {
  .about3 { grid-template-columns: 34% 1fr; gap: 18px; align-items: start; padding-top: 64px; padding-bottom: 64px; }
  .about3 .txt { display: contents; }
  .about3 h3 { grid-column: 2; align-self: end; margin: 0; font-size: 20px; }
  .about3 .pic { grid-row: 1 / span 2; }
  .about3 p { grid-column: 1 / -1; font-size: 15px; }
  .about3 p:first-of-type { grid-column: 2; grid-row: 2; font-size: 14px; }
  .about3 p + p { margin-top: 0; }
}

/* footer social icons */
.foot-line { align-items: center; }
.foot-line .social { display: flex; gap: clamp(14px, 2vw, 28px); }
.foot-line .social a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); transition: color .2s; }
.foot-line .social a:hover { color: var(--fg); }
.foot-line .social svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .foot-line { flex-direction: column; align-items: flex-start; gap: 14px; } .foot-line .social span { display: none; } .foot-line .social svg { width: 22px; height: 22px; } }

/* cover type: tighter tracking */
.cover2 .corner { letter-spacing: .06em; }
.cover2 .cnav { letter-spacing: .01em; gap: .4em; }
.cover2 .cfoot .t { letter-spacing: .015em; }
/* menus: red on hover (cover menu + fixed site menu) */
.cover2 .cnav a, .nav nav a { transition: color .2s, opacity .2s, border-color .2s; }
.cover2 .cnav a:hover, .cover2 .cnav a:focus-visible { color: var(--red); border-color: var(--red); opacity: 1; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--red); opacity: 1; }
/* cover type: tighter still */
.cover2 .corner { letter-spacing: 0; }
.cover2 .cnav { letter-spacing: -.015em; gap: .35em; }

/* cover type in John Doe (Ethan Dunham) — the JJJJ typewriter face */
@font-face { font-family: "John Doe"; src: url("../fonts/JohnDoe-Regular.otf") format("opentype"); font-weight: 400 700; font-display: swap; }
.cover2 .corner, .cover2 .cnav { font-family: "John Doe", "Courier New", monospace; font-weight: 400; text-transform: uppercase; }
.cover2 .corner { letter-spacing: 0; font-size: 13px; }
.cover2 .cnav { letter-spacing: -.02em; }
@media (max-width: 560px) { .cover2 .corner { font-size: 11px; } }

/* cover type: Remingtoned Type, lowercase, a size up (replaces John Doe) */
@font-face { font-family: "Remingtoned Type"; src: url("../fonts/RemingtonedType.woff") format("woff"); font-weight: 400 700; font-display: swap; }
.cover2 .corner, .cover2 .cnav { font-family: "Remingtoned Type", "Courier New", monospace; text-transform: lowercase; font-weight: 400; }
.cover2 .corner { font-size: 16px; letter-spacing: -.01em; }
.cover2 .cnav { font-size: clamp(18px, 1.6vw, 30px); letter-spacing: -.02em; gap: .35em; }
@media (max-width: 560px) { .cover2 .corner { font-size: 13px; } .cover2 .cnav { font-size: clamp(12px, 3.7vw, 15px); } }

/* ===== Type system: Remingtoned Type for every headline, Helvetica Now Display for body; tracked in slightly ===== */
:root { --head: "Remingtoned Type", "Courier New", monospace; }
body { letter-spacing: -.01em; }
.display, .h1, .h2, .ptitle, .lede,
.about3 h3, .about2 h3,
.carousel .ct h2,
.pnext a.big, .contact .big, .foot .name,
.pcard.soon .name, .card .bar span:first-child, .chapter .bar span:first-child,
.nav .brand, .nav nav a {
  font-family: var(--head); font-weight: 400; letter-spacing: -.025em;
}
.display { line-height: 1.02; }
.h1, .h2 { line-height: 1.1; }
.carousel .ct h2 { line-height: 1.15; }
.pnext a.big { line-height: 1.05; }
.nav .brand, .nav nav a { text-transform: lowercase; letter-spacing: -.01em; font-size: 15px; }
.cover2 .corner { letter-spacing: -.02em; }
.cover2 .cnav { letter-spacing: -.03em; }
/* body copy: Helvetica Now, tracked in a touch */
.copy, .about3 p, .about2 p, .credits, .pmeta, .pcard p, .foot-line { letter-spacing: -.012em; }

/* one continuous dark ground: seamless tile that repeats both ways (no visible bands on tall phone sections) */
.bg-dark { background: #0d0d0d url("../img/common/dark-tile.jpg") 0 0 / 1200px 1200px repeat; }
@media (max-width: 860px) { .bg-dark { background-size: 800px 800px; } }

/* About: bigger photo + copy on desktop; bigger photo on phones */
@media (min-width: 701px) {
  .about3 { grid-template-columns: minmax(220px, 440px) minmax(0, 720px); gap: clamp(32px, 5vw, 96px); }
  .about3 h3 { font-size: clamp(26px, 2.4vw, 40px); margin-bottom: 20px; }
  .about3 p { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; }
  .about3 .cta a { font-size: clamp(22px, 2.1vw, 32px); }
}
@media (max-width: 700px) {
  .about3 { grid-template-columns: 46% 1fr; }
}

/* About: centered section head (like Gallery), photo + copy top-aligned below */
.about-head { padding-top: var(--section); }
.about-head .ptitle { margin-bottom: 0; }
.about3 { align-items: start; padding-top: clamp(28px, 3vw, 52px); }
@media (max-width: 700px) {
  .about-head { padding-top: 64px; }
  .about3 { padding-top: 28px; }
  .about3 .pic { grid-row: 1; }
  .about3 p:first-of-type { grid-column: 2; grid-row: 1; }
}

/* carousel: same 1920×779 frame at every width, so phones see what desktop sees; type scales with the frame */
.carousel { height: auto; aspect-ratio: 1920 / 779; }
.carousel .ct h2 { font-size: clamp(15px, 2.6vw, 52px); }
.carousel .ct a { font-size: clamp(11px, 1.3vw, 26px); }
.carousel .cbars { bottom: clamp(8px, 2vw, 40px); gap: clamp(4px, .6vw, 8px); }
.carousel .cbars button { width: clamp(16px, 3vw, 56px); height: 12px; padding: 5px 0; }
/* prev / next arrows */
.carousel .carr { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: clamp(28px, 3.4vw, 56px); height: clamp(28px, 3.4vw, 56px); display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.carousel .carr svg { width: 46%; height: 46%; }
.carousel .carr.prev { left: clamp(8px, 1.6vw, 28px); }
.carousel .carr.next { right: clamp(8px, 1.6vw, 28px); }
.carousel .carr:hover, .carousel .carr:focus-visible { color: var(--red); border-color: var(--red); background: rgba(0,0,0,.5); outline: none; }
/* keep the title clear of the left arrow */
.carousel .ct { left: calc(clamp(8px, 1.6vw, 28px) + clamp(28px, 3.4vw, 56px) + clamp(8px, 1.2vw, 20px)); }
.carousel .cbars { left: calc(clamp(8px, 1.6vw, 28px) + clamp(28px, 3.4vw, 56px) + clamp(8px, 1.2vw, 20px)); }

/* ===== Projects cards: clean image at rest; on hover (desktop) or when centred on screen (touch) the card dims
   and the project's logo + a typewriter line fade in ===== */
.pcard .bgimg { transition: transform 1s cubic-bezier(.16,.8,.2,1), filter .45s ease; }
.pcard .ov { opacity: 0; background: rgba(0,0,0,.58); transition: opacity .4s ease; gap: 14px; }
.pcard .logo { transform: translateY(8px); transition: transform .5s cubic-bezier(.16,.8,.2,1); filter: none; }
.pcard .sub { font-family: var(--head); font-size: clamp(13px, 1vw, 17px); letter-spacing: -.02em; line-height: 1.3; text-shadow: none; max-width: 30ch; transform: translateY(8px); transition: transform .5s cubic-bezier(.16,.8,.2,1) .05s; }
.pcard.soon .name { font-family: var(--head); font-weight: 400; text-transform: none; letter-spacing: -.02em; font-size: clamp(24px, 2.4vw, 40px); transform: translateY(8px); transition: transform .5s cubic-bezier(.16,.8,.2,1); }
.pcard.soon .ov { background: rgba(0,0,0,.58); }
@media (hover: hover) {
  .pcard:hover .ov, .pcard:focus-visible .ov { opacity: 1; }
  .pcard:hover .bgimg { transform: scale(1.05); filter: saturate(.85); }
  .pcard:hover .logo, .pcard:hover .sub, .pcard:hover .name { transform: none; }
}
/* touch screens: the card nearest the middle of the screen plays the hover state */
.pcard.active .ov { opacity: 1; }
.pcard.active .bgimg { transform: scale(1.04); }
.pcard.active .logo, .pcard.active .sub, .pcard.active .name { transform: none; }
.pcard:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 640px) { .pcard .logo { width: 62%; } .pcard .sub { font-size: 14px; } }
/* video covers fill the card like images (Dreamstudy's frame is letterboxed black, so it sits contained) */
.pcard video.bgimg { object-fit: cover; }
.pcard.soon video.bgimg { object-fit: contain; }
/* collage covers (Guestroom shirts) */
.pcard .collage { position: absolute; inset: 0; overflow: hidden; }
.pcard .collage img { position: absolute; max-width: none; object-fit: contain; }
/* square logo marks (LAB RATS) get more height */
.pcard .logo.icon { width: auto; max-width: 60%; max-height: 52%; }
/* wide lockups (LAB RATS icon + script) */
.pcard .logo.wide { width: 84%; max-height: 40%; }

/* ---- Gallery tab: masonry collection + lightbox ---- */
.gallery .gmore { text-align: center; margin: clamp(24px, 3vw, 40px) 0 0; }
.gallery .gmore a { font-family: var(--head); text-transform: lowercase; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.025em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.gallery .gmore a:hover { color: var(--red); border-color: var(--red); }
.gpage { padding-top: clamp(96px, 10vw, 140px); padding-bottom: var(--section, 96px); }
.gpage .ptitle { text-align: center; margin-bottom: clamp(28px, 4vw, 56px); }
.masonry { columns: 4 260px; column-gap: clamp(12px, 1.4vw, 22px); }
.masonry figure { break-inside: avoid; margin: 0 0 clamp(12px, 1.4vw, 22px); position: relative; overflow: hidden; background: #0c0c0c; }
.masonry figure.light { background: #e9e7e2; }
.masonry figure.light .gopen { padding: 12%; }
.masonry .gopen { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.masonry img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.masonry figcaption b { font-family: var(--head); font-weight: 400; text-transform: lowercase; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.masonry figcaption span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
@media (hover: hover) {
  .masonry figure:hover img { transform: scale(1.03); }
  .masonry figure:hover figcaption { opacity: 1; transform: none; }
}
@media (hover: none) { .masonry figcaption { position: static; opacity: 1; transform: none; background: none; padding: 8px 2px 0; } .masonry figure, .masonry figure.light { background: none; } .masonry figure.light .gopen { background: #e9e7e2; } }
@media (max-width: 640px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 14px; } .masonry figcaption b { font-size: 15px; } .masonry figcaption span { font-size: 9.5px; } }

.lbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lbox[hidden] { display: none; }
.lbox figure { margin: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 0 24px; box-sizing: border-box; min-width: 0; }
.lbox .lb-img { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbox.light .lb-img img { background: #e9e7e2; padding: 6%; box-sizing: border-box; }
.lbox figcaption { color: #fff; text-align: center; padding-top: 16px; display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.lbox figcaption b { font-family: var(--head); font-weight: 400; text-transform: lowercase; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -.02em; }
.lbox figcaption span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.lbox figcaption em { font-style: normal; font-size: 11px; opacity: .45; font-variant-numeric: tabular-nums; }
.lbox button { background: none; border: 0; color: #fff; cursor: pointer; transition: color .2s; }
.lbox button:hover { color: var(--red); }
.lbox .lb-arr { height: 64px; display: flex; align-items: center; justify-content: center; }
.lbox .lb-arr svg { width: 30px; height: 30px; }
.lbox .lb-x { position: absolute; top: 12px; right: 16px; font-size: 38px; line-height: 1; padding: 6px 10px; }
@media (max-width: 640px) { .lbox { grid-template-columns: 1fr; } .lbox .lb-arr { position: absolute; bottom: 14px; z-index: 2; } .lbox .lb-arr.prev { left: 10px; } .lbox .lb-arr.next { right: 10px; } .lbox figure { padding: 60px 12px 84px; } }
body.lb-open { overflow: hidden; }
/* phones: clean image grid, captions live in the lightbox */
@media (max-width: 640px) { .masonry figcaption { display: none; } .masonry figure.light .gopen { padding: 10%; } }

/* 1800Laboratory hero — web: the image is anchored right so the "y" of laboratory sits flush with the right edge.
   mobile: zoomed so the word spans the full width — "l" flush left, "y" flush right (word runs x 1062–1917 of the 1920px source). */
.phero.hero-1800laboratory img { object-position: 100% 75%; }
@media (max-width: 640px) {
  .phero.hero-1800laboratory { height: auto; aspect-ratio: 1 / 1; }
  .phero.hero-1800laboratory img { inset: auto; bottom: 0; left: -124.21%; width: 224.56%; height: auto; max-width: none; object-fit: fill; }
}

/* ---- Project pages v3: intro → one thumbnail per body of work → detail view ---- */
.proj .label { color: var(--red); }
.pintro { padding-top: clamp(48px, 6vw, 96px); }
.pintro .kicker { display: block; margin-bottom: 18px; }
.pintro .lede { margin-top: clamp(16px, 2vw, 28px); max-width: 32ch; color: var(--fg-2); }
.pi-grid { display: grid; grid-template-columns: minmax(220px, 4fr) 8fr; gap: clamp(28px, 5vw, 96px); margin-top: clamp(40px, 6vw, 88px); align-items: start; }
.pi-meta { margin: 0; display: grid; gap: 0; }
.pi-meta > div { border-top: 1px solid var(--red); padding: 12px 0 18px; }
.pi-meta > div:last-child { border-bottom: 1px solid var(--red); }
.pi-meta dt { display: block; margin-bottom: 6px; }
.pi-meta dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg); }
.pi-copy { max-width: 62ch; border-top: 1px solid var(--red); padding-top: 14px; }
@media (max-width: 860px) { .pi-grid { grid-template-columns: 1fr; } .pi-copy { order: -1; border-top: 0; padding-top: 0; } }

.pwork { padding-top: var(--section); }
.pw-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--red); padding-bottom: 12px; margin-bottom: clamp(20px, 3vw, 40px); }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 48px) var(--gap); }
.wgrid.odd > .wcard:first-child { grid-column: 1 / -1; }
.wgrid.odd > .wcard:first-child .wthumb { aspect-ratio: 21 / 9; }
.wcard { display: block; text-align: left; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wthumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0c0c0c; }
.wthumb.contain { background: rgba(127,127,127,.12); }
.wthumb img, .wthumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.wthumb.contain img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.wthumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .35s; }
.wthumb .more { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -40%); opacity: 0; transition: opacity .35s, transform .35s; font-family: var(--head); text-transform: lowercase; font-size: clamp(20px, 2vw, 34px); letter-spacing: -.02em; color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap; }
.wmeta { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding-top: 14px; align-items: baseline; }
.wmeta .label { grid-column: 1 / -1; }
.wmeta .wt { font-family: var(--head); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; letter-spacing: -.025em; }
.wmeta .wn { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.wcard:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (hover: hover) {
  .wcard:hover .wthumb::after, .wcard:focus-visible .wthumb::after { opacity: 1; }
  .wcard:hover .wthumb .more, .wcard:focus-visible .wthumb .more { opacity: 1; transform: translate(-50%, -50%); }
  .wcard:hover .wthumb img, .wcard:hover .wthumb video { transform: scale(1.035); }
  .wcard:hover .wt { color: var(--red); }
}
.wcard.active .wthumb::after { opacity: 1; }
.wcard.active .wthumb .more { opacity: 1; transform: translate(-50%, -50%); }
@media (max-width: 700px) {
  .wgrid { grid-template-columns: 1fr; }
  .wgrid.odd > .wcard:first-child .wthumb { aspect-ratio: 4 / 3; }
}

.pdetail { position: fixed; inset: 0; z-index: 120; overflow-y: auto; overscroll-behavior: contain; background-color: var(--bg, #0b0b0b); }
.pdetail[hidden] { display: none; }
.bg-paper .pdetail { background: #e9e7e2 url("../img/common/paper-lab-tile.jpg") center top / 100% auto repeat-y; }
.bg-parch .pdetail { background: #e6e3de url("../img/common/paper-guestroom-tile.jpg") center top / 100% auto repeat-y; }
.bg-plate .pdetail { background: #050505 url("../img/sysfm/bg.jpg") center top / 100% auto repeat-y; }
.pd-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); background: rgba(10,10,10,.92); color: #fff; backdrop-filter: blur(8px); }
.pd-nav { display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; }
.pd-bar button { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--head); text-transform: lowercase; font-size: 16px; letter-spacing: -.02em; padding: 4px 0; transition: color .2s; }
.pd-bar button:hover { color: var(--red); }
.pd-bar .pd-x { font-family: inherit; font-size: 30px; line-height: 1; }
.pd-scroll { padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section); }
.pd-head { display: grid; grid-template-columns: 4fr 8fr; gap: 12px clamp(28px, 5vw, 96px); align-items: start; padding-bottom: clamp(24px, 3vw, 44px); margin-bottom: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--red); }
.pd-head .label { grid-column: 1 / -1; }
.pd-head .copy { margin: 0; font-size: clamp(15px, 1.05vw, 17px); color: var(--fg-2); }
@media (max-width: 860px) { .pd-head { grid-template-columns: 1fr; } }
.pd-body .grid + .grid { margin-top: var(--gap); }
.pd-body .sub { margin-top: clamp(40px, 5vw, 80px); }
.pd-body .sub .label { display: block; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid var(--red); }
.pnext { border-top-color: var(--red); }
.proj .pnext .row a { color: var(--fg); }
.proj .pnext .row a:hover { color: var(--red); }
body.pd-open { overflow: hidden; }

/* ---- Stop-motion wiggle on navigation text: letters jump between held poses (~11fps), each a little out of sync ---- */
.wg { display: inline-block; will-change: transform; }
@keyframes wg-a { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(.6px, -1px) rotate(-3deg); } 50% { transform: translate(-.5px, .5px) rotate(2.5deg); } 75% { transform: translate(.4px, .8px) rotate(-1.5deg); } }
@keyframes wg-b { 0% { transform: translate(0, -.5px) rotate(2deg); } 25% { transform: translate(-.6px, .6px) rotate(-2deg); } 50% { transform: translate(.5px, -.8px) rotate(3deg); } 75% { transform: translate(0, .5px) rotate(-.5deg); } }
@keyframes wg-c { 0% { transform: translate(.4px, .4px) rotate(-1.5deg); } 25% { transform: translate(0, -.8px) rotate(2deg); } 50% { transform: translate(-.6px, 0) rotate(-3deg); } 75% { transform: translate(.5px, -.4px) rotate(1deg); } }
.wg-a { --wg: wg-a; } .wg-b { --wg: wg-b; } .wg-c { --wg: wg-c; }
.wgl:hover .wg, .wgl:focus-visible .wg, .wcard:hover .more .wg, .wcard:focus-visible .more .wg, .wgl.wg-tap .wg {
  animation: var(--wg) .36s steps(1, end) infinite; animation-delay: var(--wd, 0s);
}
.wcard.active .more .wg { animation: var(--wg) .36s steps(1, end) 3; animation-delay: var(--wd, 0s); }
@media (prefers-reduced-motion: reduce) { .wg { animation: none !important; } }

/* ---- Project pages (all but 1800Laboratory): one masonry gallery of every piece ---- */
.pmason.masonry { columns: 3 300px; }
.theme-light .masonry figure { background: transparent; }
.masonry figure.trans { background: transparent; }
.masonry figure.trans .gopen { padding: 8%; }
.masonry figure.mvid { background: #0c0c0c; }
.masonry figure.mvid video { display: block; width: 100%; height: auto; }
.masonry figure.mvid .snd { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 5px 8px; }
.masonry figure.mvid.on .snd { color: var(--red); }
.masonry figure.mvid.sound { cursor: pointer; }
@media (hover: hover) { .masonry figure.mvid:hover figcaption { opacity: 1; transform: none; } }
@media (max-width: 640px) { .pmason.masonry { columns: 2; column-gap: 10px; } .masonry figure.mvid .snd { font-size: 8.5px; padding: 4px 6px; top: 6px; right: 6px; } }

/* mobile: every project header matches the 1800Laboratory header (square, full width) */
@media (max-width: 640px) { .phero { height: auto; aspect-ratio: 1 / 1; } }
@media (max-width: 640px) { .phero.hero-hilos { background: #ee3718; } .phero.hero-hilos video { object-fit: contain; } }

/* ---- Project spreads (system.fm, Guestroom, Nòn·na, HILOS, JJJJ): Figma-style intro + grouped, captioned rows ---- */
.sintro { display: grid; grid-template-columns: minmax(220px, 3fr) 5fr 5fr; gap: clamp(24px, 3.5vw, 64px); align-items: start; padding-top: clamp(48px, 6vw, 96px); }
.si-left > .label { display: block; margin-bottom: 16px; }
.si-title { margin: 0 0 14px; font-family: var(--head); font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; }
.si-logo { display: block; max-width: 100%; width: auto; max-height: clamp(44px, 4.4vw, 72px); }
.si-kind { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.si-left > .label + .chips { margin-top: 10px; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1px solid var(--red); border-radius: 999px; padding: 5px 11px; font-size: 12px; line-height: 1.2; color: var(--fg); }
.si-facts { display: grid; gap: 12px; }
.si-facts > div { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; }
.si-copy { font-size: clamp(14.5px, 1vw, 16px); max-width: 60ch; }
.si-feature img, .si-feature video { display: block; width: 100%; height: auto; }
.si-feature.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.theme-light .si-feature.multi img { mix-blend-mode: multiply; }
@media (max-width: 1100px) { .sintro { grid-template-columns: 1fr 1fr; } .si-feature { grid-column: 1 / -1; } }
@media (max-width: 700px) { .sintro { grid-template-columns: 1fr; } .si-feature { grid-column: auto; order: 3; } .si-copy { order: 2; } }

.sgroup { padding-top: clamp(80px, 9vw, 150px); }
.sg-head { text-align: center; margin-bottom: clamp(28px, 3.5vw, 56px); }
.sg-head .label { display: block; margin-bottom: 12px; }
.spill { display: inline-block; margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(22px, 2.2vw, 36px); letter-spacing: -.025em; line-height: 1.1; padding: .35em 1.1em .4em; border: 1.5px solid var(--red); border-radius: 999px; }
.sg-text { max-width: 56ch; margin: 18px auto 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.srow { display: flex; gap: clamp(14px, 1.8vw, 28px); align-items: flex-start; }
.srow + .srow { margin-top: clamp(28px, 3vw, 48px); }
.sfig { margin: 0; min-width: 0; }
.sbox { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.sfig.mvid .sbox { cursor: default; background: #0c0c0c; }
.sfig.mvid.sound .sbox { cursor: pointer; }
.sbox img, .sbox video { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sfig.trans .sbox, .sfig.light .sbox { background: transparent; }
@media (hover: hover) { button.sbox:hover img { transform: scale(1.025); } }
.sfig figcaption { padding-top: 12px; display: grid; gap: 3px; }
.sfig figcaption b { font-family: var(--head); font-weight: 400; font-size: clamp(16px, 1.15vw, 19px); letter-spacing: -.02em; line-height: 1.15; }
.sfig figcaption span { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.sfig figcaption.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sfig .snd { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 5px 8px; }
.sfig.on .snd { color: var(--red); }
@media (max-width: 700px) {
  .srow.n3, .srow.n4 { flex-wrap: wrap; }
  .srow.n3 > .sfig, .srow.n4 > .sfig { flex: 1 1 calc(50% - 8px) !important; }
  .srow.n3 > .sfig:first-child { flex-basis: 100% !important; }
  .srow { gap: 14px 12px; }
  .sfig figcaption b { font-size: 15px; } .sfig figcaption span { font-size: 12px; }
}
.srow { margin-left: auto; margin-right: auto; }
.sfig figcaption span.grp { display: none; }
.pnext a.big.long { font-size: clamp(30px, 4.6vw, 84px); }
@media (max-width: 700px) { .srow { max-width: none !important; } }
@media (max-width: 700px) {
  .srow.mix { flex-wrap: wrap; } .srow.mix > .sfig { flex: 1 1 100% !important; }
  .srow.mix > .sfig.mvid:first-child { flex-basis: 60% !important; flex-grow: 0 !important; margin: 0 auto; }
  .pnext a.big.long { font-size: 26px; }
}

/* ---- Guestroom: apparel collage header, looping garment strip, garment detail ---- */
.phero.picture { height: auto; background: transparent; }
.phero.picture picture, .phero.picture img { position: static; display: block; width: 100%; height: auto; object-fit: contain; }
.phero.hero-guestroom { padding: clamp(84px, 8vw, 120px) var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 640px) { .phero.hero-guestroom { aspect-ratio: auto; padding: 72px 12px 0; } }

.gstrip { position: relative; margin-top: clamp(56px, 7vw, 110px); }
.gs-view { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.gs-view::-webkit-scrollbar { display: none; }
.gs-view.dragging { cursor: grabbing; }
.gs-track { display: flex; width: max-content; align-items: flex-end; }
.gs-item { position: relative; flex: none; height: clamp(170px, 19vw, 300px); margin-right: clamp(-28px, -1.6vw, -10px); padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.gs-item img { display: block; height: 100%; width: auto; pointer-events: none; user-select: none; }
.gs-item .gs-name { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; font-family: var(--head); font-size: 15px; letter-spacing: -.02em; color: var(--red); opacity: 0; transition: opacity .25s; }
.gs-track { padding-bottom: 34px; }
@media (hover: hover) { .gs-item:hover { transform: translateY(-8px) scale(1.04); z-index: 2; } .gs-item:hover .gs-name { opacity: 1; } }
.gs-arr { position: absolute; top: calc(50% - 17px); z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--red); background: rgba(233,231,226,.85); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.gs-arr:hover { background: var(--red); color: #fff; }
.gs-arr svg { width: 20px; height: 20px; }
.gs-arr.prev { left: 12px; } .gs-arr.next { right: 12px; }
@media (max-width: 640px) { .gs-item { height: 150px; } .gs-arr { width: 36px; height: 36px; } }

.gdetail { position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: #e6e3de url("../img/common/paper-guestroom-tile.jpg") center top / 100% auto repeat-y; color: #0f0f0f; }
.gdetail[hidden] { display: none; }
.gd-wrap { padding-top: clamp(28px, 4vw, 64px); padding-bottom: 64px; }
.gd { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: center; min-height: calc(100svh - 160px); }
.gd-media { position: relative; display: grid; place-items: center; }
.gd-media img { display: block; width: 100%; max-height: 72svh; object-fit: contain; }
.gd-views { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.gd-views button { font: inherit; font-size: 12px; border: 1px solid var(--red); border-radius: 999px; padding: 5px 14px; background: none; cursor: pointer; color: inherit; }
.gd-views button.on { background: var(--red); color: #fff; }
.gd-info .label { display: block; margin-bottom: 10px; }
.gd-title { margin: 0 0 16px; font-family: var(--head); font-weight: 400; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.gd-note { margin: 0 0 32px; font-size: 16px; line-height: 1.55; color: #4a4a4a; max-width: 44ch; }
.gd-designs { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--red); padding-top: 16px; }
.gd-designs figure { margin: 0; width: clamp(120px, 12vw, 180px); }
.gd-dimg { display: grid; place-items: center; aspect-ratio: 1; }
.gd-dimg img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gd-designs figcaption { margin-top: 8px; font-family: var(--head); font-size: 15px; }
@media (max-width: 760px) { .gd { grid-template-columns: 1fr; min-height: 0; } .gd-media img { max-height: 52svh; } }
.gd[hidden], .gd-media > img[hidden] { display: none; }
/* Guestroom header: full-bleed zoomed collage; rack: garments hang from the top and sway */
.phero.hero-guestroom { padding: 0; max-width: none; background: #111; }
.gs-track { --sw: 0deg; padding-top: 18px; }
.gs-item img { transform: rotate(var(--sw)); transform-origin: 50% -14px; }
.gs-item::before { content: ""; position: absolute; left: 50%; top: -16px; width: 1.5px; height: 18px; background: rgba(0,0,0,.45); transform: translateX(-50%) rotate(var(--sw)); transform-origin: 50% 0; }
.gs-view { border-top: 2px solid rgba(0,0,0,.55); }
.gs-arr { top: calc(50% - 8px); }
.phero.hero-guestroom { padding-top: 56px; } @media (max-width: 640px) { .phero.hero-guestroom { padding-top: 54px; } }
/* rack v2: no hangers, garments overlap like a laid-out row */
.gs-item::before { content: none; }
.gs-view { border-top: 0; }
.gs-track { padding-top: 12px; align-items: center; }
.gs-item { --h: clamp(190px, 21vw, 330px); height: var(--h); margin-right: calc(var(--h) * -0.26); }
.gs-item:last-child { margin-right: 0; }
.gs-item img { transform-origin: 50% 0; filter: drop-shadow(-6px 0 10px rgba(0,0,0,.18)); }
@media (hover: hover) { .gs-item:hover { z-index: 5; } }
@media (max-width: 640px) { .gs-item { --h: 170px; height: var(--h); } }
.gs-item { --h: clamp(170px, 17vw, 280px); margin-right: calc(var(--h) * -0.4); }
@media (max-width: 640px) { .gs-item { --h: 150px; } }
.gs-item[data-g="2"] { z-index: 2; } @media (hover: hover) { .gs-item[data-g="2"]:hover { z-index: 5; } }
/* garment detail close: big, obvious, always on top */
.gdetail .pd-bar { z-index: 5; }
.gdetail .gd-x { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 16px; border: 1.5px solid #fff; border-radius: 999px; font-family: var(--head); font-size: 16px; text-transform: lowercase; line-height: 1; }
.gdetail .gd-x svg { width: 18px; height: 18px; }
.gdetail .gd-x:hover { border-color: var(--red); color: var(--red); }
.gdetail .gd-x:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gdetail .gd-x:focus:not(:focus-visible) { outline: none; }
@media (max-width: 640px) { .gdetail .gd-xl { display: none; } .gdetail .gd-x { padding: 9px; } .gdetail .pd-bar > .label { display: none; } }
/* garment detail: graphics shown large */
.gd { grid-template-columns: 6fr 6fr; }
.gd-designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 24px; }
.gd-designs figure { width: auto; }
.gd-dimg { aspect-ratio: 1; height: auto; max-height: clamp(260px, 30vw, 440px); width: 100%; }
.gd-dimg img { width: 100%; height: 100%; }
.gd-designs figcaption { font-size: 17px; }
.gd-note { margin-bottom: 24px; }
@media (max-width: 760px) { .gd-designs { grid-template-columns: 1fr; } .gd-dimg { max-height: none; } .gd-media img { max-height: 46svh; } }
.gd-dimg { display: flex; align-items: center; justify-content: center; aspect-ratio: auto; max-height: none; height: clamp(240px, 30vw, 430px); }
.gd-dimg img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.gd-designs { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gd { align-items: start; padding-top: clamp(8px, 3vw, 48px); }
@media (max-width: 760px) {
  .gd { grid-template-columns: 1fr; }
  .gd-designs { grid-template-columns: 1fr; }
  .gd-dimg { height: auto; max-height: 70svh; }
  .gd-dimg img { width: 100%; max-height: 70svh; }
}
@media (max-width: 640px) { .phero.hero-hilos { aspect-ratio: 16 / 9; background: #ee3718; } .phero.hero-hilos video { object-fit: cover; } }
@media (max-width: 640px) { body.has-nav .phero.hero-hilos { margin-top: 54px; } }
.sfilm .sbox { background: #000; cursor: default; } .sfilm video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; opacity: 1; } .sfilm figcaption b { font-size: clamp(18px, 1.5vw, 24px); }
/* Woodstock 69' */
.phero.hero-woodstock { padding: 56px 0 0; max-width: none; background: #eae2ce; }
@media (max-width: 640px) { .phero.hero-woodstock { padding-top: 54px; aspect-ratio: auto; } }
.pcard .logo[src*="logo-stacked-white"] { max-height: 52%; }
/* LAB RATS */
.phero.hero-labrats { background: #000; }
.phero.hero-labrats video { object-fit: contain; transform: scale(2.1); }
@media (max-width: 640px) { .phero.hero-labrats video { object-fit: contain; transform: scale(2.1); } }
.pcard[href*="labrats"] .logo { width: 84%; max-height: 40%; }
.pcard[href*="1800laboratory"] .bgimg { object-fit: contain; transform: scale(1.06); }
.hero-labrats ~ * .si-feature img[src*="logo-wreath-white"], .si-feature img[src*="logo-wreath-white"] { width: 82%; margin: 0 auto; background: none; }

/* ---- Gallery (standalone visual work) ---- */
.gintro { text-align: center; max-width: 520px; margin: calc(-1 * clamp(12px, 2vw, 32px)) auto clamp(32px, 4vw, 64px); color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.5; }
.gwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); max-width: 1440px; margin: 0 auto; align-items: start; }
.gcol { display: flex; flex-direction: column; min-width: 0; }
.gwall figure { margin: 0 0 clamp(28px, 3vw, 48px); }
.gwall .gopen { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0c0c0c; cursor: zoom-in; overflow: hidden; }
.gwall figure.gv .gopen { cursor: pointer; }
.gwall img, .gwall video { display: block; width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gwall .gbadge { position: absolute; left: 10px; bottom: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 6px 9px; transition: background .2s; }
.gwall figcaption { padding-top: 12px; display: grid; gap: 4px; }
.gwall figcaption b { font-family: var(--head); font-weight: 400; text-transform: lowercase; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.gwall figcaption span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.gwall figcaption p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.66); max-width: 44ch; }
@media (hover: hover) { .gwall figure:hover img, .gwall figure:hover video { transform: scale(1.03); } .gwall figure:hover .gbadge { background: var(--red); } }
@media (max-width: 900px) and (min-width: 641px) { .gwall figcaption p { font-size: 13px; } }
@media (max-width: 640px) { .gwall { display: flex; flex-direction: column; } .gcol { display: contents; } .gwall figure { margin-bottom: 36px; } }
.lbox .lb-img video { max-width: 100%; max-height: 100%; background: #000; }
.lbox .lb-img [hidden] { display: none; }
.lbox figcaption p { flex-basis: 100%; margin: 4px auto 0; max-width: 56ch; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.66); }
.lbox figcaption p:empty { display: none; }
/* home gallery tiles */
.ggrid .gtile { position: relative; display: block; aspect-ratio: 310/406; overflow: hidden; background: #111; color: #fff; }
.ggrid .gtile img, .ggrid .gtile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16,.8,.2,1); }
.ggrid .gtile:hover img, .ggrid .gtile:hover video { transform: scale(1.04); }
.ggrid .gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity .3s; }
.ggrid .gcap b { font-family: var(--head); font-weight: 400; text-transform: lowercase; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.ggrid .gcap i { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ggrid .gtile:hover .gcap { opacity: 1; }
@media (hover: none) { .ggrid .gcap { opacity: 1; } }
@media (max-width: 640px) { .ggrid .gcap { padding: 28px 10px 9px; } .ggrid .gcap b { font-size: 14px; } }
