/* =========================================================
   Temple — templeawakens.com
   ========================================================= */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/work-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/work-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #040b1f;
  --navy: #071634;
  --navy-2: #0b1f47;
  --blue: #1d4f91;
  --ice: #a9c6e6;
  --ivory: #f4f1ea;
  --ivory-2: #e8e2d4;
  --text-dark: #0b1733;
  --muted-dark: #4a556e;

  --on-dark: rgba(244, 241, 234, 0.88);
  --on-dark-muted: rgba(244, 241, 234, 0.58);
  --line-dark: rgba(169, 198, 230, 0.18);
  --line-light: rgba(11, 23, 51, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ice); color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--navy); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.dark { color: var(--blue); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 8.2vw, 116px);
  line-height: .96;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.display em, .h2 em { font-style: italic; color: var(--ice); }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.light .h2 { color: var(--text-dark); }
.light .h2 em { color: var(--blue); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ivory); }

.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--on-dark); max-width: 34em; margin-top: 32px; }
.lede.dark, .prose.dark p { color: var(--muted-dark); }
.prose p { color: var(--on-dark); max-width: 32em; }
.prose p + p { margin-top: 1.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: rgba(244,241,234,.6); }
.btn-dark { background: var(--navy); color: var(--ivory); margin-top: 36px; }
.btn-dark:hover { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-link {
  font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark); padding: 8px 0;
  border-bottom: 1px solid var(--line-dark); transition: border-color .3s, color .3s;
}
.btn-link span { display: inline-block; transition: transform .3s var(--ease); }
.btn-link:hover { color: var(--ivory); border-color: var(--ice); }
.btn-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(7, 22, 52, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line-dark);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.brand img { width: 20px; height: auto; }
.brand span { font-size: 13px; font-weight: 400; letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }

.nav ul { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-muted); transition: color .3s;
}
.nav a:hover { color: var(--ivory); }
.nav .nav-cta { color: var(--ivory); border: 1px solid rgba(244,241,234,.35); padding: 10px 20px; border-radius: 999px; transition: background .3s, color .3s; }
.nav .nav-cta:hover { background: var(--ivory); color: var(--navy); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 40px;
  background: radial-gradient(120% 90% at 78% 40%, var(--navy-2) 0%, var(--navy) 46%, var(--ink) 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(29,79,145,.35) 0%, rgba(29,79,145,0) 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; margin-top: 48px; }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: end; }
.rings { position: absolute; inset: -6%; width: 112%; height: 112%; fill: none; stroke: var(--ice); stroke-width: .7; opacity: .35; animation: spin 140s linear infinite; }
.orb {
  position: absolute; inset: 9%;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.65), inset 0 0 0 1px rgba(169,198,230,.15);
  background: radial-gradient(circle at 35% 30%, #1b4a7d, #0b2650 70%);
}
.orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.orb-fallback::after {
  content: ""; position: absolute; inset: 30%;
  background: url("/assets/temple-mark-white.png") center / contain no-repeat;
  opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  margin-top: clamp(64px, 9vw, 120px); padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hero-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ice); opacity: .6; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.light { background: var(--ivory); color: var(--text-dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

/* Source */
.source { background: var(--navy); overflow: hidden; }
.source::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 140vw); aspect-ratio: 1;
  transform: translate(-50%, -62%);
  border-radius: 50%; border: 1px solid var(--line-dark);
  box-shadow: 0 0 0 80px rgba(169,198,230,.02), 0 0 0 160px rgba(169,198,230,.015);
  pointer-events: none;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line-dark); }
.stats li { padding: 40px 32px 0 0; }
.stats li + li { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.stat-num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ivory); }
.stat-num sup { font-size: .45em; color: var(--ice); vertical-align: super; margin-left: 2px; }
.stat-label { display: block; margin-top: 16px; font-size: 14px; color: var(--on-dark-muted); max-width: 22em; }

/* Philosophy */
.philo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.philo-art { position: relative; aspect-ratio: 2 / 3; background: var(--ivory); isolation: isolate; }
.philo-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.art-fallback { background: radial-gradient(circle at 50% 40%, #fff 0%, var(--ivory-2) 70%); }
.art-fallback::after { content: ""; position: absolute; inset: 32%; background: url("/assets/temple-mark-white.png") center / contain no-repeat; filter: brightness(0); opacity: .12; }
.principles { margin-top: 56px; border-top: 1px solid var(--line-light); }
.principles li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--blue); line-height: 1.6; }
.principles h3, .segments h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--text-dark); }
.principles p, .segments p { margin-top: 8px; font-size: 15.5px; color: var(--muted-dark); max-width: 34em; }

/* Water */
.water { background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%); }
.water-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.specs { margin-top: 56px; border-top: 1px solid var(--line-dark); max-width: 520px; }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.specs dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 4px; }
.specs dd { font-family: var(--serif); font-size: 22px; color: var(--ivory); text-align: right; }
.arch {
  position: relative; justify-self: center; width: 100%; max-width: 480px; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px; overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.7);
}
.arch::after { content: ""; position: absolute; inset: 14px; border-radius: 999px 999px 2px 2px; border: 1px solid rgba(11,23,51,.12); pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; mix-blend-mode: multiply; transform: scale(1.12); transform-origin: 50% 55%; }

/* Retail */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line-light); }
.segments li { padding: 36px 28px 8px 0; }
.segments li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
.segments .num { display: block; margin-bottom: 20px; }

/* Manifesto */
.manifesto {
  padding: clamp(110px, 14vw, 190px) 0; text-align: center;
  background: radial-gradient(70% 120% at 50% 100%, var(--navy-2) 0%, var(--navy) 55%, var(--ink) 100%);
  position: relative; overflow: hidden;
}
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; left: 50%; bottom: 0; border-radius: 50%; border: 1px solid var(--line-dark);
  transform: translate(-50%, 55%); pointer-events: none;
}
.manifesto::before { width: min(900px, 130vw); aspect-ratio: 1; }
.manifesto::after { width: min(1400px, 200vw); aspect-ratio: 1; }
.manifesto .wrap { position: relative; z-index: 1; }
.manifesto-mark { width: 40px; margin: 0 auto 48px; opacity: .9; }
.manifesto-line { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.15; color: var(--ivory); }
.manifesto-close { margin-top: 36px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 38px); color: var(--ice); }

/* Contact */
.contact { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-meta { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.contact-meta li { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.contact-meta span { width: 92px; flex: none; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact-meta a { text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color .3s; }
.contact-meta a:hover { border-color: var(--ice); }

.form {
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(11,31,71,.7), rgba(7,22,52,.55));
  border: 1px solid var(--line-dark); border-radius: 4px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 26px; }
.field > span { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.field small { text-transform: none; letter-spacing: .02em; font-size: 12px; opacity: .8; }
.field input, .field textarea {
  width: 100%; display: block;
  background: transparent; color: var(--ivory);
  font: 300 17px/1.5 var(--sans);
  border: 0; border-bottom: 1px solid rgba(169,198,230,.3); border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ivory); }
.field.invalid input, .field.invalid textarea { border-color: #e7a3a3; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 12px; }
.form-status { font-size: 14px; color: var(--ice); min-height: 1.4em; }
.form-status.error { color: #e7a3a3; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: clamp(72px, 9vw, 112px) 0 40px; }
.footer-top { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.footer-brand img { width: 108px; opacity: .95; }
.newsletter p { margin-top: 10px; font-size: 15px; color: var(--on-dark-muted); }
.news-form { position: relative; display: flex; margin-top: 28px; max-width: 440px; border-bottom: 1px solid rgba(169,198,230,.35); flex-wrap: wrap; }
.news-form input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ivory); font: 300 16px var(--sans); padding: 12px 0; }
.news-form input::placeholder { color: var(--on-dark-muted); }
.news-form input:focus { outline: none; }
.news-form button { background: none; border: 0; color: var(--ivory); font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; cursor: pointer; padding: 0 0 0 16px; }
.news-form button:hover { color: var(--ice); }
.news-form .form-status { position: absolute; top: 100%; left: 0; margin-top: 10px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-cols h3 { font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer-cols p { font-size: 15px; line-height: 1.8; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--ice); }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); transition: border-color .3s, background .3s; }
.social a:hover { border-color: var(--ice); background: rgba(169,198,230,.08); }
.social svg { width: 17px; height: 17px; fill: none; stroke: var(--ivory); stroke-width: 1.3; }
.social svg .fill { fill: var(--ivory); stroke: none; }
.social a[aria-label=Facebook] svg { fill: var(--ivory); stroke: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(64px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted);
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .segments { grid-template-columns: 1fr 1fr; }
  .segments li:nth-child(3) { padding-left: 0; border-left: 0; }
  .segments li:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle i { display: block; width: 24px; height: 1px; background: var(--ivory); transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded=true] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav ul {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.open ul { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--ivory); }
  .nav .nav-cta { border: 0; padding: 0; font-style: italic; color: var(--ice); }
  .nav .nav-cta:hover { background: none; color: var(--ivory); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--navy); }

  .hero { padding-top: 120px; }
  .hero-grid, .split, .philo-grid, .water-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; justify-self: center; margin-bottom: 8px; }
  .split { align-items: start; gap: 28px; }
  .stats { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .philo-art { max-width: 380px; width: 100%; justify-self: center; }
  .water-copy { order: 1; }
  .arch { max-width: 360px; }
}

@media (max-width: 600px) {
  .hero-foot { gap: 10px 14px; font-size: 10px; letter-spacing: .2em; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .segments { grid-template-columns: 1fr; }
  .segments li, .segments li + li { padding: 28px 0; border-left: 0; margin-top: 0; }
  .segments li + li { border-top: 1px solid var(--line-light); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .specs dd { font-size: 19px; }
  .contact-meta li { flex-direction: column; gap: 4px; }
}
