/* ============================================================
   STHIR.KALA — Core Editorial Design System
   Converted from dzinrstudio.com into oblironlabs folder structure
   Palette: Sage Green + Warm Alabaster + Deep Botanical Charcoal
   ============================================================ */

:root {
  /* Sage Green Palette */
  --sage: #86a386;
  --sage-bright: #a9c2a6;
  --sage-deep: #465f4b;
  --sage-soft: #dce5da;

  /* Default Dark Botanical Theme */
  --bg: #0d120f;
  --bg-elevated: #141b17;
  --bg-card: #19221d;
  --fg: #f2f0ea;
  --fg-muted: #98a89a;
  --fg-soft: #c5d1c6;
  --accent: #a9c2a6;
  --accent-contrast: #0d120f;
  --line: rgba(169, 194, 166, 0.16);
  --line-strong: rgba(169, 194, 166, 0.34);

  /* Contrast Surfaces */
  --cream: #f4f2ec;
  --cream-2: #eae6dc;
  --sage-wash: #dfe7dc;
  --ink: #141916;
  --ink-muted: #505e53;

  --sage-glow: 0 0 0 1px rgba(134, 163, 134, 0.35), 0 24px 64px -18px rgba(134, 163, 134, 0.25);

  --maxw: 1380px;
  --gut: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Light Sage-Alabaster Theme */
html.theme-light {
  --bg: #f4f2ec;
  --bg-elevated: #eae6dc;
  --bg-card: #e2dfd4;
  --fg: #141916;
  --fg-muted: #536256;
  --fg-soft: #2e3a30;
  --accent: #465f4b;
  --accent-contrast: #f4f2ec;
  --line: rgba(20, 25, 22, 0.12);
  --line-strong: rgba(20, 25, 22, 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--fg);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.56;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

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

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

button {
  font-family: inherit;
}

::selection {
  background: var(--sage);
  color: #0d120f;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 10vw, 144px);
}

/* ---------- Surface Variants ---------- */
.band-dark {
  background: var(--bg);
  color: var(--fg);
}

.band-forest {
  background: var(--bg-elevated);
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-cream {
  background: var(--cream);
  color: var(--ink);
}

.band-sage {
  background: var(--sage-wash);
  color: var(--ink);
}

html.theme-light .band-cream {
  background: #141b17;
  color: #f2f0ea;
}

html.theme-light .band-cream .eyebrow,
html.theme-light .band-cream .serif-accent {
  color: var(--sage-bright);
}

html.theme-light .band-cream .lede,
html.theme-light .band-cream .roster-card p,
html.theme-light .band-cream .ethos-card p,
html.theme-light .band-cream .svc-card p {
  color: #b7c6b9;
}

html.theme-light .band-cream .roster-card,
html.theme-light .band-cream .ethos-card,
html.theme-light .band-cream .svc-card {
  background: #1b241f;
  border-color: rgba(169, 194, 166, 0.16);
  color: #f2f0ea;
}

html.theme-light .band-cream .roster-card h3,
html.theme-light .band-cream .ethos-card h3,
html.theme-light .band-cream .svc-card h3,
html.theme-light .band-cream .svc-bullets li {
  color: #f2f0ea;
}

html.theme-light .band-cream .roster-card strong,
html.theme-light .band-cream .ethos-card .num,
html.theme-light .band-cream .svc-card-index,
html.theme-light .band-cream .svc-bullets li::before {
  color: var(--sage-bright);
}

/* ---------- Preloader & Page Transition Curtain (Dzinr Odometer + Monolith Fill) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #0d120f;
  color: #f2f0ea;
  display: grid;
  place-items: center;
  will-change: opacity;
}

.preloader.is-done {
  pointer-events: none;
  visibility: hidden;
  display: none;
}

.preloader-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-mark {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8.5vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  color: #f2f0ea;
  will-change: transform, opacity;
}

.preloader-dot {
  color: #a9c2a6;
}

.preloader-mark-ghost {
  display: block;
  opacity: 0.16;
}

.preloader-mark-fill {
  position: absolute;
  inset: 0;
  display: block;
  clip-path: inset(100% 0% 0% 0%);
  will-change: clip-path;
}

.preloader-counter {
  position: fixed;
  left: clamp(14px, 2.4vw, 28px);
  bottom: clamp(10px, 2vw, 20px);
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: clamp(3.2rem, 8.2vw, 6.8rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: #f2f0ea;
  overflow: hidden;
  will-change: transform, opacity;
}

.odo-col {
  display: inline-block;
  height: 0.94em;
  overflow: hidden;
  transition: width 0.28s var(--ease);
}

.odo-col.is-hidden {
  width: 0 !important;
  opacity: 0;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.odo-digit {
  height: 0.94em;
  line-height: 0.94em;
  display: block;
  text-align: center;
}

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: #141d17;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ---------- Typography & Masked Reveals ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.band-cream .eyebrow,
.band-sage .eyebrow {
  color: var(--sage-deep);
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0;
}

.display {
  font-size: clamp(3rem, 8.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.band-cream .serif-accent,
.band-sage .serif-accent {
  color: var(--sage-deep);
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.56;
  color: var(--fg-soft);
  max-width: 58ch;
  margin: 0;
}

.band-cream .lede,
.band-sage .lede {
  color: var(--ink-muted);
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line-inner {
  display: block;
  will-change: transform;
}

[data-clip-reveal] {
  overflow: hidden;
}

[data-clip-reveal] img,
[data-clip-reveal] video {
  will-change: transform, clip-path;
}

/* 3-State Rolling Character Hover Title (Dzinr Signature) */
.split-hover-title {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  line-height: 1;
  text-transform: uppercase;
}

.split-hover-title .sht-layer {
  display: inline-flex;
  white-space: pre;
}

.split-hover-title .sht-top,
.split-hover-title .sht-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.split-hover-title .sht-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Dzinr Liquid-Wave & Magnetic Buttons ---------- */
.btn-wave {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.55s var(--ease), border-color 0.45s var(--ease);
}

.btn-wave .wave-bg {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 175%;
  transform: translate(-50%, 115%);
  transition: transform 0.85s var(--ease);
  z-index: 0;
}

.btn-wave .wave-bg path {
  fill: var(--sage-deep);
}

.btn-wave:hover {
  color: #f4f2ec;
  border-color: var(--sage-deep);
}

.btn-wave:hover .wave-bg {
  transform: translate(-50%, -66%);
}

.btn-wave > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--sage);
  color: #0d120f;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  background: var(--sage-bright);
  border-color: var(--sage-bright);
  box-shadow: var(--sage-glow);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(134, 163, 134, 0.14);
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: none;
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--cream);
}

/* Dzinr Underline Swipe Link */
.swipe-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  transition: color 0.35s var(--ease);
}

.swipe-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease-expo);
  z-index: 0;
}

.swipe-link > * {
  position: relative;
  z-index: 1;
}

.swipe-link:hover {
  color: var(--bg);
}

.swipe-link:hover::before {
  transform: scaleX(1);
}

.swipe-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease);
}

/* Dzinr Underline Text Hover */
.u-link {
  position: relative;
  display: inline-block;
}

.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.u-link:hover::after,
.u-link.is-active::after {
  width: 100%;
}

/* ---------- Dzinr Multi-Column Editorial Header & Fullscreen Menu ---------- */
.dz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 20px var(--gut) 0;
  font-size: 14px;
  position: relative;
  z-index: 50;
}

.dz-header-left {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 7vw, 120px);
}

.dz-header-right {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  flex: 1;
  max-width: 620px;
}

.dz-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dz-col p {
  margin: 0;
  color: var(--fg-muted);
}

.dz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dz-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.dz-brand-txt {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.dz-mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gut);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}

.menu-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .dz-header {
    display: none;
  }

  .dz-mobile-nav {
    display: flex;
  }
}

/* Fullscreen Overlay Menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--sage-wash);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 44px) clamp(20px, 5vw, 60px);
  clip-path: inset(0% 0% 100% 0%);
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.menu-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-close-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(20, 25, 22, 0.25);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.menu-close-btn:hover {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(90deg);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.2vh, 14px);
  margin-block: auto;
}

.menu-link-item {
  overflow: hidden;
}

.menu-link-item a {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.3;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.menu-link-item a .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
}

.menu-link-item a:hover,
.menu-link-item a.is-active {
  opacity: 1;
  transform: translateX(12px);
}

.menu-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 25, 22, 0.16);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-socials {
  display: flex;
  gap: 24px;
}

/* ---------- Floating Theme & Motion Control (Dzinr Bottom-Right) ---------- */
.theme-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  backdrop-filter: blur(12px);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
  border-color: var(--accent);
}

/* ---------- Dual-Track Marquee ---------- */
.marquee-stack {
  position: relative;
  overflow: hidden;
  padding-block: 10px;
}

.marquee-row {
  overflow: hidden;
}

.marquee-row + .marquee-row {
  margin-top: 6px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 6px;
  will-change: transform;
}

.marquee-track--left {
  animation: marquee-left 36s linear infinite;
}

.marquee-track--right {
  animation: marquee-right 42s linear infinite;
}

.marquee-stack:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-tile {
  width: clamp(170px, 24vw, 340px);
  height: clamp(64px, 8vw, 122px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  flex-shrink: 0;
  padding-inline: 16px;
  text-align: center;
}

.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  pointer-events: none;
  z-index: 2;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 15%, transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 15%, transparent);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ---------- Inner Page Hero (Dzinr Split Hero with Coords) ---------- */
.page-hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

.page-hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}

.page-hero-coords {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  display: grid;
  gap: 4px;
}

/* ---------- Dzinr Footer ---------- */
.site-foot {
  position: relative;
  z-index: 20;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 9vw, 130px);
  padding-bottom: 24px;
  overflow: hidden;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.foot-cta-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
}

.foot-slogan {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.foot-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 32px clamp(28px, 6vw, 84px);
  font-size: 14px;
}

.foot-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-nav-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.foot-nav-list svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
  transition: transform 0.25s var(--ease);
}

.foot-nav-list li:hover svg {
  transform: rotate(0deg);
}

.foot-mega-svg {
  width: 100%;
  margin-top: clamp(44px, 7vw, 84px);
  color: var(--fg);
}

.foot-mega-svg text {
  will-change: transform, opacity;
}

.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* ---------- Custom Cursor ---------- */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: rgba(169, 194, 166, 0.14);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), background 0.28s var(--ease), opacity 0.28s var(--ease);
  opacity: 0;
}

.cursor-follower.is-visible {
  opacity: 1;
}

.cursor-follower.is-active {
  width: 48px;
  height: 48px;
  background: rgba(169, 194, 166, 0.18);
  border-color: var(--sage);
}

@media (hover: none), (pointer: coarse) {
  .cursor-follower {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }

  .preloader {
    display: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
