/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C9A15C;
  color: #101826;
}

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

/* ===== Typography helpers ===== */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7C6437;
  font-weight: 500;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-headline .font-serif {
  display: block;
  margin-top: -0.05em;
  line-height: 1.2;
}

/* ===== Navbar: floating island ===== */
.nav-island {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(92%, 900px);
  border-radius: 999px;
  background: rgba(16, 24, 38, 0.0);
  border: 1px solid rgba(246, 241, 231, 0.15);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-island.scrolled {
  background: rgba(16, 24, 38, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(201, 161, 92, 0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.nav-logo {
  color: #F6F1E7;
}

.nav-link {
  color: rgba(246, 241, 231, 0.8);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: #F6F1E7;
  transform: translateY(-1px);
}

/* ===== Buttons ===== */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.btn-magnetic:hover {
  transform: scale(1.03);
}

.btn-fill {
  position: absolute;
  inset: 0;
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
}

.btn-magnetic:hover .btn-fill {
  transform: translateY(0);
}

.btn-accent {
  background: #C9A15C;
  color: #101826;
  border: 1px solid #C9A15C;
}
.btn-accent .btn-fill { background: #E4C387; }

.btn-ghost {
  background: transparent;
  color: #F6F1E7;
  border: 1px solid rgba(246, 241, 231, 0.35);
}
.btn-ghost .btn-fill { background: rgba(246, 241, 231, 0.12); }

.btn-ink {
  background: #101826;
  color: #F6F1E7;
  border: 1px solid #101826;
}
.btn-ink .btn-fill { background: #20242C; }

/* ===== Hero ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 10% 100%, rgba(201,161,92,0.14), transparent 55%),
    linear-gradient(180deg, #101826 0%, #0C1220 55%, #080D16 100%);
}

.hero-contours-static {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(201,161,92,0.3) 1px, transparent 0),
    radial-gradient(1px 1px at 70% 60%, rgba(201,161,92,0.2) 1px, transparent 0);
  background-size: 140px 140px, 200px 200px;
}

/* ===== Sections ===== */
.section-pad {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* ===== Portrait ===== */
.portrait-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #101826, #20242C);
  border: 1px solid rgba(201,161,92,0.25);
}

.portrait-frame-sm {
  max-width: 320px;
}

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

/* ===== Value chips / offer cards ===== */
.value-chip {
  background: rgba(16,24,38,0.03);
  border: 1px solid rgba(16,24,38,0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.offer-card {
  background: #FFFDF8;
  border: 1px solid rgba(16,24,38,0.08);
  border-radius: 1.75rem;
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16,24,38,0.08);
}

.offer-card-dark {
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.12);
}
.offer-card-dark:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ===== Service cards ===== */
.service-card {
  display: flex;
  flex-direction: column;
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.12);
  border-radius: 2rem;
  padding: 2rem;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), background 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(201,161,92,0.06);
  border-color: rgba(201,161,92,0.3);
}

.service-card-title {
  min-height: 3.6em;
  display: flex;
  align-items: flex-start;
}

.service-card-body {
  flex-grow: 1;
}

.service-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #C9A15C;
  letter-spacing: 0.15em;
}

/* ===== Results ===== */
.result-card {
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.12);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.result-stat {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.result-stat-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  color: #C9A15C;
}

.result-stat-label {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(246,241,231,0.7);
  margin-top: 0.15rem;
}

/* ===== Culture sticky stack ===== */
.culture-stack {
  position: relative;
  background: #101826;
  color: #F6F1E7;
  padding-bottom: 4rem;
}

.culture-intro {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #101826;
}

.stack-panels {
  position: relative;
  z-index: 1;
}

.stack-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .stack-panel {
    padding: 0 3rem;
  }
}

.stack-panel-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.stack-panel[data-panel="1"] { background: linear-gradient(160deg, #101826, #16202F); }
.stack-panel[data-panel="2"] { background: linear-gradient(160deg, #14202F, #1B2636); }
.stack-panel[data-panel="3"] { background: linear-gradient(160deg, #182636, #202C3D); }
.stack-panel[data-panel="4"] { background: linear-gradient(160deg, #1C2A3B, #263444); }

/* ===== Footer ===== */
.footer {
  border-radius: 4rem 4rem 0 0;
}

.footer-link {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.footer-link:hover {
  color: #F6F1E7;
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #C9A15C;
  display: inline-block;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,161,92,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(201,161,92,0); }
}

.mascot-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mascot-photo-frame {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(201,161,92,0.45);
}

.mascot-img-lg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .mascot-block {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Privacy modal ===== */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.privacy-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16,24,38,0.65);
  backdrop-filter: blur(6px);
}

.privacy-modal-panel {
  position: relative;
  background: #F6F1E7;
  border-radius: 2rem;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.25rem;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.privacy-modal.open .privacy-modal-panel {
  transform: translateY(0);
}

.privacy-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  line-height: 1;
  color: #20242C;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Reveal animation baseline (before GSAP takes over) ===== */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
}

.no-js [data-anim] {
  opacity: 1;
  transform: none;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
  .stack-panel {
    position: relative;
    height: auto;
    padding: 4rem 1.5rem;
  }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .hero-headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
}
