:root {
  --bg: #090a0b;
  --panel: #101112;
  --text: #f4f0ea;
  --muted: #b6aaa0;
  --accent: #c7b5a0;
  --line: rgba(255, 255, 255, .16);
  --container: 1340px;
  --header-h: clamp(76px, 11svh, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 25%, rgba(88, 75, 61, .12), transparent 29%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.container {
  width: min(calc(100% - clamp(30px, 5vw, 72px)), var(--container));
  margin-inline: auto;
}

/* Header stays inside the first viewport instead of pushing the hero downward. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.brand {
  width: clamp(40px, 4.8vw, 50px);
  justify-self: start;
}

.logo-cycle{
  border-radius: 50px;
}

.brand img {
  width: 100%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  font-size: clamp(13px, 1vw, 15px);
}

.nav a {
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  transition: color .2s ease, transform .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

.chain-badge {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: clamp(9px, 1.2svh, 12px) clamp(14px, 1.7vw, 19px);
  font-size: clamp(11px, .9vw, 13px);
  background: rgba(255, 255, 255, .015);
  white-space: nowrap;
}

.chain-badge b {
  font-weight: 500;
}

.menu-toggle {
  display: none;
  padding: 0;
  line-height: 0;
}

/* Custom icon keeps all three lines mathematically centered inside the circle. */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}

.menu-icon {
  position: relative;
  margin: auto;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle.is-open .menu-icon {
  background: transparent;
}

.menu-toggle.is-open .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* One complete desktop/tablet-landscape screen, including the header. */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(310px, 40%) minmax(0, 60%);
  align-items: center;
  gap: clamp(22px, 3.8vw, 72px);
  padding-top: calc(var(--header-h) + clamp(4px, 1.2svh, 14px));
  padding-bottom: clamp(16px, 2.4svh, 30px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  min-height: 0;
  padding-left: clamp(0px, 4.2vw, 58px);
}

.hero-copy {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .025);
}

.hero-copy .story {
  letter-spacing: -.012em;
}

.eyebrow {
  margin: 0;
  font-size: clamp(40px, 6.7svh, 64px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.05em;
}

.hero h1 {
  margin: clamp(8px, 1.3svh, 13px) 0 clamp(12px, 2.4svh, 24px);
  color: var(--accent);
  font-size: clamp(19px, 3svh, 28px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
}

.story {
  width: min(100%, 390px);
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  font-size: clamp(12px, 1.8svh, 15px);
  line-height: 1.35;
}

.story p {
  margin: 0 0 clamp(7px, 1.2svh, 13px);
}

.story p:last-child {
  margin-bottom: 0;
}

.primary-btn {
  width: fit-content;
  margin-top: clamp(13px, 2.1svh, 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: clamp(10px, 1.5svh, 14px) clamp(19px, 1.8vw, 24px);
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: clamp(12px, 1.6svh, 14px);
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .2s ease, background .2s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px);
  background: #ded0c0;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(100%, 720px);
  max-height: calc(100svh - var(--header-h) - clamp(26px, 5svh, 54px));
  object-fit: contain;
  transform: translateX(clamp(0px, 1.2vw, 18px));
  mix-blend-mode: screen;
  filter: contrast(1.04) saturate(.94);
}

.halo {
  position: absolute;
  width: min(52vw, 590px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 136, 113, .11), transparent 67%);
  filter: blur(8px);
}

.gallery-section {
  --gallery-gap: clamp(12px, 1.1vw, 18px);
  --gallery-card-width: clamp(320px, 55vw, 640px);
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: calc(50% - 50vw);
  padding:
    clamp(34px, 6svh, 72px)
    clamp(16px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.gallery-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gallery-gap);
}


.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  margin-bottom: clamp(18px, 3svh, 30px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -.03em;
}

.gallery-controls {
  display: flex;
  gap: 9px;
  padding-right: 10px;
}

.arrow {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}

.arrow:hover,
.arrow:focus-visible {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.gallery-track {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: var(--gallery-gap);
  width: 100%;
  padding: 4px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y pan-x;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}

.gallery-track-secondary {
  display: none;
}
 .gallery-track-primary {
    display: none;
  }

.gallery-track:active {
  cursor: grabbing;
}

.gallery-track.is-auto-scrolling {
  scroll-behavior: auto;
}

.gallery-track:focus-visible {
  outline: 2px solid rgba(199, 181, 160, .8);
  outline-offset: 7px;
  border-radius: 14px;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 var(--gallery-card-width);
  width: var(--gallery-card-width);
  min-width: 0;
  min-height: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #151515;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.card:focus-visible {
  outline: 2px solid rgba(199, 181, 160, .9);
  outline-offset: 3px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) brightness(1.04);
}



@media (min-width: 1001px) {
  .gallery-section {
    --gallery-gap: clamp(12px, 1vw, 18px);
    --gallery-card-width: clamp(280px, 26vw, 440px);
  }
  .gallery-track-primary {
    display: flex;
  }

  .gallery-track-secondary {
    display: flex;
  }
   .gallery-track-tr {
    display: none;
  }
}

.roadmap {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 40px;
  padding: 80px 0 110px;
  align-items: start;
}

.roadmap > span {
  color: var(--muted);
}

.small-label {
  color: var(--muted);
  letter-spacing: .16em;
  font-size: 12px;
}

.roadmap h2 {
  font-size: clamp(38px, 5vw, 66px);
  margin: 12px 0 0;
  letter-spacing: -.05em;
  line-height: .95;
}

.roadmap > p {
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
  max-width: 430px;
}



/* Laptops with short screens, including 1366×768 and 1440×900. */
@media (min-width: 821px) and (max-height: 760px) {
  :root {
    --header-h: 74px;
  }

  .hero {
    min-height: 520px;
    grid-template-columns: minmax(300px, 39%) minmax(0, 61%);
    gap: clamp(18px, 3vw, 42px);
    padding-bottom: 12px;
  }

  .hero-copy {
    width: min(100%, 440px);
  }

  .eyebrow {
    font-size: clamp(38px, 6.2svh, 48px);
  }

  .hero h1 {
    margin-top: 7px;
    margin-bottom: 12px;
    font-size: clamp(18px, 2.8svh, 22px);
  }

  .story {
    width: min(100%, 380px);
    font-size: clamp(11.5px, 1.75svh, 13px);
    line-height: 1.31;
  }

  .story p {
    margin-bottom: clamp(6px, .9svh, 8px);
  }

  .primary-btn {
    min-height: 38px;
    margin-top: 12px;
    padding-block: 9px;
  }

  .hero-art img {
    max-height: calc(100svh - var(--header-h) - 20px);
  }
}

/* iPad Pro/Air/Mini portrait and compact tablets: keep the full hero in one screen. */
@media (max-width: 1024px) {
  :root {
    --header-h: clamp(72px, 9svh, 92px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .chain-badge {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .nav.open {
    position: absolute;
    top: calc(var(--header-h) - 8px);
    left: 0;
    right: 0;
    z-index: 120;
    display: flex;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(17, 17, 17, .98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px);
  }

  .nav.open a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav.open a:hover,
  .nav.open a:focus-visible {
    background: rgba(255, 255, 255, .06);
    transform: none;
  }

  .hero {
    grid-template-columns: minmax(280px, 44%) minmax(0, 56%);
    gap: clamp(14px, 3vw, 32px);
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-art img {
    max-width: 100%;
    transform: none;
  }

  .story {
    width: 100%;
  }
}

/* Phones: compact stacked layout. It remains one viewport on common modern phones. */
@media (max-width: 700px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    width: 46px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .nav.open {
    top: 58px;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(92px, 20svh) minmax(0, 1fr);
    align-content: stretch;
    gap: clamp(8px, 1.4svh, 14px);
    padding-top: calc(var(--header-h) + 4px);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    text-align: left;
  }

  .hero-art {
    grid-row: 1;
    height: 100%;
    overflow: hidden;
  }

  .hero-art img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    transform: none;
  }

  .halo {
    width: min(64vw, 250px);
  }

  .hero-copy {
    grid-row: 2;
    width: 100%;
    max-width: none;
    align-self: start;
    padding: 0;
  }

  .eyebrow {
    font-size: clamp(32px, 6.2svh, 44px);
  }

  .hero h1 {
    margin: clamp(5px, .9svh, 8px) 0 clamp(7px, 1.2svh, 11px);
    font-size: clamp(17px, 3svh, 23px);
  }

  .story {
    max-width: none;
    font-size: clamp(10.5px, 1.72svh, 13px);
    line-height: 1.28;
  }

  .story p {
    margin-bottom: clamp(4px, .72svh, 7px);
  }

  .primary-btn {
    min-height: 36px;
    margin-top: clamp(7px, 1.2svh, 12px);
    padding: 8px 17px;
    font-size: clamp(11px, 1.65svh, 13px);
  }

  .gallery-section {
    --gallery-gap: 10px;
    --gallery-card-width: min(90vw, 480px);
    min-height: 100vh;
    min-height: 100svh;
    padding:
      max(28px, env(safe-area-inset-top))
      14px
      max(28px, env(safe-area-inset-bottom));
  }

  .gallery-track {
    padding-bottom: 8px;
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  .roadmap {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 56px 0 76px;
  }

  .roadmap > p {
    grid-column: 1;
  }
}

/* iPhone SE and other short phones. */
@media (max-width: 700px) and (max-height: 700px) {
  .hero {
    min-height: 520px;
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 5px;
    padding-top: 58px;
    padding-bottom: 7px;
  }

  .site-header {
    height: 58px;
  }

  .brand {
    width: 40px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .eyebrow {
    font-size: clamp(29px, 6.1svh, 38px);
  }

  .hero h1 {
    margin: 3px 0 6px;
    font-size: clamp(16px, 2.8svh, 19px);
  }

  .story {
    font-size: clamp(9.6px, 1.67svh, 11px);
    line-height: 1.23;
  }

  .story p {
    margin-bottom: 3px;
  }

  .primary-btn {
    min-height: 32px;
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 10.5px;
  }
}

/* Phone/tablet landscape: return to a compact two-column hero. */
@media (max-height: 540px) and (orientation: landscape) {
  :root {
    --header-h: 54px;
  }

  .site-header {
    height: var(--header-h);
  }

  .brand {
    width: 39px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(280px, 48%) minmax(0, 52%);
    grid-template-rows: 1fr;
    gap: 16px;
    padding-top: 57px;
    padding-bottom: 8px;
  }

  .hero-copy,
  .hero-art {
    grid-row: 1;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-art {
    height: 100%;
  }

  .hero-art img {
    max-height: calc(100svh - 64px);
  }

  .eyebrow {
    font-size: clamp(30px, 9svh, 44px);
  }

  .hero h1 {
    margin: 4px 0 7px;
    font-size: clamp(16px, 4.5svh, 21px);
  }

  .story {
    font-size: clamp(9px, 2.7svh, 11.5px);
    line-height: 1.2;
  }

  .story p {
    margin-bottom: 3px;
  }

  .primary-btn {
    min-height: 30px;
    margin-top: 5px;
    padding: 5px 13px;
    font-size: 10px;
  }
}


/* Full-screen gallery viewer. */

/* About / social links */
.about-section {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 62svh, 680px);
  display: grid;
  place-items: center;
  padding: clamp(72px, 11svh, 132px) 24px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 48%, rgba(199, 181, 160, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 42%);
}

.about-section::before {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
}

.about-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-section h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .95;
  letter-spacing: -.055em;
}

.about-description {
  max-width: 560px;
  margin: clamp(18px, 2.8svh, 28px) auto 0;
  color: rgba(255, 255, 255, .64);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 26px);
  margin-top: clamp(30px, 5svh, 52px);
}

.social-button {
  position: relative;
  width: clamp(74px, 7vw, 92px);
  height: clamp(74px, 7vw, 92px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.social-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color .25s ease;
}

.social-button img {
  width: 46%;
  height: 46%;
  object-fit: contain;
  filter: invert(1);
  opacity: .92;
  transition: transform .25s ease, opacity .25s ease;
}

.social-button:hover,
.social-button:focus-visible {
  transform: translateY(-5px) scale(1.035);
  border-color: rgba(199, 181, 160, .72);
  background: rgba(199, 181, 160, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.social-button:hover::after,
.social-button:focus-visible::after {
  border-color: rgba(199, 181, 160, .18);
}

.social-button:hover img,
.social-button:focus-visible img {
  transform: scale(1.08);
  opacity: 1;
}

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

.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;
}

@media (max-width: 700px) {
  .about-section {
    min-height: 54svh;
    padding: 72px 20px max(72px, env(safe-area-inset-bottom));
  }

  .about-description {
    max-width: 420px;
    line-height: 1.55;
  }

  .social-links {
    gap: 16px;
  }

  .social-button {
    width: 72px;
    height: 72px;
  }
}

body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}

.lightbox-figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 72px);
  object-fit: contain;
  border-radius: clamp(8px, 1.2vw, 16px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .55);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  min-height: 18px;
  max-width: min(760px, 80vw);
  color: rgba(255, 255, 255, .72);
  font-size: clamp(11px, 1.4vw, 14px);
  line-height: 1.35;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .3);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 29px;
  line-height: 1;
}

.lightbox-close:hover {
  transform: rotate(4deg) scale(1.04);
}

.lightbox-nav {
  position: relative;
  z-index: 2;
  width: clamp(42px, 5vw, 56px);
  height: clamp(42px, 5vw, 56px);
  border-radius: 50%;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.lightbox-prev:hover {
  transform: translateX(-2px);
}

.lightbox-next:hover {
  transform: translateX(2px);
}

@media (max-width: 700px) {
  .lightbox {
    padding:
      max(12px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .lightbox-figure {
    grid-column: 1;
    grid-row: 1;
    padding: 50px 0 54px;
  }

  .lightbox-image {
    max-height: calc(100svh - 126px);
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .lightbox-nav {
    position: absolute;
    bottom: max(4px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }

  .lightbox-caption {
    max-width: 88vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   Hero refinement: larger artwork, smaller centered copy,
   and a tighter transition from Home to Gallery.
   ========================================================= */

/* Tablets: give the artwork most of the first-screen width. */
@media (max-width: 1024px) and (min-width: 701px) {
  .hero {
    grid-template-columns: minmax(245px, 35%) minmax(0, 65%);
    gap: clamp(12px, 2.3vw, 26px);
  }

  .hero-copy {
    width: min(100%, 350px);
    margin-inline: auto;
    text-align: center;
  }

  .story {
    width: min(100%, 330px);
    margin-inline: auto;
    font-size: clamp(11px, 1.42svh, 14px);
    line-height: 1.3;
  }

  .primary-btn {
    margin-inline: auto;
  }

  .hero-art img {
    max-width: min(100%, 760px);
    max-height: calc(100svh - var(--header-h) - 18px);
  }
}

/* Phones: content-sized hero removes the unused dark space below the button. */
@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    gap: clamp(8px, 1.2svh, 12px);
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: clamp(14px, 2.4svh, 22px);
    text-align: center;
    overflow: visible;
  }

  .hero-art {
    grid-row: 1;
    width: 100%;
    height: clamp(250px, 38svh, 350px);
    min-height: 0;
    overflow: visible;
  }

  .hero-art img {
    width: min(88vw, 370px);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none;
  }

  .halo {
    width: min(78vw, 330px);
  }

  .hero-copy {
    grid-row: 2;
    width: min(100%, 370px);
    max-width: 370px;
    margin-inline: auto;
    padding: 0;
    text-align: center;
  }

  .eyebrow {
    font-size: clamp(32px, 5.5svh, 42px);
  }

  .hero h1 {
    margin: 5px 0 9px;
    font-size: clamp(17px, 2.65svh, 22px);
  }

  .story {
    width: min(100%, 350px);
    max-width: 350px;
    margin-inline: auto;
    font-size: clamp(10.2px, 1.52svh, 12.5px);
    line-height: 1.24;
  }

  .story p {
    margin-bottom: clamp(4px, .62svh, 6px);
  }

  .primary-btn {
    margin: clamp(8px, 1.25svh, 12px) auto 0;
  }

  .gallery-section {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .section-heading {
    margin-bottom: 14px;
  }
}

/* Short phones need a slightly shorter image while still keeping it dominant. */
@media (max-width: 700px) and (max-height: 700px) {
  .hero {
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 6px;
    padding-top: 62px;
    padding-bottom: 12px;
  }

  .hero-art {
    height: clamp(205px, 34svh, 238px);
  }

  .hero-copy {
    max-width: 350px;
  }

  .eyebrow {
    font-size: clamp(29px, 5.5svh, 36px);
  }

  .hero h1 {
    margin: 3px 0 6px;
    font-size: clamp(16px, 2.75svh, 19px);
  }

  .story {
    font-size: clamp(9.4px, 1.55svh, 10.8px);
    line-height: 1.2;
  }

  .story p {
    margin-bottom: 3px;
  }

  .primary-btn {
    min-height: 32px;
    margin-top: 7px;
    padding: 6px 14px;
    font-size: 10.5px;
  }

  .gallery-section {
    padding-top: 14px;
  }
}

/* Keep landscape phones compact and two-column. */
@media (max-height: 540px) and (orientation: landscape) {
  .hero {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: minmax(250px, 40%) minmax(0, 60%);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 57px;
    padding-bottom: 8px;
    text-align: center;
    overflow: hidden;
  }

  .hero-copy,
  .hero-art {
    grid-row: 1;
  }

  .hero-copy {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero-art {
    height: 100%;
  }

  .hero-art img {
    width: auto;
    max-height: calc(100svh - 62px);
  }

  .story {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

/* =========================================================
   Animated eye shine
   The artwork is wrapped so every glint stays aligned with
   the eyes at desktop, tablet, and phone sizes.
   ========================================================= */
.hero-art .bird-wrap {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  width: min(
    100%,
    720px,
    calc(100svh - var(--header-h) - clamp(26px, 5svh, 54px))
  );
  aspect-ratio: 1;
  transform: translateX(clamp(0px, 1.2vw, 18px));
  isolation: isolate;
}

.hero-art .bird-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: none;
}

.eye-shine {
  --shine-delay: 0s;
  position: absolute;
  z-index: 3;
  width: 19.2%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.eye-shine-left {
  top: 30.1%;
  left: 15.0%;
  transform: rotate(-4deg);
}

.eye-shine-right {
  --shine-delay: .28s;
  top: 32.2%;
  left: 55.0%;
  transform: rotate(3deg);
}

/* A soft diagonal light travels through each black eye. */
.eye-shine::before {
  content: "";
  position: absolute;
  inset: -48%;
  opacity: 0;
  background: linear-gradient(
    116deg,
    transparent 38%,
    rgba(255, 255, 255, 0) 43%,
    rgba(255, 255, 255, .3) 46%,
    rgba(255, 255, 255, .98) 49.5%,
    rgba(255, 255, 255, .45) 53%,
    rgba(255, 255, 255, 0) 57%,
    transparent 63%
  );
  filter: blur(.4px) drop-shadow(0 0 7px rgba(255, 255, 255, .9));
  transform: translateX(-70%) rotate(5deg);
  animation: eye-light-sweep 4.8s cubic-bezier(.22, .72, .25, 1) infinite;
  animation-delay: var(--shine-delay);
}

/* A small four-point sparkle appears as the sweep reaches the highlight. */
.eye-shine::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 25%;
  width: 18%;
  aspect-ratio: 1;
  opacity: 0;
  background: rgba(255, 255, 255, .98);
  clip-path: polygon(
    50% 0,
    60% 38%,
    100% 50%,
    60% 62%,
    50% 100%,
    40% 62%,
    0 50%,
    40% 38%
  );
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px rgba(255, 255, 255, .9));
  transform: scale(.15) rotate(-18deg);
  animation: eye-sparkle-pulse 4.8s ease-in-out infinite;
  animation-delay: calc(var(--shine-delay) + .34s);
}

@keyframes eye-light-sweep {
  0%, 8% {
    opacity: 0;
    transform: translateX(-72%) rotate(5deg);
  }
  12% {
    opacity: .25;
  }
  19% {
    opacity: 1;
  }
  28% {
    opacity: .7;
  }
  34%, 100% {
    opacity: 0;
    transform: translateX(72%) rotate(5deg);
  }
}

@keyframes eye-sparkle-pulse {
  0%, 14%, 34%, 100% {
    opacity: 0;
    transform: scale(.15) rotate(-18deg);
  }
  19% {
    opacity: 1;
    transform: scale(1.25) rotate(8deg);
  }
  24% {
    opacity: .72;
    transform: scale(.78) rotate(18deg);
  }
  28% {
    opacity: 0;
    transform: scale(1.05) rotate(30deg);
  }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .hero-art .bird-wrap {
    width: min(100%, 760px, calc(100svh - var(--header-h) - 18px));
  }
}

@media (max-width: 700px) {
  .hero-art .bird-wrap {
    width: min(88vw, 370px, 38svh);
    max-width: 100%;
    transform: none;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .hero-art .bird-wrap {
    width: min(88vw, 238px, 34svh);
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero-art .bird-wrap {
    width: min(100%, calc(100svh - 62px));
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eye-shine::before,
  .eye-shine::after {
    animation: none;
  }

  .eye-shine::after {
    opacity: .5;
    transform: scale(.62);
  }
}
