/* Geopex, drill edition. The page is a cross-section of the ground: every section is a
   rock layer, and a drill follows the reader down from the rig in the hero until it
   reaches the aquifer at the contact form. Loaded after style.css and overrides it. */

:root { --rail: 96px; }
main { padding-inline-end: 0; overflow-x: clip; }
.wrap { width: min(var(--wrap), 100% - 2 * 24px); }
main > section[data-depth] { position: relative; padding-inline-end: var(--rail); background: var(--l) var(--pat, none); }

/* uneven boundary between two layers */
main > section:not(.hero):not(.contact)::before,
.stratum::before {
  content: ""; position: absolute; inset-inline: 0; top: -20px; height: 22px; z-index: 1; pointer-events: none;
  background: var(--l);
  -webkit-mask: var(--edge) 0 100% / 640px 22px repeat-x;
          mask: var(--edge) 0 100% / 640px 22px repeat-x;
}
:root {
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='22' viewBox='0 0 640 22' preserveAspectRatio='none'%3E%3Cpath d='M0 13C40 6 80 15 130 11S220 3 270 10 360 19 410 12 500 4 560 9 620 15 640 13V22H0Z'/%3E%3C/svg%3E");
}
.stratum { position: relative; }
.stratum::before { top: -12px; height: 14px; -webkit-mask-size: 520px 14px; mask-size: 520px 14px; }
.about::before { -webkit-mask-position: 120px 100%; mask-position: 120px 100%; }
.stats::before { -webkit-mask-position: 300px 100%; mask-position: 300px 100%; }
.projects::before { -webkit-mask-position: 470px 100%; mask-position: 470px 100%; }
.team::before { -webkit-mask-position: 210px 100%; mask-position: 210px 100%; }

/* ---------- the layers, top to bottom ---------- */
.about { --l: #E8DBC0; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Ccircle cx='6' cy='7' r='1.3' fill='%23a5895b' opacity='.45'/%3E%3Ccircle cx='23' cy='19' r='1' fill='%23a5895b' opacity='.4'/%3E%3Ccircle cx='12' cy='28' r='.8' fill='%23a5895b' opacity='.4'/%3E%3C/svg%3E"); }

.stats { --l: #6E5A46; background: var(--l) var(--pat); --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='60'%3E%3Cg fill='%23836c55' stroke='%23564434' stroke-width='1'%3E%3Cellipse cx='14' cy='14' rx='9' ry='6'/%3E%3Cellipse cx='52' cy='10' rx='6' ry='4'/%3E%3Cellipse cx='74' cy='34' rx='10' ry='6.5'/%3E%3Cellipse cx='30' cy='44' rx='7' ry='5'/%3E%3Cellipse cx='62' cy='54' rx='5' ry='3.5'/%3E%3C/g%3E%3C/svg%3E"); }
.stats-list strong { color: #F2DDB0; }
.stats-list li > span { color: #EAE0D0; }
.stats-list li { border-inline-start-color: rgba(255,255,255,.2); }

.services { --l: #D9C29A; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 30L40 10M40 40L80 20' stroke='%238f7448' stroke-opacity='.22' fill='none'/%3E%3C/svg%3E"); }
.services .section-head p { color: #5A4A33; }
.strata { border-top: 0; margin-inline-end: calc(var(--rail) * -1); }
.stratum { border-bottom: 0; padding-inline-end: var(--rail); }
.s-hydro { --l: #CBAA78; background: var(--l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='5' cy='6' r='1.4' fill='%23866a3e' opacity='.5'/%3E%3Ccircle cx='18' cy='15' r='1.1' fill='%23866a3e' opacity='.45'/%3E%3Ccircle cx='9' cy='21' r='.9' fill='%23866a3e' opacity='.4'/%3E%3C/svg%3E"); --sub: #4E3F2A; }
.s-gis { --l: #B9A68A; background: var(--l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M3 5H12M20 5H30M8 13H18M25 13H33' stroke='%23675740' stroke-opacity='.35'/%3E%3C/svg%3E"); --sub: #43372A; }
.s-hydrogeo { --l: #A0968A; background: var(--l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12'%3E%3Cpath d='M0 6H60' stroke='%23554c42' stroke-opacity='.3'/%3E%3C/svg%3E"); --sub: #2F2922; }
.s-wells { --l: #8E8C84; --fg: var(--ink); --sub: #26231F; background: var(--l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 .5H60M0 15.5H60M30 0V15M0 15V30M60 15V30' stroke='%23413e38' stroke-opacity='.3' fill='none'/%3E%3C/svg%3E"); }
.s-wells .st-body li { border-bottom-color: rgba(0,0,0,.2); }
.s-pm { --l: #625E57; --fg: #fff; --sub: #DDD8CF; background: var(--l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 .5H60M0 15.5H60M34 0L26 15M4 15L-4 30M64 15L56 30' stroke='%23ffffff' stroke-opacity='.13' fill='none'/%3E%3C/svg%3E"); }

.projects { --l: #E2DDD1; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cpath d='M0 .5H72M0 18.5H72M36 0V18M0 18V36M72 18V36' stroke='%2398907f' stroke-opacity='.22' fill='none'/%3E%3C/svg%3E"); }
.projects .section-head p { color: #5B5548; }
.project-list li { border-bottom-color: rgba(0,0,0,.14); }
.region { color: #8A5A1C; }
.ministry { background: rgba(255,255,255,.62); }

.clients { --l: #CEC5B1; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 .5H60M0 15.5H60M30 0V15M0 15V30M60 15V30' stroke='%23857a63' stroke-opacity='.2' fill='none'/%3E%3Cpath d='M8 8H20M38 23H50' stroke='%23857a63' stroke-opacity='.3'/%3E%3C/svg%3E"); }
.client-list li { border-color: rgba(0,0,0,.1); }

.team { --l: #55514B; color: #fff; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M0 4H22M30 4H56M10 11H40' stroke='%23ffffff' stroke-opacity='.08'/%3E%3C/svg%3E"); }
.team h2 { color: #fff; }
.team .section-head p, .team-list small { color: #D6D0C6; }
.team-list, .team-list li { border-color: rgba(255,255,255,.16); }
.ini { background: rgba(255,255,255,.12); color: #fff; }
.lead-member .ini { background: var(--ochre); }

.certs { --l: #33403F; --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='6' cy='8' r='1.6' fill='%235FB0B9' opacity='.35'/%3E%3Ccircle cx='21' cy='18' r='1.2' fill='%235FB0B9' opacity='.3'/%3E%3Ccircle cx='11' cy='25' r='1' fill='%235FB0B9' opacity='.3'/%3E%3C/svg%3E"); }

/* the aquifer */
main > section.contact {
  --l: #1C667C; color: #fff; isolation: isolate;
  background: linear-gradient(to bottom, #1E6E84, #154A66 45%, #12324F);
}
.contact h2 { color: #fff; }
.contact-info p { color: #D3E9ED; }
.reached { font: 600 var(--fs-2)/1.3 var(--display); color: var(--wadi-light); margin-bottom: .4em; }
.contact-lines li { border-bottom-color: rgba(255,255,255,.18); }
.contact-lines span { color: #A9D6DD; }
.contact-lines a { color: #fff; }
.btn-wa { border-color: #fff; color: #fff; }
.btn-wa:hover { background: #fff; color: var(--aquifer); }
.contact-grid { position: relative; z-index: 1; }
.req-form { color: var(--ink); border-top-color: var(--ochre); box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.water-line {
  position: absolute; top: -27px; left: 0; width: 200%; height: 30px; fill: #1E6E84;
  animation: tide 9s linear infinite;
}
@keyframes tide { to { transform: translateX(-50%); } }
.rise { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.rise i {
  position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(154,211,218,.5); animation: rise 11s linear infinite;
}
.rise i:nth-child(1) { left: 8%; animation-delay: 0s; }
.rise i:nth-child(2) { left: 22%; width: 6px; height: 6px; animation-delay: -3s; animation-duration: 9s; }
.rise i:nth-child(3) { left: 37%; animation-delay: -6s; }
.rise i:nth-child(4) { left: 51%; width: 14px; height: 14px; animation-delay: -1.5s; animation-duration: 13s; }
.rise i:nth-child(5) { left: 63%; width: 7px; height: 7px; animation-delay: -8s; }
.rise i:nth-child(6) { left: 74%; animation-delay: -4.5s; animation-duration: 10s; }
.rise i:nth-child(7) { left: 86%; width: 5px; height: 5px; animation-delay: -2s; }
.rise i:nth-child(8) { left: 94%; width: 12px; height: 12px; animation-delay: -7s; animation-duration: 12s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(10px, -50vh); }
  100% { transform: translate(-6px, -110vh); opacity: 0; }
}
.site-footer { background: #0B2236; }

/* ---------- the rig on the surface ---------- */
.hero { --l: var(--aquifer); }
.rig {
  position: absolute; bottom: -4px; z-index: 2; width: 130px; height: 282px;
  inset-inline-end: calc(var(--rail) / 2 - 65px);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}
.hero-inner { padding-inline-end: calc(var(--rail) + 60px); }

/* ---------- the drill ---------- */
.drill { position: fixed; inset-block: 0; inset-inline-end: 0; width: var(--rail); z-index: 40; pointer-events: none; }
.hole, .pipe, .bit { position: absolute; top: 0; will-change: transform; }
.hole {
  left: calc(50% - 19px); width: 38px;
  background: linear-gradient(to right, rgba(20,12,4,.62), rgba(20,12,4,.32) 28% 72%, rgba(20,12,4,.62));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.pipe {
  left: calc(50% - 7px); width: 14px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 52px, #2E3940 52px 58px) 0 100% / 100% 58px,
    repeating-linear-gradient(115deg, transparent 0 7px, rgba(255,255,255,.4) 7px 9px) var(--spin) 0 / 14px 100%,
    linear-gradient(to right, #4A565E, #D3DCE0 42%, #8D9AA1 70%, #414C53);
}
.bit { left: 50%; width: 0; height: 0; }
.bit > * { position: absolute; }
.bit-sub {
  bottom: 40px; left: -12px; width: 24px; height: 36px; border-radius: 2px;
  background:
    repeating-linear-gradient(115deg, transparent 0 7px, rgba(255,255,255,.35) 7px 9px) var(--spin) 0 / 14px 100%,
    linear-gradient(to right, #3E494F, #B8C3C8 42%, #7C888E 70%, #364046);
}
.bit-head {
  bottom: 0; left: -24px; width: 48px; height: 44px;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 80% 78%, 50% 100%, 20% 78%, 0 42%);
  background:
    repeating-linear-gradient(90deg, #C7913F 0 5px, #6E4A1C 5px 8px) var(--spin) 0 / 16px 100%;
}
.bit-head i { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.45), rgba(255,255,255,.25) 40%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.5)); }

/* rock chips thrown out while the bit is cutting */
.chips, .bubbles { bottom: 0; left: 0; }
.chips i {
  position: absolute; width: 5px; height: 5px; left: -2px; top: -6px; opacity: 0; border-radius: 1px;
  background: color-mix(in srgb, var(--chip, #8a6a40) 55%, #24170a);
}
.drilling .chips i { animation: chip .45s ease-out infinite; }
.chips i:nth-child(1) { --dx: -26px; --dy: -14px; }
.chips i:nth-child(2) { --dx: 24px; --dy: -20px; animation-delay: .08s; }
.chips i:nth-child(3) { --dx: -18px; --dy: -30px; animation-delay: .16s; width: 4px; height: 4px; }
.chips i:nth-child(4) { --dx: 30px; --dy: -8px; animation-delay: .24s; }
.chips i:nth-child(5) { --dx: -32px; --dy: -4px; animation-delay: .3s; width: 3px; height: 3px; }
.chips i:nth-child(6) { --dx: 16px; --dy: -34px; animation-delay: .38s; width: 3px; height: 3px; }
@keyframes chip {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(160deg); opacity: 0; }
}

/* bubbles once the bit is in the water */
.bubbles i {
  position: absolute; left: -4px; top: -10px; width: 8px; height: 8px; border-radius: 50%; opacity: 0;
  border: 1.5px solid rgba(214,240,244,.85);
}
.wet .bubbles i { animation: bubble 2.2s ease-in infinite; }
.bubbles i:nth-child(2) { animation-delay: .45s !important; left: 6px; width: 6px; height: 6px; }
.bubbles i:nth-child(3) { animation-delay: .9s !important; left: -12px; }
.bubbles i:nth-child(4) { animation-delay: 1.35s !important; left: 2px; width: 10px; height: 10px; }
.bubbles i:nth-child(5) { animation-delay: 1.8s !important; left: -8px; width: 5px; height: 5px; }
@keyframes bubble {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(6px, -150px); opacity: 0; }
}

/* depth gauge */
.gauge {
  position: absolute; top: 88px; left: 6px; right: 6px; z-index: 1;
  background: rgba(11,34,54,.9); color: #fff; border-radius: 8px; padding: 8px 4px 9px;
  text-align: center; line-height: 1.2; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
  transition: background-color .4s;
}
.gauge b { font: 700 1.55rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.gauge small { font-size: .8rem; margin-inline-start: 3px; color: var(--wadi-light); }
.gauge span { display: block; margin-top: 4px; font-size: .74rem; color: #C9D8DE; }
.wet .gauge { background: var(--wadi); }
.wet .gauge small, .wet .gauge span { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  :root { --rail: 44px; }
  .drill { display: block; }
  .gauge { top: 82px; left: 3px; right: 3px; padding: 6px 2px; border-radius: 6px; }
  .gauge b { font-size: 1rem; }
  .gauge small { font-size: .65rem; margin: 0; display: block; }
  .gauge span { display: none; }
  .hole { left: calc(50% - 9px); width: 18px; }
  .pipe { left: calc(50% - 3px); width: 6px; }
  .bit { transform-origin: 0 0; }
  .bit-sub { left: -6px; width: 12px; height: 20px; bottom: 22px; }
  .bit-head { left: -12px; width: 24px; height: 24px; }
  .rig { width: 78px; height: 170px; inset-inline-end: calc(var(--rail) / 2 - 39px); }
  .hero-inner { padding-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .water-line, .rise i, .drilling .chips i, .wet .bubbles i { animation: none; }
  .rise { display: none; }
}
