/* Rocko Drilling — "The Work You Never See"
   Same palette + dark band format as v1, editorial execution. */

:root {
  color-scheme: dark;
  --black: #080a0d;
  --carbon: #111821;
  --graphite: #1b242d;
  --steel: #7c8790;
  --concrete: #c8c0b5;
  --chalk: #f0eee8;
  --muted: #9ca4aa;
  --clay: #9c5b35;
  --orange: #f36b21;
  --blue: #28a6e8;
  --green: #6ec09b;
  --line: rgba(240, 238, 232, 0.14);
  --panel: rgba(16, 24, 33, 0.82);
  --max: 1180px;
  --header: 96px;
  --display: "Oswald", Arial, sans-serif;
  --body: "Inter", Arial, Helvetica, sans-serif;
  font-family: var(--body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #080a0d 0%, #0d1218 50%, #080a0d 100%);
  color: var(--chalk);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--orange);
  color: #120b07;
  padding: 0.7rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { display: none; }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 10, 13, 0.7);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 78px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(240, 238, 232, 0.14));
}

@media (max-width: 900px) {
  .brand-logo { height: 58px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav a:hover { color: var(--chalk); }
.nav-quote { color: var(--orange); }
.nav-phone {
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
}
.nav-phone:hover { border-color: var(--orange); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* hero + proof band together fill the first viewport */
  min-height: calc(100vh - 190px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--header) + 8rem) 2rem 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1.6rem;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--orange); }

.hero-copy {
  max-width: 46ch;
  color: var(--concrete);
  font-size: 1.06rem;
  margin: 0 0 1.8rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: #120b07;
  font-weight: 600;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: #ff7c30;
  box-shadow: 0 0 26px rgba(243, 107, 33, 0.45);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.btn-ghost:hover { border-color: var(--orange); }

.hero-photo {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  height: 58vh;
  z-index: 1;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0.55;
  filter: saturate(0.85) brightness(0.92);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}

.scroll-cue { display: none; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, transparent, var(--orange));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- short desktop screens (1080p monitors, laptops) ----------
   Height-aware: shrink the hero type so the photo stays exposed.
   4K/tall displays are unaffected. */
@media (min-width: 901px) and (max-height: 1150px) {
  .hero { padding-top: calc(var(--header) + 4.5rem); }
  .hero h1 {
    font-size: clamp(2.4rem, 5.6vh, 4.1rem);
    margin-bottom: 1.2rem;
  }
  .eyebrow { margin-bottom: 0.9rem; }
  .hero-copy {
    font-size: 0.98rem;
    max-width: 42ch;
    margin-bottom: 1.4rem;
  }
  .hero-photo { height: 62vh; }
  /* slide the machine right, out from under the text column */
  .hero-photo img {
    transform: translateX(12%) scale(1.18);
    transform-origin: center bottom;
  }
}

/* ---------- proof band ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.35s ease, text-shadow 0.35s ease;
}
.proof-item:hover,
.proof-item.lit {
  background: linear-gradient(90deg, rgba(243, 107, 33, 0.10), rgba(243, 107, 33, 0.02) 55%, transparent);
  text-shadow: 0 0 18px rgba(240, 238, 232, 0.35);
}
.proof-item:hover > span:last-child,
.proof-item.lit > span:last-child { color: var(--concrete); }
.proof-item + .proof-item { border-left: 1px solid var(--line); }

.proof-item strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.proof-item > span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30ch;
}

/* ---------- sections shared ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem 2rem;
}

.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1.4rem;
}

.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0;
  max-width: 24ch;
}

.section-head { margin-bottom: 3.5rem; }

.lead {
  font-size: 1.12rem;
  color: var(--concrete);
  max-width: 56ch;
}

/* ---------- craft ---------- */

.craft { border-bottom: 1px solid var(--line); }

.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}

.craft-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 1px solid var(--line);
}
.craft-index li {
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: var(--concrete);
  transition: color 0.35s ease, background 0.35s ease, text-shadow 0.35s ease;
}
.craft-index li:hover,
.craft-index li.lit {
  color: var(--chalk);
  background: linear-gradient(90deg, rgba(243, 107, 33, 0.10), rgba(243, 107, 33, 0.02) 55%, transparent);
  text-shadow: 0 0 18px rgba(240, 238, 232, 0.35);
}
.craft-index li span {
  color: var(--orange);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  transition: text-shadow 0.35s ease;
}
.craft-index li:hover span,
.craft-index li.lit span {
  text-shadow: 0 0 12px rgba(243, 107, 33, 0.8);
}

.support-photo {
  margin: 2.5rem 0 0;
}
.support-photo img {
  width: 100%;
  border: 1px solid var(--line);
  opacity: 0.55;
  filter: saturate(0.8) contrast(1.05);
  transition: opacity 0.6s ease;
}
.support-photo img:hover { opacity: 0.85; }

.support-photo-wide {
  margin-top: 4rem;
}

.ground-diagram { margin-top: 0; } /* flex gap of .ground-layout keeps spacing identical to the diagram above */
.ground-diagram img {
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 0.82;
}
.ground-diagram img:hover { opacity: 1; }
.ground-diagram figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.support-photo-wide img {
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.craft-close {
  margin: 3.5rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- ground ---------- */

.ground { border-bottom: 1px solid var(--line); }

.ground-layout { display: flex; flex-direction: column; gap: 3rem; }

.corridor {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem;
  cursor: pointer;
}
.corridor svg { width: 100%; height: auto; }

.c-surface { stroke: var(--concrete); stroke-width: 2; }
.c-util { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 6 6; opacity: 0.6; }
.c-label {
  fill: var(--muted);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.c-bore {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
}
.c-exit { fill: var(--orange); }
.c-exit-label { fill: var(--orange); }

.c-bore[data-bore] {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.6s ease 0.3s;
}
.is-visible .c-bore[data-bore] { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .c-bore[data-bore] { stroke-dashoffset: 0; transition: none; }
}

.ground-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ground-list li {
  background: var(--black);
  padding: 1.6rem;
  font-size: 0.95rem;
  color: var(--concrete);
  transition: color 0.35s ease, background 0.35s ease, text-shadow 0.35s ease;
}
.ground-list li:hover,
.ground-list li.lit {
  color: var(--chalk);
  background: linear-gradient(90deg, rgba(243, 107, 33, 0.10), rgba(243, 107, 33, 0.02) 55%, transparent), var(--black);
  text-shadow: 0 0 18px rgba(240, 238, 232, 0.35);
}

/* ---------- experience ---------- */

.experience { border-bottom: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
.split p { color: var(--muted); max-width: 58ch; }
.split .lead { color: var(--concrete); }

.exp-photo { margin: 0; }
.exp-photo img {
  border: 1px solid var(--line);
  filter: saturate(0.85) contrast(1.05);
  opacity: 0.55;
  transition: opacity 0.6s ease;
}
.exp-photo img:hover { opacity: 0.85; }
.exp-photo figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- within an inch ---------- */

.inch {
  text-align: center;
  padding-top: 9rem;
  padding-bottom: 9rem;
  border-bottom: 1px solid var(--line);
}

.inch h2 {
  margin: 0 auto 1.8rem;
  max-width: 30ch;
}
.inch p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
}

.inch-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 3rem;
}
.inch-mark .tick {
  width: 110px;
  height: 1px;
  background: var(--steel);
}
.inch-mark .gap {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

/* ---------- about ---------- */

.about { border-bottom: 1px solid var(--line); }
.about .split p { color: var(--muted); }
.about .split .lead { color: var(--concrete); }

/* ---------- never see ---------- */

.never { border-bottom: 1px solid var(--line); }

.never-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}
.never-list li {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
}
.never-list li span {
  position: relative;
  display: inline-block;
}
.never-list li span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  width: 0;
  background: var(--orange);
  transition: width 1.1s ease 0.5s;
}
.never-list li.is-visible span::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .never-list li::after { display: none; }
  .never-list li { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 1px; }
}

.never-close {
  font-size: 1.15rem;
  color: var(--chalk);
  max-width: 58ch;
  margin: 0;
}

/* ---------- quote ---------- */

.quote { padding-bottom: 7rem; }

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 3.5rem;
  transition: box-shadow 0.5s ease;
}
.quote-panel:hover {
  box-shadow:
    0 0 45px rgba(243, 107, 33, 0.16),
    0 0 110px rgba(243, 107, 33, 0.08);
}
.quote-panel > div > p { color: var(--muted); max-width: 44ch; }

.quote-phone {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { min-width: 0; }
.quote-form input,
.quote-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--chalk);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.quote-form button { grid-column: 1 / -1; cursor: pointer; border: none; }
.quote-form button:disabled { opacity: 0.7; cursor: default; }

.quote-form .hint {
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}
.quote-form input[type="file"] {
  padding: 0.6rem;
  color: var(--muted);
}
.quote-form input[type="file"]::file-selector-button {
  background: var(--graphite);
  color: var(--chalk);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
}
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--orange); }

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { transition: color 0.25s ease; }
.site-footer a:hover { color: var(--chalk); }

.footer-logo {
  height: 84px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(240, 238, 232, 0.12));
}
.site-footer > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- mobile nav toggle (hidden on desktop) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--chalk);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mb-break { display: inline; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* mobile dropdown menu */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(8, 10, 13, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(240, 238, 232, 0.06);
    font-size: 0.9rem;
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-phone { border: none; margin: 0; }

  /* hero headline -> 4 lines; ground heading -> 2 lines */
  .mb-break { display: block; }

  /* eyebrow: location on its own line */
  .eyebrow-sep { display: none; }
  .eyebrow-loc { display: block; margin-top: 0.35rem; }

  /* hero buttons: equal full-width boxes */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-actions .btn-ghost {
    border: 2px solid rgba(240, 238, 232, 0.85);
  }

  /* the standard: line must run through wrapped text, not between lines */
  .never-list li span::after { display: none; }
  .never-list li span {
    display: inline;
    text-decoration: line-through;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
  }

  /* about: even paragraph spacing when columns stack */
  .about .split { gap: 0; }
  .about .split p { margin: 0 0 1.2em; }

  /* quote panel: prevent overflow */
  .quote-panel { min-width: 0; }
  .quote-panel h2 { overflow-wrap: break-word; }
  .quote-panel > div > p { max-width: 100%; }

  /* images: full brightness on mobile, no dimming, no scroll-fade */
  .support-photo img,
  .exp-photo img,
  .hero-photo img {
    opacity: 1 !important;
    filter: none;
  }
  .support-photo-wide img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  figure.reveal,
  .support-photo.reveal,
  .exp-photo.reveal,
  .hero-photo.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* hero image shown whole, not cropped */
  .hero {
    min-height: 0;
    padding-top: calc(var(--header) + 2.5rem);
  }
  .hero-photo {
    position: static;
    height: auto;
    margin-top: 1.5rem;
  }
  .hero-photo img {
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .craft-grid, .split, .quote-panel { grid-template-columns: 1fr; gap: 2.5rem; }
  .proof { grid-template-columns: 1fr; }
  .proof-item + .proof-item { border-left: none; border-top: 1px solid var(--line); }
  .section { padding: 5rem 1.4rem; }
  .quote-panel { padding: 2rem 1.4rem; }
  .quote-form { grid-template-columns: 1fr; }
  .site-footer > div:last-child { text-align: left; }
  .hero { padding-left: 1.4rem; padding-right: 1.4rem; }
}
