/* ==========================================================================
   Rapid Geology — static site
   Rebuilt to match the 2025 design (Wayback capture 2025-07-23).

   Brand palette from the original Elementor global kit:
     green light #7BBA3D   green dark #5F9030
     blue  light #25A6DF   blue  dark #038CBB
     grey  light #C6C4C5   grey  dark #959495
   ========================================================================== */

:root {
  --green:        #7BBA3D;
  --green-dark:   #5F9030;
  --blue:         #25A6DF;
  --blue-dark:    #038CBB;
  --ink:          #000000;
  --ink-soft:     #1c1c1c;

  /* Sampled from the bottom edge of Rapid-bg-01.png so the band continues
     the wave art seamlessly. Deliberately not the brand green (#7BBA3D). */
  --band-green:   #75C050;
  --band-grey:    #E5E5E5;
  --band-beige:   #D8D1C3;
  --band-dark:    #111111;
  --band-partner: #4A4A4A;
  --band-footer:  #363636;

  --maxw:         1140px;
  --pad:          clamp(1.25rem, 5vw, 2.5rem);
}

* { box-sizing: border-box; }

/* This is a light design. Stop Chrome's auto-dark-mode from inverting it. */
:root { color-scheme: light; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: #fff;
  -webkit-font-smoothing: antialiased;

  /* Reads as an application, not a document: hovering text gives the normal
     arrow rather than an I-beam, and clicking it neither places a caret nor
     starts a selection. Form fields are exempted below. */
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Anything the visitor actually types into must stay selectable and keep
   its text caret. */
input, textarea, select {
  cursor: auto;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Keep the affordance on things that are clickable. */
a, button, label, summary { cursor: pointer; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }

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

.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band-green   { background: var(--band-green); color: var(--ink); }
.band-grey    { background: var(--band-grey);  color: var(--ink-soft); }
.band-beige   { background: var(--band-beige); color: var(--ink-soft); }
.band-white   { background: #fff;              color: var(--ink-soft); }
.band-dark    { background: var(--band-dark);  color: rgba(255,255,255,.88); }
.band-dark h2 { color: #fff; }

.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  padding: .85em 2.2em;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.site-header .wrap {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--ink);
}
.logo img { height: 38px; width: auto; }
.logo .wordmark {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo .wordmark b { font-weight: 700; }

.nav ul {
  display: flex;
  gap: clamp(1.1rem, 3.5vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  padding-bottom: .45em;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--green-dark); }

/* ---------- Hero ---------- */

/* Layering, lowest to highest:
     0  .hero backdrop (flat colour)
     1  .hero-pin      (the fixed wordmark)
     2  .hero-waves + every band, partner strip and the footer
   Because the wordmark is fixed and everything above it in the stack scrolls
   normally, the waves ride up and cover it. NOTE: .hero must not get a
   z-index of its own — that would create a stacking context and trap
   .hero-waves below the pinned wordmark. */

.hero {
  position: relative;
  /* Taller than the fold on purpose. The waves are anchored to the bottom,
     so hero height is what sets how far below the wordmark the crest starts
     — and how far you scroll before it begins covering the text. */
  min-height: clamp(680px, 100vh, 1000px);
  background-color: #55636b;
}

.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* The four Rapid-bg PNGs are transparent layers, not alternatives.
     Stacked, they produce the original's layered paper-cut wave. */
  background-image:
    url('../images/Rapid-bg-01.png'),
    url('../images/Rapid-bg-02.png'),
    url('../images/Rapid-bg-03.png'),
    url('../images/Rapid-bg-04.png');
  background-position: center bottom;
  /* Natural aspect anchored to the bottom, not `cover`. `cover` scales the
     art up on tall viewports and pushes the crest over the tagline. */
  background-size: 100% auto;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-pin {
  position: fixed;
  top: clamp(7rem, 15vh, 10.5rem);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  padding-inline: var(--pad);
  pointer-events: none;
}

.hero-wordmark {
  /* The 72vh term matters: on a short window the lockup would otherwise
     grow tall enough to reach down into the waves. */
  width: min(62vw, 72vh, 660px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .28));
}

/* Everything after the hero scrolls over the pinned wordmark. */
.band,
.partners,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 9vh, 6rem);
  transform: translateX(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 18px solid rgba(255, 255, 255, .85);
  animation: nudge 2.2s ease-in-out infinite;
}
/* Keeps the -50% centering — a bare translateY here would cancel it. */
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 9px); }
}

/* ---------- Section headings ---------- */

.band-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .4em;
}
.band-sub {
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.4;
  max-width: 40ch;
  margin: 0 auto;
}

.rule {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .55);
  max-width: 860px;
  margin: clamp(2.2rem, 5vw, 3.5rem) auto;
}
.rule-green {
  border: 0;
  border-top: 1px solid var(--green-dark);
  max-width: 1000px;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
}

/* ---------- Stat rows (green band) ---------- */

.stat-title {
  text-align: center;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 500;
  margin: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.stat-title b { font-weight: 700; }

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}
.stat-row .divider { background: rgba(0, 0, 0, .35); align-self: stretch; }

.stat-copy p {
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.4;
  margin-bottom: 1em;
}
.stat-copy p:last-child { margin-bottom: 0; }

.stat-figure { text-align: center; }
.stat-figure .value {
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
}
.stat-figure .caption {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Feature blocks (grey band) ---------- */

.feature-block { max-width: 1000px; margin-inline: auto; }
.feature-block h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.feature-block p {
  font-size: clamp(1.02rem, 1.9vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.feature-block img { width: 100%; }

/* ---------- Serif quote (green band) ---------- */

.quote-serif {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.25;
  text-align: center;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--ink);
}

/* ---------- Introduction ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}
.intro-grid h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.intro-grid p { font-size: 1.05rem; }

/* ---------- Illustration gallery ---------- */

.intro-lead { max-width: 62ch; }
.intro-lead h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.intro-lead p  { font-size: 1.05rem; }

.gallery-title {
  margin: clamp(2.8rem, 6vw, 4rem) 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: #555;
  text-align: center;
}

/* 300px minimum lands on 3 columns at full width, so the nine
   illustrations fill a tidy 3x3 rather than leaving a stray card. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin-top: 1.8rem;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.gallery-open {
  display: block;
  cursor: zoom-in;
  line-height: 0;
}
.gallery-open:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: .8rem;
  /* No background here on purpose: the figure already supplies the white
     card, and painting it again behind the image would mask the PNGs'
     transparency wherever the card is not white. */
  transition: transform .25s ease;
}
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.25rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 10, 12, .92);
  animation: lb-in .18s ease-out;
}
.lightbox[hidden] { display: none; }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(92vw, 1100px);
}
.lb-figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: .5rem;
}
.lb-figure figcaption {
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  line-height: 1.45;
  text-align: center;
  max-width: 62ch;
}

.lb-btn {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.lb-nav {
  width: clamp(40px, 6vw, 54px);
  height: clamp(40px, 6vw, 54px);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  padding-bottom: .18em;
}
.lb-nav:hover { transform: scale(1.08); }

.lb-close {
  position: absolute;
  top: clamp(.75rem, 2.5vw, 1.5rem);
  right: clamp(.75rem, 2.5vw, 1.5rem);
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  padding-bottom: .12em;
}

/* Stops the page behind from scrolling while the viewer is open. */
html.lb-open, body.lb-open { overflow: hidden; }

@media (max-width: 600px) {
  .lb-figure img { max-height: 64vh; }
  .lb-nav { width: 38px; height: 38px; font-size: 1.4rem; }
}

.gallery figcaption {
  margin-top: auto;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid #ececec;
  font-size: .84rem;
  line-height: 1.45;
  color: #555;
}

/* ---------- Video ---------- */

.video { max-width: 900px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.video:last-child { margin-bottom: 0; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 1rem 0 0;
  font-size: .95rem;
  color: #555;
}
.video-caption strong { color: var(--ink); font-weight: 600; }
.video-caption a { color: var(--green-dark); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.contact-info p { margin-bottom: .5em; }
.contact-info .label { font-weight: 700; margin-bottom: .9em; }
.contact-info a { color: var(--ink-soft); text-decoration: none; }
.contact-info a:hover { color: var(--green-dark); text-decoration: underline; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a8a8a; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(123, 186, 61, .2);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form .submit {
  width: 100%;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s;
}
.contact-form .submit:hover { background: var(--green-dark); }

.form-note { font-size: .8rem; color: #666; margin-top: .8rem; }

/* Honeypot — must be reachable by bots but invisible to people.
   display:none is skipped by some bots, so hide it off-canvas instead. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: .9rem;
  margin-top: .9rem;
  min-height: 1.2em;
  color: #555;
}
.form-status.is-ok    { color: var(--green-dark); font-weight: 600; }
.form-status.is-error { color: #b3261e;           font-weight: 600; }

.contact-form .submit:disabled { opacity: .6; cursor: progress; }

/* ---------- Partners ---------- */

.partners { background: var(--band-partner); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.partners-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  max-width: 1000px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  padding-inline: var(--pad);
  color: #fff;
}
.partners-head::before,
.partners-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .8);
}
.partners-head span { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 400; }

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.partners-logos img { height: 62px; width: auto; }
.partners-logos img.tall { height: 74px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band-footer);
  color: rgba(255, 255, 255, .9);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0 2.5rem;
}
.footer-name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-name b { font-weight: 700; }
.footer-quote {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.footer-quote cite { font-style: italic; }
.site-footer .rule-green { max-width: 1000px; margin: 2.2rem auto 1.6rem; }
.footer-legal { font-size: .95rem; color: rgba(255, 255, 255, .8); margin: 0; }
.footer-legal a { color: var(--green); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Introduction page (2025 layout) ----------
   Lighter, larger, left-aligned type on the beige band. */

.prose { max-width: 1100px; margin-inline: auto; }
.prose h1,
.prose h2 {
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 .7em;
}
.prose h2.spaced { margin-top: clamp(2rem, 5vw, 3rem); }
.prose h3 {
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 1rem;
  text-align: center;
}
.prose p {
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.55;
  margin-bottom: 1.5em;
}
.prose .statement {
  font-weight: 300;
  font-size: clamp(1.3rem, 2.9vw, 1.95rem);
  line-height: 1.3;
  margin-bottom: 1.2em;
}

/* Icon comparison tables */

.icon-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.icon-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-weight: 300;
}
table.icon-table th,
table.icon-table td {
  text-align: left;
  vertical-align: top;
  padding: .9rem 1.5rem .9rem 0;
}
table.icon-table th {
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  padding-bottom: 1.2rem;
}
table.icon-table td {
  font-size: clamp(.98rem, 1.8vw, 1.15rem);
  line-height: 1.35;
}

/* Separator between each option row (Pen & Paper / Illustrator / Hiring…).
   `tr + tr` means no stray rule above the first row or below the last,
   and the single-row second table gets none at all. */
table.icon-table tbody tr + tr td {
  border-top: 3px solid rgba(0, 0, 0, .3);
  padding-top: 1.5rem;
}
table.icon-table tbody tr td { padding-bottom: 1.4rem; }
table.icon-table tbody tr:last-child td { padding-bottom: .9rem; }
table.icon-table col.c1 { width: 34%; }
table.icon-table col.c2 { width: 24%; }

.opt { display: block; }
.opt svg,
.opt img {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: .5rem;
  fill: #7a7a7a;
}
.opt img { width: auto; height: 40px; }
.opt .name { display: block; line-height: 1.3; }
.opt .name b { font-weight: 700; }

/* ---------- Shared bits still used by other pages ---------- */

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 62ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .intro-grid,
  .contact-grid,
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .divider { display: none; }
  .stat-figure { margin-top: 1rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding-block: .7rem;
  }
  .logo .wordmark { font-size: 1.5rem; }
  .nav ul { flex-wrap: wrap; gap: 1.1rem; }
  .hero-wordmark { width: 78vw; }
  .partners-logos img,
  .partners-logos img.tall { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
