/* White Garage. 12 column grid, 1280px content, 8px spacing scale. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/archivo-latin-500-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F4F4F2;
  --ink: #0B0B0C;
  --ink-soft: #2B2C2E;
  --nardo: #8A8D8F;
  --white: #FFFFFF;

  --content: 1280px;
  --pad: 16px;
  --gap: 16px;
  --section: 80px;
  --head-gap: 48px;
  --header-h: 64px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--ink);
}

@media (min-width: 768px) {
  :root { --pad: 32px; --gap: 24px; --section: 112px; --head-gap: 56px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --pad: 48px; --gap: 32px; --section: 144px; --head-gap: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.section-dark, .hero, .lightbox { --focus: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 8px 16px;
  background: var(--ink); color: var(--white);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 16px; outline-color: var(--ink); }

/* Layout */

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

.section { padding-block: var(--section); }
.section-tight-top { padding-top: 0; }

.section-head { margin-bottom: var(--head-gap); }

.label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  font-size: 14px; font-weight: 800; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
}
.label::before {
  content: ""; flex: 0 0 32px; height: 2px; background: var(--nardo);
}
@media (max-width: 767px) {
  .label { letter-spacing: .1em; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}
.label-on-dark { color: var(--white); }
.label-center { justify-content: center; }
.label-center::after { content: ""; flex: 0 0 32px; height: 2px; background: var(--nardo); }

.section-title {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 900; line-height: 1;
  letter-spacing: -.025em;
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border: 2px solid transparent;
  font-size: 16px; font-weight: 800; line-height: 1;
  letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--bg); border-color: var(--bg); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  font-weight: 800; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--nardo);
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--nardo);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: var(--header-h);
}
.wordmark {
  justify-self: start;
  font-size: 20px; font-weight: 900; line-height: 1;
  letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 48px; padding: 0 0 0 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.menu-toggle-icon {
  position: relative; width: 24px; height: 2px; background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { box-shadow: none; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg);
}

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 16px var(--pad) 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--nardo);
}
.site-nav.is-open { display: block; }
.nav-list a {
  display: block; padding: 16px 0;
  font-size: 24px; font-weight: 800; line-height: 1.2; text-decoration: none;
  border-bottom: 1px solid rgba(11, 11, 12, .12);
}
.nav-cta { width: 100%; margin-top: 24px; }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-toggle { display: none; }
  .site-nav {
    display: block; position: static; padding: 0; border: 0; background: none;
  }
  .nav-list { display: flex; gap: 40px; }
  .nav-list a {
    padding: 8px 0; border: 0;
    font-size: 16px; font-weight: 700;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size .25s var(--ease);
  }
  .nav-list a:hover { background-size: 100% 2px; }
  .nav-cta { display: none; }
  .header-cta { display: inline-flex; justify-self: end; }
}

/* Hero */

.hero { background: var(--ink); color: var(--white); }
.hero-band { padding-top: 64px; padding-bottom: 48px; }
.hero-title {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 900; line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title span { display: inline; }
.hero-foot {
  display: grid; gap: 32px;
  margin-top: 40px;
}
.hero-sub { font-size: 18px; font-weight: 600; line-height: 1.5; max-width: 32ch; }
.hero-media { background: var(--ink); }
.hero-media img {
  width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; object-position: 50% 50%;
}

@media (min-width: 768px) {
  .hero-band { padding-top: 80px; padding-bottom: 56px; }
  .hero-sub { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero-band { padding-top: 72px; padding-bottom: 56px; }
  /* First line sized to sit on one line across the full content width */
  .hero-title { font-size: min(calc((100vw - 96px) / 15), 84px); }
  .hero-title span { display: block; white-space: nowrap; }
  .hero-foot {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap); align-items: end;
    margin-top: 40px;
  }
  .hero-sub { grid-column: 1 / span 6; max-width: none; }
  .hero-foot .btn-row { grid-column: 7 / -1; justify-content: flex-end; }
  .hero-media img { aspect-ratio: 2 / 1; }
}

/* Services */

.cards {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
.card {
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--nardo);
}
.card-num { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.card-title {
  margin-top: 48px;
  font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
}
.card-text { margin-top: 16px; color: var(--ink-soft); }

@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-title { margin-top: 64px; }
}

/* Work */

.work-grid {
  display: grid; gap: 48px var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
.work-item { display: flex; flex-direction: column; }
.work-link { display: block; overflow: hidden; background: #DCDCD9; cursor: zoom-in; }
.work-link img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .4s var(--ease);
}
.work-link:hover img { transform: scale(1.03); }
.work-name { margin-top: 16px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.work-finish { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }

@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 56px var(--gap); } }
/* Two columns, nine tiles: centre the last one so the grid stays symmetric */
@media (min-width: 768px) and (max-width: 1023px) {
  .work-item:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center;
    width: calc((100% - var(--gap)) / 2);
  }
}
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px var(--gap); } }

/* Finishes (dark) */

.section-dark { background: var(--ink); color: var(--white); }
.finishes {
  display: grid; column-gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--nardo);
}
.finish {
  display: flex; align-items: center; gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--nardo);
}
.chip {
  flex: 0 0 auto; width: 48px; height: 48px;
  background: var(--chip);
}
.chip-outline { box-shadow: inset 0 0 0 1px var(--nardo); }
.finish-name { font-size: 20px; font-weight: 800; line-height: 1.25; }
.finishes-note { margin-top: 32px; font-size: 16px; color: #C8CACB; }

@media (min-width: 768px) {
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .finishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finish { padding-block: 40px; }
  .chip { width: 64px; height: 64px; }
  .finish-name { font-size: 22px; }
}

/* Steps */

.steps {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
.step {
  display: flex; flex-direction: column;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.step-num { font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.step-text { margin-top: 24px; font-size: 22px; font-weight: 800; line-height: 1.3; max-width: 24ch; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-num { font-size: 64px; }
}
@media (min-width: 1024px) { .step-text { font-size: 24px; margin-top: 32px; } }

/* Origin band */

.origin { border-block: 1px solid var(--nardo); }
.origin-inner { padding-block: 96px; text-align: center; }
.origin-title {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 900; line-height: 1; letter-spacing: -.03em;
}
.origin-text {
  margin: 24px auto 0; max-width: 36ch;
  font-size: 18px; font-weight: 600;
}
@media (min-width: 1024px) {
  .origin-inner { padding-block: 128px; }
  .origin-text { font-size: 20px; }
}

/* Final CTA */

.cta-inner { display: grid; gap: 40px; }
.cta-title {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 900; line-height: .96; letter-spacing: -.035em;
  text-wrap: balance;
}
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }

@media (min-width: 1024px) {
  .cta-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap); align-items: end;
  }
  .cta-title { grid-column: 1 / span 8; }
  .cta-actions { grid-column: 9 / -1; justify-content: flex-end; }
}

/* Footer */

.site-footer { border-top: 2px solid var(--ink); }
.footer-inner {
  display: grid; gap: 16px;
  padding-block: 48px;
  font-size: 16px; font-weight: 600;
}
.footer-mark { font-size: 20px; }
.footer-copy { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "mark ig" "place copy";
    column-gap: var(--gap); align-items: center;
  }
  .footer-mark { grid-area: mark; }
  .footer-place { grid-area: place; }
  .footer-ig { grid-area: ig; justify-self: end; }
  .footer-copy { grid-area: copy; justify-self: end; }
}
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap); align-items: center;
  }
  .footer-mark { grid-column: 1 / span 4; }
  .footer-place { grid-column: 5 / span 2; }
  .footer-ig { grid-column: 7 / span 3; }
  .footer-copy { grid-column: 10 / -1; justify-self: end; }
}

/* Body copy is 17px from tablet up */
@media (min-width: 768px) {
  .work-finish, .finishes-note, .footer-inner { font-size: 17px; }
}

/* Lightbox */

.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--white);
}
.lightbox::backdrop { background: var(--ink); }
.lb-inner {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%; padding: 16px var(--pad);
}
.lb-bar, .lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-count { font-weight: 800; letter-spacing: .08em; }
.lb-figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: 0; padding-block: 16px;
}
.lb-figure picture { display: flex; justify-content: center; min-height: 0; }
.lb-figure img {
  width: auto; height: auto;
  max-width: 100%; max-height: calc(100vh - 248px); max-height: calc(100dvh - 248px);
  object-fit: contain;
}
.lb-caption { text-align: center; }
.lb-title { font-size: 18px; font-weight: 800; }
.lb-finish { color: #C8CACB; }
.lb-btn {
  min-height: 48px; padding: 0 24px;
  background: none; border: 2px solid var(--white); cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lb-btn:hover { background: var(--white); color: var(--ink); }
html.lb-open { overflow: hidden; }

/* Reveal */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity .36s var(--ease), transform .36s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
