/* RSR tech — site styles
   Brand: Pantone Process Black #231F20, Pantone Cool Gray 8 C #878787.
   Titles: Ubuntu. Text: Jost (free web stand-in for Futura). */

@font-face { font-family: "Ubuntu"; src: url("../fonts/ubuntu-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../fonts/ubuntu-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #231F20;          /* Process Black */
  --ink-raised: #2A2526;
  --line: #3B3637;
  --line-strong: #4F4A4B;
  --steel: #878787;        /* Cool Gray 8 C */
  --paper: #F3F2F1;
  --paper-dim: #B4B1B1;
  --error: #E8968A;

  --font-title: "Ubuntu", "Segoe UI", system-ui, sans-serif;
  --font-text: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 300; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(1216px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-text); font-size: 1rem; font-weight: 500; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #fff; border-color: #fff; }
.btn-line { color: var(--paper); border-color: rgba(135, 135, 135, .75); background: transparent; }
.btn-line:hover { border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

.text-link {
  display: inline-block;
  color: var(--paper); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--steel);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { text-decoration-color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 31, 32, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  color: var(--paper-dim); text-decoration: none;
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  padding: 8px 0;
  transition: color .2s ease;
}
.site-nav ul a:hover { color: var(--paper); }

.menu-toggle {
  display: none;
  font: 500 1rem/1 var(--font-text); color: var(--paper);
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  min-height: 40px; padding: 0 16px; cursor: pointer;
}

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); overflow: hidden; }
.hero-copy { display: grid; gap: 28px; align-items: end; }
.hero h1 {
  font-size: clamp(3rem, 1.4rem + 5.6vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 7.2em;
}
.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.5; color: var(--paper-dim); max-width: 30em; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-drawing { position: relative; margin: clamp(28px, 4.5vw, 64px) auto 0; }
.hero-drawing::before {
  content: ""; position: absolute; inset: 0 var(--gutter); pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(135, 135, 135, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(135, 135, 135, .10) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 55% 62% at 50% 58%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 62% at 50% 58%, #000 25%, transparent 78%);
}
.drawing { position: relative; display: block; width: 100%; height: auto; overflow: visible; }

.drawing .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drawing .ln-body { stroke: #ECEBEB; stroke-width: 1.6; }
.drawing .ln-detail { stroke: #A3A0A1; stroke-width: 1.1; }
.drawing .ln-faint { stroke: #6E6A6B; stroke-width: 1; }
.drawing .caliper { fill: var(--ink); }
.drawing .ln-ground { stroke: var(--steel); stroke-width: .8; opacity: .55; }
.drawing .ln-axis { stroke: var(--steel); stroke-width: .8; stroke-dasharray: 14 4 2 4; opacity: .6; }
.callout .lead { stroke: var(--steel); stroke-width: 1; }
.callout .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 1.4; }
.callout text { font-family: var(--font-text); font-size: 17px; font-weight: 450; letter-spacing: .01em; fill: #DAD8D8; }

/* While scripts prepare the drawing animation, keep it hidden; a fallback reveals it regardless. */
html.js .drawing { opacity: 0; animation: reveal-fallback .01s linear 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; } }

/* Sections */
.section { padding-block: clamp(80px, 9.5vw, 144px); border-top: 1px solid var(--line); }
.section-head h2 {
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.875rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.section-head p { font-size: 1.1875rem; color: var(--paper-dim); max-width: 32em; }

/* Makes */
.make-list {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
}
.make-list li {
  font-family: var(--font-title); font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem);
  line-height: 1.15; letter-spacing: -.012em;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}
.make-note { margin: 28px 0 0; color: var(--paper-dim); }
.make-note a { color: var(--paper); text-decoration-color: var(--steel); text-underline-offset: 5px; }

/* Services */
.services-grid { display: grid; gap: 48px; }
.sticky-head .text-link { margin-top: 6px; }
.detail-drawing { display: none; }
.detail-drawing line, .detail-drawing circle, .detail-drawing path { fill: none; vector-effect: non-scaling-stroke; }
.detail-drawing .d-axis { stroke: var(--steel); stroke-width: .8; stroke-dasharray: 12 4 2 4; opacity: .55; }
.detail-drawing .d-main { stroke: #A3A0A1; stroke-width: 1.2; }
.detail-drawing .d-thin { stroke: #6E6A6B; stroke-width: 1; }
.detail-drawing .d-holes circle { stroke: #6E6A6B; stroke-width: .9; }
.detail-drawing .d-caliper { fill: var(--ink); stroke: #ECEBEB; stroke-width: 1.3; }

.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service-list li { display: grid; gap: 8px 40px; padding: 30px 0 32px; border-top: 1px solid var(--line); }
.service-list h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.005em; }
.service-list p { margin: 0; color: var(--paper-dim); }

/* Process */
.steps {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; gap: 44px;
}
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; background: var(--paper);
}
.step-num {
  display: block; margin-bottom: 18px;
  font-family: var(--font-title); font-weight: 300; font-size: 2.75rem; line-height: 1;
  color: var(--steel);
}
.steps h3 { font-weight: 500; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 1.0625rem; color: var(--paper-dim); }

/* About */
.about-grid { display: grid; gap: 28px 64px; }
.about-grid h2 { font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.875rem); line-height: 1.04; letter-spacing: -.02em; }
.about-text p { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); line-height: 1.55; max-width: 34em; }
.about-text p + p { color: var(--paper-dim); }
.principles { display: grid; gap: 28px; margin: 24px 0 0; }
.principles > div { border-top: 1px solid var(--line); padding-top: 24px; }
.principles dt { font-family: var(--font-title); font-weight: 500; font-size: 1.1875rem; }
.principles dd { margin: 8px 0 0; color: var(--paper-dim); max-width: 26em; }

/* Booking */
.book { background: var(--ink-raised); border-top: 0; }
.book-grid { display: grid; gap: 40px 64px; align-items: start; }

.book-form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; min-width: 0; border: 0; padding: 0; }
.field-row { display: grid; gap: 0 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 500; font-size: 1rem; color: var(--paper); }
.car { margin: 8px 0 0; }
.car legend { margin-bottom: 12px; }

label, .contact-pref legend { font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--paper-dim); }
.optional { font-weight: 400; color: var(--steel); }

input, select, textarea {
  width: 100%;
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.4; color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 13px 15px;
  transition: border-color .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #8E8A8B; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #6A6566; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--paper); outline: 1px solid var(--paper); outline-offset: 0; }
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B4B1B1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select option { background: var(--ink); color: var(--paper); }

.contact-pref { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
.contact-pref legend { width: 100%; margin-bottom: 4px; }
.contact-pref label { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-size: 1rem; cursor: pointer; }
.contact-pref input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--paper); }

.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field-error { font-size: .9375rem; color: var(--error); }

.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 10px; }
.form-note { margin: 0; font-size: .9375rem; color: var(--paper-dim); }
.form-status { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--paper); }

.contact { display: grid; gap: 30px; }
.contact h3 { font-family: var(--font-text); font-weight: 500; font-size: .9375rem; color: var(--paper-dim); margin-bottom: 6px; }
.contact p { margin: 0; font-size: 1.1875rem; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--steel); }
.contact a:hover { border-bottom-color: var(--paper); }
.placeholder { color: var(--steel); font-style: italic; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { height: 34px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { color: var(--paper-dim); max-width: 24em; margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--paper-dim); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--paper); }
.footer-contact p { margin: 0 0 10px; }
.legal { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; display: grid; gap: 8px; font-size: .875rem; line-height: 1.55; color: #959192; }
.legal p { margin: 0; max-width: 70em; }

/* Layout breakpoints */
@media (min-width: 700px) {
  .make-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-list li { grid-template-columns: 5fr 7fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .car-row { grid-template-columns: 6.5rem 1fr 1fr; }
}

@media (min-width: 800px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

@media (min-width: 1000px) {
  .hero-copy { grid-template-columns: 7fr 5fr; gap: 56px; }
  .hero-side .lede { margin-bottom: 30px; }

  .services-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
  .services-grid .section-head { grid-column: 1 / span 4; }
  .services-grid .service-list { grid-column: 6 / span 7; }
  .sticky-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .detail-drawing { display: block; width: 100%; max-width: 250px; height: auto; margin-top: 64px; }

  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }

  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .about-grid h2 { grid-column: 1 / span 5; }
  .about-text { grid-column: 6 / span 7; }
  .principles { grid-column: 1 / -1; margin-top: 40px; }

  .book-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
  .book-grid .section-head { grid-column: 1 / span 7; margin-bottom: 44px; }
  .book-form { grid-column: 1 / span 7; }
  .contact { grid-column: 9 / span 4; grid-row: 2; padding-top: 6px; }

  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / span 5; }
  .footer-nav { grid-column: 7 / span 3; }
  .footer-contact { grid-column: 10 / span 3; }
  .legal { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .make-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Small screens: menu panel, simplified drawing */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  html.js .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 4px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  html.js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; font-size: 1.125rem; color: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav .btn { align-self: flex-start; min-height: 48px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 14px; gap: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 16px; }

  .callouts { display: none; }
  .hero-drawing::before { inset: 0; }
}

@media (max-width: 420px) {
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .drawing { opacity: 1; animation: none; }
  .btn, .site-nav ul a, input, select, textarea, .site-header { transition: none; }
}
