/* Bair Well Drilling: one-page, drill-down-through-the-strata design */
:root {
  --gold: #f2b21c;
  --gold-2: #ffcb45;
  --red: #c8261d;
  --ink: #1b1410;
  --ink-2: #2a201a;
  --paper: #f6f1e7;
  --sky-1: #cfdde8;
  --sky-2: #f3ece0;
  --topsoil: #3a2a1e;
  --clay: #9a5a34;
  --gravel: #cdb48a;
  --rock: #3c3e44;
  --aqua-1: #0d3d5e;
  --aqua-2: #072338;
  --water: #4fb3e8;
  --foam: #dff3ff;

  --wrap: 1240px;
  --pad: 24px;
  --gutter: 132px;          /* room kept clear on the right for the drill string */
  --rig-w: min(46vw, 700px, calc((100svh - var(--head) - 70px) / 1.111));
  --pipe-inset: 64px;       /* pipe distance in from the wrap's right edge */
  --head: 68px;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 760px) {
  :root { --pad: 18px; --gutter: 50px; --rig-w: 100vw; --pipe-inset: 22px; --head: 58px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0 0 .4em; }
h2 { font-size: clamp(40px, 5.4vw, 72px); }
h3 { font-size: 28px; line-height: 1; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 calc(var(--gutter) + var(--pad)) 0 var(--pad); position: relative; }

.eyebrow {
  font: 700 15px/1.2 var(--f-display); letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 18px; color: var(--gold);
}
.depth { display: inline-flex; align-items: center; gap: 12px; }
.depth b {
  font-weight: 800; padding: 4px 10px; border: 1.5px solid currentColor; border-radius: 3px; letter-spacing: .08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 20px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 18px 28px; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #a87500; }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 7px 0 #a87500; }
.btn--gold:active { transform: translateY(3px); box-shadow: 0 2px 0 #a87500; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--block { width: 100%; flex-direction: column; gap: 4px; padding: 16px; }
.btn--block small { font: 600 13px/1 var(--f-body); letter-spacing: .04em; text-transform: none; opacity: .75; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head);
  background: rgba(27, 20, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
}
.top__in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.brand img { width: 270px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 700 16px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #e9dfcf; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-on { color: var(--gold); border-color: var(--gold); }
.top__call {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 4px;
  font: 800 18px/1 var(--f-display); letter-spacing: .05em;
}
.top__call svg { width: 18px; height: 18px; fill: currentColor; }
.top__call:hover { background: var(--gold-2); }
@media (max-width: 1060px) { .nav { display: none; } .top__call { margin-left: auto; } }
@media (max-width: 520px) {
  .brand img { width: 190px; }
  .top__call span { display: none; }
  .top__call { padding: 10px 12px; }
}

/* ---------- page + drill string ---------- */
.page { position: relative; }
.bore { position: absolute; left: 0; top: 0; width: 0; z-index: 6; pointer-events: none; visibility: hidden; }
.bore.is-ready { visibility: visible; }
.bore__hole {
  position: absolute; left: -17px; top: 0; width: 34px; height: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.55) 30%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.15));
  border-radius: 0 0 6px 6px;
  -webkit-mask: linear-gradient(#000, #000); /* placeholder so the height animates cleanly */
}
.bore__pipe {
  position: absolute; left: -6px; top: 0; width: 12px; height: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 196px, #2a2c30 196px 198px, #8c9198 198px 214px, #2a2c30 214px 216px),
    linear-gradient(90deg, #3b3e43, #c9ced4 38%, #8e949b 60%, #34373c);
  background-position: 0 100%, 0 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.bore__bit { position: absolute; left: -17px; top: 0; width: 34px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.bit { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 760px) {
  .bore__hole { left: -12px; width: 24px; }
  .bore__pipe { left: -4px; width: 8px; }
  .bore__bit { left: -12px; width: 24px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: max(100svh, 660px);
  background: #6f8fb4 url("../../img/hero-valley-2000.webp") center bottom / cover no-repeat;
  padding: calc(var(--head) + 6vh) 0 0;
}
@media (max-width: 1200px) { .hero { background-image: url("../../img/hero-valley-1200.webp"); } }
.hero::before { /* keep the headline readable over the sky without hiding the mountains */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 28, 46, .62) 0%, rgba(12, 28, 46, .38) 38%, rgba(12, 28, 46, 0) 66%),
    linear-gradient(180deg, rgba(12, 28, 46, .35) 0%, rgba(12, 28, 46, 0) 30%);
}
.hero__in { position: relative; z-index: 2; }
.hero__copy { max-width: 760px; }
.hero h1 { font-size: clamp(64px, 7.4vw, 118px); color: #fff; margin-bottom: 22px; text-shadow: 0 3px 24px rgba(5, 15, 30, .35); }
.hero h1 span { color: var(--gold-2); }
.hero .eyebrow { color: #ffe3a3; }
.lead { font-size: 20px; max-width: 520px; color: #f1f5f9; text-shadow: 0 1px 12px rgba(5, 15, 30, .45); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero .btn--ghost { border-color: #fff; color: #fff; background: rgba(12, 28, 46, .25); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero__hint { margin-top: 40px; font: 700 14px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 8px rgba(5, 15, 30, .5); }
.hero__arrow { width: 2px; height: 34px; background: currentColor; position: relative; animation: hint 1.8s ease-in-out infinite; }
.hero__arrow::after { content: ""; position: absolute; left: -5px; bottom: -2px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes hint { 50% { transform: translateY(8px); } }

.hero__rig {
  position: absolute; z-index: 3; bottom: 36px; width: var(--rig-w);  /* tyres on the meadow, just above the soil wave */
  /* place the mast's drill point (91.8% across, just under the green deck) var(--pipe-inset) in from the wrap's right edge */
  right: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--pipe-inset) - var(--rig-w) * .082);
  filter: drop-shadow(0 10px 8px rgba(20, 30, 10, .45));
}
.hero__shade { /* contact shadow so the tyres sit in the grass */
  position: absolute; z-index: 2; bottom: 26px; height: 34px; width: calc(var(--rig-w) * .92);
  right: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--pipe-inset) - var(--rig-w) * .082 + var(--rig-w) * .04);
  background: radial-gradient(closest-side, rgba(15, 25, 5, .55), rgba(15, 25, 5, 0));
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: calc(var(--head) + 40px); padding-bottom: calc(var(--rig-w) * 1.111 + 50px); background-position: 30% bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 28, 46, .55) 0%, rgba(12, 28, 46, .3) 45%, rgba(12, 28, 46, 0) 70%); }
  .hero h1 { font-size: clamp(46px, 13.2vw, 84px); }
  .lead { font-size: 18px; }
  .hero__hint { display: none; }
  .btn { font-size: 18px; padding: 16px 20px; }
}

/* ---------- strata ---------- */
.stratum { position: relative; padding: 120px 0 130px; }
.stratum::before { /* grain */
  content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .5; mix-blend-mode: overlay; pointer-events: none;
}
.stratum > * { position: relative; }
/* wavy boundary: each stratum reaches 40px up into the one above and is masked to a wave,
   so its own colour, grain and banding flow right into the curve (no flat cap) */
.stratum--topsoil, .stratum + .stratum {
  margin-top: -40px; padding-top: 160px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 V22 C30 14 55 26 90 18 C130 9 160 24 200 17 C240 10 270 4 310 14 C345 22 370 12 400 16 V40Z'/%3E%3C/svg%3E") 0 0 / 100% 41px no-repeat, linear-gradient(#000 0 0) 0 40px / 100% calc(100% - 40px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 V22 C30 14 55 26 90 18 C130 9 160 24 200 17 C240 10 270 4 310 14 C345 22 370 12 400 16 V40Z'/%3E%3C/svg%3E") 0 0 / 100% 41px no-repeat, linear-gradient(#000 0 0) 0 40px / 100% calc(100% - 40px) no-repeat;
}
.edge { display: none; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 44px; } .stratum { padding: 90px 0 100px; } .stratum + .stratum { padding-top: 130px; } }

/* topsoil */
.stratum--topsoil { background: var(--topsoil); padding-top: 130px; }
.stratum--topsoil h2 { color: #fff4e2; }
.intro { max-width: 680px; color: #d9c8b4; font-size: 19px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 40px; }
.card {
  background: rgba(255, 244, 226, .05); border: 1px solid rgba(242, 178, 28, .28); border-top: 4px solid var(--gold);
  padding: 30px 26px 24px; border-radius: 4px; transition: transform .25s, background .25s;
}
.card:hover { transform: translateY(-4px); background: rgba(255, 244, 226, .09); }
.card h3 { color: #fff4e2; margin-top: 18px; }
.card p { color: #cdbca8; font-size: 17px; margin: 0; }
.card__ico svg { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.who { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; font: 800 26px/1.1 var(--f-display); text-transform: uppercase; color: #fff4e2; }
.who span { color: var(--gold); font-size: 15px; margin-right: 8px; vertical-align: 4px; letter-spacing: .1em; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* clay */
.stratum--clay { background: var(--clay); }
.stratum--clay::after { /* faint banding */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(176deg, transparent 0 46px, rgba(60, 25, 8, .12) 46px 52px, transparent 52px 98px);
}
.stratum--clay .eyebrow { color: #ffd98a; }
.stratum--clay h2 { color: #fff3e6; }
.stratum--clay p { color: #fbe6d4; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { border-top: 2px solid rgba(255, 243, 230, .5); padding-top: 12px; }
.facts b { display: block; font: 800 56px/1 var(--f-display); color: var(--gold-2); }
.facts span { font-size: 15px; line-height: 1.35; color: #fbe6d4; display: block; margin-top: 6px; }
.photo { margin: 0; position: relative; }
.photo img { border-radius: 4px; box-shadow: 14px 14px 0 rgba(27, 20, 16, .45); }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: var(--gold); font: 700 13px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; }

/* gravel */
.stratum--gravel { background: var(--gravel) url("../../img/gravel.svg") 0 0 / 520px 520px; color: var(--ink); }
.stratum--gravel .eyebrow { color: #6b3b12; }
.stratum--gravel h2 { color: var(--ink); }
.stratum--gravel p { color: #3b2d20; }
.split--videos { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 960px) { .split--videos { grid-template-columns: 1fr; } }

.reel {
  height: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.reel__col { overflow: hidden; position: relative; }
.reel__track { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.vcard {
  all: unset; box-sizing: border-box; display: block; cursor: pointer; background: var(--ink); border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(40, 28, 15, .35); transition: transform .25s, box-shadow .25s;
}
.vcard:hover, .vcard:focus-visible { transform: scale(1.025); box-shadow: 0 14px 28px rgba(40, 28, 15, .5); }
.vcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vcard__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a201a; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vcard:hover .vcard__img img { transform: scale(1.05); }
.vcard__img::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(27, 20, 16, .55)); }
.vcard__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(242, 178, 28, .3); transition: transform .25s;
}
.vcard__play::after { content: ""; position: absolute; left: 22px; top: 17px; border: 11px solid transparent; border-left: 16px solid var(--ink); border-right: 0; }
.vcard:hover .vcard__play { transform: scale(1.12); }
.vcard__txt { padding: 12px 14px 14px; }
.vcard__tag { font: 700 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vcard__t { font: 700 20px/1.1 var(--f-display); text-transform: uppercase; color: var(--paper); margin-top: 6px; }
@media (max-width: 760px) { .reel { height: 520px; gap: 10px; } .vcard__t { font-size: 16px; } .vcard__play { width: 42px; height: 42px; margin: -21px 0 0 -21px; } .vcard__play::after { left: 16px; top: 12px; border-width: 9px; border-left-width: 13px; } }
@media (max-width: 420px) { .reel { grid-template-columns: 1fr; } .reel__col + .reel__col { display: none; } }

/* bedrock */
.stratum--rock { background: var(--rock); }
.stratum--rock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(168deg, transparent 0 80px, rgba(0, 0, 0, .18) 80px 82px, transparent 82px 150px),
    repeating-linear-gradient(8deg, transparent 0 120px, rgba(255, 255, 255, .05) 120px 121px, transparent 121px 260px);
}
.stratum--rock .eyebrow { color: var(--gold); }
.stratum--rock h2 { color: #f1f2f4; }
.stratum--rock p { color: #c9ccd2; }
.split--area { grid-template-columns: .7fr 1.3fr; }
.photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.towns { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.towns li { font: 700 20px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: #f1f2f4; padding-left: 18px; position: relative; }
.towns li::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 960px) { .split--area { grid-template-columns: 1fr; } .photo--tall { max-width: 420px; order: 2; } }
@media (max-width: 520px) { .towns { grid-template-columns: repeat(2, 1fr); } }

/* aquifer */
.stratum--aquifer { background: linear-gradient(180deg, var(--aqua-1), var(--aqua-2)); padding-bottom: 150px; }
.caustics {
  position: absolute !important; inset: 0; pointer-events: none; opacity: .13; mix-blend-mode: screen;
  background: url("../../img/caustics.png") 0 0 / 512px 512px;
  animation: drift 40s linear infinite;
  -webkit-mask: linear-gradient(#000, rgba(0,0,0,.25)); mask: linear-gradient(#000, rgba(0,0,0,.25));
}
@keyframes drift { to { background-position: 512px 1024px; } }
@media (prefers-reduced-motion: reduce) { .caustics { animation: none; } }
.stratum--aquifer .eyebrow { color: #9fd9ff; }
.stratum--aquifer h2 { color: #fff; }
.stratum--aquifer p { color: #c8e4f5; }
.split--contact { align-items: start; padding-right: var(--pad); } /* form runs under the drill line */
@media (min-width: 961px) { .split--contact { grid-template-columns: .85fr 1.15fr; } }
.callbig { display: inline-block; text-decoration: none; font: 800 54px/1 var(--f-display); color: var(--gold); margin: 14px 0 22px; }
.callbig small { display: block; font: 600 15px/1.4 var(--f-body); color: #9fc8e0; letter-spacing: 0; text-transform: none; }
.small { font-size: 15px; opacity: .8; }

.form {
  position: relative; z-index: 8; /* sits in front of the drill string */
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 6px; padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 10, 20, .45); border-top: 6px solid var(--gold);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } .form { padding: 24px 18px; } }
.fld { display: block; margin-bottom: 16px; }
.fld span { display: block; font: 700 14px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: #5a4a3c; margin-bottom: 7px; }
.fld i { font-style: normal; letter-spacing: .04em; text-transform: none; opacity: .7; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: 500 17px/1.3 var(--f-body); color: var(--ink); background: #f6f2ea;
  border: 2px solid #e2d9ca; border-radius: 4px; padding: 12px 13px; transition: border-color .2s, background .2s;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--water); background: #fff; }
.fld.is-bad input { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn--block { margin-top: 6px; }
.form__err { color: var(--red); font-weight: 600; margin: 14px 0 0; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }

/* footer */
.foot { background: #0e0a08; padding: 46px 0; text-align: left; border-top: 3px solid var(--gold); position: relative; z-index: 7; }
.foot img { width: 260px; margin-bottom: 14px; }
.foot p { color: #a8998a; font-size: 15px; margin: 0 0 4px; }
.foot a { color: var(--gold); text-decoration: none; }

/* ---------- depth tag riding beside the bit ---------- */
.gauge {
  position: absolute; left: calc(100% + 12px); bottom: 6px; white-space: nowrap;
  font-family: var(--f-display); text-transform: uppercase; line-height: 1;
  background: rgba(14, 10, 8, .9); border-left: 3px solid var(--gold); padding: 6px 9px 6px 8px; border-radius: 0 3px 3px 0;
  opacity: 0; transition: opacity .3s;
}
.gauge.is-on { opacity: 1; }
.gauge__num { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.gauge__unit { font-size: 12px; font-weight: 700; color: var(--gold); margin-left: 2px; }
.gauge__layer { display: block; font-size: 11px; letter-spacing: .16em; color: #e9dfcf; margin-top: 4px; }
@media (max-width: 1100px) { .gauge { left: auto; right: calc(100% + 10px); border-left: 0; border-right: 3px solid var(--gold); border-radius: 3px 0 0 3px; text-align: right; } }
@media (max-width: 760px) { .gauge { display: none; } }

.cuttings { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }

/* ---------- video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__back { position: absolute; inset: 0; background: rgba(8, 6, 4, .86); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__box { --ar: .5625; position: relative; width: min(92vw, calc((100svh - 150px) * var(--ar))); animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
.modal__frame { aspect-ratio: var(--ar); background: #000; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__title { font: 800 22px/1.1 var(--f-display); text-transform: uppercase; color: var(--paper); margin: 14px 0 0; }
.modal__x {
  position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--ink); font: 700 30px/1 var(--f-body);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- water strike overlay ---------- */
.strike { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.strike[hidden] { display: none; }
.strike__c { position: absolute; inset: 0; width: 100%; height: 100%; }
.strike__msg {
  position: relative; text-align: center; max-width: 560px; padding: 0 24px; color: #fff;
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s;
}
.strike.is-msg .strike__msg { opacity: 1; transform: none; }
.strike__msg .eyebrow { color: var(--foam); }
.strike__title { font: 800 clamp(48px, 8vw, 92px)/.95 var(--f-display); text-transform: uppercase; margin: 0 0 16px; text-shadow: 0 4px 30px rgba(0, 40, 80, .5); }
.strike__title.is-error { color: #ffd2c4; }
.strike__note { font-size: 19px; color: #e4f4ff; }
.strike__note a { color: var(--gold-2); }
.strike__close { margin-top: 12px; opacity: 0; transition: opacity .4s .3s; }
.strike.is-done .strike__close { opacity: 1; }
.shake { animation: shake .5s linear; }
@keyframes shake {
  10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(2px, -1px); }
  30%, 50%, 70% { transform: translate(-3px, 2px); } 40%, 60% { transform: translate(3px, -2px); }
}

/* the bit lands on the form's top edge */
.form.is-hit { animation: hit .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hit { 0% { transform: translateY(0); } 25% { transform: translateY(5px); } 100% { transform: none; } }
.form::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; border-radius: 6px 6px 0 0;
  background: #fff6d6; opacity: 0; pointer-events: none;
}
.form.is-hit::before { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .form.is-hit, .form.is-hit::before { animation: none; } }
