:root {
  --bg-light: #ffffff;
  --panel-light: #ffffff;
  --ink-dark: #111111;
  --ink-muted: #4d4d4d;
  --line-light: #d9d9d9;
  --bg-dark: #0d0d0d;
  --gold: #f3d06b;
  --silver: #d7dce5;
  --line-gold: rgba(243, 208, 107, 0.24);
  --font-sans: "Aptos", "Aptos Display", "Segoe UI", "Avenir Next", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--ink-dark);
  padding: clamp(0.55rem, 1.2vw, 1rem);
}

.surface {
  width: min(1920px, 100%);
  min-height: calc(100svh - clamp(1.1rem, 2.4vw, 2rem));
  margin: 0 auto;
  border: none;
  box-shadow: none;
  padding: clamp(0.04rem, 0.08vw, 0.08rem) clamp(0.03rem, 0.09vw, 0.13rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(0.04rem, 0.1vw, 0.08rem);
  background: transparent;
}

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

.coming-soon,
.brand-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 2.66vw, 3.1875rem);
  line-height: 1;
  letter-spacing: 0.015em;
}

.brand-label {
  font-size: clamp(1.1rem, 1.6vw, 1.65rem);
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 2rem);
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.56vw, 1.875rem);
  line-height: 1.1;
  color: var(--ink-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.05em;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.site-nav a:hover {
  opacity: 0.76;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  margin-left: auto;
}

/* Ensure mobile menu is hidden by default on mobile */
@media (max-width: 980px) {
  .page-nav {
    display: none;
  }
}

.page-link {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  line-height: 1.2;
  color: var(--ink-dark);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 150ms ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.page-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.page-link.is-active {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(243, 208, 107, 0.3);
}

body.home .page-link {
  color: var(--gold);
  border-color: rgba(243, 208, 107, 0.3);
  background: rgba(243, 208, 107, 0.1);
}

body.home .page-link:hover {
  background: rgba(243, 208, 107, 0.2);
  border-color: rgba(243, 208, 107, 0.5);
}

body.home .page-link.is-active {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
}

.hero {
  display: grid;
  place-content: center;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  padding: clamp(1rem, 2.5vw, 2.8rem) 0 clamp(2rem, 4vw, 4.2rem);
}

.hero-mark {
  width: clamp(240px, 25vw, 460px);
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7.2vw, 8.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink-dark);
}

.tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 2.97vw, 3.5625rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink-muted);
}

.content-surface {
  grid-template-rows: auto auto;
}

.surface-multi {
  grid-template-rows: auto auto;
}

.content {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(0.5rem, 1vw, 1.2rem) 0 clamp(1.2rem, 2vw, 2rem);
}

.content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.content h2 {
  margin: 1.4rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  letter-spacing: 0.01em;
  color: var(--ink-dark);
}

.content p,
.content li {
  margin: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink-muted);
}

.content ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.35rem;
}

.content li {
  margin: 0.3rem 0;
}

.content li::marker {
  color: var(--ink-dark);
}

.content section + section {
  margin-top: clamp(0.5rem, 1vw, 1.2rem);
}

.content .trajectory {
  color: var(--ink-dark);
}

.inline-link {
  color: var(--ink-dark);
  border-bottom: 1px solid var(--ink-dark);
  text-decoration: none;
}

.contact-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: #ffffff;
  background: #111111;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #111111;
}

.contact-cta:hover {
  opacity: 0.9;
}

.hero-home {
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero-media {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

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

.full-page-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 2vw, 3rem);
}

.full-page-image img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 1rem;
  border: none;
  box-shadow: none;
}

/* Mobile Image Optimization - Full Width Display */
@media (max-width: 980px) {
  .full-page-image {
    padding: 0;
    margin: 0;
    min-height: 80vh;
  }

  .full-page-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
    left: 0;
    transform: none;
  }
}

/* Extra optimization for very small screens */
@media (max-width: 640px) {
  .full-page-image {
    min-height: 70vh;
    padding: 0;
  }

  .full-page-image img {
    max-height: 75vh;
    width: 100%;
    max-width: 100%;
  }
}

/* Remove space between menu bar and images on mobile */
@media (max-width: 980px) {
  .surface {
    padding: 0 !important;
  }
  
  .topbar {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .full-page-image {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Remove any additional spacing that might exist */
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  header {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  section {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.surface-single {
  grid-template-rows: auto 1fr;
}

body.home .full-page-image img {
  mix-blend-mode: lighten;
  filter: none;
}

body.home {
  background: var(--bg-dark);
  color: var(--gold);
}

body.home .surface {
  border: none;
  box-shadow: none;
  background: transparent;
}

body.home .coming-soon,
body.home .brand-label,
body.home .site-nav a,
body.home h1 {
  color: var(--gold);
}

body.home .tagline {
  color: var(--silver);
}

body.home .hero-mark {
  mix-blend-mode: lighten;
  filter: none;
}

body:not(.home) {
  background: var(--bg-light);
  color: var(--ink-dark);
}

body:not(.home) .surface {
  background: transparent;
}

/* Hide old hamburger menu */
.hamburger {
  display: none;
}

/* Mobile Dropdown Navigation Styles */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-label {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--ink-dark);
  margin: 0;
  display: none; /* Hide label, just use for accessibility */
}

.mobile-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #111111;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  min-width: 120px;
}

.mobile-select:hover {
  border-color: #b8c3cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ensure mobile dropdown is visible on mobile devices */
@media (max-width: 980px) {
  .mobile-nav {
    display: flex !important;
    width: 100%;
    justify-content: flex-end;
  }
  
  .mobile-menu-label {
    display: block !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Show mobile dropdown on mobile devices */
  .mobile-nav {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }

  .mobile-menu-label {
    display: block;
  }

  /* Hide desktop navigation on mobile */
  .page-nav {
    display: none;
  }

  body.home .page-nav {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(243, 208, 107, 0.2);
  }

  .page-nav.is-active {
    display: flex !important;
  }

  .page-link {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
  }

  .page-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  body.home .page-link:hover {
    background: rgba(243, 208, 107, 0.1);
    border-color: rgba(243, 208, 107, 0.3);
  }

  .hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding-top: 0.35rem;
  }

  .page-section-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .surface {
    min-height: 100svh;
    padding: 1rem;
    border-left: 0;
    border-right: 0;
  }

  .coming-soon {
    font-size: clamp(1.2rem, 10vw, 2.05rem);
  }

  .site-nav a {
    font-size: clamp(0.95rem, 5.2vw, 1.22rem);
  }

  .hero {
    gap: 1rem;
    padding-bottom: 3.1rem;
  }

  .page-section {
    margin-top: 1.6rem;
  }

  .hero-mark {
    width: clamp(200px, 66vw, 330px);
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .tagline {
    font-size: clamp(1.45rem, 8.5vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
