@font-face { font-family: Alexandria; src: url(assets/fonts/Alexandria-Variable.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Plex; src: url(assets/fonts/IBMPlexSansArabic-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(assets/fonts/IBMPlexSansArabic-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --well: #0B5C57;      /* header green */
  --ocher: #E3A33B;     /* the download button */
  --mint: #E0F0EB;
  --sand: #F6F1E6;      /* page ground */
  --ink: #0F2A2A;
  --muted: #4E615F;
  /* ground layers of the shaft */
  --soil: #D99A3A;
  --clay: #A8583A;
  --rock: #5E6F6A;
  --gravel: #8E8270;
  --water: #2F8F9D;
  --shaft: 44px;
}
@media (min-width: 720px) { :root { --shaft: 76px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.75 Plex, system-ui, sans-serif;
}
h1, h2 { font-family: Alexandria, Plex, sans-serif; margin: 0; }
b { font-weight: 600; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ocher); outline-offset: 3px; border-radius: 6px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { background: var(--mint); }
.hero-in {
  background: var(--well);
  color: #fff;
  padding: 28px 20px 40px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 70% 100%, 30% calc(100% - 26px), 0 calc(100% - 8px));
}
.hero-in > * { max-width: 680px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 22px Alexandria, sans-serif; }
.brand img { border-radius: 12px; }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(30px, 7.4vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead { margin: 14px auto 0; color: #D4EBE5; font-size: 18px; max-width: 34em; }
.get { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dl {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 30px;
  border-radius: 29px;
  background: var(--ocher); color: var(--ink);
  font: 700 19px Alexandria, sans-serif; text-decoration: none;
  box-shadow: 0 10px 24px rgba(227, 163, 59, .35);
}
.dl::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dl:hover { filter: brightness(1.04); }
.dl[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }
.release { margin: 0; font-size: 15px; color: #CFE8E1; }
.rig { display: block; width: 100%; max-width: 780px; height: auto; margin: -6px auto 0; }

/* ── The bore: each section is a depth of the well ───── */
.bore { position: relative; }
.layer {
  display: grid;
  grid-template-columns: var(--shaft) minmax(0, 1fr);
  max-width: 820px;
  margin-inline: auto;
}
.shaft { position: relative; background: var(--c); }
.soil   { --c: var(--soil); }
.clay   { --c: var(--clay); }
.rock   { --c: var(--rock); }
.gravel { --c: var(--gravel); }
.water  { --c: var(--water); }
/* texture: a few strata lines, not a wash */
.shaft::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(176deg, transparent 0 34px, rgba(15, 42, 42, .14) 34px 36px);
}
.water .shaft::before {
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 255, 255, .28) 18px 20px);
}
/* the drill rod down the middle, stopping in the water */
.shaft::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%;
  width: 4px; margin-inline-start: -2px;
  background: var(--ink);
  transform-origin: top;
}
.water .shaft::after { bottom: auto; height: 46px; }
.mark {
  position: sticky; top: 10px; z-index: 1;
  display: block; margin: 14px 3px 0; padding: 2px 0;
  text-align: center;
  font: 700 12px/1.3 Alexandria, sans-serif;
  color: var(--ink); background: var(--sand); border-radius: 6px;
}
@media (min-width: 720px) { .mark { font-size: 14px; margin-inline: 10px; } }

.body { padding: 26px 20px 44px; }
@media (min-width: 720px) { .body { padding: 40px 40px 64px; } }
.layer h2 { font-size: clamp(24px, 5.4vw, 32px); font-weight: 700; color: var(--well); margin-bottom: 14px; }
.body p { margin: 0 0 12px; max-width: 36em; }
.aside { color: var(--muted); font-size: 16px; }

.facts { list-style: none; margin: 0; padding: 0; max-width: 36em; }
.facts li { padding: 12px 0; border-bottom: 1px dashed #CFC4AF; }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; font: 700 18px Alexandria, sans-serif; color: var(--ink); }

.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; max-width: 36em; }
.steps li { counter-increment: s; position: relative; padding: 0 52px 18px 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--well); color: #fff; font: 700 17px Alexandria, sans-serif;
}
.steps li > b:first-child { display: block; font: 700 18px Alexandria, sans-serif; }

.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; margin-inline: -2px;
}
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.phone {
  position: relative; width: 170px; aspect-ratio: 9 / 19;
  border: 7px solid var(--ink); border-radius: 26px;
  background: var(--mint); overflow: hidden;
  display: grid; place-items: center;
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone span { color: var(--muted); font-size: 13px; padding: 10px; }
.shots figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; }

.water .body { background: #E3F1F0; }
.water h2 { color: var(--water); filter: brightness(.7); }
.water .release { color: var(--muted); }
.soon { margin-top: 18px !important; font-weight: 600; color: var(--muted); }
.contact a { font-weight: 600; color: var(--well); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 22px 20px 30px; background: var(--well); color: #CFE8E1; font-size: 14px;
}
.foot span:first-child { font: 700 16px Alexandria, sans-serif; color: #fff; }

/* One moment of motion: the rod drills down when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .shaft::after { animation: drill 0.9s cubic-bezier(.4, 0, .2, 1) both; }
  .clay .shaft::after   { animation-delay: .25s; }
  .rock .shaft::after   { animation-delay: .5s; }
  .gravel .shaft::after { animation-delay: .75s; }
  .water .shaft::after  { animation-delay: 1s; }
  @keyframes drill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
