/* =========================================================================
   Davis Dog Sports Media — styles
   White, editorial, gallery-first. Monochrome (brand ink only). Reference look:
   stevecarty.com (white canvas, full-bleed justified grid, minimal chrome).
   ========================================================================= */

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --ink: #1c1c1a;             /* official brand ink */
  --ink-soft: #5b5b58;
  --line: rgba(0, 0, 0, 0.10);
  --accent: #c25a2c;          /* Field orange — the single accent (nav, overlay, focus) */
  --accent-rgb: 194, 90, 44;  /* same, for rgba() scrims */
  --accent-ink: #ffffff;

  --header-h: 76px;
  --maxw: 1280px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Archivo", var(--font-sans);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* Light image-protection: block drag-to-save; the right-click menu is handled
   in js/site.js (replaced by a copyright notice over images). */
.tile img, .lightbox__img {
  -webkit-user-drag: none;
  user-select: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Screen-reader-only: visually hidden but readable by assistive tech + crawlers.
   Used for page <h1>s where the visible heading is a logo/stylized element. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Home intro (a single small H1 above the gallery; SEO, not chrome) -- */
.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) clamp(16px, 2.5vw, 24px);
  text-align: center;
}
.intro__title {
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  font-weight: 600;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
}
@media (max-width: 560px) { .brand__logo { height: 32px; } }

/* Navigation — small, Title-case, gray with an accent underline on the
   active/hovered item (stevecarty.com). */
.primary-nav { display: flex; align-items: center; gap: 2px; }
.nav-group { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink-soft);            /* grayed-out by default, Carty-style */
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-current::after,
.nav-group.is-filtered .nav-link--trigger::after { transform: scaleX(1); }
.nav-link.is-current,
.nav-group.is-filtered .nav-link--trigger { color: var(--accent); }

.nav-caret { width: 9px; height: 6px; transition: transform 0.25s var(--ease); }
.nav-group.is-open .nav-caret { transform: rotate(180deg); }

/* Work dropdown panel */
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 224px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 10;
}
/* Invisible hover "bridge" spanning the gap between the trigger and the panel,
   so the menu stays open while the mouse travels down to the sublinks (the gap
   would otherwise drop :hover and close it). Active only when the menu is open
   (it inherits the panel's pointer-events). */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-group.is-open .nav-menu,
.nav-group:focus-within .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-menu__link:hover { background: var(--bg-soft); color: var(--accent); }
.nav-menu__link.is-active { color: var(--accent); font-weight: 500; }
.nav-menu__link--out { color: var(--ink); }
.nav-menu__link--out svg { width: 12px; height: 12px; opacity: 0.55; flex: none; }
.nav-menu__sep { height: 1px; background: var(--line); margin: 6px 6px; }

/* Open the dropdown on hover for pointer devices (desktop). */
@media (min-width: 861px) and (hover: hover) {
  .nav-group:hover .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav-group:hover .nav-caret { transform: rotate(180deg); }
}

.nav-socials { display: inline-flex; align-items: center; gap: 12px; margin-left: 16px; }
.nav-social { display: inline-flex; align-items: center; color: var(--ink-soft); }
.nav-social svg { width: 17px; height: 17px; }
.nav-social:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 4vw, 40px) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-open .primary-nav { opacity: 1; transform: none; pointer-events: auto; }

  .nav-group { position: static; }
  .nav-link { padding: 14px 4px; font-size: 17px; }
  .nav-link::after { left: 4px; right: auto; width: 22px; }
  /* The Work trigger becomes a static label; its submenu is always expanded
     and indented beneath it (no tap-to-open accordion needed). */
  .nav-link--trigger { width: 100%; justify-content: flex-start; gap: 8px; pointer-events: none; }
  .nav-caret { display: none; }
  .nav-menu {
    position: static;
    opacity: 1; transform: none; pointer-events: auto;
    min-width: 0;
    padding: 0 0 8px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .nav-menu__link { padding: 11px 4px 11px 18px; font-size: 16px; justify-content: flex-start; }
  .nav-menu__link--out { justify-content: flex-start; gap: 8px; }
  .nav-menu__sep { margin: 6px 18px; }
  .nav-socials { padding: 16px 4px; gap: 20px; margin-left: 0; }

  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---- Section scaffolding ----------------------------------------------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.section__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section__kicker {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 14px;
}
.section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); margin: 18px 0 0; font-size: 1.1rem; }
.section--soft { background: var(--bg-soft); }

/* ---- Work / gallery (full-bleed, the landing) -------------------------- */
.work { padding: 0 0 clamp(56px, 8vw, 110px); }

/* Full viewport width; the equal edge padding is applied in js/gallery.js
   (the tiles are absolutely positioned, so it's baked into the layout math). */
.gallery {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.gallery__error {
  padding: 40px 16px;
  text-align: center;
  color: var(--ink-soft);
}
.gallery__empty {
  padding: clamp(48px, 9vw, 110px) 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.gallery__empty a { color: var(--accent); font-weight: 600; }
.gallery__empty a:hover { text-decoration: underline; }

.tile {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  will-change: transform, width, height;
  /* the elegant "settle" when the grid reflows */
  transition: transform 0.5s var(--ease), width 0.5s var(--ease),
              height 0.5s var(--ease), opacity 0.6s var(--ease);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover overlay (stevecarty.com style): instead of a zoom, reveal a tint with
   a centered "+" and a bottom caption. Built in js/gallery.js. */
.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 1.6vw, 22px);
  /* Field-orange scrim: pools at the bottom (caption legible) and fades to
     clear at the top, so the photo never looks underexposed. */
  background: linear-gradient(
    to top,
    rgba(var(--accent-rgb), 0.62) 0%,
    rgba(var(--accent-rgb), 0.30) 45%,
    rgba(var(--accent-rgb), 0.06) 75%,
    rgba(var(--accent-rgb), 0) 100%
  );
  opacity: 0;
  pointer-events: none;                  /* clicks fall through to the tile */
  transition: opacity 0.35s var(--ease);
}
.tile:hover .tile__overlay,
.tile:focus-visible .tile__overlay { opacity: 1; }

/* The centered plus mark — two hairlines via pseudo-elements. */
.tile__plus {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.35s var(--ease);
}
.tile:hover .tile__plus,
.tile:focus-visible .tile__plus { transform: translate(-50%, -50%) scale(1); }
.tile__plus::before,
.tile__plus::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
}
.tile__plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.tile__plus::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }

.tile__cap {
  position: relative;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(6px);
  transition: transform 0.35s var(--ease);
}
.tile:hover .tile__cap,
.tile:focus-visible .tile__cap { transform: translateY(0); }

/* ---- About (dark full-bleed hero — stevecarty.com/about) ---------------- */
/* Full-width black band: large image bleeds to the left/top/bottom edges,
   white bio on the right. The big auto-counting years number is the focal
   point. The source is landscape, so it's cover-cropped + centered to keep
   Chris and the lens in frame. */
.about-hero {
  background: var(--ink);
  color: #fff;
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(560px, 82vh, 920px);
}
.about-hero__media { overflow: hidden; background: #000; }
.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 88px);
}
.about-hero .section__kicker { color: rgba(255, 255, 255, 0.5); }
.about-hero__copy { margin-top: clamp(20px, 3vw, 32px); max-width: 56ch; }
.about-hero__copy p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.about-hero__copy p + p { margin-top: 1.1em; }
.about-hero__copy strong { color: #fff; font-weight: 600; }

/* Auto-counting "N years" headline — number is the standout focal point. */
.about__years { margin: 0; display: block; }
.about__years-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.about__years-text {
  display: block;
  margin-top: 0.18em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
  max-width: 18ch;
}

@media (max-width: 760px) {
  .about-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .about-hero__media { height: 58vh; min-height: 320px; }
  .about-hero__body { padding: clamp(32px, 9vw, 56px) clamp(20px, 6vw, 40px); }
}

/* ---- Selected coverage (credentials) ------------------------------------ */
.about__credits {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.about__credits-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.credits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.credit {
  background: var(--bg);
  padding: 20px clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.credit__event {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.credit__detail {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .credits { grid-template-columns: 1fr; }
}

/* ---- Services ----------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(24px, 3vw, 38px);
  transition: background 0.25s var(--ease);
}
.service:hover { background: var(--bg-soft); }
.service__no {
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.service h3 { font-size: 1.35rem; margin: 12px 0 10px; }
.service p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.note a { color: var(--accent); font-weight: 600; }
.note a:hover { text-decoration: underline; }

/* ---- Licensing ---------------------------------------------------------- */
/* Same hairline-grid treatment as Services, minus the numbered index. */
.licensing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.license {
  background: var(--bg);
  padding: clamp(24px, 3vw, 38px);
  transition: background 0.25s var(--ease);
}
.license:hover { background: var(--bg-soft); }
.license h3 { font-size: 1.35rem; margin: 0 0 10px; }
.license p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.licensing__foot {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.licensing__copyright {
  margin: 0;
  max-width: 70ch;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Licensing detail: "priced by usage" prose beside a "what moves the price"
   list. Two columns on desktop, stacked on narrow screens. */
.lic-detail {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 760px) {
  .lic-detail { grid-template-columns: 1fr; gap: 32px; }
}
.lic-detail h3 { font-size: 1.5rem; margin: 0 0 14px; }
.lic-detail p { color: var(--ink-soft); margin: 0; }
.lic-detail p + p { margin-top: 1.1em; }
.lic-detail__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.lic-factors { list-style: none; margin: 0; padding: 0; }
.lic-factors li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.lic-factors li:last-child { border-bottom: 0; }
.lic-factors strong { color: var(--ink); font-weight: 600; }

/* Primary CTA button — ink fill, accent on hover (single-accent system). */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--accent); }

/* ---- Contact ------------------------------------------------------------ */
.contact__inner { text-align: center; max-width: 720px; }
.contact h2 { font-size: clamp(2rem, 6vw, 4rem); }
.contact__blurb { color: var(--ink-soft); margin: 16px auto 0; max-width: 48ch; }
.contact__email {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.contact__email:hover { color: var(--accent); }
/* On small phones the email is one long unbreakable token — shrink it a touch
   so it never overflows the viewport (e.g. iPhone SE widths). Desktop/tablet
   keep the clamp above. */
@media (max-width: 420px) {
  .contact__email { font-size: 1.15rem; }
}
.contact__socials {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;                 /* pills wrap to a 2nd row on phones instead of overflowing */
  justify-content: center;
  gap: 14px;
}
.contact__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact__socials a:hover { border-color: var(--ink); color: var(--accent); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(16px, 4vw, 40px);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
}
.site-footer a:hover { color: var(--accent); }
.site-footer__nav {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.site-footer__nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

/* ---- Right-click copyright notice -------------------------------------- */
.copyright-tip {
  position: fixed;
  z-index: 400;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.copyright-tip.is-shown { opacity: 1; transform: none; }

/* ---- Analytics opt-out toast (shown on ?noanalytics=1/0) --------------- */
.na-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  transform: translate(-50%, 8px);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.na-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.na-toast__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);             /* "back on" = accent */
}
.na-toast--off .na-toast__dot { background: #36a567; }  /* "off" = green */

/* ---- Lightbox (white, editorial — stevecarty.com viewer) --------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

/* Top toolbar: counter on the left, tools on the right. */
.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(14px, 3vw, 28px);
  z-index: 2;
}
.lightbox__lead { display: inline-flex; align-items: center; gap: 6px; }
.lightbox__count {
  font-family: var(--font-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Play / pause: the fill triangle and the stroked pause bars share a slot;
   which one shows is driven by aria-pressed (playing). */
.lightbox__play .icon-play { fill: currentColor; stroke: none; }
.lightbox__play .icon-pause { display: none; }
.lightbox__play[aria-pressed="true"] .icon-play { display: none; }
.lightbox__play[aria-pressed="true"] .icon-pause { display: block; }
.lightbox__tools { display: inline-flex; align-items: center; gap: 4px; }
.lightbox__tool {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lightbox__tool:hover { color: var(--ink); background: var(--bg-soft); }
.lightbox__tool[aria-pressed="true"] { color: var(--ink); background: var(--bg-soft); }
.lightbox__tool svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stage + image. The photo fades out, the src swaps, then it fades back in
   (render() in js/gallery.js) — a simple one-at-a-time fade between photos. */
.lightbox__stage {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  padding: 76px clamp(14px, 6vw, 80px) 56px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 1.8s var(--ease); /* fade IN (this state) — slower */
}
.lightbox__img.is-fading {
  opacity: 0;
  transition: opacity 1.1s var(--ease); /* fade OUT (this state) */
}

/* Info panel — top-right, under the toolbar (stevecarty.com style). Toggled by
   the info button; fades in/out. */
.lightbox__cap {
  position: absolute;
  top: 76px;
  right: clamp(14px, 3vw, 28px);
  max-width: min(320px, 42vw);
  text-align: left;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 2;
}
.lightbox__cap.is-shown { opacity: 1; visibility: visible; }

/* Prev / next arrows */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  z-index: 2;
}
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--ink); }
.lightbox__prev { left: clamp(6px, 2vw, 22px); }
.lightbox__next { right: clamp(6px, 2vw, 22px); }
@media (max-width: 560px) {
  .lightbox__bar { height: 56px; }
  .lightbox__stage { padding: 64px 44px 48px; }
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 32px; }
}

/* ---- Share modal (stevecarty.com style) --------------------------------
   A white card centered over a dim scrim, raised above the lightbox (z 300).
   Opened/closed by initShare() in js/gallery.js. */
.share {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 28, 26, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.share.is-open { opacity: 1; pointer-events: auto; }
.share__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border-radius: 14px;
  padding: 34px 32px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(8px);
  transition: transform 0.25s var(--ease);
}
.share.is-open .share__panel { transform: translateY(0); }
.share__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.share__close:hover { color: var(--ink); background: var(--bg-soft); }
.share__close svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.share__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 22px;
  color: var(--ink);
}
.share__field {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #e2e2df;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.share__url {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  height: 46px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.share__url:focus { outline: none; }
.share__copy {
  flex: 0 0 auto;
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #e2e2df;
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.share__copy:hover { color: var(--ink); background: var(--bg-soft); }
.share__copy svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.share__copy .icon-copied { display: none; color: var(--accent); }
.share__copy.is-copied .icon-copy { display: none; }
.share__copy.is-copied .icon-copied { display: block; }
.share__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.share-btn {
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.15s var(--ease), filter 0.2s var(--ease);
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.share-btn--li    { background: #0a66c2; }
.share-btn--email { background: #5b5b58; }
@media (max-width: 560px) {
  .share__panel { padding: 30px 22px 30px; }
  .share__buttons { gap: 12px; }
}

/* ---- Ken Burns (slow auto-zoom for full-bleed band photos) -------------- */
/* Reusable: add .kenburns to any frame that clips its image
   (overflow:hidden + img object-fit:cover, like .about__portrait). The image
   eases slowly in and back out on a long loop — the stevecarty.com look.
   Disabled below for visitors who prefer reduced motion. */
.kenburns { overflow: hidden; }
.kenburns img {
  transform-origin: center;
  will-change: transform;
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.14) translate(-2%, -1.5%); }
}

/* ---- Hover zoom (slow zoom-in while hovered) ---------------------------- */
/* Reusable: add .hover-zoom to any frame that clips its image (overflow:hidden
   + img object-fit:cover). The image eases slowly in on hover — the
   stevecarty.com look on his sideways about photo. Gallery .tile images use
   the same timing/scale (defined above). Not for .kenburns frames, which
   auto-zoom on their own. */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 1.4s var(--ease); }
.hover-zoom:hover img,
.hover-zoom:focus-visible img { transform: scale(1.07); }

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .tile,
  .tile img,
  .lightbox,
  .lightbox__img,
  .lightbox__cap { transition: opacity 0.2s linear !important; }
  .kenburns img { animation: none; transform: none; }
  /* overlay still fades in, but its plus/caption don't slide/scale */
  .tile__plus { transform: translate(-50%, -50%) !important; }
  .tile__cap { transform: none !important; }
  /* no hover growth when motion is reduced */
  .hover-zoom:hover img, .hover-zoom:focus-visible img { transform: none; }
}
