/* =============================================================
   Mac Sutherland - Portfolio
   Digital marketing & social media manager · water/action sports
   -------------------------------------------------------------
   COLOR & TYPE SYSTEM
   -------------------------------------------------------------
   Aesthetic: dark gallery, elemental ocean. Content reads like
   framed prints on a near-black wall. Three "elements" drive the
   accent palette - Surf, Depth, Sunline - surfaced literally in
   the gradient palette strip and subtly throughout the UI.
   ============================================================= */

:root {
  /* --- Surface / ink --------------------------------------- */
  --bg:            #0E0F11;   /* deep charcoal wall            */
  --bg-2:          #15171A;   /* raised panels / cards         */
  --bg-3:          #1C1F23;   /* hover / inputs                */
  --line:          #2A2E33;   /* hairline borders              */
  --ink:           #F4F6F7;   /* primary text                  */
  --ink-2:         #AEB6BD;   /* secondary text                */
  --ink-3:         #6B747C;   /* muted / labels                */

  /* --- Elemental accents (the three palettes) -------------- */
  --surf:          #5FC9D8;   /* spray / shallow water         */
  --surf-2:        #2A8FA3;
  --depth:         #1B4B66;   /* open-ocean blue               */
  --depth-2:       #0C2E42;
  --sunline:       #E9A14B;   /* low golden light on water     */
  --sunline-2:     #C9742B;
  --foam:          #E8F1F2;   /* near-white spray              */

  /* --- Type ----------------------------------------------- */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Rhythm --------------------------------------------- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 8vw, 108px); }

/* Small editorial label (generous tracking, small caps feel) */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 60ch; }
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 14px;
}
.section-head p { color: var(--ink-2); margin-top: 16px; font-size: clamp(15px, 1.6vw, 18px); }

/* faint scroll-progress accent */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--surf), var(--sunline));
  opacity: .55; pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.nav__brand span { color: var(--surf); }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { border-color: var(--surf); background: color-mix(in srgb, var(--surf) 12%, transparent); }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
/* layered moving wave field behind the hero text */
.hero__waves { position: absolute; inset: 0; z-index: 0; }
.hero__waves svg { position: absolute; bottom: -2px; left: 0; width: 100%; height: 60vh; min-height: 380px; }
.hero__glow {
  position: absolute; z-index: 0; inset: auto 0 -30% 0; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--depth) 55%, transparent), transparent 70%);
  pointer-events: none;
}
/* slow, lazy drift on the two wave layers */
.wave { transform-origin: center bottom; }
.wave--back { animation: drift 18s ease-in-out infinite alternate; }
.wave--front { animation: drift 13s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translateX(-3%) translateY(2px); }
  to   { transform: translateX(3%)  translateY(-6px); }
}
.hero .wrap { position: relative; z-index: 1; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--surf) 25%, transparent); }
.hero h1 {
  font-size: clamp(40px, 8.2vw, 104px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--surf), var(--sunline) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 28px; font-size: clamp(16px, 2vw, 21px); color: var(--ink-2); max-width: 52ch; }
.hero__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--foam); color: #0c0d0f; }
.btn--primary:hover { transform: translateY(-2px); background: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--surf); transform: translateY(-2px); }

/* scroll cue */
.scrollcue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scrollcue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--ink-3); border-radius: 12px; position: relative; }
.scrollcue .mouse::after { content:""; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; background: var(--ink-2); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0%{opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,10px);} }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.stat .num span { color: var(--surf); }
.stat .lbl { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
}

/* ============================================================
   WORK - uniform 4:5 (Instagram) grid
   ============================================================ */
.work__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 1100px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .work__grid { grid-template-columns: 1fr; } }

.tile {
  width: 100%;
  position: relative; border-radius: 0; overflow: hidden;
  border: 0; background: var(--bg-2);
  cursor: pointer; display: block; text-align: left;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -28px rgba(0,0,0,.8); }
.tile__media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.tile__media::before { /* top scrim so the corner name stays readable on light photos */
  content:""; position: absolute; inset: 0 0 auto 0; height: 42%; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
  pointer-events: none;
}
.tile__media::after { /* gentle vignette so captions read */
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72));
  opacity: .85; transition: opacity .45s var(--ease);
}
.tile:hover .tile__media::after { opacity: 1; }
.tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); background: var(--bg-3); }
.tile:hover .tile__img { transform: scale(1.06); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px 18px 20px;
  transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.tile:hover .tile__cap { transform: none; opacity: 1; }
.tile__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--surf); }
.tile__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.tile__metric { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 8px;
  background: color-mix(in srgb, var(--foam) 12%, transparent); border: 1px solid color-mix(in srgb, var(--foam) 18%, transparent);
  padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--foam); }
.tile__metric b { font-size: 14px; }
/* always-visible corner label so the grid reads even at rest */
.tile__rest { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 12px; color: #fff;
  letter-spacing: .04em; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.6); transition: opacity .4s var(--ease); }
.tile:hover .tile__rest { opacity: 0; }

/* ============================================================
   PALETTE / ELEMENTS STRIP
   ============================================================ */
.palette__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px){ .palette__grid { grid-template-columns: 1fr; } }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.swatch__chip { height: 220px; }
.swatch__body { padding: 18px 20px 22px; }
.swatch__name { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.swatch__hex { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.swatch__hex code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px){ .svc__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .svc__grid { grid-template-columns: 1fr; } }
.svc {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  padding: 28px 26px 30px; transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--surf) 35%, var(--line)); background: var(--bg-3); }
.svc__ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surf) 14%, transparent); border: 1px solid color-mix(in srgb, var(--surf) 24%, transparent);
  color: var(--surf); margin-bottom: 18px; }
.svc h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.svc p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   TOP-PERFORMING POSTS - carousel
   ============================================================ */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.carousel__btns { display: flex; gap: 10px; flex-shrink: 0; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); display: grid; place-items: center; transition: border-color .2s var(--ease), background .2s var(--ease); }
.carousel__btn:hover { border-color: var(--surf); background: var(--bg-3); }
@media (max-width: 600px){ .carousel__btns { display: none; } }   /* swipe on mobile */

.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  padding: 4px var(--gutter) 8px; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }
.carousel__track { display: flex; gap: 16px; width: max-content; align-items: flex-start; }

.post { scroll-snap-align: start; flex: 0 0 300px; width: 300px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  color: inherit; text-decoration: none; user-select: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--surf) 35%, var(--line)); box-shadow: 0 20px 50px -28px rgba(0,0,0,.8); }
@media (max-width: 480px){ .post { flex-basis: 80vw; width: 80vw; } }
.post__bar { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.post__avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #07171c;
  background: linear-gradient(135deg, var(--surf), var(--sunline)); }
.post__handle { font-weight: 500; }
.post__bar .plat { margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* thumbnails are pre-cropped to 4:5, so they fill this frame exactly (uniform grid) */
.post__media { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); pointer-events: none; }
.post:hover .post__media img { transform: scale(1.05); }
.post__cap { padding: 12px 13px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.post__foot { padding: 10px 13px 13px; font-size: 13px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; }
.post__foot span { display: inline-flex; align-items: center; gap: 5px; }
.post__foot .post__date { margin-left: auto; color: var(--ink-3); font-size: 12px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px){ .about__grid { grid-template-columns: 1fr; } }
.about__photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about p + p { margin-top: 16px; }
.about p { color: var(--ink-2); font-size: clamp(15px,1.7vw,18px); }
.about h2 { font-size: clamp(26px,4vw,42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
.tools { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.tools span { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 8px 15px; font-size: 13px; color: var(--ink-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); }
@media (max-width: 820px){ .contact__grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(30px,5vw,56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.contact__lead { color: var(--ink-2); margin-top: 18px; font-size: clamp(15px,1.8vw,18px); max-width: 40ch; }
.contact__links { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact__links a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 16px; width: fit-content; }
.contact__links a:hover { color: var(--surf); }
.contact__links .k { color: var(--ink-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; width: 70px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink); padding: 13px 15px; font: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--surf); background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   FOOTER + BACK TO TOP
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 16px; border-radius: 999px; font-size: 13px;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s var(--ease);
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--surf); }

/* ============================================================
   CASE STUDY MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5,6,7,.72); backdrop-filter: blur(6px); }
.modal__panel {
  position: absolute; inset: 0; margin: auto; width: min(820px, calc(100% - 40px));
  max-height: calc(100svh - 60px); height: fit-content; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  animation: pop .4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__hero { height: 280px; position: relative; background-size: cover; background-position: center; }
.modal__hero .badge { position: absolute; left: 22px; bottom: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--foam); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid var(--line); color: #fff; display: grid; place-items: center; }
.modal__close:hover { background: rgba(0,0,0,.8); }
.modal__body { padding: clamp(22px, 4vw, 38px); }
.modal__body h3 { font-size: clamp(24px,3.4vw,34px); font-weight: 600; letter-spacing: -0.02em; }
.modal__body .role { color: var(--surf); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.modal__metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 26px 0; }
@media (max-width: 560px){ .modal__metrics { grid-template-columns: 1fr; } }
.mstat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
.mstat .v { font-size: clamp(24px,3vw,32px); font-weight: 600; letter-spacing: -0.02em; }
.mstat .v span { color: var(--surf); }
.mstat .l { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.modal__block { margin-top: 22px; }
.modal__block h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.modal__block p { color: var(--ink-2); }

/* modal image + video gallery (masonry) */
.modal__gallery { columns: 3; column-gap: 10px; margin-top: 18px; }
@media (max-width: 760px){ .modal__gallery { columns: 2; } }
@media (max-width: 460px){ .modal__gallery { columns: 1; } }
.gitem { position: relative; margin-bottom: 10px; break-inside: avoid; border-radius: 0; overflow: hidden; background: var(--bg-3); cursor: pointer; display: block; width: 100%; border: 0; padding: 0; }
.gitem img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.gitem:hover img { transform: scale(1.05); }
.gitem--video::after { /* play badge */
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.55) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/20px no-repeat;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 50%; transition: background-color .2s var(--ease);
}
.gitem--video:hover::after { background-color: var(--surf); }
.gallery-head { display:flex; align-items:baseline; gap:10px; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.gallery-head h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.gallery-head .cnt { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.collection:first-child .gallery-head { margin-top: 8px; }

/* video play badge on masonry tiles */
.tile__play { position: absolute; z-index: 3; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.5) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/22px no-repeat;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; pointer-events: none; transition: background-color .25s var(--ease); }
.tile:hover .tile__play { background-color: color-mix(in srgb, var(--surf) 85%, transparent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
  background: rgba(6,7,8,.94); backdrop-filter: blur(4px); }
.lightbox.open { display: grid; }
.lb__stage { max-width: min(1200px, 92vw); max-height: 86vh; display: grid; place-items: center; }
.lb__stage img, .lb__stage video { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto;
  border-radius: 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); background: #000; animation: lbpop .35s var(--ease); }
@keyframes lbpop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb__close { position: fixed; top: 20px; right: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.lb__close:hover { background: rgba(255,255,255,.16); }
.lb__nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__count { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--ink-2); font-size: 13px; letter-spacing: .12em; }
@media (max-width: 600px){ .lb__nav { width: 42px; height: 42px; } .lb__prev { left: 8px; } .lb__next { right: 8px; } }

/* ---------- Reveal-on-scroll ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
