/* ── TOKENS ── */
:root {
  --cream: #F4F1EC;
  --ink:   #0E0D0B;
  --mid:   #6B6660;
  --gold:  #B89050;
  --rule:  #D9D4CC;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1000;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
#cursor-ring {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  will-change: transform;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }
.d6 { animation-delay: 0.85s; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: var(--gold);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.65);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 60px 60px;
  position: relative;
  overflow: hidden;
}
.hero-logo {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  pointer-events: none;
}
.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-logo-mobile {
  display: none;
  margin-bottom: 36px;
  width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.hero-logo-mobile img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-inner {
  align-self: center;
  padding-top: 60px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 40px;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  max-width: 380px;
  line-height: 1.8;
}
.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--rule), var(--ink));
  align-self: end;
}

/* ── ABOUT ── */
#about {
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  background: var(--ink);
}
.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--cream);
}
.about-body { padding-top: 12px; }
.about-body p {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(244,241,236,0.5);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.6rem;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.4);
  margin-top: 4px;
}

/* ── PRINCIPLES ── */
#principles {
  padding: 120px 60px;
  background: var(--cream);
  color: var(--ink);
}
.principles-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.principles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.principles-head .section-label { color: var(--gold); }
.principles-head h2 { color: var(--ink); }
.principle-list { list-style: none; }
.principle-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding-left 0.3s;
}
.principle-item:hover { padding-left: 8px; }
.principle-n {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: rgba(14,13,11,0.15);
}
.principle-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.principle-body {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  line-height: 1.9;
}

/* ── CONTACT ── */
#contact {
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  background: var(--ink);
}
.contact-left h2 { margin-bottom: 20px; color: var(--cream); }
.contact-left p {
  font-size: 0.75rem;
  color: rgba(244,241,236,0.5);
  letter-spacing: 0.05em;
  line-height: 1.9;
}
.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s, border-color 0.25s;
}
.contact-email:hover { color: var(--gold); }
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-detail {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-detail-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-detail-value {
  font-size: 0.76rem;
  color: rgba(244,241,236,0.5);
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
footer {
  padding: 36px 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
}
.footer-copy {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(244,241,236,0.35);
}
.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.35);
}

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; }
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.mobile-menu-close:hover { opacity: 1; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  nav { padding: 24px 40px; }
  #hero { padding: 0 40px 48px; }
  .hero-logo { width: 50%; }
  #about { padding: 100px 40px; gap: 56px; }
  #subsidiaries { padding: 0 40px 100px; }
  .sub-card { padding: 48px 40px; }
  #principles { padding: 100px 40px; }
  #contact { padding: 100px 40px; gap: 56px; }
  footer { padding: 32px 40px; }
}

/* ── MOBILE (max 768px) ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }

  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  #hero { padding: 0 24px 40px; min-height: auto; }
  .hero-inner { padding-top: 80px; padding-bottom: 24px; }
  .hero-logo-mobile { margin-bottom: 36px; margin-top: 16px; }
  h1 { margin-bottom: 20px; }
  .hero-logo { display: none; }
  .hero-logo-mobile { display: block; }
  .hero-tagline { max-width: 100%; font-size: 0.82rem; }

  #about { grid-template-columns: 1fr; padding: 72px 24px; gap: 40px; }
  .about-stats { gap: 24px; }

  #subsidiaries { padding: 0 24px 72px; }
  .sub-header { flex-direction: column; gap: 8px; margin-bottom: 40px; }
  .sub-grid { grid-template-columns: 1fr; }
  .sub-card { padding: 44px 32px; }

  #principles { padding: 72px 24px; }
  .principles-head { flex-direction: column; gap: 12px; margin-bottom: 48px; }
  .principle-item { grid-template-columns: 36px 1fr; gap: 20px; padding: 28px 0; }

  #contact { grid-template-columns: 1fr; padding: 72px 24px; gap: 48px; align-items: start; }
  .contact-email { font-size: 1.3rem; }

  footer { padding: 24px; flex-direction: column; gap: 10px; text-align: center; }
}

/* ── SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
  h1 { font-size: 2.6rem; margin-bottom: 16px; }
  h2 { font-size: 1.9rem; }
  .sub-name { font-size: 1.9rem; }
  .sub-card { padding: 36px 24px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-num { font-size: 2rem; }
  .principle-item { grid-template-columns: 30px 1fr; gap: 16px; }
  .principle-title { font-size: 1.1rem; }
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--ink);
  color: var(--cream);
}
