@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f4f3f0;
  --paper-2: #e9e7e2;
  --ink: #1c1a17;
  --ink-2: #4a453e;
  --muted: #6f685e;
  --copper: #a94f25;
  --copper-dark: #8a3f1c;
  --line: #d8d5ce;
  --radius: 4px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.3rem, 1.6rem + 3.2vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1rem;
}
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 38ch; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: var(--paper);
  padding: .95em 1.5em; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
  transition: background .2s;
}
.btn:hover { background: var(--copper); }
.btn--small { padding: .6em 1.1em; font-size: .9rem; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--copper); padding-bottom: 2px; }
.link-arrow::after { content: " ↓"; color: var(--copper); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  padding: .75rem 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__logo img { width: 110px; height: auto; }
.top__nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .95rem; font-weight: 600; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--copper); }
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 0;
  max-width: var(--max); margin: 0 auto;
}
.hero__text { align-self: center; }
.hero h1 { max-width: 17ch; margin-bottom: 1.5rem; text-wrap: wrap; }
.hero .lead { margin-bottom: 1rem; }
.hero__note { color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) {
  .hero { grid-template-columns: 5fr 6fr; gap: 4rem; min-height: calc(100svh - 5rem); padding-bottom: 3rem; }
  .hero__media img { aspect-ratio: 1; height: 100%; max-height: 80svh; object-position: 72% 50%; }
}

/* Hero caption */
.hero__media { position: relative; }
.hero__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgb(28 26 23 / .72); color: var(--paper);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 2px;
}

/* Restoration steps (inside the rust section) */
.rust__how { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rust__how > h3 { font-size: var(--step-1); margin-bottom: 1.25rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; color: var(--copper); font-weight: 800; font-size: .85rem; letter-spacing: .1em; margin-bottom: .4rem; }
.steps h4 { font-size: 1.05rem; margin: 0 0 .3rem; font-weight: 800; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Portfolio */
.work { background: var(--paper-2); }
.work__head, .work__grid, .work__more { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.work__head { padding-top: clamp(4rem, 9vw, 7.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.work__head h2 { margin-bottom: 1rem; }
.work__head p:last-child { color: var(--ink-2); max-width: 50ch; margin: 0; }
.work__grid { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.work__card { display: flex; flex-direction: column; text-decoration: none; cursor: zoom-in; height: 100%; }
.work__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); transition: filter .3s; }
.work__card:hover img { filter: brightness(1.06) saturate(1.08); }
.work__meta { margin-top: .9rem; font-size: var(--step-1); font-weight: 800; letter-spacing: -.01em; }
.work__year { font-weight: 400; color: var(--muted); }
.work__note { color: var(--ink-2); font-size: .95rem; line-height: 1.5; margin-top: .25rem; }
.work__count { margin-top: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.work__card:hover .work__name { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.work__more { padding-top: 2.5rem; padding-bottom: clamp(4rem, 9vw, 7rem); margin: 0 auto; font-weight: 600; }
.work__more a { color: var(--copper-dark); }

/* Split sections */
.split {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
  display: grid; gap: 2.5rem; align-items: center;
}
.split + .split { padding-top: 0; }
.split h2 { margin-bottom: 1.25rem; max-width: 18ch; }
.split__text p { color: var(--ink-2); max-width: 48ch; }
.split__text .link-arrow { display: inline-block; margin-top: .75rem; }
.link-arrow--right::after { content: " →"; }
.split__media { margin: 0; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.split__media--pair { display: grid; grid-template-columns: 3fr 2fr; gap: .75rem; align-items: stretch; }
.split__media--pair img { height: 100%; aspect-ratio: auto; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 6fr; gap: 5rem; }
  .split--flip .split__text { order: 2; }
  .split--flip { grid-template-columns: 6fr 5fr; }
  .split__media--pair { height: 420px; }
}

/* Metal work */
.metal { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metal p { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad); color: var(--ink-2); }
.metal strong { color: var(--ink); }
.metal a { color: var(--copper-dark); font-weight: 600; }

/* Contact */
.contact {
  display: grid; gap: 3rem;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
}
.contact__media { margin: 0; position: relative; }
.contact__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.contact h2 { margin-bottom: 1.25rem; max-width: 16ch; }
.contact .lead { margin-bottom: 2.5rem; }
.details { margin: 0; border-top: 1px solid var(--ink); }
.details > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.details dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0; font-size: var(--step-1); font-weight: 600; }
.details a { text-decoration: none; background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.details a:hover { background-size: 100% 2px; }
.social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (min-width: 960px) { .contact { grid-template-columns: 2fr 3fr; gap: 6rem; align-items: center; } }
@media (max-width: 480px) { .details > div { grid-template-columns: 1fr; gap: .2rem; } }

/* Footer */
.foot {
  background: var(--ink); color: #a9a092;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--pad); font-size: .9rem;
}
.foot p { margin: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(20 18 16 / .94); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__title { position: fixed; top: 1.1rem; left: 1.25rem; margin: 0; font-weight: 800; font-size: var(--step-1); }
.lightbox__count { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); margin: 0; font-size: .9rem; color: #c9c1b3; }
.lightbox button { border: 0; cursor: pointer; background: var(--paper); color: var(--ink); line-height: 1; border-radius: 50%; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.6rem; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; padding-bottom: .2rem; opacity: .9; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--copper); color: var(--paper); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: .6rem; transform: none; } }
@media (min-width: 1200px) { .work__grid { grid-template-columns: repeat(4, 1fr); } }

/* Custom builds (kick scooters) */
.custom .work__head, .custom .work__grid, .custom .work__more { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.custom .work__head p:not(.eyebrow) { color: var(--ink-2); max-width: 54ch; }
.custom .work__more { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* From rust to ride */
.rust { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--pad) clamp(4rem, 9vw, 7rem); }
.rust__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.rust__head h2 { margin-bottom: 1.25rem; }
.rust__head p:not(.eyebrow) { color: var(--ink-2); }
.rust__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .rust__steps { grid-template-columns: repeat(5, 1fr); } }
.rust__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.rust__item p { margin: .7rem 0 0; font-size: .95rem; font-weight: 600; line-height: 1.35; display: flex; gap: .5rem; }
.rust__item p span { color: var(--copper); font-weight: 800; font-size: .8rem; padding-top: .15rem; }
@media (max-width: 719px) { .rust__item:last-child { grid-column: 1 / -1; } .rust__item:last-child img { aspect-ratio: 3 / 2; } }

.more { border-top: 1px solid var(--line); }
.more .work__grid { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* Portfolio: three per row, "Go younger" button */
@media (min-width: 960px) { #work .work__grid { grid-template-columns: repeat(3, 1fr); } }
.work__item[hidden] { display: none; }
.work__younger { display: flex; width: fit-content; gap: .5em; margin: 2.5rem auto 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.work__younger span { font-weight: 400; opacity: .75; }
.work__younger::after { content: " ↓"; }

.hero h1 span { display: block; color: var(--copper); }
@media (min-width: 960px) { .hero h1 { font-size: clamp(2.1rem, 3.2vw, 3rem); max-width: none; text-wrap: balance; } .hero h1 span { white-space: nowrap; } }
@media (max-width: 959px) { .hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.4rem); } }

/* Working bikes: three portrait photos */
.odd { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.odd figure { margin: 0; }
.odd img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.odd figcaption { margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* Contact: same type scale as the hero */
.contact h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.4rem); }
@media (min-width: 960px) { .contact h2 { font-size: clamp(2.1rem, 3.2vw, 3rem); } }
.details dd { font-size: 1.1rem; }

/* Language switcher */
.lang { display: flex; gap: .15rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.top__nav + .lang { margin-left: .5rem; }
.lang a { text-decoration: none; color: var(--muted); padding: .35rem .4rem; border-radius: var(--radius); }
.lang a:hover { color: var(--copper); }
.lang a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .lang { margin-left: auto; } .top .lang + .btn { margin-left: .25rem; } }
