/* ============================================================
   Bishop & Sons Auto Detail — Process v2 hand-authored CSS
   Thesis: "a black lacquered hood under shop lights" —
   the site is the finish itself: deep warm gloss, controlled
   reflections, one pass of light that moves like a polish stroke.
   Type: DM Serif Display / Schibsted Grotesk / Chivo Mono
   ============================================================ */

:root {
  /* lacquer surfaces — warm black, never cool */
  --lacquer:   #0e0b09;
  --panel:     #171210;
  --panel-2:   #1f1813;
  /* light — warm bone, like shop light on cream enamel */
  --bone:      #f3ece1;
  --dim:       #cfc5b4;
  --mute:      #948a7b;   /* AA on lacquer at small sizes: ~5.7:1 */
  /* metals */
  --copper:    #c96f3b;   /* ~5.4:1 on lacquer */
  --gleam:     #e8935a;
  --brass:     #b48d4c;
  /* hairlines */
  --line:      rgba(243, 236, 225, 0.13);
  --line-soft: rgba(243, 236, 225, 0.07);

  --display: "DM Serif Display", Georgia, serif;
  --body:    "Schibsted Grotesk", system-ui, sans-serif;
  --mono:    "Chivo Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.25, 1);
  --measure: 34rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--lacquer);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain — one whisper of texture over the whole finish */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

::selection { background: var(--copper); color: var(--lacquer); }

:focus-visible { outline: 2px solid var(--gleam); outline-offset: 3px; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }

.kicker {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--mute);
}
.kicker-copper { color: var(--copper); }

/* accent words: copper with a gleam that sweeps once on reveal */
.shine {
  font-style: italic;
  background: linear-gradient(105deg, var(--copper) 38%, var(--gleam) 50%, var(--copper) 62%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .in-view .shine, .js .shine.in-view { animation: shine-pass 2.2s var(--ease) 0.3s both; }
@keyframes shine-pass { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* ---- the polish pass — specular sweep across panels & photos ---- */
.polish { position: relative; overflow: hidden; }
.polish::after {
  content: ""; position: absolute; inset: -2%; z-index: 2; pointer-events: none;
  transform: translateX(-130%) skewX(-16deg);
  background: linear-gradient(100deg, transparent 32%,
    rgba(243, 236, 225, 0.11) 46%, rgba(232, 147, 90, 0.16) 50%,
    rgba(243, 236, 225, 0.11) 54%, transparent 68%);
}
.js .polish.in-view::after, .js .in-view .polish::after {
  transition: transform 1.5s var(--ease) 0.2s; transform: translateX(130%) skewX(-16deg);
}

/* ---- reveals (JS-gated: page is fully visible without JS) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].in-view {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js [data-reveal].in-view[data-delay="1"] { transition-delay: 0.12s; }
.js [data-reveal].in-view[data-delay="2"] { transition-delay: 0.24s; }
.js [data-reveal].in-view[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .polish.in-view::after, .js .in-view .polish::after { transition: none; transform: translateX(-130%); }
  .js .in-view .shine, .js .shine.in-view { animation: none; background-position: 50% 0; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- chrome rules & plates ---- */
.chrome { height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(243,236,225,0.3) 50%, transparent); }

.plate {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 42%), var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 48px -32px rgba(0,0,0,0.9);
}

/* ---- top bar / nav ---- */
.topbar { border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.55rem; }
.topbar a { color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 0.78rem; }
.topbar a:hover { color: var(--gleam); }

.site-head {
  position: sticky; top: 0; z-index: 80;
  background: rgba(14, 11, 9, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand { display: flex; align-items: baseline; gap: 0.7rem; text-decoration: none; }
.brand .name { font-family: var(--display); font-size: 1.45rem; color: var(--bone); }
.brand .tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper); }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gleam); }
@media (min-width: 820px) { .nav-links { display: flex; } }

.menu-btn {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 0.6rem;
  background: none; border: 1px solid var(--line); cursor: pointer;
}
.menu-btn span { width: 20px; height: 2px; background: var(--bone); transition: transform 0.25s var(--ease), opacity 0.25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 820px) { .menu-btn { display: none; } }

/* no-JS: nav renders statically and the toggle button hides */
.mobile-nav { border-top: 1px solid var(--line); background: var(--panel); }
.js .mobile-nav { display: none; }
.js .mobile-nav.open { display: block; }
html:not(.js) .menu-btn { display: none; }
.mobile-nav a {
  display: block; padding: 1rem 1.5rem; color: var(--bone); text-decoration: none;
  font-size: 1.05rem; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--gleam); background: var(--panel-2); }

/* ---- buttons ---- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 700; font-size: 0.92rem;
  padding: 0.95rem 1.7rem; text-decoration: none; cursor: pointer;
  border: 0; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.6s var(--ease);
}
.btn {
  color: #140b06;
  background: linear-gradient(105deg, var(--copper) 30%, var(--gleam) 50%, var(--copper) 70%);
  background-size: 220% 100%; background-position: 100% 0;
  box-shadow: 0 14px 30px -18px rgba(201, 111, 59, 0.55);
}
.btn:hover { background-position: 0% 0; transform: translateY(-1px); }
.btn-ghost { color: var(--bone); background: transparent; border: 1px solid rgba(243,236,225,0.35); }
.btn-ghost:hover { border-color: var(--gleam); color: var(--gleam); }

/* ---- hero ---- */
.hero { position: relative; }
.hero::before { /* shop light from above */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 42% at 72% -6%, rgba(232, 147, 90, 0.13), transparent 65%),
    radial-gradient(42% 34% at 24% -4%, rgba(243, 236, 225, 0.07), transparent 60%);
}
.hero-grid { display: grid; gap: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); } }
.hero-copy { padding-block: 4.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-copy { padding-block: 7rem; padding-right: 3.5rem; } }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 5.4vw, 5.4rem); line-height: 1.02; margin-top: 1.4rem; }
.hero .lede { margin-top: 1.8rem; font-size: 1.13rem; color: var(--dim); max-width: var(--measure); }
.hero-ctas { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-photo { position: relative; min-height: 21rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { /* lacquer edge — photo sits under the same sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--lacquer) 0%, transparent 22%),
              linear-gradient(0deg, var(--lacquer) 0%, transparent 26%);
}
@media (max-width: 899px) { .hero-photo::before {
  background: linear-gradient(0deg, var(--lacquer) 0%, transparent 30%); } }

/* stat plates */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.stat { background: var(--panel); padding: 1.3rem 1.4rem; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--bone); line-height: 1.1; }
.stat .kicker { margin-top: 0.35rem; display: block; }

/* ---- sections ---- */
.section { padding-block: 5.5rem; position: relative; }
@media (min-width: 900px) { .section { padding-block: 7.5rem; } }
.section-head { display: grid; gap: 1.5rem; margin-bottom: 3.5rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.08; margin-top: 1rem; }
.section-head .note { color: var(--dim); font-size: 1.05rem; max-width: var(--measure); }

/* ---- the price board — a posted menu, not marketing cards ---- */
.board { border: 1px solid var(--line); }
.board-section { padding: 2rem 1.6rem; }
@media (min-width: 720px) { .board-section { padding: 2.5rem 2.75rem; } }
.board-section + .board-section { border-top: 1px solid var(--line); }
.board-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.board-title h2 { font-size: 1.6rem; }
.board-row { display: flex; align-items: baseline; gap: 0.85rem; padding-block: 1.15rem; }
.board-row + .board-row { border-top: 1px solid var(--line-soft); }
.board-row .svc { max-width: 34rem; }
.board-row .svc b { display: block; font-family: var(--body); font-weight: 700; font-size: 1.04rem; color: var(--bone); }
.board-row .svc span { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: var(--mute); line-height: 1.55; }
.board-row .dots { flex: 1; min-width: 2rem; border-bottom: 2px dotted rgba(243, 236, 225, 0.2); transform: translateY(-0.45rem); }
.board-row .price { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--gleam); white-space: nowrap; }
.board-row .price small { display: block; text-align: right; font-size: 0.68rem; color: var(--mute); font-weight: 400; }
.board-foot { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); background: var(--panel); }
@media (min-width: 720px) { .board-foot { padding: 1.4rem 2.75rem; } }

/* ---- ledger of principles (roman numerals) ---- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.2rem; padding-block: 1.9rem; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 820px) { .ledger-row { grid-template-columns: 4.5rem minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem; } }
.ledger-row .num { font-family: var(--display); font-size: 1.5rem; color: var(--copper); }
.ledger-row h3 { font-size: 1.45rem; }
.ledger-row p { color: var(--dim); max-width: var(--measure); font-size: 0.98rem; }
@media (max-width: 819px) { .ledger-row p { grid-column: 2; } }

/* ---- before / after slider ---- */
.ba { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .rail { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(243,236,225,0.9) 18%, rgba(243,236,225,0.9) 82%, transparent); z-index: 2; }
.ba .grip {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); z-index: 2;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lacquer); border: 1px solid var(--gleam); color: var(--gleam);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.9);
}
.ba input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; margin: 0; }
.ba:focus-within { outline: 2px solid var(--gleam); outline-offset: 3px; }
html:not(.js) .ba input[type="range"] { display: none; }
.ba .tag { position: absolute; bottom: 0.9rem; z-index: 2; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 0.4rem 0.7rem;
  background: rgba(14,11,9,0.82); border: 1px solid var(--line); color: var(--dim); }
.ba .tag-b { left: 0.9rem; } .ba .tag-a { right: 0.9rem; color: var(--gleam); border-color: rgba(232,147,90,0.4); }
.ba-caption { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- quote plates ---- */
.quote-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { font-family: var(--display); font-size: 1.3rem; line-height: 1.45; color: var(--bone); }
.quote .who { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.quote .stars { color: var(--copper); letter-spacing: 0.15em; }
.pull { font-family: var(--display); font-size: clamp(1.7rem, 1rem + 2.8vw, 2.7rem); line-height: 1.25; max-width: 46rem; }

/* ---- timeline (about) ---- */
.timeline { position: relative; padding-left: 1.6rem; border-left: 1px solid var(--line); display: grid; gap: 2.4rem; }
.timeline .tick { position: relative; }
.timeline .tick::before { content: ""; position: absolute; left: calc(-1.6rem - 4.5px); top: 0.5rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(201,111,59,0.18); }
.timeline .year { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--gleam); }
.timeline h3 { font-size: 1.35rem; margin-top: 0.3rem; }
.timeline p { color: var(--dim); max-width: var(--measure); margin-top: 0.4rem; font-size: 0.97rem; }

/* ---- photos ---- */
.photo { border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
figcaption { margin-top: 0.8rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
figcaption .t { font-family: var(--display); font-size: 1.1rem; }

/* ---- forms (contact) ---- */
.form-grid { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.55rem; }
input, select, textarea {
  width: 100%; padding: 0.9rem 1rem; font-family: var(--body); font-size: 1rem;
  color: var(--bone); background: var(--panel); border: 1px solid var(--line);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gleam); outline-offset: 0; border-color: transparent; }
select { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23948a7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }

/* ---- CTA band ---- */
.cta-band { position: relative; text-align: center; padding-block: 6rem; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 60% at 50% 110%, rgba(201, 111, 59, 0.16), transparent 70%); }
.cta-band h2 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); line-height: 1.08; }
.cta-band p { margin: 1.4rem auto 2.4rem; max-width: 36rem; color: var(--dim); font-size: 1.1rem; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding-block: 4rem 2.5rem; background: var(--panel); }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.3fr)); } }
.site-foot .brandline { font-family: var(--display); font-size: 1.4rem; }
.site-foot p, .site-foot a { color: var(--dim); font-size: 0.93rem; text-decoration: none; }
.site-foot a:hover { color: var(--gleam); }
.foot-meta { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- page hero (subpages) ---- */
.page-hero { padding-block: 5rem 3.5rem; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48% 55% at 60% -10%, rgba(232, 147, 90, 0.1), transparent 65%); }
.page-hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem); line-height: 1.04; margin-top: 1.2rem; }
.page-hero .lede { margin-top: 1.5rem; color: var(--dim); font-size: 1.12rem; max-width: var(--measure); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--copper); color: var(--lacquer);
  padding: 0.8rem 1.2rem; font-weight: 700; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
