/* Whetstone Geo — one-page site
   Palette: deep forest, slate, stone, whetstone ochre
   Self-contained. No build step, no external assets. */

:root {
  --forest-950: #0b1913;
  --forest-900: #10241c;
  --forest-800: #173328;
  --forest-700: #204435;
  --forest-600: #2c5a46;
  --slate-700: #3a4542;
  --slate-600: #4e5b57;
  --slate-500: #66736e;
  --stone-300: #d8d1c4;
  --stone-200: #e8e2d6;
  --stone-100: #f3efe6;
  --stone-50: #f8f5ef;
  --paper: #fcfaf6;
  --ochre-600: #9a7218;
  --ochre-500: #c4962a;
  --ochre-400: #d4a94a;
  --ochre-200: #ead49a;
  --ochre-100: #f3e4b8;
  --ink: #141c18;
  --ink-soft: #3d4a44;
  --placeholder-bg: #f6e19a;
  --placeholder-border: #b8861e;
  --placeholder-text: #3a2c00;
  --header-h: 4.25rem;
  --max: 72rem;
  --radius: 0.4rem;
  --shadow: 0 1px 2px rgba(16, 36, 28, 0.06), 0 8px 24px rgba(16, 36, 28, 0.06);
  --font: "IBM Plex Sans", "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --focus: var(--ochre-500);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--forest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--ochre-600); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ochre-500);
  color: var(--ink);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--ink);
}

/* ----- Layout ----- */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
}

.section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.section-head h2 { margin-bottom: 0.65rem; }

.section-intro {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 40rem;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-600);
}

.section-no {
  color: var(--slate-500);
  letter-spacing: 0.08em;
}

.subhead {
  margin: 2.5rem 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}

/* ----- Placeholders (visually obvious) ----- */
.placeholder {
  display: inline;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border: 1px dashed var(--placeholder-border);
  border-radius: 0.2rem;
  padding: 0.05em 0.38em;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0;
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.placeholder-link {
  text-decoration: none;
}

.placeholder-link:hover .placeholder,
.placeholder-link:hover {
  color: var(--placeholder-text);
}

.placeholder-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ochre-500);
  color: var(--ink);
  border-color: var(--ochre-500);
}

.btn-primary:hover {
  background: var(--ochre-400);
  border-color: var(--ochre-400);
  color: var(--ink);
}

.btn-primary.placeholder-link {
  border-style: dashed;
}

@media (max-width: 480px) {
  .cap-download .btn { width: 100%; }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--forest-900);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  box-shadow: 0 1px 0 var(--ochre-500);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--stone-50);
  text-decoration: none;
  min-width: 0;
}

.logo:hover { color: var(--stone-50); }

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  color: var(--ochre-400);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-200);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-button {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.2rem 0.4rem 0.55rem;
  color: var(--stone-100);
  cursor: pointer;
  user-select: none;
}

.nav-button-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button-bars,
.nav-button-bars::before,
.nav-button-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.nav-button-bars::before,
.nav-button-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-button-bars::before { top: -5px; }
.nav-button-bars::after { top: 5px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 0.55rem;
  color: var(--stone-200);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--paper);
  background: rgba(248, 245, 239, 0.08);
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--ochre-500);
  color: var(--ink);
  font-weight: 600;
  padding-inline: 0.9rem;
}

.site-nav .nav-cta:hover {
  background: var(--ochre-400);
  color: var(--ink);
}

@media (max-width: 980px) {
  .header-inner { width: min(100% - 2rem, var(--max)); }
  .nav-button { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--forest-800);
    border-bottom: 1px solid rgba(243, 239, 230, 0.1);
    padding: 0.6rem 0 1rem;
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:focus-visible + .nav-button {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
  }
  .site-nav a {
    min-height: 2.75rem;
    padding: 0.7rem 0.4rem;
  }
  .site-nav .nav-cta {
    margin: 0.45rem 0 0;
    justify-content: center;
    width: 100%;
  }
  .nav-toggle:checked + .nav-button .nav-button-label {
    font-size: 0;
  }
  .nav-toggle:checked + .nav-button .nav-button-label::after {
    content: "Close";
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  background: var(--forest-900);
  color: var(--stone-50);
  overflow: hidden;
}

.hero-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #e4d5a4;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.hero-topo .topo-regular { opacity: 0.7; }
.hero-topo .topo-index { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 25, 19, 0.15) 0%, rgba(11, 25, 19, 0.15) 35%, rgba(11, 25, 19, 0.72) 100%),
    linear-gradient(90deg, rgba(11, 25, 19, 0.78) 0%, rgba(11, 25, 19, 0.45) 48%, rgba(11, 25, 19, 0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 4.5rem 0 4.25rem;
  max-width: 42rem;
  margin-left: max((100% - var(--max)) / 2, 1.25rem);
}

.hero .eyebrow {
  color: var(--ochre-200);
}

.hero h1 {
  color: var(--paper);
  margin-bottom: 1rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--stone-200);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
  .hero-inner { padding: 5.5rem 0 5.5rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 32rem; }
  .hero-inner { width: min(100% - 2rem, var(--max)); margin-left: auto; padding: 3.25rem 0 3.25rem; }
}

/* ----- Why ----- */
.section-why {
  background: var(--paper);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.why-grid {
  align-items: stretch;
}

.why-card {
  background: var(--paper);
  border: 1px solid var(--stone-300);
  border-radius: calc(var(--radius) + 0.1rem);
  padding: 1.5rem 1.4rem 1.55rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.why-card h3 { color: var(--forest-800); margin-bottom: 0.5rem; }
.why-card p { color: var(--ink-soft); }

.why-card-accent {
  background: var(--forest-900);
  border-color: var(--forest-900);
  color: var(--stone-100);
}

.why-card-accent h3 { color: var(--ochre-400); }
.why-card-accent p { color: var(--stone-200); }

@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.why-lead {
  display: grid;
  gap: 1.35rem 3rem;
  margin-bottom: 2.25rem;
  align-items: end;
}

.pull-quote {
  margin: 0;
  padding: 0 0 0 1.2rem;
  border: 0;
  border-left: 3px solid var(--ochre-500);
}

.pull-quote p {
  margin: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--forest-900);
}

.pull-quote p.pull-quote-note {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--ink-soft);
}

.why-lead-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 36rem;
}

@media (min-width: 800px) {
  .why-lead {
    grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 1.1fr);
  }
  .section-why .section-head { margin-bottom: 1.5rem; }
}

/* ----- Our standard ----- */
.section-standard {
  background: var(--forest-800);
  color: var(--stone-100);
}

.section-standard h2 { color: var(--paper); }
.section-standard .eyebrow { color: var(--ochre-200); }
.section-standard .section-no { color: rgba(232, 226, 214, 0.55); }
.section-standard .section-intro {
  color: var(--stone-200);
  max-width: 36rem;
}

.standard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
}

.standard-pillar {
  border-top: 2px solid var(--ochre-500);
  padding: 1.05rem 0 0.15rem;
}

.standard-pillar h3 {
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.standard-pillar p {
  color: var(--stone-200);
  font-size: 0.98rem;
}

@media (min-width: 600px) {
  .standard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .standard-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.75rem; }
}

/* ----- Services ----- */
.section-services {
  background: var(--stone-100);
  border-block: 1px solid var(--stone-200);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--stone-200);
  border-radius: calc(var(--radius) + 0.1rem);
  padding: 1.4rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card-icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--ochre-600);
  margin-bottom: 0.85rem;
}

.card-icon svg { width: 100%; height: 100%; }

.card-sector {
  box-shadow: none;
  background: var(--stone-50);
}

@media (min-width: 600px) {
  .core-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .core-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Service area ----- */
.section-area {
  background: var(--forest-800);
  color: var(--stone-100);
  position: relative;
  overflow: hidden;
}

.section-area::before {
  /* faint contour suggestion, drawn with CSS only as a fallback texture */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(70vw, 36rem);
  height: 24rem;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 28%, rgba(228, 213, 164, 0.0) 29%, transparent 30%),
    radial-gradient(ellipse at 50% 55%, transparent 36%, rgba(228, 213, 164, 0.55) 37%, transparent 38%),
    radial-gradient(ellipse at 48% 58%, transparent 46%, rgba(228, 213, 164, 0.45) 47%, transparent 48.5%),
    radial-gradient(ellipse at 52% 52%, transparent 58%, rgba(228, 213, 164, 0.35) 59%, transparent 60.5%);
}

.section-area h2 { color: var(--paper); }
.section-area .eyebrow { color: var(--ochre-200); }
.section-area .section-no { color: rgba(232, 226, 214, 0.55); }

.area-layout {
  display: grid;
  gap: 0.5rem 3rem;
  position: relative;
  z-index: 1;
}

.area-lead {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 0.85rem;
}

.area-copy p:last-of-type {
  color: var(--stone-200);
  max-width: 36rem;
  font-size: 1.08rem;
}

@media (min-width: 800px) {
  .area-layout {
    grid-template-columns: minmax(14rem, 0.7fr) 1.1fr;
    align-items: start;
    gap: 1.5rem 3rem;
  }
  .section-area .section-head { margin-bottom: 0; }
}

/* ----- Capabilities ----- */
.section-capabilities {
  background: var(--paper);
}

.cap-panel {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}

.cap-panel-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-200);
}

.cap-list { margin: 0; }

.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.cap-row:last-child { border-bottom: 0; }

.cap-row dt {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.cap-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--forest-900);
}

.cap-download {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--stone-200);
}

@media (min-width: 600px) {
  .cap-panel { padding: 1.85rem 2rem 2rem; }
  .cap-row {
    grid-template-columns: 14rem 1fr;
    align-items: baseline;
    padding: 0.85rem 0;
  }
}

/* ----- Contact ----- */
.section-contact {
  background: var(--forest-900);
  color: var(--stone-100);
}

.section-contact h2 { color: var(--paper); }
.section-contact .eyebrow { color: var(--ochre-200); }
.section-contact .section-no { color: rgba(232, 226, 214, 0.55); }
.section-contact .section-intro { color: var(--stone-200); }

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-200);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  word-break: break-word;
}

a.contact-value:hover { color: var(--ochre-400); }

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 1fr);
    align-items: start;
    gap: 3rem;
  }
  .section-contact .section-head { margin-bottom: 0; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--forest-950);
  color: var(--stone-300);
  padding: 1.75rem 0 1.9rem;
  border-top: 1px solid rgba(201, 150, 42, 0.35);
}

.footer-inner {
  display: grid;
  gap: 0.2rem;
}

.footer-name {
  margin: 0;
  font-weight: 600;
  color: var(--stone-50);
}

.footer-meta,
.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--stone-300);
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
