/* ==========================================================================
   Roadrunnrs Custom Engravings
   Black metal / polished chrome.
   You shouldn't need to edit this file. Colors are grouped at the top if you
   ever want to change them.
   ========================================================================== */

/* --- fonts, served from the fonts/ folder so the site needs no internet --- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  /* --- palette: black metal, machined greys, polished chrome --- */
  --void:       #08090B;   /* page */
  --plate:      #0E1013;   /* raised panels */
  --plate-2:    #14171C;   /* inputs, tiles */
  --edge:       #23272E;   /* hairlines */
  --edge-lit:   rgba(255, 255, 255, .14);   /* top highlight on a machined edge */
  --chrome:     #F4F6F9;   /* primary text */
  --chrome-dim: #949CA8;   /* secondary text */
  --ice:        #A9D8F5;   /* focus + small accents */

  /* the polished ramp: white -> shadow -> white, like light down a steel bar */
  --sheen: linear-gradient(168deg,
    #ffffff 0%, #dbe2ea 12%, #8b95a3 30%, #f6f9fc 46%,
    #a9b3c0 60%, #6d7784 76%, #e7edf4 91%, #ffffff 100%);

  --shell: min(1180px, 100% - 2.5rem);
  --r: 3px;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--chrome);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* a soft pool of light across the top, as if a lamp is over the bench */
  background-color: var(--void);
  background-image:
    radial-gradient(120% 62% at 50% -18%, rgba(160, 185, 214, .10), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* very fine grain so the black reads as a surface, not a void */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; }

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

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--chrome); color: var(--void);
  padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- shared type roles ---------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  margin: 0;
}

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 105, "wght" 700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .98;
  font-size: clamp(1.85rem, 4.2vw, 2.95rem);
  margin: .55rem 0 0;
  background-image: linear-gradient(180deg, #ffffff 0%, #cfd6de 58%, #939caa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { color: var(--chrome-dim); max-width: 56ch; margin: 1rem 0 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 9, 11, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.masthead > .shell {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 62px;
}

.mark {
  display: flex; align-items: baseline; gap: .55rem;
  text-decoration: none; margin-right: auto;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1rem;
  line-height: 1;
}
.mark .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sheen);
  box-shadow: 0 0 8px 1px rgba(215, 232, 248, .55);
  flex: none;
  align-self: center;
}
.mark .sub {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--chrome-dim);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  text-decoration: none;
  padding-block: .4rem;
  transition: color .18s;
}
.nav a:hover { color: var(--chrome); }

@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .mark .sub { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .78rem 1.3rem;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background-color: transparent;
  color: var(--chrome);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s, background-position .5s;
}
.btn:hover { border-color: rgba(255, 255, 255, .38); transform: translateY(-1px); }

/* the primary action is a bar of polished steel */
.btn.hot {
  background-image: var(--sheen);
  background-size: 220% 100%;
  background-position: 12% 0;
  border-color: rgba(255, 255, 255, .55);
  color: #070809;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.hot:hover { background-position: 78% 0; border-color: #fff; }

/* ==========================================================================
   Hero — the engraved headline
   ========================================================================== */
.hero { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 7rem) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Size is tuned so the longest word still clears the page gutters.
   Archivo at wdth 118 runs roughly 7.3x the font size for a 9-letter word. */
.burn {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 10.4vw, 8.8rem);
  line-height: .86;
  letter-spacing: -.028em;
  margin: 1.15rem 0 0;
}

.burn-line {
  position: relative;
  display: block;
  width: fit-content;
}

/* the surface before it's cut */
.burn-line .raw {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
}

/* the cut itself: polished metal, revealed left to right */
.burn-line .cut {
  position: absolute;
  left: 0; top: 0;
  width: max-content;
  white-space: nowrap;
  background-image: var(--sheen);
  background-size: 210% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  animation:
    engrave .78s cubic-bezier(.2, .7, .3, 1) var(--d) 1 forwards,
    sheen 11s linear calc(var(--d) + 1.3s) infinite;
}

/* the bright spot where the beam is working */
.burn-line .beam {
  position: absolute;
  top: 6%; bottom: 12%;
  left: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 20px 6px rgba(214, 235, 255, .55);
  opacity: 0;
  animation: sweep .78s cubic-bezier(.2, .7, .3, 1) var(--d) forwards;
}

@keyframes engrave { to { clip-path: inset(0 0 0 0); } }
@keyframes sheen   { to { background-position: -210% 0; } }
@keyframes sweep {
  0%   { left: 0;    opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.hero-copy { max-width: 46ch; margin: 0; color: var(--chrome-dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

/* three recent pieces, like a strip of proofs */
.hero-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.hero-stack figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--edge);
  border-top-color: var(--edge-lit);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--plate-2);
}
.hero-stack figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* a machined hairline closes the hero */
.hero-rule {
  height: 1px; border: 0; margin: clamp(3rem, 7vw, 5rem) 0 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 45%, transparent 78%);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.band { position: relative; z-index: 1; padding: clamp(3.4rem, 8vw, 6rem) 0; }
.band.tinted {
  background: var(--plate);
  border-block: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.band-head { max-width: 62ch; }

/* --- materials: machined plates ------------------------------------------- */
.materials {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-top-color: var(--edge-lit);
  border-radius: var(--r);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.materials li {
  position: relative;
  background: var(--void);
  padding: 1.7rem 1.4rem 1.9rem;
}
.band.tinted .materials li { background: var(--plate); }
.materials li::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
}
.materials h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 104, "wght" 700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: 1.06rem;
  margin: 0 0 .6rem;
  background-image: linear-gradient(180deg, #ffffff, #b9c1cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.materials p { margin: 0; color: var(--chrome-dim); font-size: .94rem; line-height: 1.6; }

/* --- gallery -------------------------------------------------------------- */
.gallery-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 2.2rem 0 1.8rem;
}
.chip {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .95rem;
  border: 1px solid var(--edge);
  border-radius: 100px;
  background-color: transparent;
  color: var(--chrome-dim);
  cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.chip:hover { color: var(--chrome); border-color: rgba(255, 255, 255, .34); }
.chip[aria-pressed="true"] {
  color: #070809;
  background-image: var(--sheen);
  background-size: 200% 100%;
  background-position: 20% 0;
  border-color: rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}

.grid { columns: 4 230px; column-gap: 1rem; }

.tile {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--plate-2);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

/* Very tall pieces get trimmed in the grid so the page stays scannable.
   Clicking the tile still shows the whole photo, uncropped. */
.tile img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
  transition: opacity .25s;
}
.tile:hover {
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .9);
}
.tile:hover img { opacity: .9; }

/* a glint travels the top edge on hover */
.tile::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }

.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.7rem .8rem .65rem;
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .07em;
  text-align: left;
  color: var(--chrome);
  background: linear-gradient(0deg, rgba(4, 5, 6, .94), rgba(4, 5, 6, 0));
  opacity: 0;
  transition: opacity .2s;
}
.tile:hover figcaption,
.tile:focus-visible figcaption { opacity: 1; }

@media (max-width: 620px) {
  .grid { columns: 2 auto; column-gap: .7rem; }
  .tile { margin-bottom: .7rem; }
  .tile img { max-height: 320px; }
  .tile figcaption { opacity: 1; font-size: .63rem; padding: 1.2rem .6rem .5rem; }
}

/* --- steps ---------------------------------------------------------------- */
.steps {
  list-style: none; padding: 0;
  margin: 2.6rem 0 0;
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  border-top: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  padding-top: 1.25rem;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--ice);
  margin-bottom: .85rem;
}
.steps h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 102, "wght" 700;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.steps p { margin: 0; color: var(--chrome-dim); font-size: .94rem; }

/* --- faq ------------------------------------------------------------------ */
.faq { margin-top: 2.4rem; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.2rem 1.15rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1.01rem;
  transition: color .18s;
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  color: var(--ice);
  font-size: 1.1rem;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.3rem; color: var(--chrome-dim); max-width: 68ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.6rem;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.big-link {
  display: block;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  letter-spacing: -.015em;
  text-decoration: none;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--edge);
  transition: padding-left .2s, color .2s;
}
.big-link:first-of-type { border-top: 1px solid var(--edge); }
.big-link:hover { color: #fff; padding-left: .5rem; }
.big-link .tag {
  display: block;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  margin-bottom: .4rem;
}
.big-link .mailtext { font-size: max(.6em, 1rem); word-break: break-all; }

.detail-list { margin: 1.7rem 0 0; color: var(--chrome-dim); font-size: .94rem; }
.detail-list p { margin: .45rem 0; }

/* quote form: a machined panel */
.quote {
  position: relative;
  background: var(--plate-2);
  border: 1px solid var(--edge);
  border-top-color: var(--edge-lit);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.quote h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 104, "wght" 700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: 1.02rem;
  margin: 0 0 .35rem;
}
.quote .hint { color: var(--chrome-dim); font-size: .87rem; margin: 0 0 1.3rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  margin-bottom: .4rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  color: var(--chrome);
  font-family: var(--f-body);
  font-size: .97rem;
  padding: .72rem .8rem;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(169, 216, 245, .12);
}
.field textarea { resize: vertical; min-height: 108px; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .two-up { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 2.2rem 0 3rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--chrome-dim);
  text-transform: uppercase;
}
.foot > .shell { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--chrome); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 5, 6, .95);
  backdrop-filter: blur(3px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[open] { display: flex; }
.lightbox img {
  max-width: min(920px, 100%);
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--edge);
  border-top-color: var(--edge-lit);
  border-radius: var(--r);
}
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem);
  text-align: center;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}
.lb-btn {
  position: absolute;
  background: rgba(20, 23, 28, .6);
  border: 1px solid var(--edge);
  color: var(--chrome);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .18s, color .18s;
}
.lb-btn:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.lb-prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-close { right: clamp(.6rem, 3vw, 2rem); top: clamp(.6rem, 3vw, 1.6rem); }

/* ==========================================================================
   Scroll reveal + reduced motion
   ========================================================================== */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .burn-line .cut { clip-path: inset(0 0 0 0); }
  .burn-line .beam { display: none; }
  .rise { opacity: 1; transform: none; }
}
