/* Debbie Huff portfolio: editorial layout per HANDOFF.md */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap");

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

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --bg: #faf6f2;
  --ink: #1a1612;
  --red: #9c2a2a;
  --red-deep: #7a1f1f;
  --red-soft: #f4e4e2;
  /* Page band / borders: pairs with #fff section surfaces */
  --muted: #ebe2d7;
  --white: #fff;

  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-narrow: 760px;
  --container-default: 1200px;
  --container-wide: 1440px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--muted);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Short pages: keep the site footer at the bottom of the window */
body > main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  max-width: none;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

.container {
  width: 100%;
  max-width: var(--container-default);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: var(--container-default);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--full {
  max-width: none;
  padding-inline: 0;
}

.prose-narrow {
  max-width: none;
}

.page-desc {
  max-width: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(26, 22, 18, 0.92);
}

.tagline {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(235, 226, 215, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--red);
  text-decoration: none;
}

.logo:hover {
  color: var(--red-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  max-width: none;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--muted);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.hero-wrap {
  position: relative;
  min-height: min(72vh, 720px);
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #2a2420;
  background-size: cover;
  background-position: center;
}

body[data-category="events"] .hero-bg {
  background-position: center 14%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 22, 18, 0.85) 0%,
    rgba(26, 22, 18, 0.35) 45%,
    rgba(26, 22, 18, 0.2) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 48px);
  padding-top: 6rem;
}

.hero-inner h1 {
  color: var(--white);
  margin: 0 0 0.75rem;
  max-width: none;
}

.hero-inner .tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn--ghost {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-color: transparent;
}

.hero-actions .btn--ghost:hover {
  background: var(--white);
  border-color: transparent;
  color: var(--red-deep);
}

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

body[data-page="home"] #work.section {
  padding-bottom: clamp(0.5rem, 1.2vw, 0.9rem);
}

.section--muted {
  background: var(--muted);
}

.section--white {
  background: var(--white);
}

.section-title {
  margin: 0 0 0.5rem;
}

.section-lede {
  margin: 0 0 2rem;
  color: rgba(26, 22, 18, 0.78);
}

/* Intro band */
.intro-copy .intro-title {
  margin-top: 0;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.portrait-slot {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.portrait-slot--about {
  max-width: 400px;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(235, 227, 214, 0.9);
  box-shadow: 0 8px 32px rgba(26, 22, 18, 0.08);
}

.portrait-slot--about .portrait-img {
  border-radius: 12px;
}

.portrait--placeholder {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  background: var(--red);
  border: 1px solid rgba(235, 227, 214, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1.4;
}

.portrait-slot--about .portrait--placeholder {
  border-radius: 12px;
}

.portrait--placeholder code {
  font-size: 0.78rem;
  word-break: break-all;
}

.portrait-slot.is-error .portrait-img {
  display: none;
}

.portrait-slot:not(.is-error) .portrait--placeholder {
  display: none;
}

.intro-copy .prose-narrow {
  margin-bottom: 1rem;
}

.intro-copy .prose-narrow:last-child {
  margin-bottom: 0;
}

/* Awards: intro + horizontal scrolling logos (all left-aligned) */
.awards-section {
  text-align: left;
}

.awards-section .section-title,
.awards-section .awards-lede {
  text-align: left;
}

.awards-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .awards-layout {
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .awards-column--intro {
    flex: 0 1 min(380px, 36%);
  }

  .awards-marquee {
    flex: 1;
    min-width: 0;
  }
}

.awards-column--intro .section-title {
  margin-bottom: 0.75rem;
}

.awards-lede {
  margin: 0 0 1.5rem;
}

.awards-column--intro {
  text-align: left;
}

.awards-resume {
  margin: 0;
  padding: 0;
  border: none;
  text-align: left;
}

/* Horizontal marquee */
.awards-marquee {
  position: relative;
  width: 100%;
}

.awards-marquee-viewport {
  overflow: hidden;
  width: 100%;
  min-height: 168px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--muted);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: no-preference) {
  .awards-marquee--interactive .awards-marquee-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .awards-marquee--interactive .awards-marquee-viewport::-webkit-scrollbar {
    display: none;
  }

  .awards-marquee--interactive.is-dragging .awards-marquee-viewport {
    cursor: grabbing;
  }

  .awards-marquee--interactive.is-dragging,
  .awards-marquee--interactive.is-dragging * {
    user-select: none;
  }
}

.awards-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  will-change: scroll-position;
}

@media (prefers-reduced-motion: reduce) {
  .awards-marquee-track {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .awards-marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .awards-marquee-list--clone {
    display: none;
  }

  .awards-marquee-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding-inline: 0.25rem;
  }
}

.awards-marquee-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.award-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  box-sizing: border-box;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  min-height: 120px;
  padding: 0.9rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 10px;
  flex-shrink: 0;
}

.award-tile .award-caption {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.award-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 46px;
  min-height: 46px;
  width: 100%;
}

.award-logo img {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.award-logo--wide img {
  height: 40px;
  max-height: 40px;
}

.award-logo--b2 img {
  height: 46px;
  max-height: 46px;
}

.award-caption {
  margin: 0;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(26, 22, 18, 0.78);
  max-width: none;
}

/* Work tiles */
.work-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .work-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-tiles--home {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) and (min-width: 640px) {
  .work-tiles--home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .work-tiles--home {
    grid-template-columns: 1fr;
  }
}

.work-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--muted);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .work-tile {
    transition: none;
  }
}

.work-tile:hover {
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.08);
  transform: translateY(-2px);
}

.work-tile-thumb {
  aspect-ratio: 4 / 3;
  background: var(--muted);
  overflow: hidden;
}

.work-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-tile-body {
  padding: 1rem 1.1rem 1.25rem;
}

.work-tile-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  max-width: none;
}

.work-tile-meta {
  font-size: 0.9rem;
  color: rgba(26, 22, 18, 0.65);
  margin: 0;
  max-width: none;
}

/* Featured cases */
.featured-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .featured-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  width: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.case-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.case-card-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card-body h3 {
  margin: 0 0 0.5rem;
}

.case-card-body p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.95rem;
  color: rgba(26, 22, 18, 0.75);
}

.stats-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}

@media (min-width: 900px) {
  .stats-band {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat {
  width: 100%;
  padding: 1rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--red);
  margin: 0 0 0.25rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(26, 22, 18, 0.72);
  margin: 0;
  max-width: none;
}

.site-footer {
  padding-block: 2.5rem;
  background: var(--white);
  border-top: 1px solid rgba(26, 22, 18, 0.08);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(26, 22, 18, 0.65);
  max-width: none;
}

/* Gallery */
.gallery-root {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gallery-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 0 0 1.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(26, 22, 18, 0.16);
}

.gallery-section-title[id^="sub-featured-work-"] {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
}

.case-gallery-block .gallery-section-title {
  margin-bottom: 1.6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Correct source orientation for Conference Giveaways img-3197. */
.gallery-grid .gallery-item img[src*="conference-giveaways/img-3197.jpg"] {
  transform: rotate(-90deg) scale(1.34);
  transform-origin: center;
  object-fit: cover;
}

/* Lift this Engagement video thumbnail upward in its crop. */
body[data-category="engagement"] .gallery-grid .gallery-item img[src*="engagement/img-8423.jpg"] {
  object-position: center 7%;
}

.gallery-item--video .thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  mask: radial-gradient(circle at 58% 50%, #000 0 36%, transparent 37%);
  -webkit-mask: radial-gradient(circle at 58% 50%, #000 0 36%, transparent 37%);
}

.thumb-wrap {
  position: relative;
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item .thumb-wrap img,
.gallery-item .thumb-wrap video {
  border-radius: 8px;
}

.gallery-caption {
  font-size: 0.8rem;
  color: rgba(26, 22, 18, 0.65);
  margin-top: 0.35rem;
  text-align: left;
}

.js-reveal {
  opacity: 0;
  transform: translateY(10px);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 12, 10, 0.76);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(clamp(1rem, 4vw, 2rem) + env(safe-area-inset-bottom, 0));
  padding-top: calc(clamp(3rem, 5vw, 3.5rem) + env(safe-area-inset-top, 0));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}

.lightbox.lightbox--no-transition {
  transition: none !important;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
    backdrop-filter: none;
  }
}

.lightbox-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.25rem);
  width: 100%;
  max-width: min(calc(100vw - 7rem), 1180px);
  min-height: 0;
}

.lightbox-frame-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.lightbox-frame {
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(88vw, 1080px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(12, 10, 8, 0.18),
    0 24px 48px rgba(12, 10, 8, 0.28);
}

.lightbox-stage {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* Tiny assets: minimum mat for layout; sub‑480px longest side gets upscale (blur) via --scale-up + JS. */
.lightbox-inner {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(94vw, 1080px);
  min-width: min(260px, calc(100vw - 8.5rem));
  min-height: clamp(88px, 18vh, 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

/* Same max dimensions as other lightbox media (matches .lightbox-inner img / frame width). */
.lightbox-inner--scale-up {
  width: min(88vw, 1080px);
  height: min(76vh, 720px);
  max-width: min(88vw, 1080px);
  max-height: min(76vh, 720px);
}

.lightbox-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 720px);
  margin: 0 auto;
}

.lightbox-inner--scale-up img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  max-height: none;
  margin: 0;
}

.lightbox-inner video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 720px);
  background: #000;
}

.lightbox-inner--scale-up video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  max-height: none;
}

.lightbox-close {
  position: absolute;
  top: calc(clamp(0.85rem, 2.5vw, 1.25rem) + env(safe-area-inset-top, 0));
  right: calc(clamp(0.85rem, 3vw, 1.5rem) + env(safe-area-inset-right, 0));
  z-index: 201;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
}

.lightbox-close:active {
  transform: scale(0.96);
}

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  align-self: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(156, 42, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.96);
}

.lightbox-caption-wrap {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.85rem 1.2rem 1.05rem;
  background: linear-gradient(
    to bottom,
    rgba(244, 242, 238, 0.65),
    var(--white)
  );
  border-top: 1px solid var(--muted);
}

.lightbox-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.4rem;
}

.lightbox-section,
.lightbox-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(26, 22, 18, 0.62);
}

.lightbox-section {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lightbox-count {
  font-weight: 500;
  white-space: nowrap;
}

.lightbox-caption-wrap[hidden] {
  display: none !important;
}

.lightbox-caption {
  margin: 0;
  max-width: none;
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(26, 22, 18, 0.78);
  text-align: left;
}

.lightbox-cta {
  margin: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .lightbox-caption {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .lightbox {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0));
  }

  .lightbox-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.5rem;
    max-width: 100%;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
  }

  .lightbox-frame-stack {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .lightbox-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .lightbox-inner {
    min-width: min(220px, calc(100vw - 1.25rem));
    min-height: clamp(72px, 14vh, 160px);
  }

  .lightbox-inner--scale-up {
    width: min(100%, min(88vw, 1080px));
    height: min(68vh, 640px);
    max-width: min(100%, min(88vw, 1080px));
    max-height: min(68vh, 640px);
  }

  .lightbox-inner img,
  .lightbox-inner video {
    max-height: min(68vh, 640px);
  }

  .lightbox-inner--scale-up img,
  .lightbox-inner--scale-up video {
    max-height: none;
  }
}

/* Contact */
.contact-page {
  position: relative;
  padding-block: clamp(2.75rem, 9vw, 5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    var(--muted) 28%,
    var(--muted) 100%
  );
}

.contact-page__shell {
  max-width: min(100%, 52rem);
  margin-inline: auto;
}

.contact-page__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
}

.contact-page__intro h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.contact-page__tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .contact-page__tiles {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.contact-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(235, 226, 215, 0.9);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(26, 22, 18, 0.04), 0 16px 48px rgba(26, 22, 18, 0.07);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.contact-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--red);
  opacity: 0.85;
}

.contact-tile--linkedin::before {
  background: #0a66c7;
}

.contact-tile:hover {
  border-color: rgba(156, 42, 42, 0.22);
  box-shadow: 0 1px 0 rgba(26, 22, 18, 0.05), 0 20px 56px rgba(26, 22, 18, 0.1);
  transform: translateY(-3px);
}

.contact-tile--linkedin:hover {
  border-color: rgba(10, 102, 199, 0.25);
}

.contact-tile:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.contact-tile--linkedin:focus-visible {
  outline-color: #0a66c7;
}

.contact-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-tile--linkedin .contact-tile__icon {
  background: rgba(10, 102, 199, 0.1);
  color: #0a66c7;
}

.contact-tile--resume .contact-tile__icon {
  background: var(--red-soft);
  color: var(--red);
}

.contact-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.contact-tile__label {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-tile__text {
  font-size: 0.96875rem;
  line-height: 1.62;
  font-weight: 400;
  color: rgba(26, 22, 18, 0.78);
}

.contact-tile__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--red);
}

.contact-tile--linkedin .contact-tile__go {
  color: #0a66c7;
}

.contact-tile__arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.contact-tile:hover .contact-tile__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .contact-tile {
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }

  .contact-tile:hover {
    transform: none;
  }

  .contact-tile:hover .contact-tile__arrow {
    transform: none;
  }
}

/* Case study */
.case-hero {
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  background-color: var(--muted);
}

/* Keep attendee faces visible in Hills case hero across viewport sizes. */
.case-hero--hills-academy {
  background-position: center 15%;
}

.case-body {
  padding-block: 3rem;
  background: var(--white);
}

.case-body h1 {
  margin-top: 0;
}

.case-body .page-desc {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.35rem 0 1.85rem;
  padding: 0.85rem 1rem 0.85rem 1.2rem;
  border-left: 4px solid var(--red);
  background: linear-gradient(
    90deg,
    var(--red-soft) 0%,
    rgba(250, 246, 242, 0.65) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 0 10px 10px 0;
  box-shadow: 0 1px 0 rgba(26, 22, 18, 0.06);
}

.case-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* Only the first section head after the skim band; not e.g. Image gallery h2 */
.case-body .container--narrow > h2:first-of-type {
  margin-top: 0;
}

.case-skim-trail {
  margin-bottom: 3.5rem;
}

.case-skim {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

@media (min-width: 720px) {
  .case-skim {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.case-gallery-jump {
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
}

.case-gallery-jump a {
  font-weight: 600;
}

#gallery {
  scroll-margin-top: 5.5rem;
}

.case-gallery-heading {
  margin-bottom: 1rem;
}

/* One .container parent only — avoid nested .container on this row (double padding). */
.case-back-links {
  margin: 2rem 0 0;
}

.case-callout {
  background: var(--muted);
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: 8px;
  padding: 1.05rem 1.15rem;
  margin: 0;
}

.case-callout h3.case-callout__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.45rem;
  line-height: 1.2;
}

.case-callout p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(26, 22, 18, 0.9);
}

.case-lede {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(26, 22, 18, 0.88);
  margin: 0.35rem 0 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  border-left: 3px solid var(--red);
  background: linear-gradient(
    90deg,
    var(--red-soft) 0%,
    rgba(244, 228, 226, 0) 85%
  );
  border-radius: 0 6px 6px 0;
}

.placeholder-callout {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: rgba(26, 22, 18, 0.85);
}

.timeline-item {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: 10px;
  background: var(--white);
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
}

.timeline-meta {
  font-size: 0.84rem;
  color: rgba(26, 22, 18, 0.66);
  margin: 0 0 0.85rem;
  padding: 0.32rem 0.55rem;
  background: rgba(235, 226, 215, 0.48);
  border-radius: 6px;
  border: 1px solid rgba(26, 22, 18, 0.08);
  display: inline-block;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  margin-bottom: 1rem;
}

.experience-skim {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.experience-skim li {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(26, 22, 18, 0.78);
  background: rgba(156, 42, 42, 0.08);
  border: 1px solid rgba(156, 42, 42, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.about-section--awards {
  background: #fff;
  border: 2px solid rgba(156, 42, 42, 0.35);
  box-shadow: 0 10px 28px rgba(26, 22, 18, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.2rem;
}

.about-section--awards h2 {
  color: var(--red-deep);
  margin-top: 0;
}

.about-section--awards ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-section--awards li {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.about-section--awards li:last-child {
  margin-bottom: 0;
}

/* Work index: sections TOC below hero (inherits page background; colors scoped here) */
.work-index-toc-band {
  padding-top: clamp(2.15rem, 4.75vw, 3rem);
  padding-bottom: clamp(0.85rem, 2.25vw, 1.4rem);
}

body[data-page="home"] .work-index-toc-band {
  padding-top: clamp(0.2rem, 0.8vw, 0.45rem);
}

.work-index-toc-band .work-toc-slot {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(1.35rem, 2.75vw, 1.85rem);
  border-top: none;
  border-bottom: 1px solid rgba(26, 22, 18, 0.12);
  outline: none;
}

.work-index-toc-band .work-toc-slot:focus-visible {
  box-shadow: 0 0 0 2px rgba(156, 42, 42, 0.4);
  border-radius: 4px;
}

.work-index-toc-band .work-toc {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.work-index-toc-band .work-toc-heading {
  color: rgba(26, 22, 18, 0.42);
}

.work-index-toc-band .work-toc-list {
  justify-content: center;
  margin-top: 0.35rem;
}

.work-index-toc-band .work-toc-list > li + li::before {
  color: rgba(156, 42, 42, 0.32);
}

body[data-page="category"] .work-index-toc-band .work-toc {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  padding-inline: clamp(1.25rem, 3.5vw, 2.5rem);
}

body[data-page="category"] .work-index-toc-band .work-toc-list {
  justify-content: center;
  margin-top: 0.35rem;
}

body[data-page="home"] .work-index-toc-band .work-toc {
  max-width: 46rem;
  padding-inline: clamp(1.25rem, 3.5vw, 2.5rem);
}

.work-index-toc-band .work-toc-link {
  color: rgba(26, 22, 18, 0.82);
  text-decoration-color: rgba(156, 42, 42, 0.28);
}

.work-index-toc-band .work-toc-link:hover {
  color: var(--red-deep);
  text-decoration-color: rgba(156, 42, 42, 0.55);
}

.work-index-toc-band .work-toc-link.is-active {
  color: var(--red-deep);
  text-decoration-color: var(--red);
}

.work-index-toc-band .work-toc-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.work-index-toc-band .work-toc-link--subcategory {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.45vw, 1rem);
  font-weight: 500;
  color: rgba(26, 22, 18, 0.72);
}

.work-index-toc-band .work-toc-link--subcategory::before {
  content: "↳ ";
  color: rgba(156, 42, 42, 0.6);
}

.work-index-toc-band .work-toc-link--subcategory:hover {
  color: var(--red-deep);
}

.work-toc-slot {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.35rem, 3vw, 1.85rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
}

.work-toc-slot:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  border-radius: 4px;
}

#work-index-nav {
  scroll-margin-top: 5.5rem;
}

.work-toc-heading {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}

.work-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  align-items: baseline;
  row-gap: 0.5rem;
}

.work-toc-list > li {
  display: inline-flex;
  align-items: baseline;
}

.work-toc-list > li + li::before {
  content: "·";
  margin: 0 0.55rem;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}

.work-toc-link {
  margin: 0;
  padding: 0.12rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.work-toc-link:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.work-toc-link.is-active {
  color: var(--white);
  font-weight: 600;
  text-decoration-color: rgba(244, 228, 226, 0.95);
}

.work-toc-link:focus-visible {
  outline: 2px solid rgba(244, 228, 226, 0.95);
  outline-offset: 3px;
  border-radius: 2px;
}

.work-category-anchor {
  scroll-margin-top: 6.5rem;
}

body[data-page="work-index"]
  #work-index-sections
  > .section.work-category-anchor:first-child {
  padding-top: clamp(2.5rem, 5.5vw, 4rem);
}

.work-category-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

@media (min-width: 900px) {
  .work-category-layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.work-category-copy .section-title {
  margin-bottom: 0.35rem;
}

.work-category-desc {
  margin-bottom: 0.75rem;
}

.work-category-count {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(26, 22, 18, 0.55);
}

.work-visual-hint--with-actions {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 22, 18, 0.1);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(26, 22, 18, 0.52);
  max-width: 38ch;
}

.work-category-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.work-category-hero {
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 22, 18, 0.12);
  aspect-ratio: 16 / 10;
  background: var(--muted);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.work-category-hero:hover {
  border-color: rgba(156, 42, 42, 0.35);
  box-shadow: 0 12px 36px rgba(26, 22, 18, 0.12);
}

.work-category-hero:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.work-category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .work-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-preview-cell {
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(26, 22, 18, 0.1);
  aspect-ratio: 4 / 3;
  background: var(--muted);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.work-preview-cell:hover {
  border-color: rgba(156, 42, 42, 0.35);
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.1);
}

.work-preview-cell:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.work-preview-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

#work-index-sections
  .work-preview-cell[data-gallery-key="conference-giveaways"][data-gallery-index="0"]
  img {
  transform: rotate(-90deg) scale(1.34);
  transform-origin: center;
}

.work-category-empty {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(26, 22, 18, 0.6);
}
