/* =====================================================================
   Two Oaks Technologies — shared design system (every page loads this)
   Palette from the current two-oaks-technologies.com (forest #08110D,
   cream #ECE7DA, gold #C4A574). Type: Italiana display / Outfit body
   (GetLayers "Laocoön" style). The GetLayers "Relay" particle stream runs
   the length of the page behind every section, so sections carry no
   opaque fills: the forest ground lives on <body> alone.
   ===================================================================== */

/* self-hosted type: Italiana (display) + Outfit (body) */
@font-face { font-family: 'Italiana'; src: url(../fonts/italiana-latin.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(../fonts/outfit-latin-var.woff2) format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }

:root {
  --gl-bg: #08110D;
  --gl-bg-alt: #0b1712;
  --gl-surface: #0d1c15;
  --gl-surface-raised: #12261c;
  --gl-ink: #ECE7DA;
  --gl-ink-muted: rgba(236, 231, 218, .66);
  --gl-ink-subtle: rgba(236, 231, 218, .42);
  --gl-accent: #C4A574;
  --gl-accent-hi: #e6cf9f;
  --gl-accent-deep: #8d7044;
  --gl-accent-ink: #0a140f;
  --gl-line: rgba(196, 165, 116, .2);
  --gl-line-strong: rgba(196, 165, 116, .42);
  --gl-glow: rgba(230, 207, 159, .45);

  /* the particle stream's colour roles (read once by stream.js) */
  --stream-main: #d9b26a;
  --stream-alt: #3f9e6c;
  --stream-core: #fff0c8;
  --stream-deep: #3a2a10;
  --stream-spark: #ffffff;

  --gl-font-display: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --gl-font-body: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gl-radius: 999px;
  --gl-radius-lg: 4px;
  --gl-duration: 320ms;
  --gl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gl-ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);

  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --gold-grad: linear-gradient(100deg, #8d7044 0%, #e2c48c 22%, #C4A574 40%, #f4e4bc 55%, #C4A574 70%, #8d7044 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--gl-bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-loading, html.is-loading body { overflow: hidden; }

body {
  margin: 0;
  background: var(--gl-bg);
  color: var(--gl-ink);
  font-family: var(--gl-font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gl-accent); color: var(--gl-accent-ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, blockquote, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 1px solid var(--gl-accent-hi); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap--narrow { max-width: 1120px; }

/* ---------- type primitives ---------- */
.eyebrow, .index {
  font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gl-accent); display: inline-flex; align-items: center; gap: 14px;
}
.rule { display: inline-block; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
  font-family: var(--gl-font-display); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance;
}
.lede { color: var(--gl-ink-muted); max-width: 36rem; margin-top: 24px; }
.gold {
  font-style: normal;
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
.gold-ink { color: var(--gl-accent); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* split text — mounted hidden behind the curtain, revealed in place */
.line { display: block; }
.w, .ch { display: inline-block; will-change: transform, opacity, filter; }
.w { white-space: nowrap; }
[data-split="chars"] .ch {
  opacity: 0; filter: blur(14px); transform: translateY(.18em) scale(1.04);
  transition: opacity 900ms var(--gl-ease-reveal), filter 1100ms var(--gl-ease-reveal), transform 1100ms var(--gl-ease-reveal);
  transition-delay: calc(var(--i) * 32ms + var(--d, 0ms));
}
[data-split="words"] .w {
  opacity: 0; filter: blur(10px); transform: translateY(.35em);
  transition: opacity 800ms var(--gl-ease-reveal), filter 900ms var(--gl-ease-reveal), transform 900ms var(--gl-ease-reveal);
  transition-delay: calc(var(--i) * 70ms + var(--d, 0ms));
}
.is-in .ch, .is-in .w { opacity: 1; filter: blur(0); transform: none; }
/* once split, the gradient lives on the units, not on the wrapper */
.gold.is-split { background: none; animation: none; }
[data-split="chars"] .gold .ch, [data-split="words"] .gold .w {
  background-image: var(--gold-grad); background-size: calc(var(--n, 1) * 100%) 100%;
  background-position: calc(var(--k, 0) / max(1, var(--n, 1) - 1) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em;
}

[data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 900ms var(--gl-ease-reveal), transform 1100ms var(--gl-ease-reveal), filter 900ms var(--gl-ease-reveal);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
[data-hero] {
  opacity: 0; transform: translateY(18px); filter: blur(8px);
  transition: opacity 1000ms var(--gl-ease-reveal), transform 1200ms var(--gl-ease-reveal), filter 1000ms var(--gl-ease-reveal);
  transition-delay: var(--d, 0ms);
}
.is-open [data-hero] { opacity: 1; transform: none; filter: blur(0); }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--gl-radius);
  font: 400 13px/1.2 var(--gl-font-body); letter-spacing: .18em; text-transform: uppercase; text-align: center;
  cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform 500ms var(--gl-ease), color var(--gl-duration) var(--gl-ease), border-color var(--gl-duration) var(--gl-ease);
}
.btn i { font-style: normal; transition: transform var(--gl-duration) var(--gl-ease); }
.btn:hover i { transform: translateX(5px); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 600ms var(--gl-ease); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--gold-grad); background-size: 200% 100%; color: var(--gl-accent-ink); font-weight: 500; }
.btn--solid::before { background: var(--gl-ink); }
.btn--ghost { border-color: var(--gl-line-strong); color: var(--gl-ink); background: rgba(8, 17, 13, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost::before { background: rgba(196, 165, 116, .16); }
.btn--ghost:hover { border-color: var(--gl-accent); }
.btn--pill { min-height: 42px; padding: 0 20px; font-size: 11.5px; border-color: var(--gl-line-strong); color: var(--gl-ink); background: rgba(8, 17, 13, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--pill::before { background: var(--gl-accent); }
.btn--pill:hover { color: var(--gl-accent-ink); border-color: var(--gl-accent); }

[data-roll] { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
[data-roll] .roll { display: block; transition: transform 520ms var(--gl-ease); }
[data-roll] .roll + .roll { position: absolute; left: 0; top: 100%; color: var(--gl-accent-hi); }
[data-roll]:hover .roll { transform: translateY(-100%); }


/* inner-page button names map onto the same system */
.btn--gold { background: var(--gold-grad); background-size: 200% 100%; color: var(--gl-accent-ink); font-weight: 500; }
.btn--gold::before { background: var(--gl-ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn--block { display: flex; width: 100%; }

/* =====================================================================
   CHROME — grain, cursor, nav, the stream
   ===================================================================== */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -3%) } 60% { transform: translate(-2%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }

.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gl-accent-hi); box-shadow: 0 0 12px var(--gl-glow); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--gl-line-strong); transition: width 400ms var(--gl-ease), height 400ms var(--gl-ease), margin 400ms var(--gl-ease), background-color 400ms var(--gl-ease), border-color 400ms var(--gl-ease); }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-color: var(--gl-accent); background: rgba(196, 165, 116, .08); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; padding: 0 var(--pad);
  transition: transform 700ms var(--gl-ease), background-color 500ms var(--gl-ease), height 500ms var(--gl-ease);
}
.nav.is-scrolled { background: rgba(8, 17, 13, .66); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); height: 70px; box-shadow: inset 0 -1px 0 var(--gl-line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav > * { opacity: 0; transform: translateY(-10px); transition: opacity 900ms var(--gl-ease-reveal), transform 900ms var(--gl-ease-reveal); }
.is-open .nav > * { opacity: 1; transform: none; }
.is-open .nav > :nth-child(2) { transition-delay: 120ms; }
.is-open .nav > :nth-child(3) { transition-delay: 240ms; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.nav__emblem { width: 46px; height: auto; filter: drop-shadow(0 0 8px rgba(196, 165, 116, .25)); }
.nav__word { font-family: var(--gl-font-display); font-size: 19px; letter-spacing: .3em; text-transform: uppercase; line-height: 1; display: grid; gap: 5px; }
.nav__word small { font-family: var(--gl-font-body); font-size: 8.5px; letter-spacing: .52em; color: var(--gl-accent); }
.nav__links { display: flex; gap: 4px; align-items: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gl-ink-muted); }
.nav__links a { padding: 6px 12px; }
.nav__links a .roll + .roll { display: none; }
.nav__links a:hover { color: var(--gl-accent-hi); }
.nav__links a:hover .roll { transform: none; }
.nav__links a[aria-current="page"] { color: var(--gl-accent-hi); }
/* phone / tablet menu */
.nav__toggle { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gl-line-strong); background: rgba(8, 17, 13, .35); cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { position: absolute; left: 50%; width: 16px; height: 1px; margin-left: -8px; background: var(--gl-ink); transition: transform 400ms var(--gl-ease), opacity 300ms; }
.nav__toggle span { top: 50%; }
.nav__toggle span::before { content: ''; top: -5px; left: 0; margin: 0; }
.nav__toggle span::after { content: ''; top: 5px; left: 0; margin: 0; }
.nav.is-menu .nav__toggle span { background: transparent; }
.nav.is-menu .nav__toggle span::before { transform: translateY(5px) rotate(45deg); background: var(--gl-ink); }
.nav.is-menu .nav__toggle span::after { transform: translateY(-5px) rotate(-45deg); background: var(--gl-ink); }

/* cookie consent (assets/js/analytics.js builds it) */
.consent-banner {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 96; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  width: min(640px, calc(100% - 32px)); padding: 14px 18px; border-radius: 16px;
  background: rgba(8, 17, 13, .9); border: 1px solid var(--gl-line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); font-size: 14px; color: var(--gl-ink-muted);
  animation: consentIn 700ms 2.6s var(--gl-ease-reveal) both;
}
.consent-banner p { margin: 0; flex: 1 1 260px; }
.consent-banner a { color: var(--gl-accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.consent-banner__actions { display: flex; gap: 8px; }
.consent-banner .btn { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.consent-banner .btn--gold { background: var(--gold-grad); background-size: 200% 100%; color: var(--gl-accent-ink); font-weight: 500; }
.consent-banner .btn--gold::before { background: var(--gl-ink); }
@keyframes consentIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translateX(-50%); } }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav__phone { font-size: 13px; letter-spacing: .12em; color: var(--gl-ink-muted); transition: color var(--gl-duration) var(--gl-ease); }
.nav__phone:hover { color: var(--gl-accent-hi); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 22px; max-width: 380px; color: var(--gl-ink-muted); }
.footer__brand img { width: 84px; flex: none; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.footer__cols div { display: grid; gap: 9px; align-content: start; }
.footer__cols h4 { font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--gl-accent); margin-bottom: 6px; }
.footer__cols a, .footer__cols span { color: var(--gl-ink-muted); font-size: 14.5px; }
.footer__mark {
  font-family: var(--gl-font-display); font-size: clamp(80px, 19.5vw, 360px); line-height: .8; letter-spacing: .02em; text-align: center; white-space: nowrap;
  margin-top: clamp(50px, 7vw, 100px); color: transparent; -webkit-text-stroke: 1px rgba(196, 165, 116, .45); padding-bottom: .04em;
}
.footer__mark .ch { transform: translateY(60%); filter: blur(10px); }
.footer__mark.is-in .ch { transform: none; filter: blur(0); opacity: 1; }
.footer__legal a { color: var(--gl-ink-muted); } .footer__legal a:hover { color: var(--gl-accent-hi); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--gl-line); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gl-ink-subtle); }

/* =====================================================================
   RESPONSIVE — shared chrome
   ===================================================================== */
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    background: rgba(5, 11, 8, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    font-family: var(--gl-font-display); font-size: clamp(30px, 8vw, 46px); letter-spacing: .02em; text-transform: none; color: var(--gl-ink);
    opacity: 0; visibility: hidden; transition: opacity 500ms var(--gl-ease), visibility 0s 500ms;
  }
  .nav__links a .roll + .roll { display: none; }
  .nav.is-menu .nav__links { opacity: 1; visibility: visible; transition: opacity 500ms var(--gl-ease); }
  .nav.is-menu { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transform: none; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 68px; }
  .nav__emblem { width: 38px; }
  .nav__word { font-size: 15px; }
  .nav__phone, .nav__cta { display: none; }
  .footer__base { flex-direction: column; }
}

/* =====================================================================
   REDUCED MOTION — shared
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal], [data-hero], [data-split] .ch, [data-split] .w, .card[data-reveal] { transform: none !important; filter: none !important; transition-property: opacity, color !important; transition-duration: 400ms !important; transition-delay: 0ms !important; }
  .grain { display: none; }
}

/* =====================================================================
   FAILSAFE — every page must read without its scripts.
   The scripts mark <html class="js"> the moment they run.
   1) JavaScript off: no loading screen, nothing held back.
   2) JavaScript on but a script never arrived (blocked, failed): after 4s
      the loading screen lifts and everything held back for an entrance shows.
   ===================================================================== */
@media (scripting: none) {
  .loader, .curtain, .cursor { display: none !important; }
  html.is-loading, html.is-loading body { overflow: auto !important; }
  .nav > *, [data-reveal], [data-hero], .reveal, [data-split] .w, [data-split] .ch,
  .hero__inner > div:first-child > *, .hero__inner > :nth-child(2) { opacity: 1 !important; transform: none !important; filter: none !important; }
}
@keyframes failsafe-out { to { opacity: 0; visibility: hidden; } }
@keyframes failsafe-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes failsafe-scroll { to { overflow: auto; } }
html:not(.js) .loader, html:not(.js) .curtain { animation: failsafe-out .6s 4s forwards; }
html:not(.js), html:not(.js) body { animation: failsafe-scroll 0s 4s forwards; }
html:not(.js) .nav > *, html:not(.js) [data-reveal], html:not(.js) [data-hero], html:not(.js) .reveal,
html:not(.js) [data-split] .w, html:not(.js) [data-split] .ch,
html:not(.js) .hero__inner > div:first-child > *, html:not(.js) .hero__inner > :nth-child(2) { animation: failsafe-in .8s 4s forwards; }

/* =====================================================================
   LITE — for browsers that can't use the graphics card (detect.js adds
   <html class="lite">). Everything that has to be redrawn by the processor
   every frame goes: frosted-glass blur, blur-in fades, blend modes, film
   grain, looping glows. The live 3D scenes are replaced by still images.
   Layout, copy and the simple fade/slide entrances stay.
   ===================================================================== */
.lite *, .lite *::before, .lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; mix-blend-mode: normal !important; }
.lite .grain, .lite .cursor { display: none !important; }
.lite .nav.is-scrolled { background: rgba(8, 17, 13, .96); }
.lite .gold, .lite .accent, .lite .plan--featured::after, .lite .tier--featured::after,
.lite .hero__glow, .lite .hero__sun, .lite .marquee__row, .lite .ms-hero::after { animation: none !important; }
.lite .hero__glow, .lite .hero__sun { opacity: .5 !important; }
