/* piercegainey.com
   World: a South Florida pocket tide guide. Warm newsprint, navy ink, ruled tables, one
   channel-marker red. The photographs carry the color, and the page moves like water:
   things rise in from below, settle, and drift. Motion is gated on html.motion (set in <head>
   only when the visitor has not asked for reduced motion), so every page works without it. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-normal-400-600.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-normal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --ink: #10202c;
  --ink-2: #44515a;
  --rule: rgb(16 32 44 / .22);
  --rule-strong: rgb(16 32 44 / .85);
  --buoy: #b4381f;
  --buoy-lt: #ef7a5c;
  --night: #0b1319;
  --foam: #ece7db;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gut: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mast-h: 3.2rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--buoy); }
a:hover { color: var(--buoy); }
:focus-visible { outline: 2px solid var(--buoy); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.16em; flex: none; transition: transform .35s var(--ease); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem .8rem; z-index: 60; }
.skip:focus { left: .5rem; }

/* condensed caps: the almanac's table voice */
.mast, .chip, .btn, .c-role, .c-year, .c-pub, .c-link, .v-kind, .v-count, .foot, .hero-cta, .hero-now,
.brow-count, .brow-what, .strip-toggle, .contact-ig {
  font-family: var(--cond); font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- masthead: rides transparent over the hero, turns to paper once you scroll ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem;
  padding: .85rem var(--gut) .7rem;
  background: rgb(242 238 229 / .9);
  border-bottom: 1px solid var(--rule-strong);
  font-size: .95rem;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
@supports (backdrop-filter: blur(1px)) { .mast { background: rgb(242 238 229 / .78); backdrop-filter: blur(12px) saturate(1.2); } }
.home .mast { position: fixed; left: 0; right: 0; }
.home.at-top .mast { background: transparent; backdrop-filter: none; color: var(--foam); border-bottom-color: rgb(236 231 219 / .25); }
.home.at-top .mast nav a { color: rgb(236 231 219 / .85); }
.mast-name { font-weight: 700; text-decoration: none; letter-spacing: .12em; }
.mast ul { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.mast nav a { position: relative; text-decoration: none; color: var(--ink-2); }
.mast nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mast nav a:hover::after, .mast nav a[aria-current="page"]::after { transform: scaleX(1); }
.mast nav a:hover { color: var(--buoy); }
.home.at-top .mast nav a:hover { color: #fff; }

/* ---------- kinetic type: each letter rises out of its own line ---------- */
.kinetic { display: inline; }
.kw { display: inline-block; white-space: nowrap; overflow: clip; padding: .14em .02em .14em 0; margin: -.14em -.02em -.14em 0; vertical-align: top; }
.k { display: inline-block; }
.motion .kinetic:not(.k-scroll) .k { animation: letter 1.1s var(--ease) both; animation-delay: calc(.25s + var(--k) * 45ms); }
.motion .k-scroll .k { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--k) * 28ms); }
.motion .k-scroll.in .k { transform: none; }
@keyframes letter { from { transform: translateY(105%) rotate(6deg); } }

/* ---------- hero: full bleed, slow crossfade with Ken Burns drift ---------- */
.hero {
  position: relative; height: 100svh; min-height: 34rem; overflow: hidden;
  background: var(--night); color: var(--foam);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.slide { position: absolute; inset: 0; background: var(--c); opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.motion .slide.is-on img { animation: kenburns 9s linear both; }
.motion .slide:nth-child(even).is-on img { animation-name: kenburns-b; }
@keyframes kenburns { from { transform: scale(1.14) translate(-1.5%, 1%); } to { transform: scale(1.02) translate(1%, -1%); } }
@keyframes kenburns-b { from { transform: scale(1.02) translate(1.5%, -1%); } to { transform: scale(1.14) translate(-1%, 1.2%); } }
.motion .hero-media { animation: surface 1.8s var(--ease) both; }
@keyframes surface { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgb(11 19 25 / .45) 0%, rgb(11 19 25 / 0) 22%, rgb(11 19 25 / 0) 45%, rgb(11 19 25 / .72) 100%); }
.hero-text {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gut) clamp(1.5rem, 4vw, 3rem);
  will-change: transform, opacity;
}
.hero h1 {
  font-size: clamp(3.9rem, 13.5vw, 10.5rem);
  line-height: .86; letter-spacing: -.04em;
  font-variation-settings: "opsz" 72;
  text-shadow: 0 2px 30px rgb(11 19 25 / .35);
  margin: 0 0 1.1rem -.04em;
}
.hero-line { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.35; max-width: 30ch; margin-bottom: 1.6rem; color: #fff; text-shadow: 0 1px 14px rgb(11 19 25 / .5); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid rgb(236 231 219 / .35); padding-top: .9rem; }
.hero-cta { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--foam); font-size: 1rem; }
.hero-cta:hover { color: #fff; } .hero-cta:hover .ic { transform: translateX(4px); }
.hero-ticks { display: flex; align-items: center; gap: .9rem; font-size: .85rem; color: rgb(236 231 219 / .85); }
.ticks { display: flex; gap: .35rem; }
.tick { display: block; width: 1.7rem; height: 2px; background: rgb(236 231 219 / .3); overflow: hidden; }
.tick i { display: block; height: 100%; width: 100%; background: var(--foam); transform: scaleX(0); transform-origin: left; }
.tick.is-done i { transform: scaleX(1); }
.motion .tick.is-on i { animation: tick var(--dur, 6.5s) linear forwards; }
.hero.is-paused .tick.is-on i { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }
.hero-pause { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid rgb(236 231 219 / .4); background: transparent; color: var(--foam); cursor: pointer; }
.hero-pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero.is-paused .hero-pause .i-play { display: block; } .hero.is-paused .hero-pause .i-pause { display: none; }
html:not(.motion) .hero-pause, html:not(.motion) .ticks { display: none; }
.motion .hero-line, .motion .hero-meta { animation: rise 1s var(--ease) both; }
.motion .hero-line { animation-delay: .85s; } .motion .hero-meta { animation-delay: 1.05s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.hero-scroll { position: absolute; z-index: 4; left: 50%; top: calc(var(--mast-h) + 1.5rem); width: 1px; height: 0; }
.hero-scroll { display: none; }

/* ---------- the drone: a signature detail that flies in, hovers, then parks ---------- */
.drone { position: absolute; z-index: 3; left: 0; top: 0; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; pointer-events: none; opacity: 0; will-change: transform; }
.motion .drone { opacity: 1; transition: opacity .8s ease; }
.drone.is-gone { opacity: 0 !important; }
.drone-body { position: relative; width: 100%; height: 100%; transform: rotate(var(--yaw, 0deg)); transition: transform .2s linear; }
.drone-shadow { position: absolute; inset: 18%; border-radius: 50%; background: rgb(0 0 0 / .45); filter: blur(10px); transform: translate(var(--sx, 18px), var(--sy, 28px)) scale(.85); }
.drone .disc { fill: rgb(236 231 219 / .18); stroke: rgb(236 231 219 / .55); stroke-width: 1; }
.drone .blade { stroke: rgb(236 231 219 / .7); stroke-width: 2.5; stroke-linecap: round; }
.drone .rotor { animation: spin .12s linear infinite; }
.drone .rotor.ccw { animation-direction: reverse; }
.drone .led { animation: blink 1.4s steps(2) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }
html:not(.motion) .drone { display: none; }

/* ---------- sections ---------- */
.sec { padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.sec h2 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -.03em; font-variation-settings: "opsz" 72; }
.sec-lede { color: var(--ink-2); max-width: 46ch; font-size: 1.1rem; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head .sec-lede { margin: 0; }

/* scroll reveals (borrowed from Code & Key: rise + settle, once) */
.motion .reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .reveal:not(.in) { opacity: 0; transform: translateY(32px); }

/* ---------- even grids: identical 4:5 cells, cropped to fill; the viewer shows the whole photo ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.35rem, .9vw, .8rem); }
.grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-all { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--gut); }
.cell { min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c); position: relative; }
.cell-hit { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cell-hit:focus-visible { outline: 2px solid var(--buoy); outline-offset: -4px; }
.cell picture, .cell img { width: 100%; height: 100%; }
.cell img { object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
@media (hover: hover) {
  .cell:hover img { transform: scale(1.06); }
  .grid:hover .cell:not(:hover) img { filter: saturate(.75) brightness(.92); }
}
/* each cell surfaces like water rising, staggered across the row */
/* (the clip sits on the inner button: a clipped element reports no intersection, so the observer must watch the cell) */
.motion .cell-hit { transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .cell:not(.in) .cell-hit { clip-path: inset(100% 0 0 0); }
.motion .cell:not(.in) img { transform: scale(1.18); }
.motion .cell.in img { transition: transform 1.4s var(--ease), filter .6s; transition-delay: calc(var(--d, 0) * 90ms); }
.cell.is-out { display: none; }
.motion .cell.is-leaving { transition: opacity .25s ease, transform .25s ease; opacity: 0; transform: scale(.94); }
.motion .cell.is-entering { animation: cell-in .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 35ms); }
@keyframes cell-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.more { margin: clamp(3rem, 6vw, 5rem) 0 0; display: flex; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.3rem .8rem; border: 1px solid var(--ink); text-decoration: none; font-size: 1rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* ---------- tide line ---------- */
.tide { display: block; width: calc(100% - 2 * var(--gut)); height: 28px; margin: 0 auto; overflow: visible; }
.tide path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.motion .tide path { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease); }
.motion .tide.in path { stroke-dashoffset: 0; }

/* ---------- brands: a dark band, a drifting strip, then the roster ---------- */
.brands { background: var(--night); color: var(--foam); padding-bottom: clamp(3rem, 7vw, 6rem); }
.band { position: relative; height: clamp(22rem, 70vh, 42rem); overflow: hidden; background: var(--c); display: flex; align-items: flex-end; }
.band-img { position: absolute; inset: -12% 0; will-change: transform; }
.band-img picture, .band-img img { width: 100%; height: 100%; }
.band-img img { object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 19 25 / 0) 30%, rgb(11 19 25 / .9) 100%); }
.band-title { position: relative; z-index: 1; padding: 0 var(--gut) clamp(1.5rem, 4vw, 3rem); font-size: clamp(3rem, 9vw, 7.5rem); line-height: .92; letter-spacing: -.04em; font-variation-settings: "opsz" 72; color: #fff; }

.strip { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem) 0 1rem; }
.strip-viewport { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.strip-track { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); list-style: none; margin: 0; padding: .5rem calc(clamp(.6rem, 1.2vw, 1rem) / 2); flex: none; }
.strip-track li { width: clamp(9.5rem, 16vw, 14rem); aspect-ratio: 4 / 5; flex: none; }
.strip-hit { all: unset; display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; transition: transform .5s var(--ease); }
.strip-hit:focus-visible { outline: 2px solid var(--buoy-lt); outline-offset: 2px; }
.strip-hit picture, .strip-hit img { width: 100%; height: 100%; }
.strip-hit img { object-fit: cover; }
.strip-hit:hover { transform: translateY(-8px) rotate(-1.5deg); }
.motion .strip-track { animation: drift 70s linear infinite; }
.motion .strip-viewport:hover .strip-track, .motion .strip-viewport:focus-within .strip-track, .strip.is-paused .strip-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-100%); } }
html:not(.motion) .strip-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
html:not(.motion) .strip-dup, html:not(.motion) .strip-toggle { display: none; }
.strip-toggle { position: absolute; right: var(--gut); bottom: -1rem; background: transparent; color: rgb(236 231 219 / .75); border: 1px solid rgb(236 231 219 / .3); padding: .3rem .7rem; font-size: .8rem; cursor: pointer; }
.strip-toggle:hover { color: #fff; border-color: rgb(236 231 219 / .7); }

.brand-rows { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) var(--gut) 0; padding: 0; border-top: 1px solid rgb(236 231 219 / .5); }
.brow { border-bottom: 1px solid rgb(236 231 219 / .18); }
.brow-hit {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 6.5rem 9rem 1.5rem; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) .5rem; color: var(--foam); text-decoration: none;
  transition: background .35s var(--ease);
}
.brow-hit.is-static { cursor: default; }
.brow-hit.is-static:hover { background: none; }
.brow-hit:hover, .brow-hit:focus-visible { background: rgb(236 231 219 / .06); }
.brow-hit:focus-visible { outline: 2px solid var(--buoy-lt); outline-offset: -2px; }
.brow-name { font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; transition: transform .45s var(--ease); }
.brow-hit:hover .brow-name { transform: translateX(10px); }
.brow-what { font-size: .95rem; color: rgb(236 231 219 / .7); letter-spacing: .06em; }
.brow-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .45rem; }
.brow-links a { color: var(--foam); text-decoration: none; border-bottom: 1px solid rgb(236 231 219 / .35); }
.brow-links a:hover { color: #fff; border-color: var(--buoy-lt); }
.brow-links .ic { color: var(--buoy-lt); }
.brow-count { font-size: .9rem; color: var(--buoy-lt); }
.peeks { position: relative; height: 4.6rem; }
.peek-img { position: absolute; top: 0; width: 3.7rem; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 6px 18px rgb(0 0 0 / .35); transition: transform .5s var(--ease); }
.peek-img picture, .peek-img img { width: 100%; height: 100%; } .peek-img img { object-fit: cover; }
/* magazine covers keep their whole face: contained, never cropped */
img.contain { object-fit: contain !important; background: #1b2630; }
.peek-hit { all: unset; display: block; position: relative; width: 100%; height: 100%; cursor: zoom-in; }
.peek-hit:focus-visible { outline: 2px solid var(--buoy-lt); outline-offset: 4px; }
.peek-hit:hover .peek-img:nth-child(1) { transform: rotate(-12deg) translateY(-10px); }
.peek-hit:hover .peek-img:nth-child(2) { transform: rotate(4deg) translateY(-14px); }
.peek-img:nth-child(1) { left: 0; transform: rotate(-6deg); }
.peek-img:nth-child(2) { left: 2.6rem; transform: rotate(2deg); }
.peek-img:nth-child(3) { left: 5.2rem; transform: rotate(7deg); }
.brow-hit:hover .peek-img:nth-child(1) { transform: rotate(-12deg) translateY(-10px); }
.brow-hit:hover .peek-img:nth-child(2) { transform: rotate(0) translateY(-14px); }
.brow-hit:hover .peek-img:nth-child(3) { transform: rotate(12deg) translateY(-8px); }
.brow-hit > .ic { width: 1.5rem; height: 1.5rem; color: var(--buoy-lt); }
.brow-hit:hover > .ic { transform: translateX(5px); }

/* ---------- Holdfast, projects, press, contact ---------- */
.holdfast, .projects, .press, .contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 2rem; }
.holdfast-body { max-width: 62ch; }
.holdfast-body .big { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; letter-spacing: -.01em; }
.holdfast-body p:not(.big) { color: var(--ink-2); }
.count { font-weight: 600; color: var(--ink); }
.projects, .press { border-top: 1px solid var(--rule-strong); padding-top: clamp(3rem, 6vw, 5rem); }
.press { grid-template-rows: auto auto 1fr; }
.press .sec-lede { grid-column: 1; grid-row: 2; }
.press-table { grid-column: 2; grid-row: 1 / span 3; }
.table { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { display: grid; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; transition: background .3s; }
.row:hover { background: rgb(16 32 44 / .035); }
.proj-table .row { grid-template-columns: 9rem 6rem minmax(0, 1fr) auto; }
.c-name { font-size: 1.5rem; letter-spacing: -.01em; }
.c-role, .c-year, .c-pub { font-size: .9rem; color: var(--ink-2); }
.c-sum { color: var(--ink-2); }
.c-link { text-decoration: none; font-size: .95rem; }
.press-table .row { grid-template-columns: 3.5rem 11rem minmax(0, 1fr); }
.c-title { text-decoration: none; font-size: 1.1rem; line-height: 1.35; }
.c-title:hover, .c-link:hover { text-decoration: underline; }
.c-title .ic { margin-left: .1rem; color: var(--buoy); }
.c-title:hover .ic, .c-link:hover .ic { transform: translate(2px, -2px); }

.about {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  background: var(--paper-2); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.about-photo { background: var(--c); aspect-ratio: 3 / 4; overflow: hidden; width: 100%; justify-self: center; }
.about-photo [data-parallax] { height: 110%; margin-top: -5%; will-change: transform; }
.about-photo picture, .about-photo img { width: 100%; height: 100%; }
.about-photo img { object-fit: cover; filter: grayscale(1) contrast(1.05); }
.motion .reveal-img > div { transition: clip-path 1.3s var(--ease); }
.motion .reveal-img:not(.in) > div { clip-path: inset(0 0 100% 0); }
.about-text { max-width: 58ch; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p:first-of-type { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; }
.about-text p:last-of-type { font-style: italic; }

.contact { align-items: end; }
.contact h2 { grid-row: 1 / span 2; }
.contact-big { font-size: clamp(1.5rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.contact-big a { text-decoration-thickness: 2px; text-underline-offset: .15em; background: linear-gradient(var(--buoy), var(--buoy)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.contact-big a:hover { background-size: 100% 2px; }
.contact-ig { margin: 0; }
.contact-ig a { text-decoration: none; }
.contact-ig a:hover .ic { transform: translate(2px, -2px); }

.foot { padding: 0 0 2rem; font-size: .85rem; color: var(--ink-2); }
.tide-foot { margin-bottom: 1.25rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 0 var(--gut); }

/* ---------- portfolio ---------- */
.gal-head { padding-bottom: 2rem; }
.gal-head h1 { font-size: clamp(3.5rem, 11vw, 8rem); line-height: .92; letter-spacing: -.04em; font-variation-settings: "opsz" 72; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { position: relative; border: 1px solid var(--ink); background: transparent; padding: .55rem .95rem .5rem; cursor: pointer; font-size: .95rem; overflow: hidden; isolation: isolate; transition: color .35s var(--ease); }
.chip::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; }
.chip span { color: var(--ink-2); margin-left: .25rem; transition: color .35s; }
.chip[aria-pressed="true"] { color: var(--paper); }
.chip[aria-pressed="true"]::before { transform: none; }
.chip[aria-pressed="true"] span { color: rgb(242 238 229 / .7); }
.chip:hover:not([aria-pressed="true"])::before { transform: translateY(88%); }

/* ---------- 404 ---------- */
.nf-main { min-height: 70svh; padding: clamp(4rem, 12vw, 10rem) var(--gut) 4rem; max-width: 60rem; }
.nf-main h1 { font-size: clamp(3.5rem, 10vw, 6rem); letter-spacing: -.035em; line-height: 1; margin-bottom: 1.5rem; }
.nf-main .tide { width: 100%; margin-top: 4rem; }

/* ---------- viewer ---------- */
.viewer {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--night); color: var(--foam);
  display: none; grid-template-rows: minmax(0, 1fr) auto; overscroll-behavior: contain;
}
.viewer[open] { display: grid; }
.motion .viewer[open] { animation: v-in .45s var(--ease) both; }
@keyframes v-in { from { opacity: 0; } }
.motion .viewer[open] .v-img { animation: v-img .6s var(--ease) both; }
@keyframes v-img { from { opacity: 0; transform: scale(.96); } }
.viewer::backdrop { background: var(--night); }
.v-stage { position: relative; min-height: 0; touch-action: pan-y pinch-zoom; overflow: hidden; }
.v-img {
  position: absolute; inset: clamp(.5rem, 2vw, 1.5rem);
  width: calc(100% - 2 * clamp(.5rem, 2vw, 1.5rem)); height: calc(100% - 2 * clamp(.5rem, 2vw, 1.5rem));
  max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.v-img.is-loading { opacity: .35; }
.v-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1.5rem; padding: .75rem var(--gut) calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(236 231 219 / .16); }
.v-cap { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; min-width: 0; }
.v-title { font-style: italic; font-size: 1.1rem; }
.v-kind, .v-count { font-size: .85rem; color: rgb(236 231 219 / .7); margin: 0; }
.v-ctl { display: flex; gap: .25rem; }
.v-btn { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; background: transparent; border: 1px solid rgb(236 231 219 / .28); color: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.v-btn .ic { width: 1.3rem; height: 1.3rem; }
.v-btn:hover { background: rgb(236 231 219 / .1); border-color: rgb(236 231 219 / .6); }
.v-btn:focus-visible { outline-color: var(--buoy-lt); }
body.v-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) { .grid-all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .holdfast, .projects, .press, .contact, .about, .sec-head { grid-template-columns: 1fr; }
  .press { grid-template-rows: none; }
  .press .sec-lede, .press-table { grid-column: 1; grid-row: auto; }
  .contact h2 { grid-row: auto; }
  .about-photo { max-width: 22rem; margin-inline: auto; }
  .about-text { margin-inline: auto; }
  .brow-hit { grid-template-columns: minmax(0, 1fr) 6rem 1.5rem; }
  .brow-what { grid-column: 1; grid-row: 2; }
  .brow-count { grid-column: 2; grid-row: 1 / span 2; }
  .peeks { display: none; }
  .peeks:has(.peek-hit) { display: block; grid-column: 1 / -1; grid-row: 3; height: 5.6rem; margin-top: .6rem; }
  .peeks:has(.peek-hit) .peek-img { width: 4.4rem; }
  .peeks:has(.peek-hit) .peek-img:nth-child(2) { left: 3.4rem; }
  .brow-hit > .ic { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 699px) {
  body { font-size: 1.0625rem; }
  .mast { padding-top: .7rem; padding-bottom: .6rem; font-size: .8rem; letter-spacing: .05em; }
  .mast ul { gap: .1rem .7rem; }
  .grid-home, .grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-all { padding: 0 .35rem; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 6rem); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-ticks { width: 100%; justify-content: space-between; }
  .proj-table .row { grid-template-columns: 1fr; gap: .15rem; }
  .press-table .row { grid-template-columns: auto 1fr; column-gap: .9rem; gap: .15rem .9rem; }
  .press-table .c-title { grid-column: 1 / -1; }
  .v-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .v-count { grid-column: 2; grid-row: 1; }
  .v-ctl { grid-column: 1 / -1; justify-content: space-between; }
  .v-btn { width: 3.25rem; height: 3.25rem; }
  .strip-toggle { bottom: -1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Photo protection: no long-press save on iOS, no drag ghost, no selection highlight */
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
