/* ============================================================
   GWO — Geoscience Wrobel Osare · Consulting
   Design system: clean, minimal, authoritative / scientific
   Palette: sandstone / basalt + ochre + clay (earth tones)
   Type:  Spectral (serif display) · Archivo (sans body) · Spline Sans Mono (data)
   ============================================================ */

:root {
  /* ---- Earth-tone palette (oklch) ---- */
  --sand-100: oklch(0.985 0.008 80);
  --sand-200: oklch(0.965 0.012 78);
  --sand-300: oklch(0.935 0.016 76);
  --sand-400: oklch(0.885 0.020 74);
  --sand-500: oklch(0.80 0.024 72);

  --basalt-900: oklch(0.235 0.014 70);
  --basalt-700: oklch(0.40 0.016 68);
  --basalt-500: oklch(0.56 0.016 66);

  /* Accents — matched chroma & lightness, varied hue */
  --ochre:  oklch(0.585 0.105 72);
  --clay:   oklch(0.585 0.105 38);
  --ochre-deep: oklch(0.46 0.10 66);
  --clay-deep:  oklch(0.46 0.10 36);

  --bg: var(--sand-200);
  --fg: var(--basalt-900);
  --line: var(--sand-400);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 11vh, 156px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--ochre); color: var(--sand-100); }

/* ---- Utilities ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.mono { font-family: var(--mono); }
.muted { color: var(--basalt-700); }

.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* ---- Strata motif ---- */
.strata {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--ochre) 0 18px,
    var(--clay) 18px 30px,
    var(--ochre-deep) 30px 36px,
    var(--sand-500) 36px 64px
  );
  opacity: 0.85;
}

.ph {
  position: relative;
  background-color: var(--sand-300);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 11px,
    color-mix(in oklch, var(--sand-400) 60%, transparent) 11px 12px
  );
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--basalt-500);
  background: var(--sand-200);
  border: 1px solid var(--line);
  padding: 5px 9px;
  margin: 14px;
  border-radius: 2px;
}

/* filled media — replaces .ph placeholders, same footprint */
.media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--sand-300);
}
.media.contain { object-fit: contain; background: var(--sand-100); }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--sand-200) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img.mark {
  width: auto;
  height: 46px;
  display: block;
  border: none;
  border-radius: 3px;
}
.footer .brand img.mark { height: 50px; }
.brand .mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--basalt-900);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  position: relative;
}
.brand .mark::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 6px, var(--clay) 6px 11px);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
.brand .brand-text span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--basalt-500); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--basalt-700);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--clay); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--basalt-900); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.cta {
  color: var(--sand-100);
  background: var(--basalt-900);
  padding: 9px 16px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--clay-deep); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  width: 42px; height: 42px;
  cursor: pointer;
  position: relative;
  color: var(--basalt-900);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--basalt-900);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 5px); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand-100);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 18px 40px -16px rgba(40, 30, 20, 0.28);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.cta) { display: block; padding: 13px 14px; font-size: 15px; color: var(--basalt-900); border-bottom: 1px solid var(--line); }
  .nav-links a:not(.cta):last-of-type { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-links a.cta { text-align: center; margin-top: 8px; padding: 13px 16px; }
}

/* ---- Hero ---- */
.hero { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  margin-top: 26px;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--basalt-700);
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--basalt-900);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-solid { background: var(--basalt-900); color: var(--sand-100); }
.btn-solid:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn-ghost { background: transparent; color: var(--basalt-900); }
.btn-ghost:hover { background: var(--basalt-900); color: var(--sand-100); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.hero-visual { position: relative; }
.hero-visual .ph { aspect-ratio: 4 / 5; width: 100%; }
.hero-coords {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--basalt-900);
  background: var(--sand-100);
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 2px;
  line-height: 1.7;
}
.hero-coords { display: grid; gap: 2px; }
.hero-coords div { display: flex; justify-content: space-between; gap: 14px; }
.hero-coords b { color: var(--clay); }

/* ---- Served strip ---- */
.served {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-100);
}
.served-inner {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-block: 26px;
  flex-wrap: wrap;
}
.served-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--basalt-500); white-space: nowrap;
}
.served-list { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); }
.served-list span {
  font-family: var(--serif); font-size: clamp(17px, 1.8vw, 22px);
  color: var(--basalt-700); font-weight: 500;
}

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--sand-200); padding: 30px clamp(18px, 2.2vw, 30px); }
.stat .num { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); font-weight: 500; line-height: 1; }
.stat .num small { font-size: 0.5em; color: var(--clay); vertical-align: super; font-family: var(--mono); }
.stat .lbl { font-size: 14px; color: var(--basalt-700); margin-top: 12px; }

/* ---- Approach ---- */
.approach-body {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 720px) { .approach-body { grid-template-columns: 1fr; gap: 28px; } }
.approach-lead { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; font-weight: 400; }
.approach-lead em { font-style: italic; color: var(--clay); }
.approach-cols { display: grid; gap: 26px; }
.approach-col h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; }
.approach-col p { color: var(--basalt-700); font-size: 16px; }

/* ---- Disciplines ---- */
.disc-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .disc-grid { grid-template-columns: 1fr; } }
.disc {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.25s ease;
}
.disc:nth-child(2n) { border-right: none; }
.disc:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 720px) {
  .disc { border-right: none; }
  .disc:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
.disc:hover { background: var(--sand-100); }
.disc .idx { font-family: var(--mono); font-size: 12px; color: var(--clay); letter-spacing: 0.1em; }
.disc h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 18px; margin-bottom: 14px; }
.disc p { color: var(--basalt-700); font-size: 16px; }
.disc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.disc .tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--basalt-700); border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px;
}

/* ---- Featured project ---- */
.feature { background: var(--basalt-900); color: var(--sand-200); }
.feature .eyebrow { color: var(--ochre); }
.feature .eyebrow::before { background: var(--ochre); }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: 1fr; gap: 32px; } }
.feature-grid-alt { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid oklch(0.42 0.02 70); }
@media (max-width: 920px) { .feature-grid-alt .feature-visual { order: -1; } }
.feature h2 { color: var(--sand-100); font-size: clamp(30px, 4vw, 50px); margin-block: 22px; }
.feature h2 em { font-style: italic; color: var(--ochre); }
.feature p { color: color-mix(in oklch, var(--sand-200) 80%, transparent); max-width: 50ch; }
.feature .meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.feature .meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); }
.feature .meta dd { margin: 6px 0 0; font-family: var(--serif); font-size: 19px; }
.feature .btn-ghost { color: var(--sand-100); border-color: var(--sand-400); }
.feature .btn-ghost:hover { background: var(--sand-100); color: var(--basalt-900); border-color: var(--sand-100); }
.feature .ph { aspect-ratio: 5 / 4; background-color: oklch(0.30 0.02 70); border-color: oklch(0.42 0.02 70); background-image: repeating-linear-gradient(45deg, transparent 0 11px, oklch(0.36 0.02 70) 11px 12px); }
.feature .ph::after { background: var(--basalt-900); border-color: oklch(0.42 0.02 70); color: var(--sand-300); }

/* ---- Legacy studies (archived case studies, deliberately subdued) ---- */
.legacy { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid oklch(0.42 0.02 70); }
.legacy-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-bottom: 28px; }
.legacy-head .eyebrow { color: var(--sand-400); }
.legacy-head .eyebrow::before { background: var(--sand-400); }
.legacy-intro { margin: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; color: color-mix(in oklch, var(--sand-300) 70%, transparent); }
.legacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.legacy-item {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center; gap: clamp(20px, 3vw, 40px);
  padding: 22px 4px; text-decoration: none; color: inherit;
  border-bottom: 1px solid oklch(0.36 0.02 70 / 0.55);
  transition: border-color .25s ease, padding-left .25s ease;
}
.legacy-list li:first-child .legacy-item { border-top: 1px solid oklch(0.36 0.02 70 / 0.55); }
.legacy-item:hover { border-bottom-color: var(--ochre); padding-left: 14px; }
.legacy-thumb { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid oklch(0.42 0.02 70); }
.legacy-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) brightness(0.9); transition: filter .3s ease; }
.legacy-item:hover .legacy-thumb img { filter: saturate(0.9) brightness(1); }
.legacy-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand-400); }
.legacy-copy h3 { margin: 8px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); color: var(--sand-100); }
.legacy-copy p { margin: 0; font-size: 14.5px; line-height: 1.55; color: color-mix(in oklch, var(--sand-200) 64%, transparent); max-width: 62ch; }
.legacy-arr { font-family: var(--mono); font-size: 22px; color: var(--sand-400); transition: transform .25s ease, color .25s ease; }
.legacy-item:hover .legacy-arr { color: var(--ochre); transform: translateX(5px); }
@media (max-width: 720px) {
  .legacy-item { grid-template-columns: 92px minmax(0, 1fr); }
  .legacy-arr { display: none; }
}

/* ---- Contact ---- */
.contact-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-info dl { display: grid; gap: 26px; margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.contact-info dd { margin: 8px 0 0; font-size: 17px; }
.contact-info dd b { font-family: var(--serif); font-weight: 500; }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--fg);
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--clay) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--basalt-500); }

/* ---- Contact CTA (no form) ---- */
.contact-cta { margin-top: clamp(32px, 4vw, 48px); }
.contact-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 30px; max-width: 720px;
}
@media (max-width: 620px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; flex-direction: column; gap: 9px;
  border: 1px solid var(--line); background: var(--sand-100);
  border-radius: 3px; padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--clay); transform: translateY(-2px); }
.contact-card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.contact-card-addr { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px); color: var(--fg); display: flex; align-items: baseline; gap: 8px; }
.contact-card-addr .arr { font-size: 0.7em; color: var(--clay); transition: transform 0.2s ease; }
.contact-card:hover .contact-card-addr .arr { transform: translateX(3px); }

/* ---- Footer ---- */
.footer { background: var(--sand-100); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--basalt-500); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--basalt-700); transition: color 0.2s ease; }
.footer ul a:hover { color: var(--clay); }
.footer .colophon { font-size: 14px; color: var(--basalt-700); max-width: 34ch; }
.footer-bottom { margin-top: clamp(40px, 5vw, 60px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--basalt-500); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.sec-title { font-size: clamp(28px, 3.6vw, 46px); }
.sec-intro { color: var(--basalt-700); font-size: clamp(16px, 1.3vw, 19px); max-width: 46ch; }
