:root {
  color-scheme: light;
  --saffron: #e87524;
  --burnt: #a94316;
  --brown: #54220f;
  --ivory: #f7f0e5;
  --gold: #c9a15a;
  --gold-soft: rgb(201 161 90 / 60%);
  --paper-logo: #faf1e3;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --lift: 0 12px 28px -10px rgb(40 14 4 / 58%), 0 2px 6px rgb(40 14 4 / 20%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--brown); background: var(--brown); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }
h1, p { margin-top: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; color: var(--brown); background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Logo popup — shown once per session; hidden unless the head script adds .intro-active. Closes on click, tap or Escape. */
.intro { display: none; }
.intro-active { overflow: hidden; }
.intro-active .intro { position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 72px 20px; overflow: hidden; color: var(--ivory); background: #2a1007; outline: none; cursor: pointer; transition: opacity .8s ease, visibility .8s; }
.intro-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 46%, rgb(169 67 22 / 55%) 0%, rgb(84 34 15 / 45%) 42%, transparent 74%), radial-gradient(circle at 50% 40%, rgb(232 117 36 / 14%) 0%, transparent 32%), radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgb(20 7 2 / 60%) 100%); pointer-events: none; }
.intro-content { position: relative; display: flex; max-width: 100%; flex-direction: column; align-items: center; text-align: center; perspective: 900px; transition: transform .8s ease; }
/* Gold bevel ring → brown gap → ivory logo disc, with soft drop shadow for depth */
.intro-emblem { width: min(64vw, 36vh, 290px); aspect-ratio: 1; padding: 1.5px; border-radius: 50%; background: linear-gradient(150deg, #ecd39a 0%, #9c7a3c 36%, #d9bb7c 68%, #7d6230 100%); box-shadow: 0 32px 64px -24px rgb(10 3 0 / 78%), 0 0 0 8px rgb(201 161 90 / 6%), 0 0 48px rgb(232 117 36 / 18%); animation: intro-emblem 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.intro-disc { position: relative; width: 100%; height: 100%; overflow: hidden; border: 7px solid #3a160a; border-radius: 50%; background: var(--paper-logo); }
.intro-disc::after { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 20%, rgb(255 255 255 / 20%), transparent 46%); box-shadow: inset 0 0 0 1px rgb(201 161 90 / 50%), inset 0 5px 14px rgb(70 40 12 / 20%), inset 0 -4px 12px rgb(255 255 255 / 32%); content: ""; pointer-events: none; }
/* The logo keeps its own ratio; the offset centres the artwork's ink in the disc, which only crops the surrounding paper. */
.intro-logo { position: absolute; top: 50%; left: 50%; display: block; width: 135%; max-width: none; height: auto; transform: translate(-49.37%, -52.19%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); }
.intro-name { margin: clamp(26px, 4.2vh, 40px) 0 0; padding-left: .3em; color: var(--ivory); font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: .3em; line-height: 1.2; text-shadow: 0 2px 16px rgb(20 7 2 / 50%); text-transform: uppercase; animation: intro-rise .9s .45s ease both; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro.is-leaving .intro-content { transform: scale(1.015); }
.intro-active .hero-copy { animation-play-state: paused; }

/* Header */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 84px; color: white; transition: background .35s, box-shadow .35s; }
.site-header.is-scrolled { background: rgb(247 240 229 / 95%); box-shadow: 0 1px 0 var(--gold-soft), 0 10px 24px -18px rgb(40 14 4 / 60%); backdrop-filter: blur(18px); }
.nav-wrap { display: flex; width: min(1280px, calc(100% - 112px)); height: 100%; align-items: center; justify-content: space-between; margin-inline: auto; }
/* Logo card: ivory paper with a gold hairline; shows the full logo artwork, cropping only its plain paper margin. */
.brand { position: relative; display: block; width: 116px; height: 68px; flex: 0 0 auto; overflow: hidden; border-radius: 4px; background: var(--paper-logo); box-shadow: 0 0 0 1px var(--gold-soft), var(--lift); transition: transform .25s ease, box-shadow .25s ease; }
.brand::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), inset 0 -10px 16px -12px rgb(90 50 20 / 30%); content: ""; pointer-events: none; }
.brand:hover { box-shadow: 0 0 0 1px var(--gold), 0 16px 32px -12px rgb(40 14 4 / 66%), 0 2px 6px rgb(40 14 4 / 20%); transform: translateY(-1px); }
/* Offset centres the artwork's ink (not the image canvas) inside the card. */
.brand-logo { position: absolute; top: 50%; left: 50%; display: block; width: 170px; max-width: none; height: auto; transform: translate(-49.67%, -51.49%); }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 46px); }
.nav-link { color: rgb(255 255 255 / 88%); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-shadow: 0 1px 10px rgb(30 11 4 / 55%); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after { display: block; width: 15px; height: 1px; margin-top: 5px; background: var(--saffron); content: ""; }
.is-scrolled .nav-link { color: rgb(84 34 15 / 82%); text-shadow: none; }
.is-scrolled .nav-link:hover, .is-scrolled .nav-link.active { color: var(--brown); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; display: flex; min-height: max(720px, 100svh); align-items: stretch; overflow: hidden; color: white; background-color: var(--burnt); background-image: url("./hero-desktop.png"); background-position: center; background-repeat: no-repeat; background-size: cover; isolation: isolate; }
/* Localized warm shade: darkens only the left third behind the copy and the header strip, leaving the Chakra clear. */
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(42 16 6 / 34%) 0%, transparent 16%), linear-gradient(90deg, rgb(42 16 6 / 74%) 0%, rgb(42 16 6 / 62%) 24%, rgb(42 16 6 / 30%) 35%, transparent 44%); }
.hero-inner { position: relative; display: flex; width: min(1280px, calc(100% - 112px)); min-height: inherit; align-items: center; margin: 0 auto; padding: 118px 0; }
/* Width tracks the viewport so the copy always ends before the Chakra's left edge. */
.hero-copy { position: relative; width: min(430px, 29vw); animation: copy-arrive .95s .12s both; }
/* Soft local shade that follows the copy at every width; it fades out before the Chakra. */
.hero-copy::before { position: absolute; z-index: -1; inset: -34% -16% -34% -22%; background: radial-gradient(closest-side, rgb(42 16 6 / 48%), rgb(42 16 6 / 24%) 60%, transparent); content: ""; pointer-events: none; }
.hero-message { margin: 0; color: var(--ivory); font-family: var(--display); font-size: clamp(24px, 2.3vw, 40px); font-weight: 500; letter-spacing: .004em; line-height: 1.32; text-shadow: 0 1px 2px rgb(30 11 4 / 45%), 0 2px 22px rgb(30 11 4 / 36%); text-wrap: pretty; }

@keyframes copy-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes intro-emblem { from { opacity: 0; transform: translateY(10px) rotateX(10deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .nav-wrap, .hero-inner { width: calc(100% - 64px); }
  .hero { min-height: max(700px, 100svh); }
  .primary-nav { gap: 19px; }
}

/* Portrait tablets: the Chakra fills the centre, so the copy moves above it. */
@media (min-width: 681px) and (max-width: 900px) and (orientation: portrait) {
  .hero-shade { background: linear-gradient(180deg, rgb(42 16 6 / 70%) 0%, rgb(42 16 6 / 48%) 20%, rgb(42 16 6 / 10%) 32%, transparent 40%); }
  .hero-inner { align-items: flex-start; padding-top: 128px; }
  .hero-copy { width: min(560px, 100%); }
  .hero-message { font-size: clamp(28px, 4vw, 34px); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .hero-inner { width: calc(100% - 40px); }
  .site-header { height: 70px; }
  .nav-wrap { width: calc(100% - 36px); }
  .brand { width: 100px; height: 58px; }
  .brand-logo { width: 146px; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 1px solid rgb(247 240 229 / 55%); border-radius: 4px; background: rgb(84 34 15 / 45%); box-shadow: var(--lift); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background .2s, border-color .2s; }
  .menu-toggle span { width: 19px; height: 1px; background: white; transition: transform .2s, background .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .is-scrolled .menu-toggle { border-color: var(--gold-soft); background: rgb(255 255 255 / 40%); }
  .is-scrolled .menu-toggle span { background: var(--brown); }
  .primary-nav { position: absolute; top: 69px; right: 0; left: 0; display: flex; visibility: hidden; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-top: 1px solid var(--gold-soft); border-bottom: 2px solid var(--saffron); background: var(--ivory); box-shadow: 0 18px 30px -18px rgb(40 14 4 / 70%); opacity: 0; transform: translateY(-7px); transition: opacity .2s, transform .2s, visibility .2s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-link, .is-scrolled .nav-link { min-height: 44px; padding: 15px 4px; border-bottom: 1px solid rgb(201 161 90 / 30%); color: rgb(84 34 15 / 85%); font-size: 13px; text-shadow: none; }
  .nav-link:hover, .nav-link.active, .is-scrolled .nav-link.active { color: var(--burnt); }
  .nav-link.active { box-shadow: inset 2px 0 0 var(--saffron); padding-left: 12px; }
  .nav-link.active::after { display: none; }
  .hero { min-height: max(690px, 100svh); background-image: url("./hero-mobile.jpeg"); background-position: center 44%; }
  .hero-shade { background: linear-gradient(180deg, rgb(42 16 6 / 74%) 0%, rgb(42 16 6 / 56%) 24%, rgb(42 16 6 / 14%) 36%, transparent 44%); }
  .hero-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 100px; padding-bottom: 40px; }
  .hero-copy { width: 100%; max-width: 360px; }
  .hero-message { font-size: clamp(22px, 6.1vw, 27px); line-height: 1.34; }
  .intro-name { padding-left: .24em; font-size: clamp(19px, 5.6vw, 24px); letter-spacing: .24em; }
}

@media (max-width: 360px) {
  .hero-inner { padding-top: 96px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .site-header { height: 68px; }
  .brand { width: 96px; height: 54px; }
  .brand-logo { width: 140px; }
  .hero { min-height: max(390px, 100svh); }
  .hero-inner { padding: 72px 0 40px; }
  .hero-copy { width: min(360px, 34vw); }
  .hero-message { font-size: clamp(19px, 2.8vw, 26px); }
  .intro-active .intro { padding-block: 56px; }
  .intro-name { margin-top: 16px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
