/*
  Still Point {technodelic} Studio
  Canonical public-site foundation
  Canonical public-site foundation, audited against the FINAL locked Website Standards.

  Page-family and page-specific composition remain outside this file.
  This file may be connected only through controlled page migrations.
*/

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/cormorant-garamond-latin.woff2') format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/cormorant-garamond-latin-italic.woff2') format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/jost-latin.woff2') format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0d0c0f;
  /* Shared production-derived surface tokens used across page compositions. */
  --bg2: #111018;
  --bg3: #16141c;
  --surface: rgba(255,255,255,.04);
  --surface2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.13);
  --border2: rgba(255,255,255,.14);

  --ink: #f0eee8;
  --ink2: rgba(240,238,232,.74);
  --ink3: rgba(240,238,232,.58);

  --gold: #c9a96e;
  --gold2: #e8c98a;
  --purple: #7b5ea7;

  --radius: 8px;
  --r: var(--radius);
  --radius-pill: 999px;
  --radius-circle: 50%;

  --container: 1100px;
  --gutter-desktop: 32px;
  --gutter-tablet: 24px;
  --gutter-mobile: 20px;

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
  --cream: var(--ink);

  --section-compact-desktop: 64px;
  --section-compact-mobile: 48px;
  --section-standard-desktop: 96px;
  --section-standard-mobile: 64px;
  --section-expansive-desktop: 120px;
  --section-expansive-mobile: 80px;

  /* Locked typography roles */
  --text-lead: 19px;
  --text-body: 17px;
  --text-card: 16px;
  --text-details: 15px;
  --text-functional: 14px;
  --text-disclaimer: 13.5px;
  --line-lead: 1.7;
  --line-body: 1.7;
  --line-card: 1.65;
  --line-disclaimer: 1.6;

  /* Locked internal relationships */
  --space-eyebrow-heading: 12px;
  --space-heading-support: 16px;
  --space-support-content: 40px;
  --space-paragraph: 16px;
  --grid-gap-desktop: 24px;
  --grid-gap-mobile: 16px;

  /* Locked component padding roles */
  --component-compact-desktop: 20px;
  --component-compact-mobile: 16px;
  --component-standard-desktop: 28px;
  --component-standard-mobile: 20px;
  --component-spacious-desktop: 36px;
  --component-spacious-mobile: 24px;
}

/* ---------- Foundation ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 78% 52% at 72% 48%, rgba(123,94,167,.15) 0%, rgba(123,94,167,.06) 42%, transparent 74%),
    radial-gradient(ellipse 58% 40% at 34% 74%, rgba(123,94,167,.07) 0%, transparent 72%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--line-body);
  overflow-x: hidden;
}

/* Production evidence resolves the previously open noise-texture question:
   15 of 16 public pages use a noise layer, and 13 use this 256px recipe.
   The texture is therefore global infrastructure, not page composition. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .5;
  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='0.04'/%3E%3C/svg%3E");
}

img, svg, video {
  max-width: 100%;
}

img {
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
}

h1 {
  font-size: clamp(42px, 5vw, 77px);
  font-weight: 300;
  line-height: 1.08;
}

h2 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.12;
}

h3 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.22;
}

h4 {
  font-weight: 400;
  line-height: 1.22;
}

p {
  margin-top: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Containers and rhythm ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-desktop);
}

.section-compact {
  padding-block: var(--section-compact-desktop);
}

.section-standard {
  padding-block: var(--section-standard-desktop);
}

.section-expansive {
  padding-block: var(--section-expansive-desktop);
}

/* ---------- Standard interior hero ----------
   Used by About, Your Visit, Offerings, and similar text-led interior pages.
   Natural content height: no vh/min-height and no compensating vertical positioning. */
.interior-hero {
  position: relative;
  overflow: hidden;
  padding-block: 160px 96px;
}

.interior-hero .eyebrow {
  margin-bottom: var(--space-eyebrow-heading);
}

.interior-hero h1 {
  margin: 0;
}

.interior-hero-support {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--ink2);
  font-family: var(--sans);
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: var(--line-lead);
}

/* Full-width section transparency remains composition-owned during migration.
   The global ambient surface lives on body; authored washes and module surfaces remain local. */

/* ---------- Shared header ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(13,12,15,.95), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  width: max-content;
  flex: 0 0 auto;
  text-decoration: none;
  transform: translateY(-3px);
  justify-self: start;
}

.nav-logo-img {
  width: auto;
  height: 48px;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.65rem;
  min-width: 0;
  flex: 0 1 auto;
  justify-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink2);
  transition: color .18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* Contact is a compact navigation control, not a standard action button.
   Its compact geometry and lighter 400 weight are retained from the approved nav system. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: .56rem 1.28rem;
  border: 1px solid rgba(201,169,110,.48);
  border-radius: var(--radius-pill);
  background: rgba(17,16,24,.62);
  color: var(--gold2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
  justify-self: end;
}

.nav-cta:hover,
.nav-cta.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,.08);
}

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.35rem;
  max-height: 80vh;
  padding: 6.5rem 2rem 2.5rem;
  overflow-y: auto;
  border-bottom: .5px solid var(--border);
  background: rgba(13,12,15,.98);
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  transition: color .18s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
}

.mobile-close,
.mobile-menu .mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink2);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Actions ---------- */
/* Canonical action classes are .btn-primary and .btn-ghost.
   The Homepage legacy .btn.primary/.btn.secondary convention will be normalized during its migration. */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.btn-primary {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(201,169,110,.48);
  background: rgba(17,16,24,.62);
  color: var(--gold2);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,.08);
}

/* ---------- Universal bottom CTA ---------- */
.cta-section {
  padding-block: var(--section-compact-desktop);
  padding-inline: var(--gutter-desktop);
  border-top: .5px solid var(--border);
  text-align: center;
}

/* CTA uses the canonical eyebrow, H2, support-copy, and button roles. */
.cta-section h2 {
  margin-top: var(--space-eyebrow-heading);
  margin-bottom: var(--space-heading-support);
}

.cta-section p {
  max-width: 620px;
  margin: 0 auto var(--space-support-content);
  color: var(--ink2);
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: var(--line-lead);
}

/* ---------- Footer ---------- */
footer {
  padding: 3rem 2rem;
  border-top: .5px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-logo-lockup {
  display: flex;
  align-items: flex-start;
  width: max-content;
  margin-bottom: .3rem;
}

.footer-logo-img {
  width: auto;
  height: 48px;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand p,
.footer-brand .footer-descriptor {
  max-width: none;
  margin-top: .3rem;
  color: rgba(240,238,232,.74);
  font-size: 15px;
  line-height: 1.7;
}

.footer-contact h4 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-contact a,
.footer-contact p {
  color: var(--ink);
  font-size: var(--text-details);
}

.footer-contact p {
  margin: 0;
  line-height: 1.9;
}

.footer-contact a {
  transition: color .15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: .5px solid var(--border);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: var(--ink2);
  font-size: var(--text-functional);
  transition: color .15s ease;
}

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

/* ---------- Forms ---------- */
label {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* Scope field geometry to actual text-entry controls. Radio/checkbox controls are
   intentionally excluded so global field sizing cannot distort custom controls. */
:where(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="password"],
  select,
  textarea
) {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  transition: border-color .18s ease, background .18s ease;
}

:where(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="password"],
  select,
  textarea
):focus-visible {
  border-color: var(--gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

::placeholder {
  color: rgba(240,238,232,.58);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ---------- Responsive shared behavior ---------- */
@media (min-width: 961px) and (max-width: 1180px) {
  nav .nav-links {
    gap: 1.05rem;
  }

  nav .nav-links a {
    font-size: 12px;
    letter-spacing: .07em;
  }
}

@media (max-width: 960px) {
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav .nav-links,
  nav /* Contact is a compact navigation control, not a standard action button.
   Its compact geometry and lighter 400 weight are retained from the approved nav system. */
.nav-cta {
    display: none;
  }

  nav .nav-mobile-toggle {
    display: grid;
  }

  .mobile-menu.open {
    display: flex;
  }
}

/* The menu collapses at <=960px; the compact mobile header/logo treatment begins at <=768px.
   These are intentionally different thresholds in the approved navigation system. */
@media (max-width: 768px) {
  .interior-hero {
    padding-block: 128px 64px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .container {
    padding-inline: var(--gutter-mobile);
  }

  .cta-section,
  footer {
    padding-inline: var(--gutter-mobile);
  }

  .cta-section {
    padding-block: var(--section-compact-mobile);
  }

  .section-compact {
    padding-block: var(--section-compact-mobile);
  }

  .section-standard {
    padding-block: var(--section-standard-mobile);
  }

  .section-expansive {
    padding-block: var(--section-expansive-mobile);
  }

  nav {
    padding: 13px 18px;
    background: linear-gradient(to bottom, rgba(12,11,14,.98), rgba(12,11,14,.72), transparent);
  }

  nav .nav-logo {
    transform: none;
  }

  nav .nav-logo-img {
    height: 40px;
  }

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

  .footer-brand .footer-descriptor {
    width: auto;
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .container {
    padding-inline: var(--gutter-tablet);
  }

  .cta-section,
  footer {
    padding-inline: var(--gutter-tablet);
  }
}

/* Motion is opt-in at the page/component level. Respect reduced-motion globally. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
