/* =====================================================================
   CTL INTEGRATED HOLDINGS LLC — MONOLITH & OBSIDIAN
   ---------------------------------------------------------------------
   Default token values live in :root below. config.js (CONFIG.theme)
   overrides them at load time — edit colors/fonts there, not here.
   ===================================================================== */

:root {
  /* Obsidian */
  --void:      #020203;
  --obsidian:  #07070A;
  --slab:      #0C0C10;
  --slab-hi:   #111117;

  /* Edges */
  --edge:      rgba(255,255,255,0.07);
  --edge-hi:   rgba(255,255,255,0.16);
  --fracture:  rgba(255,255,255,0.035);

  /* Text */
  --bone:      #ECECEF;
  --stone:     #A3A6B0;
  --ash:       #6A6D78;
  --soot:      #3B3D46;

  /* Sheen */
  --sheen-v:    rgba(124,111,168,0.20);
  --sheen-c:    rgba(96,140,150,0.12);
  --focus:      rgba(124,111,168,0.55);
  --focus-ring: rgba(124,111,168,0.14);

  /* Status */
  --ok:        #8FA89A;
  --warn:      #B39A68;

  /* Type */
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --headline-weight: 700;
  --headline-case: uppercase;

  /* Layout */
  --max: 1240px;
  --radius: 0px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Effects */
  --grain-opacity: 0.5;
  --atmosphere: 1;
  --sweep-duration: 9s;
  --pulse-duration: 3.6s;
  --ease: cubic-bezier(.2,.7,.1,1);
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--stone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Atmosphere: obsidian sheen pools */
body::before {
  content: "";
  position: fixed; inset: -10%;
  pointer-events: none; z-index: 0;
  opacity: var(--atmosphere);
  background:
    radial-gradient(ellipse 50% 35% at 78% 8%,  var(--sheen-v), transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 60%, var(--sheen-c), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, var(--sheen-v), transparent 70%);
  filter: blur(20px);
}
/* Stone grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: #2B2740; color: var(--bone); }
a { color: inherit; text-decoration: none; }

.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* Obsidian-glass surface */
.glass {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 28%),
    linear-gradient(145deg, var(--slab-hi), var(--obsidian) 60%);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 30px 60px -30px rgba(0,0,0,0.9);
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(2,2,3,0.92), rgba(2,2,3,0.72));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--edge);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-mark {
  flex: none;
  width: 9px; height: 22px;
  background: linear-gradient(100deg, #2A2A33 0%, #0B0B0F 45%, #1A1A22 70%, #050507 100%);
  border: 1px solid var(--edge-hi);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.2);
}

.status {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  color: var(--ok);
  animation: pulse var(--pulse-duration) ease-in-out infinite;
}
.dot.warn { background: var(--warn); color: var(--warn); }
.dot.off  { background: var(--soot); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  60%  { box-shadow: 0 0 0 7px transparent; opacity: .65; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(80px, 14vh, 150px) 0 clamp(80px, 12vh, 130px);
  border-bottom: 1px solid var(--edge);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}

.eyebrow {
  display: flex; align-items: center; gap: 16px;
  color: var(--ash);
  margin-bottom: 40px;
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--ash), transparent);
}

.hero h1 {
  font-weight: var(--headline-weight);
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: var(--headline-case);
}
.hero h1 span { display: block; }
.hero h1 span:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bone) 55%, var(--stone) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span:nth-child(2) {
  background: linear-gradient(180deg, var(--stone) 0%, var(--ash) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span:nth-child(n+3) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236,236,239,0.38);
}

.hero p.sub {
  margin-top: clamp(36px, 6vh, 56px);
  font-size: clamp(16px, 1.45vw, 18px);
  color: var(--stone);
  max-width: 52ch;
  line-height: 1.75;
}

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 40px;
  padding: 16px 24px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  transition: border-color .35s var(--ease);
}
.cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
}
.cta:hover, .cta:focus-visible { border-color: var(--edge-hi); outline: none; }
.cta:hover::after { left: 130%; }
.cta .arrow { transition: transform .35s var(--ease); }
.cta:hover .arrow { transform: translateX(5px); }

/* --- The Monolith --- */
.monolith-col { display: flex; flex-direction: column; gap: 28px; }
.monolith {
  position: relative;
  flex: 1;
  min-height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background:
    linear-gradient(98deg,
      #17171D 0%, #0A0A0E 18%, #050507 42%,
      #0F0E15 58%, #1C1A26 66%, #07070A 74%, #030304 100%);
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.14),
    inset -1px 0 0 rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 60px 120px -40px rgba(0,0,0,1),
    0 0 80px -20px var(--sheen-v);
  overflow: hidden;
}
.monolith::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 70% 25%, var(--sheen-v), transparent 70%),
    radial-gradient(ellipse 50% 25% at 30% 75%, var(--sheen-c), transparent 70%);
  mix-blend-mode: screen;
}
.monolith::after {
  content: ""; position: absolute; top: -20%; bottom: -20%;
  left: -50%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.07) 50%, transparent);
  transform: skewX(-14deg);
  animation: sweep var(--sweep-duration) var(--ease) infinite;
}
@keyframes sweep {
  0%, 55% { left: -50%; }
  100%    { left: 140%; }
}
.monolith .fracture {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(118deg, transparent 49.85%, var(--fracture) 50%, transparent 50.15%),
    linear-gradient(64deg, transparent 49.9%, var(--fracture) 50%, transparent 50.1%);
}
.monolith .vert {
  position: absolute; top: 24px; right: 22px; z-index: 1;
  writing-mode: vertical-rl;
  color: rgba(236,236,239,0.22);
}
.monolith .inscription {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--soot);
}

.meta { display: grid; }
.meta div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.meta div:first-child { border-top: 1px solid var(--edge-hi); }
.meta dt { color: var(--soot); }
.meta dd { color: var(--stone); text-align: right; }

/* =========================================================
   SECTIONS
   ========================================================= */
section.block {
  padding: clamp(80px, 13vh, 140px) 0;
  border-bottom: 1px solid var(--edge);
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--edge);
}
.section-head h2 {
  font-weight: var(--headline-weight);
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  text-transform: var(--headline-case);
  line-height: 1;
  background: linear-gradient(180deg, var(--bone), var(--ash));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head .idx { color: var(--soot); }

/* =========================================================
   DIRECTIVES — standing slabs
   ========================================================= */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.card {
  padding: 40px 32px 36px;
  display: flex; flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), opacity 1.1s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 45% at 80% 0%, var(--sheen-v), transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 60%);
}
.card.in:hover {
  transform: translateY(-6px);
  border-color: var(--edge-hi);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 50px 80px -40px rgba(0,0,0,1),
    0 0 60px -30px var(--sheen-v);
}
.card:hover::before { opacity: 1; }

.card .numeral {
  position: relative;
  font-weight: 200;
  font-size: 84px;
  line-height: .8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236,236,239,0.18);
  margin-bottom: 48px;
}
.card .code { position: relative; color: var(--ash); margin-bottom: 14px; }
.card h3 {
  position: relative;
  color: var(--bone);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.card p { position: relative; font-size: 15px; color: var(--stone); line-height: 1.75; }
.card .tag {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
  color: var(--soot);
  display: flex; align-items: center; gap: 12px;
}
.card .tag::before { content: ""; width: 18px; height: 1px; background: var(--soot); }

/* =========================================================
   INQUIRIES
   ========================================================= */
.inq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(36px, 6vw, 96px);
}
.inq-copy p { color: var(--stone); max-width: 40ch; margin-bottom: 40px; line-height: 1.75; }
.inq-copy .direct { padding: 22px 24px; }
.inq-copy .direct .mono { color: var(--soot); display: block; margin-bottom: 10px; }
.inq-copy .direct a {
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--edge-hi);
  transition: border-color .3s;
  word-break: break-all;
}
.inq-copy .direct a:hover { border-color: var(--bone); }

form { padding: clamp(24px, 4vw, 44px); }
.form-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 30px;
  border-bottom: 1px solid var(--edge);
  color: var(--ash);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}
label .req { color: var(--soot); }
input, select, textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 15px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--soot); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.7), 0 0 0 3px var(--focus-ring);
}
select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select option { background: var(--obsidian); color: var(--bone); }
textarea { resize: vertical; min-height: 136px; line-height: 1.6; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  margin-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.form-foot .note { color: var(--soot); font-size: 12.5px; max-width: 36ch; line-height: 1.6; }

button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #FFFFFF, var(--bone) 30%, var(--stone));
  color: var(--void);
  border: 1px solid #FFFFFF;
  border-radius: var(--radius);
  padding: 15px 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(236,236,239,0.25), inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
button:hover, button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(236,236,239,0.35), 0 0 0 3px var(--focus-ring);
}
button[disabled] { opacity: .5; cursor: wait; transform: none; }

.form-status {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 1em;
}
.form-status.ok  { color: var(--ok); }
.form-status.err { color: var(--warn); }

/* =========================================================
   FOOTER
   ========================================================= */
footer { padding: 48px 0 64px; }
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
  align-items: start;
}
.foot .mono { color: var(--soot); line-height: 2.1; }
.foot .right { text-align: right; }
.foot .legal {
  grid-column: 1 / -1;
  padding-top: 28px; margin-top: 8px;
  border-top: 1px solid var(--edge);
  font-size: 12.5px;
  color: var(--soot);
  line-height: 1.75;
  max-width: 90ch;
}
.wordmark {
  grid-column: 1 / -1;
  margin-top: 48px;
  font-weight: 800;
  font-size: clamp(56px, 15vw, 210px);
  line-height: .8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 80%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* =========================================================
   MOTION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.card.reveal {
  transition: opacity 1.1s var(--ease), transform .8s var(--ease),
              border-color .6s var(--ease), box-shadow .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .monolith::after { animation: none; }
  .card.in:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .monolith { min-height: 260px; }
  .grid3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .numeral { font-size: 64px; margin-bottom: 32px; }
  .inq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bar { height: 58px; }
  .brand { font-size: 9.5px; letter-spacing: 0.16em; gap: 10px; }
  .brand-mark { width: 7px; height: 18px; }
  .status { padding: 6px 9px; font-size: 9px; letter-spacing: 0.1em; gap: 7px; }
  .status .status-long { display: none; }
  .monolith { min-height: 200px; }
  .fields { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot .right { text-align: left; }
  button { width: 100%; justify-content: center; }
}
@media (min-width: 601px) { .status .status-short { display: none; } }
