/* ── Tokens ── */
:root {
  --bg: #0e0e0d;
  --surface: #161614;
  --surface-2: #1e1e1b;
  --ink: #efe9de;
  --muted: #b8b0a4;
  --accent: #c08b42;
  --accent-hover: #d4a05a;
  --line: #262420;
  --line-strong: #33302b;
  --radius: 6px;
  --max: 1260px;
  --font-serif: "Prata", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --glass-surface: rgba(255, 255, 255, 0.04);
  --glass-surface-2: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

/* ── Focus ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Background Effects ── */
.bg-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: -3;
  opacity: 0.18;
}

.bg-glow-a {
  top: -10rem;
  left: -12rem;
  background: #e8bf80;
}

.bg-glow-b {
  right: -14rem;
  bottom: -12rem;
  background: #7eb8a2;
}

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

/* ── Layout ── */
.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* ── Header ── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(14, 14, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Glassmorphism utilities */
.glass {
  background: linear-gradient(180deg, var(--glass-surface), var(--glass-surface-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.glass-weak {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Card micro-interactions */
.service-card.glass,
.page-card.glass,
.blueprint-card.glass,
.work-item.glass {
  transition: transform 0.32s cubic-bezier(.2, .9, .3, 1), box-shadow 0.32s ease;
}

.service-card.glass:hover,
.page-card.glass:hover,
.blueprint-card.glass:hover,
.work-item.glass:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Enhanced reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 0.6s cubic-bezier(.2, .9, .3, 1), transform 0.6s cubic-bezier(.2, .9, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Button micro-hover */
.btn {
  will-change: transform;
}

.btn:active {
  transform: translateY(0);
}

/* Header adjustments for small screens */
@media (max-width: 820px) {
  .masthead {
    padding: 1rem 1rem;
  }

  .brand img {
    width: 100px;
  }
}

.brand img {
  width: 120px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-sans);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.nav-links a:hover::before,
.nav-links a.is-active::before {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a:hover {
  text-shadow: 0 0 20px rgba(192, 139, 66, 0.3);
}

.nav-pill {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(192, 139, 66, 0.2) !important;
}

.nav-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-pill:hover::before {
  left: 100%;
}

.nav-pill:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 16px rgba(192, 139, 66, 0.4) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent);
  color: #000;
}

.btn-solid:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(192, 139, 66, 0.3);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 0;
  border: none;
  background: none;
  transition: letter-spacing 0.3s ease;
}

.btn-link:hover {
  letter-spacing: 0.28em;
}

.btn-divider {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
  padding: 0;
  cursor: default;
}

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: rgba(192, 139, 66, 0.08);
  border: 1px solid rgba(192, 139, 66, 0.2);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 18ch;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.lead {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
}

.section-head {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.section-head p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.hero-copy {
  padding: 8rem 4rem 4rem 6rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-media {
  position: relative;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.media-main {
  position: absolute;
  inset: 0;
  margin: 0;
}

.media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(0.15);
}

.media-main figcaption {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

.media-main figcaption span {
  color: var(--accent);
  margin-right: 0.8rem;
}

.media-side {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 28%;
  aspect-ratio: 3 / 4;
  z-index: 5;
  border: 3px solid var(--bg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  margin: 0;
  overflow: hidden;
}

.media-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative hero video */
/* Display video section */
.display-video {
  padding: 3rem 0 1.5rem;
}

.display-video .display-card {
  width: min(980px, 100%);
  margin-inline: auto;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.display-video .display-video-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Ticker ── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 1.2rem;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
  letter-spacing: 0.05em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Section spacing ── */
.story,
.services,
.elements,
.work,
.pages-section,
.contact {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  padding: 7rem 0 4rem;
}

main section[id] {
  scroll-margin-top: 5rem;
}

/* ── Story ── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 0.8rem;
}

.story-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.3s ease;
  position: relative;
}

.service-card:hover {
  background: var(--surface-2);
}

.service-card span {
  font-family: var(--font-sans);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.service-card h3 {
  margin: 0.8rem 0 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.service-icon {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  color: var(--accent);
  opacity: 0.25;
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon {
  opacity: 0.8;
  transform: scale(1.1);
}

/* ── Elements ── */
.elements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.elements-copy p {
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.75;
}

.elements-list {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--muted);
}

.elements-list li+li {
  margin-top: 0.5rem;
}

.elements-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.blueprint-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0;
}

.blueprint-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blueprint-card figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #444;
}

/* ── Portfolio / Work ── */
.work-grid {
  columns: 3;
  column-gap: 1.2rem;
}

.work-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.work-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.04);
}

.work-item figcaption {
  padding: 1rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.work-item figcaption span {
  color: var(--accent);
  margin-right: 0.6rem;
}

/* ── 360 Tours ── */
.tours {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  padding: 7rem 0 4rem;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tour-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.tour-card:hover {
  border-color: var(--accent);
}

.tour-card.fullscreen-active {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  border: none;
  background: #000;
  height: 100vh;
  /* Fallback */
  height: 100dvh;
  width: 100vw;
}

.tour-card.fullscreen-active .tour-embed {
  height: 100%;
  padding-bottom: 0;
}

.tour-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  overflow: hidden;
}

.tour-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tour-footer {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-footer .btn-link {
  font-size: 0.68rem;
}

/* ── Pages Section ── */
.pages-section {
  padding-top: 3rem;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.3s ease;
}

.page-card:hover {
  background: var(--surface-2);
}

.page-card h3 {
  margin-bottom: 0.4rem;
}

.page-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-icon {
  display: block;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.6;
  width: 28px;
  height: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-card:hover .page-icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Contact ── */
.contact {
  margin: 6rem auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.contact-copy {
  padding: 4rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-copy p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.contact-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-item strong {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.contact-meta a {
  color: var(--ink);
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

.contact-meta a:hover {
  color: var(--accent);
}

/* Map preview inside contact */
.contact-map {
  margin-top: 2rem;
}

.contact-map .map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ── Form ── */
.contact-form {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.25s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.4;
}

.contact-form select option {
  background: var(--bg);
  color: var(--ink);
}

.send-btn {
  align-self: flex-start;
  border-radius: var(--radius);
  padding: 1rem 2.5rem;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: #5cb87a;
}

.form-status[data-state="error"] {
  color: #e05a4a;
}

/* ── Footer ── */
.footer {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer a {
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: lbZoom 0.35s ease;
}

@keyframes lbZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  font-family: var(--font-serif);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}



/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 7rem 3rem 3rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-media {
    height: 55vh;
  }

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

  .elements {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .masthead {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .pages-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 6rem 1.5rem 2.5rem;
    order: 1;
  }

  .hero-media {
    height: auto;
    min-height: 18rem;
    order: 2;
  }

  .media-main {
    position: relative;
  }

  .media-main img {
    aspect-ratio: 16/10;
    height: auto;
  }

  .media-side {
    display: none;
  }

  .work-grid {
    columns: 1;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .elements-visuals {
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-form {
    padding: 2.5rem 1.5rem;
  }

  /* Hide lightbox fullscreen button as requested */
  .lightbox-fullscreen {
    display: none !important;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero-copy {
    padding: 5rem 1.2rem 2rem;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-divider {
    display: none;
  }

  .brand img {
    width: 92px;
  }

  .btn {
    padding: 0.85rem 1.2rem;
  }

  /* move mini player higher to avoid OS nav overlap */
  .mini-video {
    bottom: 7.6rem;
    right: 0.8rem;
    width: 260px;
  }

  .mini-video-toggle {
    right: 0.9rem;
    bottom: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mini floating video player */
.mini-video-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  cursor: pointer;
}

.mini-video-toggle:focus {
  outline: 2px solid #00000033;
}

.mini-video {
  position: fixed;
  right: 1rem;
  bottom: 5.2rem;
  width: 320px;
  max-width: calc(100% - 2rem);
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  z-index: 20000;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mini-video.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mini-video-close {
  position: absolute;
  top: 6px;
  right: 6px;
  transition: opacity 0.2s ease;
  z-index: 3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* Hide close button when wrapper is in fullscreen */
.mini-video:fullscreen .mini-video-close,
.mini-video:-webkit-full-screen .mini-video-close,
.mini-video:-moz-full-screen .mini-video-close,
.mini-video:-ms-fullscreen .mini-video-close {
  display: none !important;
}

/* Keep data-attribute based rule as fallback */
.mini-video[data-fullscreen="true"] .mini-video-close {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.mini-video-fullbtn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30000;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* ── Gallery Section Styles ── */
.gallery-section {
  padding: 8rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  width: 100%;
}

.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}

.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card figcaption {
  padding: 1.5rem;
  background: var(--surface);
  position: relative;
}

.gallery-card figcaption h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.gallery-card figcaption p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.gallery-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* ── Features Section Styles ── */
.features-section {
  padding: 8rem 2rem;
  background: var(--surface-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 0;
  width: 100%;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(192, 139, 66, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(192, 139, 66, 0.3);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ── Process Timeline Styles ── */
.process-section {
  padding: 8rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.process-timeline {
  margin-top: 4rem;
  position: relative;
  width: 100%;
}

.process-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
  animation: fadeInLeft 0.6s ease forwards;
  opacity: 0;
}

.process-item:nth-child(1) {
  animation-delay: 0.1s;
}

.process-item:nth-child(2) {
  animation-delay: 0.2s;
}

.process-item:nth-child(3) {
  animation-delay: 0.3s;
}

.process-item:nth-child(4) {
  animation-delay: 0.4s;
}

.process-item:nth-child(5) {
  animation-delay: 0.5s;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  margin-right: 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.process-content {
  flex: 1;
  padding-top: 1rem;
}

.process-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.process-content p {
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA Section Styles ── */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  background: var(--surface);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.cta-content p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Responsive Design ── */
@media (max-width: 768px) {
  .section-head {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .gallery-section {
    padding: 4rem 1rem;
  }

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

  .features-section {
    padding: 4rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .process-section {
    padding: 4rem 1rem;
  }

  .process-item {
    flex-direction: column;
    text-align: center;
  }

  .process-number {
    margin: 0 auto 1rem;
  }

  .cta-section {
    padding: 4rem 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-content {
    padding: 2rem;
  }
}

.mini-video.open .mini-video-fullbtn {
  display: inline-flex;
  transform: none;
}

.mini-video-fullbtn:hover {
  transform: scale(1.04);
}

.mini-video .mini-video-close,
.mini-video .mini-video-fullbtn {
  backdrop-filter: blur(6px);
}

.mini-video[data-fullscreen="true"] {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  aspect-ratio: auto;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 0 !important;
}

.mini-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* play hint shown when autoplay is blocked */
.mini-video-playhint {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
}

.mini-video[data-blocked="true"] .mini-video-playhint {
  display: flex;
}

@media (max-width: 480px) {
  .mini-video {
    width: 260px;
  }

  .mini-video-toggle {
    width: 44px;
    height: 44px;
  }
}