/* Gartman Earthworx LLC. Machine yellow, Tennessee red clay, open sky. */
:root {
  --yellow: #FFC629;
  --yellow-deep: #E9AE00;
  --clay: #9A3A17;
  --clay-deep: #7A2C10;
  --ink: #1D1A17;
  --stone: #EEEDE9;
  --line: #D6D3CC;
  --mid: #59554F;
  --sky: #2A5CA8;
  --white: #FFFFFF;
  --display: 'Teko', 'Arial Narrow', sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.jobs :focus-visible, .contact :focus-visible, .foot :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .92; letter-spacing: .005em; }
h2 { font-size: clamp(2.9rem, 5.2vw, 4.5rem); }
h3 { font-size: 2rem; font-weight: 500; line-height: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px; border: 2px solid transparent; border-radius: 4px;
  font: 700 1.0625rem/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--big { min-height: 58px; padding-inline: 28px; font-size: 1.1875rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-deep); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--stone); }
.btn--dark { background: var(--ink); color: #fff; }

.link { color: var(--clay); font-weight: 700; text-underline-offset: 4px; }
.link:hover { color: var(--clay-deep); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { font: 600 1.9rem/1 var(--display); letter-spacing: .01em; padding-top: 4px; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--yellow-deep); }
.top__tel { font: 600 1.75rem/1 var(--display); text-decoration: none; padding-top: 4px; white-space: nowrap; }
.top__tel:hover { color: var(--clay); }
.menu-btn { display: none; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--ink); }

.scrim { position: fixed; inset: 73px 0 0 0; z-index: 44; background: rgba(29, 26, 23, .6); }
.mobile-menu { position: fixed; top: 73px; right: 0; bottom: 0; z-index: 45; width: min(86vw, 340px); background: #fff; padding: 12px 24px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu a { font: 500 2rem/1 var(--display); text-decoration: none; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-menu__tel { margin-top: 24px; border: 0; background: var(--yellow); text-align: center; border-radius: 4px; padding: 18px 12px 14px; }

/* ---------- Hero: headline sits in the photo's own sky ---------- */
.hero { position: relative; background: var(--sky); color: #fff; }
.hero__photo img { width: 100%; height: clamp(600px, 62vw, 1100px); object-fit: cover; object-position: 50% 8%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; background: linear-gradient(180deg, rgba(14, 42, 96, .72), rgba(14, 42, 96, .38) 55%, rgba(14, 42, 96, 0)); pointer-events: none; z-index: 1; }
.hero__text { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding-top: clamp(36px, 4.6vw, 84px); }
.hero h1 { font-size: clamp(3.5rem, 7.2vw, 8.25rem); line-height: .84; max-width: 11.2em; text-wrap: balance; }
.hero__sub { margin-top: clamp(14px, 1.6vw, 26px); max-width: 37em; font-size: clamp(1.125rem, 1.45vw, 1.375rem); font-weight: 500; line-height: 1.45; text-shadow: 0 1px 14px rgba(10, 34, 82, .55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 2.2vw, 34px); }

/* ---------- Facts band ---------- */
.facts { background: var(--yellow); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 24px 20px 0; }
.facts li + li { padding-left: 24px; border-left: 2px solid var(--ink); }
.facts b { display: block; font: 600 1.9rem/1 var(--display); }
.facts span { display: block; font-size: 1.0625rem; font-weight: 500; margin-top: 2px; }

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { color: var(--mid); max-width: 34em; }

/* ---------- What we do ---------- */
.work { padding-block: clamp(64px, 8vw, 120px); }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; }
.stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage__body { display: grid; grid-template-columns: 58px 1fr; column-gap: 8px; padding-top: 18px; border-top: 6px solid var(--yellow); }
.stage__n { grid-row: span 2; font: 600 4.6rem/.8 var(--display); color: var(--clay); padding-top: 4px; }
.stage h3 { padding-top: 6px; }
.stage p { margin-top: 8px; color: #3A3632; }

/* ---------- Recent jobs ---------- */
.jobs { background: var(--clay); color: #fff; padding-block: clamp(64px, 8vw, 112px); }
.jobs__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.jobs__intro { position: sticky; top: 108px; }
.jobs__intro > p { margin-top: 18px; max-width: 26em; }
.jobs__intro .jobs__machines { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--yellow); font-size: 1.0625rem; }
.jobs__machines b { color: var(--yellow); }
.log li { display: grid; grid-template-columns: 128px minmax(0, 5fr) minmax(0, 7fr); gap: 4px 24px; align-items: baseline; padding: 15px 0 11px; border-top: 1px solid rgba(255, 255, 255, .34); }
.log li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .34); }
.log time { font-size: 1rem; font-weight: 600; color: var(--yellow); white-space: nowrap; }
.log b { font: 500 2.5rem/.95 var(--display); }
.log span { font-size: 1.125rem; }

/* ---------- Photos ---------- */
.photos { padding-block: clamp(64px, 8vw, 120px); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shot { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; display: block; overflow: hidden; }
.shot img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.shot--big { grid-column: span 2; grid-row: span 2; }

/* ---------- Reviews ---------- */
.reviews { background: var(--stone); padding-block: clamp(64px, 8vw, 112px); }
.reviews__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.reviews__score { position: sticky; top: 108px; }
.score { display: flex; align-items: flex-end; gap: 16px; margin-top: 22px; }
.score__n { font: 600 8.5rem/.74 var(--display); color: var(--clay); }
.score__t { font-weight: 600; line-height: 1.3; padding-bottom: 6px; }
.reviews__note { margin: 22px 0 18px; color: var(--mid); font-size: 1.0625rem; max-width: 22em; }
.quotes { columns: 2; column-gap: 44px; }
.quote { break-inside: avoid; padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.quote blockquote { font-size: 1.125rem; }
.quote figcaption { margin-top: 14px; font-size: 1rem; color: var(--mid); }
.quote figcaption b { color: var(--ink); }
.quote--lead { column-span: all; }
.quote--lead blockquote { font-size: clamp(1.25rem, 1.7vw, 1.4375rem); line-height: 1.5; max-width: 44em; }

/* ---------- Crew ---------- */
.crew { padding-block: clamp(64px, 8vw, 120px); }
.crew__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; }
.crew img { width: 100%; }
.crew blockquote { font: 500 clamp(2.1rem, 3.1vw, 2.9rem)/1 var(--display); margin-top: 22px; }
.crew__src { margin-top: 10px; color: var(--mid); font-size: 1rem; }
.crew__text > p:not(.crew__src) { margin-top: 20px; max-width: 30em; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 112px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; }
.contact__info > p { margin-top: 16px; color: #DAD6CF; }
.contact__tel { display: inline-block; margin-top: 18px; font: 600 clamp(3.6rem, 6.4vw, 5.6rem)/.9 var(--display); color: var(--yellow); text-decoration: none; }
.contact__tel:hover { color: #fff; }
.details { margin-top: 26px; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #4A453F; }
.details dt { color: #BDB8B0; font-size: 1rem; padding-top: 2px; }
.details a { text-underline-offset: 4px; }
.details a:hover { color: var(--yellow); }
.form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-top: 8px solid var(--yellow); }
.field + .field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1.125rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid #8C877F; border-radius: 4px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form__err { color: #B3261E; font-weight: 700; margin-top: 14px; min-height: 0; }
.form__err:empty { display: none; }
.form .btn { width: 100%; margin-top: 20px; }
.form__hint { margin-top: 12px; font-size: 1rem; color: var(--mid); }

/* ---------- Footer ---------- */
.foot { background: #131110; color: #DAD6CF; padding-block: 34px; font-size: 1.0625rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: flex-start; }
.foot b { color: #fff; }
.foot a { text-underline-offset: 4px; }
.foot__copy { margin-left: auto; }

.sticky-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(19, 17, 16, .97); color: #fff; }
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 1.0625rem; color: #E6E2DB; padding-inline: 84px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 4px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Tablet ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .top__in { gap: 16px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs__in, .reviews__in { grid-template-columns: 1fr; }
  .jobs__intro, .reviews__score { position: static; }
  .jobs__intro > p { max-width: 40em; }
  .log li { grid-template-columns: 120px minmax(0, 4fr) minmax(0, 7fr); }
}

@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; }
  .facts__in { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .crew__in, .contact__in { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__copy { margin-left: 0; width: 100%; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .top__in { min-height: 64px; gap: 10px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 1.6rem; }
  .top__tel, .top__quote { display: none; }
  .scrim { top: 65px; }
  .mobile-menu { top: 65px; }

  .hero { display: flex; flex-direction: column; background: linear-gradient(180deg, #1B4690 0%, #2F68BD 62%, #4F8EDF 100%); }
  .hero::before { display: none; }
  .hero__text { position: static; order: 1; padding-top: 30px; padding-bottom: 6px; }
  .hero__photo { order: 2; display: block; margin-top: -8px; }
  .hero__photo img { height: auto; aspect-ratio: 1 / 1; object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero h1 { font-size: clamp(3.3rem, 15.4vw, 4.4rem); line-height: .86; }
  .hero__sub { text-shadow: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .facts li { padding: 16px 12px 14px 0; }
  .facts li + li { padding-left: 14px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .facts b { font-size: 1.55rem; }
  .facts span { font-size: 1rem; line-height: 1.3; }

  .stages { grid-template-columns: 1fr; gap: 40px; }
  .log li { grid-template-columns: 1fr; gap: 0; padding: 14px 0 12px; }
  .log b { font-size: 2.3rem; margin-top: 2px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quotes { columns: 1; }
  .quote--lead blockquote { font-size: 1.125rem; line-height: 1.55; }
  .score__n { font-size: 7rem; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .foot { padding-bottom: 104px; }

  .sticky-book {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -14px rgba(29, 26, 23, .6);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 54px; font-size: 1.1875rem; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; }
  .lightbox__cap { bottom: 16px; padding-inline: 16px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
