/* High Desert Digital Consulting
   Direction: cinematic editorial (after Joby Aviation on Refero Styles), refined against
   the frontend-design skill.

   Type: one family, Archivo, with its width axis doing the work. Headlines run expanded,
   echoing the wide-tracked wordmark and stamped ranch-brand signage; body text stays at
   normal width for reading. Scale is a perfect fourth (1.333) from 17px.

   Color: four only. Amber is never text on cream (fails contrast); it is reserved for the
   primary action and the hero's floating card, the page's one bold moment. */

:root {
  --navy: #102a3a;        /* Deep Slate Navy: text, structure, dark surfaces */
  --cream: #f2e6cf;       /* Desert Cream: page canvas */
  --amber: #e9a23b;       /* Sunset Amber: primary action, hero highlight */
  --blue: #789ba8;        /* High Desert Blue: sparing, decorative */

  --ink-70: rgba(16, 42, 58, 0.78);
  --rule: rgba(16, 42, 58, 0.16);
  --rule-light: rgba(242, 230, 207, 0.2);
  --cream-soft: rgba(242, 230, 207, 0.8);

  --font: "Archivo", system-ui, sans-serif;            /* display + interface */
  --serif: "Newsreader", Georgia, "Times New Roman", serif; /* reading text */
  --wide: 118%;

  /* Perfect-fourth scale */
  --s0: 1.0625rem;   /* 17 */
  --s1: 1.417rem;    /* 22.7 */
  --s2: 1.889rem;    /* 30.2 */
  --s3: 2.518rem;    /* 40.3 */
  --s4: 3.357rem;    /* 53.7 */
  --s5: 4.475rem;    /* 71.6 */

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
/* In-page links stop below the sticky 84px header instead of underneath it */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--s0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font); font-stretch: var(--wide); font-weight: 500;
  margin: 0; line-height: 1.02; letter-spacing: -0.025em;
}
h2 { font-size: clamp(var(--s3), 5.2vw, var(--s5)); }
h3 { font-size: clamp(var(--s1), 2.4vw, var(--s2)); line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }
h1, h2 { text-wrap: balance; }

/* Reading text is set in Newsreader: a serif with optical sizing, given a touch more
   leading than the sans. Interface text (nav, buttons, labels, tags) stays in Archivo. */
.statement p, .services-head p, .svc-body p, .who-item p, .step p, .about-copy > p, .promises span {
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; font-optical-sizing: auto;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  font: 500 var(--s0) var(--font);
  padding: 15px 24px; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s, color .2s;
}
.btn:active { transform: scale(0.98); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #f0b25a; }
/* Outline buttons fill from the bottom edge on hover */
.btn-line {
  border-color: var(--navy); color: var(--navy);
  background: linear-gradient(var(--navy), var(--navy)) bottom / 100% 0 no-repeat;
  transition: background-size .3s cubic-bezier(.2,.7,.2,1), color .3s, transform .1s;
}
.btn-line:hover { background-size: 100% 100%; color: var(--cream); }

/* ---------- Brand (the logo's own caps are kept) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 60px; height: auto; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-stretch: 125%; font-weight: 700; font-size: 16px; letter-spacing: 0.1em; }
.brand-word span { font-stretch: 112%; font-weight: 500; font-size: 9.5px; letter-spacing: 0.3em; margin-top: 5px; }

/* ---------- Header ---------- */
/* Navy header (the reversed "-navy" colorway): cream mark and words, so the brand bar
   stands apart from the cream page instead of melting into it. */
.header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--cream); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 10px 30px rgba(16, 42, 58, 0.18); }
.header .brand { color: var(--cream); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; color: var(--cream); }
.nav a:not(.btn):hover { border-bottom-color: var(--amber); }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.header .btn-line { border-color: var(--cream); color: var(--cream); background-image: linear-gradient(var(--cream), var(--cream)); }
.header .btn-line:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--cream); border-radius: 8px; padding: 9px 14px; font: 500 15px var(--font); color: var(--cream); cursor: pointer; }

/* ---------- Hero: the page's one orchestrated moment ---------- */
.hero { padding: clamp(32px, 4.5vw, 64px) 0 var(--section); }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 .line { display: block; }
/* Copy and CTA sit directly under the headline so the primary action is above the fold;
   the photo hangs beside them and runs past the fold to pull the eye down. */
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(32px, 3.5vw, 52px); align-items: start; }
.hero-text { padding-top: 8px; }
.caption { border-left: 3px solid var(--amber); padding-left: 22px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-70); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 28px; font-size: 15px; color: var(--ink-70); }
.hero-note a { font-weight: 500; text-underline-offset: 3px; }

.hero-media { position: relative; }
.hero-media .frame { position: relative; border-radius: 180px 16px 16px 16px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--navy); }

/* Hero slideshow: stacked stills that dissolve into one another. The active one also
   pushes in slowly; when it fades out it eases back while hidden, ready for its next turn. */
.hero-slides { position: absolute; inset: 0; animation: settle 1.8s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero-slides .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: 0; transform: scale(1);
  transition: opacity 1.6s ease-in-out, transform 9s linear;
}
.hero-slides .slide.is-active { opacity: 1; transform: scale(1.06); }
/* Per-photo crop points so each subject survives the 6:5 frame */
.hero-slides .slide[src*="hero-2-work"] { object-position: 32% 60%; transform-origin: 32% 60%; }
.hero-slides .slide[src*="hero-3-people"] { object-position: 70% 35%; transform-origin: 70% 35%; } /* centers her; keeps face and phone clear of the card */

.media-toggle {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(16, 42, 58, 0.6); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s;
}
.media-toggle[hidden] { display: none; }
.media-toggle:hover { background: rgba(16, 42, 58, 0.85); }
.media-toggle svg { width: 14px; height: 14px; }
.media-toggle .i-play, .media-toggle.paused .i-pause { display: none; }
.media-toggle.paused .i-play { display: block; }
.float-card {
  /* Bottom-right: the corner none of the three hero photos needs */
  display: block; position: absolute; right: clamp(-56px, -4vw, -20px); bottom: 36px;
  background: var(--amber); color: var(--navy);
  border-radius: 16px; padding: 22px 26px; width: min(300px, 80%);
  text-decoration: none; box-shadow: 0 18px 40px rgba(16, 42, 58, 0.25);
}
.float-card small { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.float-card strong { display: block; font-stretch: var(--wide); font-weight: 500; font-size: var(--s1); line-height: 1.15; letter-spacing: -0.015em; }

/* Load sequence: headline lines, then photo, then card and copy */
.hero h1 .line, .hero-text, .float-card { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; }
.hero-text { animation-delay: .5s; }
.float-card { animation-delay: .9s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Statement ---------- */
.statement { padding: 0 0 var(--section); }
.statement-in { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.statement-in > div { grid-column: 2; padding-top: 40px; border-top: 1px solid var(--rule); }
.statement h2 { font-size: clamp(var(--s2), 3.8vw, var(--s4)); line-height: 1.08; }
.statement p { margin-top: 28px; font-size: 1.3125rem; color: var(--ink-70); max-width: 54ch; }
.statement.founding .btn { margin-top: 32px; }

/* ---------- Section heads ---------- */

/* ---------- Services ---------- */
/* Heading column stays pinned while the list scrolls past it. An amber marker in the
   list's left gutter slides to whichever service is reading position (see main.js). */
.services { padding: 0 0 var(--section); scroll-margin-top: 40px; } /* lands level with the pinned heading (top: 124px) */
.services-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.services-head { position: sticky; top: 124px; }
.services-head h2 { max-width: 10ch; }
.services-head p { margin-top: 24px; color: var(--ink-70); max-width: 34ch; }
.services-head .btn { margin-top: 32px; }
.svc-list { list-style: none; margin: 0; padding: 0 0 0 36px; border-left: 1px solid var(--rule); position: relative; }
.svc-marker {
  position: absolute; left: -1.5px; top: 0; width: 3px; height: 0; background: var(--amber);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1);
}
.svc { padding: 44px 0; border-bottom: 1px solid var(--rule); }
.svc-marker + .svc { padding-top: 0; }
.svc:last-child { border-bottom: 0; padding-bottom: 0; }
.svc h3 { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.svc.is-current h3 { transform: translateX(6px); }
.svc .lead { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; color: var(--navy); margin-top: 10px; }
/* Not yet offered: badge plus a quieter row so it reads as "on the way", not current */
.svc .soon {
  display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1.5px dashed var(--navy); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.svc.is-soon h3, .svc.is-soon .lead, .svc.is-soon .tags { opacity: 0.6; }
.svc-body { margin-top: 16px; }
.svc-body p { color: var(--ink-70); max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; }

/* ---------- Cinematic band ---------- */
.band { position: relative; height: clamp(440px, 52vw, 680px); overflow: hidden; background: var(--navy); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (min-width: 1001px) {
  /* Extra height gives the parallax drift room without exposing an edge */
  .motion .band img { position: absolute; top: -6%; height: 112%; will-change: transform; }
}
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,42,58,0) 35%, rgba(16,42,58,0.82) 100%); }
.band-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding-bottom: clamp(32px, 5vw, 64px); color: var(--cream); }
.band-copy h2 { font-size: clamp(var(--s3), 5vw, var(--s5)); max-width: 15ch; }
.band-copy .caption { color: var(--cream-soft); margin-top: 22px; max-width: 40ch; }

/* ---------- Who ---------- */
.who { padding: var(--section) 0; }
.who-head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); }
.who-head h2 { font-size: clamp(var(--s3), 5.6vw, var(--s5)); }
.who-head p { font-family: var(--serif); font-style: italic; font-size: 1.3125rem; color: var(--ink-70); margin-top: 20px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.who-controls { display: none; }
.who-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }
.who-item:first-child img { border-radius: 90px 16px 16px 16px; }
.who-item h3 { margin-bottom: 10px; }
.who-item p { color: var(--ink-70); max-width: 40ch; }

/* ---------- Process: a real sequence, drawn as a timeline ---------- */
/* A dark band, so the page alternates light and dark instead of repeating one opening.
   When it scrolls into view, the line draws left to right and each step arrives in turn:
   the page's one scroll-triggered reveal, and it tells the sequence. */
.process { background: var(--navy); color: var(--cream); padding: var(--section) 0; }
.process-head { max-width: 640px; margin-bottom: clamp(56px, 7vw, 96px); }
.process-head p { margin-top: 24px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.6; color: var(--cream-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1.5px; background: rgba(242,230,207,0.4);
  transform-origin: left; transition: transform 1.4s cubic-bezier(.6,.05,.2,1);
}
.step { position: relative; padding-right: 24px; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.step:nth-child(2) { transition-delay: .35s; }
.step:nth-child(3) { transition-delay: .7s; }
.motion .steps:not(.in-view)::before { transform: scaleX(0); }
.motion .steps:not(.in-view) .step { opacity: 0; transform: translateY(12px); }
.step-n {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream); color: var(--navy);
  font-stretch: var(--wide); font-weight: 600; font-size: 18px;
  box-shadow: 0 0 0 8px var(--navy);
}
.step:last-child .step-n { background: var(--amber); }
.step h3 { margin: 32px 0 12px; }
.process .step p { color: var(--cream-soft); max-width: 34ch; }

/* ---------- About ---------- */
.about { padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Founder photo: mirrors the hero's big top corner; navy caption plate overlaps the bottom edge */
.about-photo { position: relative; margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.about-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%;
  border-radius: 16px 180px 16px 16px; background: var(--navy);
}
.about-photo figcaption {
  position: absolute; left: 24px; bottom: -22px;
  background: var(--navy); color: var(--cream);
  padding: 14px 20px; border-radius: 12px; box-shadow: 0 14px 30px rgba(16, 42, 58, 0.22);
  display: flex; flex-direction: column; line-height: 1.2;
}
.about-photo figcaption b { font-stretch: var(--wide); font-weight: 600; font-size: 1.125rem; }
.about-photo figcaption span { font-size: 14px; color: var(--amber); font-weight: 500; margin-top: 3px; }
.about-copy > p.bio { color: var(--navy); font-size: 1.3125rem; }
.about h2 { font-size: clamp(var(--s3), 4.6vw, var(--s5)); margin-bottom: 28px; }
.about-copy > p { color: var(--ink-70); margin-bottom: 18px; max-width: 52ch; }
.promises { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.promises li { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.promises b { font-weight: 600; }
.promises span { color: var(--ink-70); }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--cream); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 112px); }
.contact h2 { font-size: clamp(2.5rem, 7vw, 4.4rem); letter-spacing: -0.035em; white-space: nowrap; }
.contact .caption { color: var(--cream-soft); margin-top: 32px; }
.contact-list { list-style: none; padding: 0; margin: 48px 0 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--rule-light); display: flex; justify-content: space-between; gap: 16px; }
.contact-list li span:first-child { color: var(--cream-soft); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--amber); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: var(--cream); }
.field .opt { font-weight: 400; color: var(--cream-soft); }
.field input, .field select, .field textarea {
  font: 400 18px var(--font); color: var(--cream);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(242,230,207,0.55); /* 4.4:1, clears WCAG 1.4.11 */
  padding: 10px 0 12px; border-radius: 0; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f2e6cf' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field select option { color: var(--navy); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field input::placeholder, .field textarea::placeholder { color: rgba(242,230,207,0.62); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { font-size: 15px; color: var(--cream-soft); }
.form .btn-amber { font-size: 18px; padding: 17px 30px; }
.hp { display: none; }
.mobile-bar { display: none; }
@media (max-width: 760px) { .mobile-bar { display: flex; } }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer .foot-h { font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .motto { margin-top: 20px; font-size: 15px; color: var(--ink-70); max-width: 32ch; }
.footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-70); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .statement-in { grid-template-columns: 1fr; }
  .statement-in > div { grid-column: 1; }
  .hero-media .frame { aspect-ratio: 4 / 3.4; border-radius: 120px 16px 16px 16px; }
  .float-card { right: 16px; bottom: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-head { position: static; }
  .services-head h2 { max-width: 16ch; }
  .svc-list { padding-left: 0; border-left: 0; border-top: 1.5px solid var(--navy); }
  .svc-list .svc-marker { display: none; }
  .svc-marker + .svc { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .about-photo { max-width: 420px; margin-bottom: 22px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; box-shadow: 0 18px 30px rgba(16, 42, 58, 0.25);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--rule-light); font-size: 18px; }
  .nav a:not(.btn):hover { border-bottom-color: var(--rule-light); color: var(--amber); }
  .nav .btn { justify-content: center; margin-top: 20px; padding: 15px; }
  .who-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc { padding: 32px 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: -40px; width: 1.5px; background: rgba(242,230,207,0.4); }
  .step { padding: 0 0 0 76px; }
  .step-n { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 8px; }
  .promises li { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .hero-media .frame { border-radius: 90px 14px 14px 14px; }
  .float-card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -48px 16px 0; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .band { height: 580px; } /* taller on phones so Sierra Blanca sits above the headline */
  .band img { object-position: 50% 50%; } /* keeps Sierra Blanca and the road in frame */

  /* Phone layout decisions (not just the desktop stacked) */
  .hero { padding-top: 24px; }
  .hero-grid { margin-top: 24px; gap: 36px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-media { margin: 0 calc(var(--gutter) * -1); }
  .hero-media .frame { border-radius: 90px 0 0 0; aspect-ratio: 4 / 3.6; }
  .media-toggle { top: 14px; bottom: auto; right: calc(var(--gutter) - 4px); }

  /* Services collapse to scannable titles; tap to open one */
  .svc.collapsible { padding: 0; gap: 0; }
  .svc.collapsible > div:first-child { padding: 22px 0; }
  .svc-toggle {
    all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  .svc-toggle::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid var(--navy);
    background: linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
                linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
    transition: transform .25s;
  }
  .svc.open .svc-toggle::after { transform: rotate(45deg); }
  .svc-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
  .svc.collapsible .svc-body { display: none; padding-bottom: 26px; }
  .svc.collapsible.open .svc-body { display: block; }

  /* Who I work with: a swipeable row with the next card peeking in */
  .who-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .who-grid::-webkit-scrollbar { display: none; }
  .who-item { scroll-snap-align: start; }
  .who-grid { cursor: grab; scroll-behavior: smooth; }
  .who-grid.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .who-grid img { -webkit-user-drag: none; user-select: none; }

  /* Arrows and position dots so the row is clearly scrollable */
  .who-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
  .who-arrow {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: transparent; color: var(--navy); border: 1.5px solid var(--navy); transition: background .2s, color .2s, opacity .2s;
  }
  .who-arrow svg { width: 16px; height: 16px; }
  .who-arrow:hover { background: var(--navy); color: var(--cream); }
  .who-arrow:disabled { opacity: .3; cursor: default; background: transparent; color: var(--navy); }
  .who-dots { display: flex; gap: 10px; }
  .who-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--rule); transition: width .25s, background .25s;
  }
  .who-dots button[aria-selected="true"] { width: 28px; background: var(--amber); }

  /* Quick-contact bar */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--cream); box-shadow: 0 -1px 0 var(--rule);
    transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { flex: 1; justify-content: center; padding: 13px; }
  .mobile-bar .btn-line { flex: 0 0 34%; }
  .services-head .btn { display: none; } /* the quick-contact bar covers this on phones */
  .footer { padding-bottom: 96px; }
}
