@font-face {
  font-family: "Anton";
  src: url("assets/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --accent: #8B5CF6;
  color-scheme: dark;
  font-family: "IBM Plex Mono", monospace;
  color: #f0eee7;
  background: #141513;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(100svh, 720px);
  overflow: hidden;
  padding: 34px 4.5vw 26px;
}

/* Full-bleed photograph with directional shade and a soft vignette. */
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #141513 url("assets/web/homepage.jpg") center bottom / cover no-repeat;
  /* Lift the subject above the Photography line while retaining full coverage. */
  transform: translateY(calc(min(400px, 30%) - 135px)) scale(1.3);
  transform-origin: center bottom;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 8 9 / 72%), rgb(5 8 9 / 28%) 75%),
    linear-gradient(180deg, rgb(4 7 8 / 42%), transparent 35%, rgb(4 7 8 / 58%)),
    radial-gradient(ellipse at 55% 50%, transparent 25%, rgb(0 0 0 / 30%) 100%);
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 38.45px;
  overflow: hidden;
}

/* Frame the artwork inside its transparent square canvas without editing it. */
.wordmark img {
  position: absolute;
  width: 123.61px;
  height: auto;
  left: -11.8px;
  top: -42.58px;
  filter: brightness(0) invert(1);
}
.wordmark:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 8px; }
.masthead-note { font-size: 11px; color: #dadbd2; text-align: right; line-height: 1.8; }
.interface-label { display: block; color: #d3c5fb; font-size: 9px; letter-spacing: 1.6px; }

.intro {
  position: absolute;
  left: 5%;
  bottom: 8%;
  width: max-content;
  max-width: 90%;
  padding: 22px 26px 24px;
  background: rgb(16 17 22 / 26%);
  border: 1px solid rgb(139 92 246 / 30%);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 12%), inset 0 1px 0 rgb(230 220 255 / 5%);
  animation: panel-arrive 900ms ease-out both;
}
.intro::before, .intro::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 12px;
  pointer-events: none;
  border-color: var(--accent);
  border-style: solid;
  filter: drop-shadow(0 0 5px rgb(139 92 246 / 30%));
}
.intro::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.intro::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgb(139 92 246 / 22%);
  color: #d3c5fb;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.status-light { display: flex; align-items: center; gap: 8px; }
.status-light::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgb(139 92 246 / 55%); }
@keyframes panel-arrive { from { opacity: 0; } to { opacity: 1; } }
.footer { margin-top: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #e0e2d7;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

h1 {
  margin: 0 0 30px;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(60px, min(12.7vw, 17svh), 200px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.tagline { margin: 0; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.7; color: #e0dfe6; }
.footer { border-top: 1px solid rgb(240 238 231 / 23%); padding-top: 20px; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: #b9bcb0; }
.photo-label { display: flex; align-items: center; gap: 20px; }
.photo-label span { font-size: 18px; line-height: 1; }

@media (max-width: 600px) {
  .hero { padding: 26px 6vw 22px; min-height: max(100svh, 600px); }
  .intro { padding: 18px 16px 20px; }
  .panel-meta { font-size: 8px; letter-spacing: 0.5px; gap: 8px; }
  .interface-label { font-size: 8px; letter-spacing: 0.5px; }
  .masthead-note { font-size: 10px; }
  h1 { font-size: 11.5vw; margin-bottom: 24px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; gap: 9px; }
  .footer { font-size: 7px; letter-spacing: 1px; gap: 12px; }
  .photo-label { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .intro { background: rgb(16 17 22 / 65%); }
}

/* Nonmodal navigation: the button stays available above the glass panel. */
.menu-toggle {
  position: relative;
  z-index: 11;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-block: -3px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #f0eee7;
  cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: transform 320ms ease, opacity 220ms ease, background-color 220ms ease;
}
.menu-toggle:hover { color: #c4b5fd; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:focus-visible, .navigation-panel a:focus-visible, .back-home:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 5px;
}
.navigation-panel {
  position: absolute;
  z-index: 10;
  top: 94px;
  right: 4.5vw;
  width: min(560px, 91vw);
  max-height: calc(100svh - 114px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgb(139 92 246 / 42%);
  border-radius: 3px;
  background: rgb(13 14 20 / 78%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 65px rgb(0 0 0 / 35%), 0 0 30px rgb(139 92 246 / 8%), inset 0 1px 0 rgb(215 195 255 / 8%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 320ms ease, transform 320ms ease, visibility 320ms;
  pointer-events: none;
}
.navigation-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.navigation-label { margin: 0 0 24px; color: #d3c5fb; font-size: 10px; letter-spacing: 1.6px; line-height: 1.6; }
.navigation-links { display: grid; }
.navigation-links a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  color: #f0eee7;
  border-bottom: 1px solid rgb(210 200 240 / 13%);
  text-decoration: none;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  transition: color 220ms ease;
}
.nav-number { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: #c4b5fd; white-space: nowrap; }
.navigation-links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(139 92 246 / 35%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}
.navigation-links a:hover, .navigation-links a:focus-visible, .navigation-links a[aria-current="page"] { color: #d3c5fb; }
.navigation-links a:hover::after, .navigation-links a:focus-visible::after, .navigation-links a[aria-current="page"]::after { transform: scaleX(1); }
.navigation-home, .back-home { display: inline-block; color: #ddd3f8; font-size: 11px; line-height: 1.6; text-underline-offset: 5px; margin-top: 28px; }
.navigation-home { text-decoration: none; letter-spacing: 1px; }
.destination h1 { font-size: clamp(40px, 8vw, 110px); overflow-wrap: anywhere; }
.no-script-nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.no-script-nav a { color: #ddd3f8; font-size: 12px; }
@media (max-width: 600px) {
  .navigation-panel { top: 86px; right: 5%; width: 90%; max-height: calc(100svh - 106px); }
  .navigation-links a { padding-block: 17px; }
  .navigation-label { font-size: 9px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .navigation-panel, .navigation-links a, .navigation-links a::after { transition: none; }
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .navigation-panel { background: rgb(13 14 20 / 95%); }
}

/* Temporary homepage-only clarity override; remove sharp-photo to restore glass. */
.homepage.sharp-photo .intro {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}

/* Shared fixed header: a stable spacer preserves the original hero geometry. */
.header-spacer { height: 38.45px; flex-shrink: 0; }
.masthead {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 104px;
  padding-inline: 4.5vw;
  justify-content: flex-end;
  isolation: isolate;
  transition: height 350ms ease;
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(16 17 20 / 82%);
  border-bottom: 1px solid rgb(139 92 246 / 16%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}
.masthead .wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.24);
  transition: transform 350ms ease;
}
.masthead.is-scrolled { height: 72px; }
.masthead.is-scrolled::before { opacity: 1; }
.masthead.is-scrolled .wordmark { transform: translate(-50%, -50%) scale(1); }
.masthead .navigation-panel { top: calc(100% + 8px); max-height: calc(100svh - 128px); transition: opacity 350ms ease, transform 350ms ease, visibility 350ms; }
.masthead.is-scrolled .navigation-panel { max-height: calc(100svh - 96px); }
.navigation-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(0 0 0 / 85%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 350ms ease, visibility 350ms;
}
.navigation-open .navigation-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
.footer { align-items: flex-end; line-height: 1.7; font-size: 10px; letter-spacing: 1.2px; }
.footer-brand { color: #eeede7; }
.footer-signature { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-tagline { color: #d2d1d8; }
.footer-home { display: inline-flex; align-items: center; min-height: 44px; color: #d3c5fb; text-decoration: none; font-size: 9px; letter-spacing: 1px; }
.footer-home:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-home:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
.hero .destination { bottom: max(8%, 140px); }
@media (max-width: 600px) {
  .masthead { height: 92px; padding-inline: 6vw; }
  .masthead.is-scrolled { height: 68px; }
  .masthead .navigation-panel { max-height: calc(100svh - 116px); }
  .masthead.is-scrolled .navigation-panel { max-height: calc(100svh - 92px); }
  .footer { font-size: 8px; letter-spacing: 0.6px; gap: 12px; }
  .footer-home { font-size: 8px; letter-spacing: 0.3px; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead::before, .masthead .wordmark, .masthead .navigation-panel, .navigation-backdrop { transition: none; }
}

/* Shared editorial footer additions. */
.footer-identity { display: flex; flex-direction: column; gap: 7px; }
.copyright { font-size: 8px; letter-spacing: 0.5px; line-height: 1.8; color: #aaa8b2; }
.footer-instagram { color: #d3c5fb; font-size: 9px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-instagram:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-instagram:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
.hero .intro { bottom: max(8%, 110px); }
.hero .destination { bottom: max(8%, 150px); }
@media (max-width: 600px) {
  .footer { flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; }
  .footer-identity { flex: 1 1 60%; }
  .footer-instagram { margin-left: auto; }
  .footer-signature { flex: 1 0 100%; align-items: flex-start; }
  .footer-home { min-height: 32px; }
  .copyright { font-size: 7px; }
  .hero .destination { bottom: max(8%, 190px); }
}

/* 08A: desktop footer order is retained; mobile follows the editorial reading order. */
.footer-identity { order: 1; }
.footer-instagram { order: 2; }
.footer-signature { order: 3; }
@media (max-width: 700px) {
  .hero { --mobile-panel-top: calc(112px + env(safe-area-inset-top, 0px)); --mobile-photo-position: 50% 65%; min-height: max(100svh, 920px); }
  .hero .intro { top: var(--mobile-panel-top); bottom: auto; }
  .hero-photo { transform: none; background-position: var(--mobile-photo-position); }
  .homepage h1 { font-size: 13.225vw; }
  .destination h1 { font-size: clamp(44px, 12vw, 67px); overflow-wrap: normal; }
  .footer { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .footer-identity, .footer-signature { display: contents; }
  .footer-brand { order: 1; }
  .footer-tagline { order: 2; }
  .footer-home { order: 3; min-height: 44px; }
  .footer-instagram { order: 4; margin: 0; min-height: 44px; }
  .copyright { order: 5; font-size: 7px; }
}

/* Homepage-only photo sequence: displaced image strips, never flashing UI. */
.hero-slide { opacity: 0; transition: opacity 700ms ease; }
.hero-slide.is-current { opacity: 1; }
.homepage .hero-slide { background-image: var(--slide-image); }
.hero-slide-additional { background-position: var(--slide-position, center center); transform: none; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: inherit; opacity: 0; pointer-events: none; }
.hero-slide.is-glitching::before { animation: photo-signal 650ms steps(1, end) both; }
@keyframes photo-signal {
  0% { opacity: 0; }
  15% { opacity: 0.805; clip-path: polygon(0 24%,100% 24%,100% 30%,0 30%,0 62%,100% 62%,100% 67%,0 67%); transform: translateX(13.8px); }
  45% { opacity: 0.575; clip-path: polygon(0 38%,100% 38%,100% 43%,0 43%,0 76%,100% 76%,100% 80%,0 80%); transform: translateX(-10.35px); }
  75%, 100% { opacity: 0; transform: none; }
}
@media (max-width: 700px) { .homepage .hero-slide-additional { background-position: var(--slide-position, center center); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.is-glitching::before { animation: none; } }
