/* Shine Sage Detailing preview. One typeface (Archivo): wide for display, normal for text, narrow for paperwork. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* A night ramp, start to finish, to match the photograph at the top */
  --ground: #07080B;      /* page ground, one step up from the photograph's black sky */
  --ground-2: #0E1014;    /* raised bands: walk-around, standards, quote */
  --ground-3: #171A20;    /* fields and picture placeholders */
  --text: #ECEEF2;
  --text-soft: #A9B0BC;
  --line: #C9CFDA;        /* the line drawing and its numbers */
  --rule: #272B33;
  --rule-strong: #747B88;
  --gold: #D9B45F;        /* from the logo */
  --gold-deep: #C29A3E;
  --on-gold: #14110A;

  --gutter: max(clamp(20px, 5vw, 72px), calc((100vw - 1296px) / 2));
  --block: clamp(72px, 10vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
.defs { position: absolute; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
/* buttons are light or gold on a dark ground, so their ring is two-tone */
.btn:focus-visible, .pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #000; }
.stop-panel:focus { outline: none; }
.js-only { display: none; }
.js .js-only { display: inline; }
html:not(.js) .pin { pointer-events: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h2 {
  font-stretch: 125%; font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.1; letter-spacing: -.02em;
  text-wrap: balance;
}
h3 { font-stretch: 112%; font-weight: 600; font-size: 1.12rem; line-height: 1.3; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
  color: #fff;
}
.js .top { position: fixed; transition: background-color .2s, color .2s, padding .2s, box-shadow .2s; }
.js .top.is-stuck {
  background: var(--ground); color: #fff;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--rule);
}
.top:not(.is-stuck) .top-cta { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.top:not(.is-stuck) .top-cta:hover { background: rgba(255,255,255,.12); }
.top.is-stuck .btn-light { background: var(--gold); color: var(--on-gold); }
.top.is-stuck .btn-light:hover { background: var(--gold-deep); }
.mark { text-decoration: none; display: grid; line-height: 1; margin-right: auto; }
.mark-name { font-stretch: 125%; font-style: italic; font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.mark-line { font-stretch: 112%; font-size: .72rem; letter-spacing: .08em; margin-top: 6px; opacity: .8; white-space: nowrap; }
.nav { display: flex; gap: 30px; font-size: .95rem; white-space: nowrap; }
.nav a { text-decoration: none; opacity: .88; padding: 6px 0; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: inherit; font-stretch: 108%; font-weight: 500; font-size: .98rem; line-height: 1.2;
  padding: 14px 24px; border-radius: 2px; border: 0;
  transition: background-color .15s, color .15s;
}
.btn-light { background: #fff; color: #0B0D11; }
.btn-light:hover { background: #DFE5EC; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-deep); }
.link-quiet { text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Hero: the owner's own night-ramp photograph. A second, brighter copy of the same photograph shows
   through a soft round window that follows the pointer, like an inspection light held to the paint. */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100svh, 640px);
  color: #fff; background: var(--ground);
}
.hero-shot { position: absolute; inset: 0; }
.hero-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 55%; }
.shot-lit {
  -webkit-mask-image: radial-gradient(circle var(--lr, 260px) at var(--lx, -600px) var(--ly, 50%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr, 260px) at var(--lx, -600px) var(--ly, 50%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
}
/* the sky behind the words stays black, and the bottom edge fades into the page */
.hero-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ground) 0, rgba(7,8,11,0) 72px),
    radial-gradient(58% 62% at 80% 34%, rgba(0,0,0,.62) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,0) 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  width: min(50%, calc(648px + var(--gutter))); margin-left: auto;
  padding: clamp(112px, 17vh, 176px) var(--gutter) 56px 0;
}
.hero h1 {
  font-stretch: 125%; font-weight: 300;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-sub { margin-top: 24px; max-width: 50ch; font-size: 1.12rem; color: #D5DCE6; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* Creed: one statement, under a cheatline */
.creed { padding: var(--block) var(--gutter); }
.cheat { height: 13px; border-top: 6px solid var(--gold); border-bottom: 1.5px solid var(--rule-strong); width: min(420px, 60%); margin-bottom: clamp(28px, 4vw, 48px); }
.creed-text {
  font-stretch: 112%; font-weight: 300;
  font-size: clamp(1.35rem, 2.35vw, 2.05rem);
  line-height: 1.34; letter-spacing: -.012em;
  max-width: 34em; text-wrap: pretty;
}

/* Walk-around: the same aircraft as a manual-style line figure, with numbered leaders */
.walk { background: var(--ground-2); padding: var(--block) 0; border-block: 1px solid var(--rule); }
.walk-head { padding: 0 var(--gutter); display: grid; gap: 14px; }
.walk-head p { max-width: 56ch; color: var(--text-soft); }
.walk-figure { position: relative; width: min(100% - 16px, 1424px); margin: clamp(24px, 3vw, 44px) auto 0; aspect-ratio: 1520 / 486; }
.walk-figure svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  --j-skin: #151920; --j-fin: #151920; --j-wing: #1D222B; --j-glass: #3B4453; --j-bright: #262C37;
  --j-gearf: #1D222B; --j-ink: var(--line); --j-lw: 1.5; --j-gloss: none;
  --j-stripe: var(--gold); --j-pin: #5B6474; --j-far: #0B0D11; --j-tire: #0B0D11;
}
.walk-figure .ground { stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 2 7; opacity: .55; }
.leaders path { fill: none; stroke: var(--rule-strong); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.leaders circle { fill: var(--line); }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer;
  background: var(--ground-2); color: var(--text);
  font: inherit; font-stretch: 100%; font-weight: 600; font-size: .95rem; line-height: 1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pin::after { content: ""; position: absolute; inset: -6px; }
.pin:hover { background: var(--ground-3); border-color: var(--gold); color: var(--gold); }
.pin[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

.walk-outside { padding: 0 var(--gutter); margin-top: clamp(28px, 4vw, 48px); color: var(--text-soft); max-width: calc(64ch + 2 * var(--gutter)); }
.stops { padding: 0 var(--gutter); margin-top: clamp(28px, 4vw, 52px); }
.n {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  font-stretch: 100%; font-weight: 600; font-size: .8rem; line-height: 1;
  border: 1.5px solid currentColor;
}
.stop-list { display: none; }
.stop-panels { display: grid; gap: 34px; max-width: 64ch; }
.stop-panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.stop-panel p { color: var(--text-soft); }
.never { margin-top: 12px; font-stretch: 88%; font-size: 1.02rem; letter-spacing: .005em; color: var(--text) !important; }
.never span { font-weight: 700; color: var(--text); margin-right: 8px; }

@media (min-width: 900px) {
  .js .stops { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .js .stop-list { display: grid; border-top: 1px solid var(--rule); }
  .js .stop-list li { border-bottom: 1px solid var(--rule); }
  .stop-tab {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 11px 4px; background: none; border: 0; cursor: pointer; text-align: left;
    font: inherit; font-stretch: 108%; font-size: 1.02rem; color: var(--text-soft);
  }
  .stop-tab:hover { color: var(--text); }
  .stop-tab[aria-pressed="true"] { color: var(--gold); font-weight: 600; }
  .stop-tab[aria-pressed="true"] .n { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
  .js .stop-panels { display: block; max-width: none; padding-top: 4px; min-height: 20rem; }
  .js .stop-panel { display: none; }
  .js .stop-panel.is-on { display: block; }
  .js .stop-panel h3 { font-stretch: 125%; font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.018em; margin-bottom: 16px; }
  .js .stop-panel h3 .n { display: none; }
  .js .stop-panel p { font-size: 1.2rem; line-height: 1.5; max-width: 34em; }
  .js .stop-panel .never { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 1.12rem; }
}

/* How a visit goes: a real sequence, so it is numbered. Beside it, the paperwork. */
.visit {
  padding: var(--block) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: start;
}
.steps { counter-reset: step; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule-strong); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 8px;
  padding: 24px 0 26px; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-stretch: 125%; font-weight: 300; font-size: 2.1rem; line-height: 1; color: var(--gold);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-soft); max-width: 46ch; grid-column: 2; }

.visit-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground-3); border-radius: 2px; }
.visit-photo figcaption { margin-top: 8px; font-size: .9rem; line-height: 1.35; color: var(--text-soft); }

/* Ways to work */
.ways { padding: 0 var(--gutter) var(--block); }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule-strong); }
.ways-grid > div { padding: 28px clamp(20px, 3vw, 44px) 4px; border-left: 1px solid var(--rule); }
.ways-grid > div:first-child { padding-left: 0; border-left: 0; }
.ways-grid h3 { margin-bottom: 10px; }
.ways-grid p { color: var(--text-soft); }

/* Questions */
.questions {
  padding: var(--block) var(--gutter);
  background: var(--ground-2); border-block: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.questions-head { display: grid; gap: 18px; position: sticky; top: 110px; }
.questions-head p { color: var(--text-soft); max-width: 40ch; }
.qa { border-top: 1px solid var(--rule-strong); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0 10px; font-stretch: 112%; font-weight: 500; font-size: 1.14rem;
}
.qa details:not([open]) summary { padding-bottom: 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--gold); flex: none; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 0 24px; max-width: 60ch; color: var(--text-soft); }

/* Automobiles */
.autos { padding: var(--block) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.autos-head { display: grid; gap: 18px; }
.autos-head p { max-width: 40ch; color: var(--text-soft); }
.autos-list { border-top: 1px solid var(--rule-strong); }
.autos-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.autos-list dt { font-stretch: 112%; font-weight: 600; font-size: 1.12rem; }
.autos-list dd { color: var(--text-soft); max-width: 52ch; }

/* Quote */
.quote {
  background: var(--ground-2); color: #fff; border-top: 1px solid var(--rule);
  padding: var(--block) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.quote-copy { display: grid; gap: 18px; }
.quote-copy p { color: var(--text-soft); max-width: 40ch; }
.quote-copy .quote-note { color: var(--text-soft); font-size: .98rem; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; background: var(--ground); color: var(--text); border: 1px solid var(--rule); padding: clamp(22px, 3.4vw, 44px); border-radius: 3px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-stretch: 108%; font-weight: 500; font-size: .95rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--text-soft); }
.field input:not([type="checkbox"]), .field textarea {
  font: inherit; color: inherit; width: 100%;
  padding: 12px 14px; background: var(--ground-3); border: 1px solid var(--rule-strong); border-radius: 2px;
}
.field input:not([type="checkbox"]):focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.field textarea { resize: vertical; }
.field ::placeholder { color: #8C93A0; opacity: 1; }
fieldset.field { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px 32px; }
fieldset.field legend { grid-column: 1 / -1; }
.field .check { display: inline-flex; align-items: center; gap: 9px; font-weight: 400; font-size: 1rem; cursor: pointer; min-height: 28px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; cursor: pointer;
  background: var(--ground-3); border: 1px solid var(--rule-strong); border-radius: 2px;
}
.check input:checked {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.7 2.7L10 3.4' fill='none' stroke='%2314110A' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-status { font-size: .98rem; color: var(--text-soft); min-height: 1.5em; flex: 1 1 240px; }

/* Recent work: the owner's own photographs, in rows of equal height.
   Each figure grows by its picture's width-to-height ratio (--r), so a row lines up without cropping. */
.work { padding: 0 var(--gutter) var(--block); }
.work-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(26px, 3.6vw, 44px); }
.work-head p { max-width: 52ch; color: var(--text-soft); }
.work-row { display: flex; gap: 14px; margin-top: 14px; }
.work-row figure { flex: var(--r) 1 0px; min-width: 0; }
.work-row img, .autos-photos img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--ground-3); border-radius: 2px; }
.work-row img { aspect-ratio: var(--r); }
.work figcaption, .autos-photos figcaption { margin-top: 8px; font-size: .9rem; line-height: 1.35; color: var(--text-soft); }
.autos-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; max-width: 520px; }
.autos-photos img { aspect-ratio: 3 / 4; }
.quote-copy .quote-direct { color: #fff; }
.quote-direct a, .foot-contact a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.quote-direct a { white-space: nowrap; }

/* Footer */
.foot { background: #000; color: #fff; padding: 48px var(--gutter) 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 72px; align-items: start; border-top: 1px solid var(--rule); }
.foot-mark { display: grid; line-height: 1; }
.foot-logo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.foot-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.foot-contact dt { font-size: .86rem; color: var(--text-soft); }
.foot-contact dd { font-stretch: 108%; overflow-wrap: anywhere; }
.foot-note { grid-column: 2; color: var(--text-soft); font-size: .92rem; max-width: 76ch; }

@media (max-width: 1000px) {
  .visit, .questions, .autos, .quote { grid-template-columns: 1fr; }
  .questions-head { position: static; }
}
@media (max-width: 1040px) {
  .nav { display: none; }
}
@media (max-width: 860px) {
  .top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; gap: 14px; }
  .top-cta { padding: 11px 16px; font-size: .9rem; }
  .mark-name { font-size: 1.2rem; }
  .walk-figure svg { --j-lw: 3.4; }
  .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .78rem; }
  .pin[aria-pressed="true"] { background: var(--ground-2); color: var(--text); border-color: var(--line); }
  .ways-grid { grid-template-columns: 1fr; }
  .ways-grid > div { padding: 24px 0 20px; border-left: 0; border-top: 1px solid var(--rule); }
  .ways-grid > div:first-child { border-top: 0; }
  .foot { grid-template-columns: 1fr; }
  .foot-contact { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1; }
}
@media (max-width: 560px) {
  .quote-form { grid-template-columns: 1fr; }
  fieldset.field { grid-template-columns: 1fr; }
  .top .mark-line { display: none; }
  .foot-contact { grid-template-columns: 1fr; }
  .autos-list > div { grid-template-columns: 1fr; }
}

/* Narrow screens: the whole photograph first, its dark sky behind the header, then the words on black */
@media (max-width: 900px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { width: auto; margin: 0; padding: 28px var(--gutter) 48px; }
  .hero-shot { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero-shot::after { background: linear-gradient(to top, var(--ground) 0, rgba(7,8,11,0) 56px); }
}
@media (max-width: 560px) {
  .hero-shot { aspect-ratio: 3 / 2; }
  .hero-copy { padding-top: 22px; }
  .hero-sub { font-size: 1rem; margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
}

@media (max-width: 700px) {
  .work-head { grid-template-columns: 1fr; }
  .work-row { flex-wrap: wrap; gap: 10px; margin-top: 10px; }
  .work-row figure { flex: 1 1 40%; }
  .work-row figure.wide, .work-row.lead figure { flex-basis: 100%; }
  .work-row:not(.lead) figure:not(.wide) img { aspect-ratio: 3 / 4; }
}

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