:root {
  --bg: #050404;
  --bg-2: #0b0b0b;
  --paper: #e6d8c7;
  --paper-2: #d6b895;
  --ink: #f5efe7;
  --muted: rgba(245, 239, 231, 0.68);
  --muted-2: rgba(245, 239, 231, 0.42);
  --line: rgba(255, 244, 232, 0.08);
  --accent: #d9b288;
  --accent-2: #8f7458;
  --shell: min(1180px, calc(100vw - 1.6rem));
  --shell-wide: min(1380px, calc(100vw - 1.6rem));
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 178, 136, 0.12), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03), transparent 22%),
    linear-gradient(180deg, #070606 0%, #0b0a09 50%, #0f0e0d 100%);
  overflow-x: hidden;
}

body::selection {
  background: rgba(217, 178, 136, 0.28);
}

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

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

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding-left: 1.1rem;
}

.page-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
}

.cursor-orb {
  display: none !important;
}

.shell,
.shell-wide {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.shell {
  width: var(--shell);
}

.shell-wide {
  width: var(--shell-wide);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 5.3rem;
  height: 5.3rem;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: none;
}

.brand-monogram {
  padding: 0.15rem 0.05rem 0 0;
}

.brand-monogram-svg {
  width: 76%;
  height: 76%;
  overflow: visible;
}

.brand-monogram-svg text {
  font-family: "Allura", cursive;
  font-size: 56px;
  fill: #1a1612;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-copy {
  display: grid;
}

.brand-copy strong,
.brand-copy small {
  text-transform: uppercase;
}

.brand-copy strong {
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.brand-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero {
  padding: 1.1rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.18fr 0.92fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.hero-rail {
  display: grid;
  gap: 1rem;
  padding-top: 8rem;
}

.hero-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.kicker {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  color: var(--accent);
}

h2 + .kicker {
  margin-top: 1.25rem;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(4.2rem, 8vw, 8.5rem);
  max-width: 9.3ch;
}

h1 span {
  display: block;
  max-width: 8.5ch;
  color: #dbc7ae;
}

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

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-copy {
  padding-top: 4rem;
}

.hero-text,
.section-title p,
.story-head > p:last-child,
.film-copy p,
.manifesto-copy p,
.cta-panel p,
.footer-copy p,
.note-card ul {
  color: var(--muted);
}

.hero-text {
  max-width: 32rem;
  margin-top: 1.35rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 232, 0.18);
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-solid {
  background: var(--ink);
  color: #15120f;
  border-color: transparent;
}

.button-outline {
  background: rgba(255, 255, 255, 0.03);
}

.hero-collage {
  position: relative;
  min-height: 48rem;
}

.floating-card,
.note-card,
.story-strip,
.film-panel,
.cta-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.card-a {
  inset: 1rem auto auto 7%;
  width: 38%;
  border-radius: 46% 54% 24% 32% / 28% 29% 41% 44%;
  --base-transform: rotate(-7deg);
}

.card-b {
  right: 0;
  top: 2rem;
  width: 39%;
  border-radius: 2rem;
  --base-transform: rotate(5deg);
}

.card-c {
  left: 24%;
  bottom: 5rem;
  width: 26%;
  min-height: 11rem;
  padding: 1.2rem;
  border-radius: 2rem 3rem 2rem 1.2rem;
  background: linear-gradient(180deg, rgba(230, 216, 199, 0.92), rgba(210, 185, 157, 0.92));
  color: #1a1512;
  --base-transform: rotate(-8deg);
}

.card-c p {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  line-height: 0.95;
}

.card-c span {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.card-d {
  right: 8%;
  bottom: 0;
  width: 56%;
  border-radius: 1.8rem 5rem 1.8rem 1.8rem;
  --base-transform: rotate(-3deg);
}

.media {
  display: block;
  min-height: 15rem;
  padding: 0;
  text-align: center;
  color: rgba(245, 239, 231, 0.78);
  letter-spacing: 0.04em;
  background: transparent;
}

/* Images should fill their media slot without looking like boxed cards */
.media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  vertical-align: middle;
  border-radius: inherit;
}

.collection-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-tall {
  min-height: 24rem;
}

.media-wide {
  min-height: 19rem;
}

.manifesto {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 4rem;
}

.manifesto-mark {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 7vw, 5rem);
  color: rgba(255, 255, 255, 0.22);
}

.manifesto-copy {
  max-width: 52rem;
}

.manifesto-copy p:last-child {
  margin-top: 1rem;
  max-width: 44rem;
}

.section {
  padding-top: 6rem;
}

.immersive-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5.5rem clamp(1rem, 2vw, 1.5rem) 1.5rem;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 244, 232, 0.08);
  background: rgba(15, 13, 12, 0.5);
}

.immersive-section > * {
  position: relative;
  z-index: 2;
}

.immersive-section::before,
.immersive-section::after {
  content: "";
  position: absolute;
  inset: 0;
}

.immersive-section::before {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(0.95);
}

.immersive-section::after {
  z-index: 1;
}

.photography-section::before {
  background-image: linear-gradient(135deg, rgba(14, 12, 11, 0.28), rgba(14, 12, 11, 0.22));
}

.photography-section {
  padding-top: 2rem;
}

.photography-section::after {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.38) 0%, rgba(10, 9, 8, 0.76) 22%, rgba(10, 9, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(217, 178, 136, 0.12), transparent 35%, rgba(255, 255, 255, 0.02) 100%);
}

.videography-section::before {
  background-image:
    linear-gradient(135deg, rgba(14, 12, 11, 0.2), rgba(14, 12, 11, 0.2)),
    url("assets/videography/nick_gif.gif");
}

.videography-section::after {
  background: transparent;
}

#videography {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  padding: 11rem clamp(1rem, 2vw, 1.5rem) 3rem !important;
  min-height: 60vh;
}

#videography:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}

#videography .section-title h2 {
  line-height: 1.16;
  margin-bottom: 1rem;
}

.section-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}

.section-title {
  position: relative;
  padding-right: 2rem;
}

.section-title h2,
.section-intro h2 {
  margin-bottom: 0.8rem;
}

.equipment-board {
  position: relative;
  min-height: 37rem;
}

.note-card {
  position: absolute;
  width: 48%;
  padding: 1.3rem;
  border-radius: 1.6rem;
  background: rgba(19, 17, 15, 0.92);
}

.note-card h3,
.story-head h3,
.film-copy h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.card-no,
.story-kind {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.note-card li + li {
  margin-top: 0.5rem;
}

.note-large {
  left: 0;
  top: 0;
  min-height: 18rem;
  --base-transform: rotate(-4deg);
}

.sand-card {
  right: 2%;
  top: 2.3rem;
  background: linear-gradient(180deg, rgba(228, 211, 192, 0.95), rgba(208, 180, 144, 0.92));
  color: #181411;
  --base-transform: rotate(6deg);
}

.sand-card ul,
.sand-card .card-no,
.sand-card p,
.sand-card li,
.sand-card h3 {
  color: inherit;
}

.dark-card {
  left: 12%;
  bottom: 0;
  --base-transform: rotate(3deg);
}

.wire-card {
  right: 0;
  bottom: 2rem;
  border-style: dashed;
  --base-transform: rotate(-5deg);
}

.section-intro {
  max-width: 50rem;
  margin-bottom: 1.8rem;
}

.section-intro-wide p:last-child {
  max-width: 38rem;
  color: var(--muted);
}

.story-strip {
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  background: rgba(18, 17, 15, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 244, 232, 0.08);
  border-radius: 0; /* sharp edges */
  position: relative;
  transition: transform .28s ease, box-shadow .28s ease, background-size .6s cubic-bezier(.2,.8,.2,1);
  /* background image controlled via --story-bg variable on the element */
  background-image: linear-gradient(180deg, rgba(10,9,8,0.45), rgba(10,9,8,0.35)), var(--story-bg);
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.story-strip:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
  background-size: 110% auto;
}

.story-strip .story-head {
  transition: color .28s ease, transform .28s ease;
}

.story-strip:hover .story-head {
  transform: translateY(-4px);
  color: var(--ink);
}

.gallery-img {
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.gallery-img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  filter: brightness(1.03);
}

.story-thailand,
.story-wedding,
.story-simple {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: 1rem;
  align-items: center;
}

.story-hongkong {
  display: grid;
  grid-template-columns: 0.62fr 0.38fr;
  gap: 1rem;
}

.story-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.story-kind {
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.right-copy {
  padding-left: 2rem;
}

.narrow-copy {
  max-width: 24rem;
}

.story-layout,
.media-stack,
.layout-wedding {
  display: grid;
  gap: 1rem;
}

.layout-thailand {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(11rem, 1fr));
}

.layout-thailand .media-hero {
  grid-row: 1 / span 2;
  min-height: 29rem;
  border-radius: 2rem 5rem 1.8rem 1.8rem;
}

.layout-thailand .media:not(.media-hero) {
  border-radius: 1.6rem;
}

/* unified simple story layout: single image next to the copy */
.story-simple .media {
  min-height: 30rem;
  border-radius: 2rem;
  overflow: hidden;
}

.story-simple .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layout-hongkong {
  grid-template-columns: 0.95fr 1.05fr;
}

.media-vertical {
  min-height: 30rem;
  border-radius: 43% 23% 20% 20% / 14% 25% 15% 14%;
}

.media-stack {
  grid-template-rows: repeat(2, minmax(12rem, 1fr));
}

.layout-wedding {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-wedding .media:nth-child(1) {
  border-radius: 2rem 1rem 1rem 2rem;
}

.layout-wedding .media:nth-child(2) {
  border-radius: 1rem 3rem 1rem 1rem;
}

.layout-wedding .media:nth-child(3) {
  border-radius: 1rem;
}

.layout-wedding .media:nth-child(4) {
  border-radius: 1rem 1rem 3rem 1rem;
}

.films-section {
  align-items: stretch;
}

.sticky-title {
  position: sticky;
  top: 6rem;
}

.film-column,
.film-row {
  display: grid;
  gap: 1rem;
}

.film-panel {
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(18, 17, 15, 0.72);
  backdrop-filter: blur(8px);
}

/* make hero film panel visually blend with section: remove internal box look */
.film-panel.hero-film {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.film-panel.hero-film .media {
  background: transparent !important;
  min-height: 28rem;
}


.media-cinema {
  min-height: 30rem;
}

.film-copy {
  padding: 1.2rem;
}

.film-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

.cta-panel {
  padding: 1.6rem;
  border-radius: 2rem 4rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(226, 206, 182, 0.95), rgba(207, 177, 141, 0.9));
  color: #181411;
}

.cta-panel p,
.cta-panel .kicker,
.cta-panel h2 {
  color: inherit;
}

.cta-panel p:last-child {
  max-width: 44rem;
  margin-top: 1rem;
  opacity: 0.82;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 85vh;
  padding: 6rem 0 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-copy {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-copy a {
  font-size: 1.08rem;
}

.footer-small {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.tilt-card {
  transform: perspective(900px) var(--base-transform, translateZ(0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-split,
  .story-thailand,
  .story-hongkong,
  .story-wedding,
  .story-simple,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    display: none;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .hero-collage {
    min-height: 41rem;
  }

  .equipment-board {
    min-height: 46rem;
  }

  .sticky-title {
    position: relative;
    top: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .brand-seal {
    width: 2.6rem;
    height: 2.6rem;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(2.2rem, 7.8vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
  }

  h3 {
    font-size: clamp(1.3rem, 4.3vw, 1.8rem);
    line-height: 1.08;
  }

  .kicker {
    margin-bottom: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
  }

  .hero-text {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .section-intro h2,
  .section-title h2 {
    margin-bottom: 0.55rem;
  }

  .hero-collage {
    min-height: 34rem;
  }

  .card-a {
    width: 48%;
    left: 0;
  }

  .card-b {
    width: 44%;
  }

  .card-c {
    width: 38%;
    left: 14%;
  }

  .card-d {
    width: 68%;
    right: 0;
  }

  .note-card {
    width: 54%;
  }

  .layout-wedding,
  .film-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .shell,
  .shell-wide {
    width: min(100vw - 1rem, 1380px);
  }

  .cursor-orb {
    display: none;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
  }

  h3 {
    font-size: clamp(1.18rem, 6vw, 1.45rem);
    line-height: 1.16;
  }

  .hero {
    padding-top: 0.65rem;
  }

  .hero-text {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about-me h1 {
    gap: 0.45rem !important;
    margin-left: auto;
    margin-right: auto;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-collage,
  .equipment-board {
    min-height: auto;
  }

  .immersive-section {
    padding: 4.75rem 0.85rem 0.85rem;
    border-radius: 1.5rem;
  }

  .floating-card,
  .note-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 1rem;
    --base-transform: translateZ(0);
  }

  .story-strip,
  .film-panel,
  .cta-panel {
    border-radius: 1.5rem;
  }

  .layout-thailand,
  .layout-hongkong,
  .layout-wedding,
  .film-row {
    grid-template-columns: 1fr;
  }

  .layout-thailand .media-hero,
  .media-vertical,
  .media-cinema {
    min-height: 15rem;
  }

  .right-copy,
  .story-head,
  .section-title {
    padding: 0;
  }

  .media,
  .media-tall,
  .media-wide {
    min-height: 12rem;
  }
}

/* responsive video embed */
.video-embed .embed { position: relative; padding-top: 56.25%; }
.video-embed .embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
.video-embed { max-width: 1100px; margin: 0 auto; }

.detail-videography h2 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-videography .kicker {
  margin-top: 0.35rem;
}

/* lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: background-color .28s ease, opacity .28s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-radius: 0.6rem;
  transform: scale(0.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
  cursor: pointer;
}

.lightbox-overlay.active img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.06);
}

/* navigation buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--ink);
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s ease, transform .12s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav.prev { left: 1.1rem; }
.lightbox-nav.next { right: 1.1rem; }

/* On mobile the arrow "box" sits over the photo; strip it down to a bare
   icon so it doesn't visually interfere with the image. */
@media (max-width: 640px) {
  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    background: transparent;
    border: none;
    backdrop-filter: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  }

  .lightbox-nav:hover,
  .lightbox-nav:active {
    background: transparent;
  }

  .lightbox-nav.prev { left: 0.4rem; }
  .lightbox-nav.next { right: 0.4rem; }
}

/* Make boxes sharp-edged rather than rounded */
.immersive-section,
.floating-card,
.note-card,
.story-strip,
.film-panel,
.cta-panel,
.media,
.media-hero,
.media-vertical,
.media-tall,
.media-wide,
.story-layout,
.story-head,
.site-nav,
.brand-seal,
.lightbox-nav {
  border-radius: 0 !important;
}

/* allow the whole story-strip to be clickable */
.story-strip { position: relative; }
.section-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  background: transparent;
  cursor: pointer;
  text-indent: -9999px;
}
.section-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* back button */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.2rem 0;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
  color: var(--ink);
  border-radius: 0;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.back-button:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

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

.gallery-grid {
  column-count: 2;
  column-gap: 0.6rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 4;
  }
}

.gallery-grid .gallery-img {
  cursor: pointer;
  width: 100%;
  height: auto;
  margin: 0 0 0.6rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 2px;
}
