/* ─────────────────────────────────────────────────────────
   DAHROUGE GEOLOGICAL CONSULTING
   Editorial design system — 2026
   ───────────────────────────────────────────────────────── */

:root {
  /* PRIMARY — dark neutrals */
  --ink:          #23211E;
  --dark-quartz:  #353440;
  --quartz:       #474652;

  /* NEUTRAL — pearls & dust */
  --pebble:       #B7BDC6;
  --pearl:        #CFD4DB;
  --sky:          #DEE2E7;
  --dust:         #F4F1EE;
  --paper:        #FBF9F6;

  /* ACCENT — earth + mineral */
  --sand:         #DD9538;
  --copper:       #DD9538;
  --copper-deep:  #8B5A1B;

  /* ACCENT — vibrant mineral */
  --emerald:      #009870;
  --emerald-deep: #0E7E55;
  --azure:        #016382;
  --azure-bright: #0A8FA3;
  --azure-deep:   #02112F;

  /* type */
  --display: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --body:    "Geologica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --max:     1480px;
  --gutter:  clamp(20px, 4vw, 56px);
  --easing:  cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink);
  color: var(--dust);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ─── film grain overlay ─── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ─────────── TYPE ─────────── */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.display-xl { font-size: clamp(60px, 11.5vw, 188px); }
.display-l  { font-size: clamp(48px, 8vw, 128px); }
.display-m  { font-size: clamp(36px, 5.6vw, 88px); }
.display-s  { font-size: clamp(28px, 3.6vw, 56px); }

.sub {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.sub-l { font-size: clamp(22px, 2.3vw, 32px); }
.sub-m { font-size: clamp(18px, 1.4vw, 22px); }

.body {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.body-l {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono-s { font-size: 10px; letter-spacing: 0.12em; }

.serifish { font-style: italic; font-weight: 300; }

/* underline detail */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pebble);
}
.tag::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ─────────── LAYOUT ─────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.section-pad   { padding: clamp(80px, 12vw, 180px) 0; }
.section-pad-s { padding: clamp(60px, 8vw, 120px) 0; }

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.section-label.on-light { border-color: rgba(0,0,0,0.08); }
.section-label .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pebble);
  text-transform: uppercase;
}
.on-light .section-label .idx { color: var(--quartz); }

/* ─────────── NAV ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 400ms var(--easing), backdrop-filter 400ms var(--easing);
}
.nav.scrolled {
  background: rgba(23,21,18,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav .mark {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 22px;
  color: var(--dust);
}
.nav .mark .dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 2px;
  display: inline-block;
  transform: translateY(-3px);
}
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.nav-links a {
  color: var(--pearl);
  position: relative;
  padding: 6px 0;
  transition: color 240ms var(--easing);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--copper);
  transition: right 320ms var(--easing);
}
.nav-links a:hover { color: var(--dust); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--dust);
  transition: background 240ms var(--easing), border-color 240ms var(--easing);
}
.nav-cta:hover { background: var(--dust); color: var(--ink); border-color: var(--dust); }
.nav-cta .arr { width: 14px; height: 14px; }

/* mobile nav (basic) */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 280ms var(--easing), background 280ms var(--easing), color 280ms var(--easing);
}
.btn .arr {
  width: 18px; height: 18px;
  transition: transform 280ms var(--easing);
}
.btn:hover .arr { transform: translate(3px, -3px); }

.btn-primary { background: var(--dust); color: var(--ink); }
.btn-primary:hover { background: var(--copper); color: var(--dust); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.22); color: var(--dust); }
.btn-ghost:hover { border-color: var(--dust); background: rgba(255,255,255,0.03); }
.btn-emerald { background: var(--emerald); color: var(--ink); }
.btn-emerald:hover { background: var(--emerald-deep); color: var(--dust); }

/* ─────────── TOPOGRAPHIC BACKDROP ─────────── */
.topo {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
}
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; stroke: var(--quartz); stroke-width: 0.5; opacity: 0.7; }

/* ─────────── PLACEHOLDER IMAGE SLOTS ─────────── */
.slot {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.045) 0px,
      rgba(255,255,255,0.045) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(180deg, var(--quartz), var(--dark-quartz));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  isolation: isolate;
}
.slot.on-light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,0.045) 0px,
      rgba(0,0,0,0.045) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(180deg, var(--sky), var(--pearl));
  color: var(--quartz);
}
.slot::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(221,149,56,0.05), transparent 60%);
  z-index: -1;
}
.slot .caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pebble);
  max-width: 65%;
}
.slot .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--copper);
}

/* corner marks */
.slot .marks {
  position: absolute; inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
}
.slot.on-light .marks { border-color: rgba(0,0,0,0.06); }

/* ─────────── REVEAL ─────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--easing), transform 900ms var(--easing);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────── DIVIDERS & RULES ─────────── */
.rule { height: 1px; background: rgba(255,255,255,0.08); width: 100%; }
.rule.on-light { background: rgba(0,0,0,0.1); }

/* ─────────── LIGHT SECTION ─────────── */
.on-light {
  background: var(--dust);
  color: var(--ink);
}
.on-light .body { color: var(--quartz); }
.on-light .tag  { color: var(--quartz); }
.on-light .tag::before { background: var(--quartz); }
.on-light .mono { color: var(--quartz); }

/* ─────────── FOOTER ─────────── */
.footer {
  background: var(--ink);
  color: var(--pearl);
  padding: 120px var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 88px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pebble);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--dust); font-size: 15px; transition: color 240ms var(--easing); }
.footer ul a:hover { color: var(--copper); }
.footer .word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(48px, 8vw, 128px);
  color: var(--dust);
  margin: 80px auto 60px;
  max-width: var(--max);
  padding: 0 var(--gutter);
}
.footer .word em { color: var(--copper); font-style: normal; }
.footer-base {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pebble);
}

/* ─────────── PAGE HEADER (for subpages) ─────────── */
.page-head {
  padding: 200px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head .index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-head .index::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--copper);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 9.5vw, 156px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  max-width: 18ch;
}
.page-head .lede {
  margin-top: 36px;
  max-width: 56ch;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--pearl);
}
.page-head-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) { .page-head-meta { grid-template-columns: 1fr 1fr; } }
.page-head-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pebble);
  margin-bottom: 10px;
}
.page-head-meta dd {
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--dust);
}

/* ─────────── UTIL ─────────── */
.copper { color: var(--copper); }
.emerald { color: var(--emerald); }
.pebble { color: var(--pebble); }
.dust { color: var(--dust); }
.ink-c { color: var(--ink); }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 880px) {
  .split-2, .split-3 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--copper);
}

/* hover lift for cards */
.lift { transition: transform 380ms var(--easing); }
.lift:hover { transform: translateY(-3px); }

/* numeric */
.huge-num {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-size: clamp(72px, 10vw, 144px);
}

/* horizontal scroll marquee */
.marquee {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
  will-change: transform;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-row {
  overflow: hidden;
  padding: 32px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
