/* Polish pass, Nov 2026. Loaded after style.css and drill.css.
   Same world, same copy: this file adds motion tokens, press and open/close feedback,
   themed browser surfaces and bigger touch targets. Delete the <link> to undo it. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- browser surfaces ---------- */
::selection { background: var(--wadi); color: #fff; }
html { accent-color: var(--wadi); scrollbar-color: #7E929C #E3E9EB; }
input, textarea { caret-color: var(--wadi); }
a { text-underline-offset: .24em; text-decoration-thickness: 1px; }
h1, h2, h3, .st-name { text-wrap: balance; }
p, dd, .st-desc, .st-body li { text-wrap: pretty; }

/* ---------- press feedback (every pressable thing answers the finger) ---------- */
.btn, .lang, .menu-btn, .lb-close, .lb-nav {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn:active, .lang:active, .menu-btn:active, .lb-close:active, .lb-nav:active { transform: scale(.97); }
.lang, .menu-btn { height: 44px; }
.menu-btn { padding: 12px 10px; }

/* ---------- header ---------- */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 24px -18px rgba(11,34,54,.45); }

/* current section in the menu */
.nav a:not(.nav-cta) { position: relative; transition: color .2s ease; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--wadi); transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.nav a[aria-current="true"]:not(.nav-cta) { color: var(--aquifer); }
.nav a[aria-current="true"]:not(.nav-cta)::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
}

/* ---------- hero: one entrance when the page opens ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: settle 1.8s var(--ease-out) both; }
  .hero-title, .hero-sub, .hero-actions, .hero-note { animation: enter-up .9s var(--ease-out) both; }
  .hero-title { animation-delay: .05s; }
  .hero-sub { animation-delay: .14s; }
  .hero-actions { animation-delay: .22s; }
  .hero-note { animation-delay: .5s; }
  .rig { animation: rig-up 1s .3s var(--ease-out) both; }
}
@keyframes settle { from { scale: 1.06; } }
@keyframes enter-up { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes rig-up { from { opacity: 0; translate: 0 24px; } }

/* ---------- service layers and the ministry list open smoothly ---------- */
.stratum summary { transition: background-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .stratum summary:hover { background-color: rgba(255,255,255,.1); }
  .stratum summary:hover::after { opacity: 1; }
}
.stratum summary:focus-visible, .ministry summary:focus-visible { outline-offset: -4px; }

/* drawn plus that folds into a minus (no text glyph) */
.stratum summary::after,
.stratum[open] summary::after {
  content: "";
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform .35s var(--ease-out), background-size .35s var(--ease-out), opacity .2s ease;
}
.stratum[open] summary::after { transform: rotate(180deg); background-size: 16px 2px, 2px 0; }

/* chevron on "show all ten projects" */
.ministry-hint { display: inline-flex; align-items: center; gap: 10px; }
.ministry-hint::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .35s var(--ease-out), margin .35s var(--ease-out);
}
.ministry[open] .ministry-hint::after { transform: rotate(225deg); margin-top: 4px; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .stratum::details-content, .ministry::details-content {
    height: 0; overflow: clip;
    transition: height .45s var(--ease-out), content-visibility .45s allow-discrete;
  }
  .stratum[open]::details-content, .ministry[open]::details-content { height: auto; }
}

/* the width/height attributes were overriding aspect-ratio and stretching these photos */
.with-img img { height: auto; }

/* ---------- projects, photos, certificates ---------- */
.field-grid img { transition: scale .7s var(--ease-out); }
.cert-list button { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.cert-list button:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .field-grid figure:hover img { scale: 1.03; }
  .cert-list button:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(0,0,0,.6); }
}
.cert-list button:active { transform: scale(.98); }

/* certificate viewer: fades and settles in, arrows step through */
.lightbox { overflow: visible; color: #fff; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 80vh; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.lightbox figcaption { font-size: .95rem; color: #D3E9ED; text-align: center; }
.lightbox[open] { animation: lb-in .26s var(--ease-out); }
.lightbox[open]::backdrop { animation: lb-fade .26s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
@keyframes lb-fade { from { opacity: 0; } }
.lb-close, .lb-nav {
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  background: #fff; color: var(--aquifer); border-radius: 50%;
}
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-nav { position: fixed; top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .lb-close:hover, .lb-nav:hover { background: var(--wadi-light); }
}
@media (max-width: 600px) {
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lightbox img { max-height: 70vh; }
}

/* ---------- contact ---------- */
.contact-lines a { padding-block: 8px; margin-block: -8px; }
@media (hover: hover) and (pointer: fine) {
  .contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--wadi-light); }
}
.contact.paused .water-line, .contact.paused .rise i { animation-play-state: paused; }
.form-status.ok, .form-status.fail { animation: enter-up .4s var(--ease-out) both; }
.req-form .form-status.ok { color: #1F7A4D; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .nav {
    display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px);
    box-shadow: 0 22px 30px -22px rgba(11,34,54,.45);
    transition: opacity .2s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease-out), transform .3s var(--ease-out), visibility 0s; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav a[aria-current="true"]:not(.nav-cta) { color: var(--wadi); }
  .menu-btn span { transition: transform .3s var(--ease-out), opacity .15s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav.open, .menu-btn span, .stratum summary::after, .ministry-hint::after,
  .field-grid img, .cert-list button, .site-header { transition: none; }
  .stratum::details-content, .ministry::details-content { transition: none; }
  .lightbox[open], .lightbox[open]::backdrop, .form-status.ok, .form-status.fail { animation: none; }
}

/* =================== round 2: the strongest moments, turned up =================== */

/* ---------- striking water: rings spread from the bit, the gauge answers ---------- */
.splash { bottom: 0; left: 0; }
.splash i {
  position: absolute; left: -30px; top: -8px; width: 60px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(214,240,244,.9); opacity: 0;
}
.strike .splash i { animation: splash 1.1s var(--ease-out) both; }
.strike .splash i:nth-child(2) { animation-delay: .14s; }
.strike .splash i:nth-child(3) { animation-delay: .28s; }
@keyframes splash { 0% { opacity: .95; transform: scale(.15); } 100% { opacity: 0; transform: scale(1.5); } }
.strike .gauge { animation: gauge-hit .7s var(--ease-out); }
@keyframes gauge-hit { 30% { transform: scale(1.12); } }

/* "we reached water" gets a waterline drawn under it at the same moment */
.reached { position: relative; display: inline-block; padding-bottom: 12px; }
.reached::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 4C4 0 8 0 12 4S20 8 24 4' fill='none' stroke='%239AD3DA' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 24px 8px repeat-x;
  clip-path: inset(0 0 0 100%); transition: clip-path 1s .15s var(--ease-out);
}
html[dir="ltr"] .reached::after { clip-path: inset(0 100% 0 0); }
.contact.struck .reached::after { clip-path: inset(0); }

/* ---------- the numbers sit under a measuring tape that unrolls ---------- */
.stats-list { position: relative; padding-top: 40px; }
.stats-list::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 16px;
  border-bottom: 1px solid rgba(242,221,176,.55);
  background:
    repeating-linear-gradient(to left, rgba(242,221,176,.95) 0 2px, transparent 2px 60px) 100% 100% / 100% 16px no-repeat,
    repeating-linear-gradient(to left, rgba(242,221,176,.5) 0 1px, transparent 1px 12px) 100% 100% / 100% 7px no-repeat;
  transform: scaleX(0); transform-origin: 100% 0; transition: transform 1.6s var(--ease-out);
}
html[dir="ltr"] .stats-list::before {
  transform-origin: 0 0;
  background:
    repeating-linear-gradient(to right, rgba(242,221,176,.95) 0 2px, transparent 2px 60px) 0 100% / 100% 16px no-repeat,
    repeating-linear-gradient(to right, rgba(242,221,176,.5) 0 1px, transparent 1px 12px) 0 100% / 100% 7px no-repeat;
}
.stats.seen .stats-list::before { transform: scaleX(1); }

/* ---------- the work log: each study pinned to its region ---------- */
.project-list { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.project-list li,
html[dir="ltr"] .project-list li {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; row-gap: 2px; align-items: start;
  padding: 26px 0;
}
.project-list li::before {
  content: ""; grid-row: 1 / 3; width: 30px; height: 38px; margin-top: 2px;
  background: var(--aquifer);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E%3Cpath d='M15 1C7.3 1 1 7.1 1 14.7 1 25 15 37 15 37S29 25 29 14.7C29 7.1 22.7 1 15 1Zm0 19.3a5.6 5.6 0 1 1 0-11.2 5.6 5.6 0 0 1 0 11.2Z'/%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 30 38'%3E%3Cpath d='M15 1C7.3 1 1 7.1 1 14.7 1 25 15 37 15 37S29 25 29 14.7C29 7.1 22.7 1 15 1Zm0 19.3a5.6 5.6 0 1 1 0-11.2 5.6 5.6 0 0 1 0 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out), background-color .2s ease;
}
.project-list .region { font: 600 1.3rem/1.35 var(--display); color: #8A5A1C; }
.project-list li > span:last-child { color: var(--ink); line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .project-list li:hover::before { transform: translateY(-4px); background-color: var(--wadi); }
}
@media (max-width: 600px) {
  .project-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .splash i { left: -18px; top: -6px; width: 36px; height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .strike .splash i, .strike .gauge { animation: none; }
  .reached::after, .stats-list::before, .project-list li::before { transition: none; }
}

/* =================== round 4: finishing touches inside the same look =================== */

/* who we serve: each client type gets its own drawn icon */
.client-list li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; }
html[dir="ltr"] .client-list li { padding: 10px 16px 10px 20px; }
.client-list .ic {
  flex: none; width: 22px; height: 22px;
  fill: none; stroke: var(--aquifer); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* footer: quick contact and a way back up to the surface */
.site-footer { padding-block: 40px; }
.footer-row { gap: 24px 40px; }
.f-id { display: grid; gap: 4px; }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.f-links a { display: inline-block; padding-block: 8px; color: #fff; font-weight: 500; text-decoration: none; }
.to-top {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--radius-s); background: transparent;
  color: #fff; font: 700 .95rem var(--text); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.to-top:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .f-links a:hover { text-decoration: underline; text-decoration-color: var(--wadi-light); }
  .to-top:hover { border-color: var(--wadi-light); background: rgba(255,255,255,.06); }
  .to-top:hover svg { transform: translateY(-3px); }
}

/* request form: the result reads at a glance */
.form-status.ok, .form-status.fail {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); line-height: 1.6;
}
.req-form .form-status.ok { background: #E6F4EC; color: #1F6B44; }
.req-form .form-status.fail { background: #FBEAE7; color: #9E3124; }
.form-status.ok::before, .form-status.fail::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.form-status.ok { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm4.3 6.6-5 5.4a1 1 0 0 1-1.4 0L5.6 10.7a1 1 0 0 1 1.4-1.4l1.5 1.5 4.3-4.6a1 1 0 0 1 1.5 1.4Z'/%3E%3C/svg%3E"); }
.form-status.fail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 4a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Zm0 8.5a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4Z'/%3E%3C/svg%3E"); }

/* phones: call, WhatsApp and request always one tap away */
.m-bar { display: none; }
@media (max-width: 900px) {
  .m-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px;
    position: fixed; z-index: 45; inset-inline: 10px calc(var(--rail) + 8px);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px;
    background: rgba(11,34,54,.95); border-radius: 14px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.55);
    transform: translateY(calc(100% + 30px)); transition: transform .35s var(--ease-out);
  }
  .m-bar.show { transform: none; }
  .m-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 10px;
    color: #fff; text-decoration: none; font: 700 .9rem var(--text); background: rgba(255,255,255,.1);
    transition: transform .16s var(--ease-out), background-color .2s ease;
  }
  .m-bar a:active { transform: scale(.97); }
  .m-bar .m-req { background: var(--wadi); }
  .m-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-bar, .to-top, .to-top svg { transition: none; }
}

/* =================== round 5 =================== */

/* field photos: captioned, and they open in the viewer */
.field-grid figure { overflow: visible; border-radius: 0; display: grid; gap: 10px; align-content: start; }
.field-grid figure button {
  all: unset; display: block; cursor: zoom-in; overflow: hidden; border-radius: var(--radius-m);
  transition: transform .16s var(--ease-out);
}
.field-grid figure button:active { transform: scale(.98); }
.field-grid figure button:focus-visible { outline: 3px solid var(--wadi); outline-offset: 3px; }
.field-grid figcaption { font-size: .92rem; line-height: 1.5; color: #5B5548; }
.lightbox.single .lb-nav { display: none; }

/* ---------- round 6: service choice in the form, "request this service" links, saved drafts ---------- */
.svc-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.svc-pick legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-0); }
.svc-pick legend small { font-weight: 400; color: #6B7780; font-size: .9rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips label { position: relative; cursor: pointer; }
.svc-chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.svc-chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: .95rem; line-height: 1.3;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--ease-out);
}
.svc-chips label:active span { transform: scale(.97); }
.svc-chips input:checked + span { background: var(--aquifer); border-color: var(--aquifer); color: #fff; }
.svc-chips input:focus-visible + span { outline: 3px solid var(--wadi); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .svc-chips input:not(:checked) + span:hover { border-color: var(--wadi); background: #fff; }
}
.svc-pick.flash .svc-chips input:checked + span { animation: chip-pick .7s var(--ease-out); }
@keyframes chip-pick { 0% { box-shadow: 0 0 0 0 rgba(42,151,166,.55); } 100% { box-shadow: 0 0 0 10px rgba(42,151,166,0); } }

.st-main { display: grid; gap: 18px; align-content: start; }
.st-ask {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--fg, var(--aquifer)); text-decoration: none;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid currentColor;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.st-ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.st-ask:active { transform: scale(.97); }
.st-ask:focus-visible { outline: 3px solid var(--wadi); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .st-ask:hover { background: var(--fg, var(--aquifer)); color: var(--l, #fff); }
  .st-ask:hover svg { transform: translateY(2px); }
}
.req-form .form-status.note { color: #6B5A3A; background: #F6EEDC; padding: 10px 14px; border-radius: var(--radius-s); }

/* photos get a sand tint while they load, so the frame is never an empty hole */
.field-grid figure button { background: #E6DCC6; }

@media (prefers-reduced-motion: reduce) {
  .svc-pick.flash .svc-chips input:checked + span { animation: none; }
  .st-ask svg { transition: none; }
}

/* ---------- round 7 ---------- */
/* phone: header slides away while reading down, returns on the way up */
@media (max-width: 900px) {
  .site-header { transition: transform .3s var(--ease-out), box-shadow .3s ease, background-color .3s ease; }
  .site-header.away { transform: translateY(-100%); box-shadow: none; }
}
/* phone: calmer reading size for the long opening paragraph, bigger service buttons */
@media (max-width: 600px) {
  .about .lead { font-size: 1.18rem; line-height: 1.75; }
  .svc-chips span { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 16px; }
}
.stratum { scroll-margin-top: 12px; }

/* email row: address and a copy button for computers */
.mail-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-self: start; }
.copy { display: none; }
@media (hover: hover) and (pointer: fine) {
  .copy {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font: 500 .85rem var(--text); color: inherit; opacity: .8;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 10px;
    transition: opacity .2s ease, background-color .2s ease, transform .16s var(--ease-out);
  }
  .copy:hover { opacity: 1; background: rgba(255,255,255,.16); }
  .copy:active { transform: scale(.97); }
  .copy.done { background: #1F7A4D; border-color: #1F7A4D; color: #fff; opacity: 1; }
  .copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
  .copy:focus-visible { outline: 3px solid var(--wadi); outline-offset: 2px; }
}

/* computers: the send shortcut, and the contact details stay beside a long form */
.send-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kbd-hint { display: none; color: #6B7780; font-size: .85rem; }
.kbd-hint kbd { font: 600 .78rem var(--text); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--paper); direction: ltr; display: inline-block; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .kbd-hint { display: inline; }
  .contact-info { position: sticky; top: 110px; }
}

/* computers: certificates show a magnifier on hover */
.cert-list button { position: relative; }
/* the width/height attributes only reserve space; the card keeps its 3:4 shape */
.cert-list img { height: auto; }
.cert-list button::after {
  content: ""; position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11,34,54,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cert-list button:hover::after, .cert-list button:focus-visible::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .copy, .cert-list button::after { transition: none; }
}

/* printing or saving as PDF: plain pages, everything open, no moving parts */
@media print {
  .drill, .m-bar, .menu-btn, .lang, .skip, .rig, .hero-bg, .rise, .water-line, .to-top, .copy, .send-row, .svc-pick, .req-form, .lightbox, .hero-actions, .st-ask, .kbd-hint { display: none !important; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .site-header { position: static !important; }
  section, .hero, .stats, .team, .contact, .site-footer, .stratum { background: #fff !important; color: #000 !important; padding-block: 18px !important; min-height: 0 !important; }
  section *, .site-footer * { color: #000 !important; }
  .stratum .st-body { display: block !important; }
  .stratum, .project-list li, .team-list li, figure { break-inside: avoid; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: none; }
}

/* ---------- round 8: readable contrast (WCAG AA) and the consent box ---------- */
.btn-primary, .m-bar .m-req { background: #1F7A86; border-color: #1F7A86; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #18636E; border-color: #18636E; } }
.vm dd { color: #3F4D57; }
.s-wells { --fg: #0E151B; --sub: #11181D; color: #0E151B; }
.region, .project-list .region { color: #6E4410; }
.ministry-hint { color: #1A6B76; }

.consent-row { gap: 4px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: .95rem; line-height: 1.6; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #1F7A86; cursor: pointer; }
.consent input:focus-visible { outline: 3px solid var(--wadi); outline-offset: 2px; }
.consent a { color: #1A6B76; font-weight: 700; }
.consent-row.invalid .consent { color: #9E3124; }
.s-hydro { --sub: #3A2E1E; }
.s-gis { --sub: #33291E; }
.s-hydrogeo { --fg: #0E151B; --sub: #1E1913; color: #0E151B; }
