:root {
  --glass: #e8efec;
  --glass-2: #d9e3df;
  --frame: #15181b;
  --ink: #101418;
  --muted: #45525a;
  --red: #d41e26;
  --led-red: #ff3030;
  --led-blue: #2d63ff;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1360px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--frame) var(--glass); }
body {
  margin: 0;
  background-color: var(--glass);
  background-image:
    linear-gradient(104deg, transparent 0 14%, rgba(255, 255, 255, .5) 14% 17%, transparent 17% 21%, rgba(255, 255, 255, .32) 21% 22%, transparent 22% 100%),
    linear-gradient(104deg, transparent 0 66%, rgba(255, 255, 255, .38) 66% 70%, transparent 70% 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--red);
}
::selection { background: var(--frame); color: var(--glass); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--led-blue); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1 "Schibsted Grotesk", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b9161d; }
.btn-line { border-color: var(--frame); color: var(--frame); }
.btn-line:hover { background: rgba(21, 24, 27, .07); }
.btn-big { min-height: 56px; padding: .9em 1.5em; font-size: 1.1rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.mark-dots { width: 30px; height: 14px; fill: var(--led-red); }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-link { font-weight: 600; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.narrow-only { display: none; }

/* hero */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(24px, 5vh, 64px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center;
}
.sign-wrap { position: relative; }
.sign { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(16, 20, 24, .28)); }
.hero h1 { margin: 0 0 22px; font-weight: 850; font-size: clamp(2.8rem, 1.1rem + 4.6vw, 5.4rem); line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy p { margin: 0 0 30px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 40ch; color: var(--muted); text-wrap: pretty; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* the strip of storefronts */
.plaza { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.plaza-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.plaza h2, .how h2, .demo h2 { margin: 0; font-weight: 850; font-size: clamp(2.1rem, 1.1rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.plaza-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 10px solid var(--frame); background: var(--frame); }
.store { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--frame); }
.fascia { display: flex; align-items: center; min-height: 74px; padding: 12px 16px; background: var(--fascia); color: var(--fascia-ink); }
.name { font-size: clamp(1.1rem, .8rem + .7vw, 1.45rem); line-height: 1.05; }
@font-face { font-family: "Barlow Garage"; font-weight: 700; font-display: swap; src: url("work/two-bays-garage/fonts/barlow-condensed-700.ttf") format("truetype"); }
.n-garage { font-family: "Barlow Garage", sans-serif; font-weight: 700; font-size: 1.65rem; letter-spacing: .01em; text-transform: uppercase; }
@font-face { font-family: "Instrument Grounds"; font-style: normal; font-weight: 400; font-display: swap; src: url("work/snelgrove-grounds/fonts/instrument-serif.ttf") format("truetype"); }
.n-grounds { font-family: "Instrument Grounds", Georgia, serif; font-style: normal; font-weight: 400; font-size: clamp(1.65rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; }
.n-chair { font-family: "Unbounded", sans-serif; font-weight: 700; letter-spacing: -.02em; }
@font-face { font-family: "Archivo NW"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("work/night-wrench/fonts/archivo-latin.woff2") format("woff2"); }
.n-wrench { font-family: "Archivo NW", sans-serif; font-weight: 800; letter-spacing: -.01em; }
.store-wide { grid-column: 1 / -1; }
.store-wide .window { aspect-ratio: 21 / 9; }
.n-chai { font-family: "Anek Latin", sans-serif; font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -.02em; }
.window { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.window img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s var(--ease-out); }
.window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(104deg, transparent 0 30%, rgba(255, 255, 255, .22) 30% 34%, transparent 34% 100%); pointer-events: none; }
.mini-open {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  padding: 5px 9px 4px; border-radius: 8px;
  background: #0b0b0d; border: 2px solid var(--led-blue); color: var(--led-red);
  font-weight: 900; font-size: .8rem; letter-spacing: .14em;
}
.sill { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 14px 16px 16px; background: var(--glass-2); color: var(--ink); border-top: 6px solid var(--frame); }
.label { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.walk { font-weight: 800; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.store:hover .window img, .store:focus-visible .window img { transform: scale(1.03); }
.store:hover .walk { color: var(--red); }

/* how it works */
.how { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 2px 14px; max-width: 50ch; color: var(--muted); }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--frame); color: var(--led-red); font-weight: 900; }
.steps b { color: var(--ink); font-weight: 700; display: block; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); align-items: start; }
.phones img { display: block; width: 100%; height: auto; border: clamp(4px, .6vw, 7px) solid var(--frame); border-radius: clamp(16px, 2.2vw, 30px); background: var(--frame); }
.phones img:nth-child(even) { margin-top: clamp(20px, 4vw, 56px); }
.phones-note { grid-column: 2; margin: 0; color: var(--muted); max-width: 54ch; }

/* demo request */
.demo { max-width: var(--wrap); margin: 0 auto clamp(64px, 8vw, 110px); padding: clamp(40px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px clamp(32px, 6vw, 96px); background: var(--frame); color: var(--glass); border-radius: 0; }
@media (min-width: 1360px) { .demo { border-radius: 24px; } }
.demo h2 { color: #fff; }
.demo-copy p { margin: 18px 0 0; color: #b9c6c2; max-width: 40ch; font-size: 1.12rem; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: #fff; }
.opt { font-weight: 400; color: #9fb0ab; }
.form input, .form textarea {
  font: inherit; color: #fff; background: #20252a; border: 2px solid #3a434a; border-radius: 10px;
  padding: 13px 14px; min-height: 52px;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input::placeholder, .form textarea::placeholder { color: #8d9b98; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--led-blue); }
.form input[aria-invalid="true"] { border-color: var(--led-red); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-msg { margin: 0; padding: 14px 16px; border-radius: 10px; background: #20252a; color: #fff; font-weight: 600; }

/* footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 48px; color: var(--muted); font-size: .95rem; }
.foot p { margin: 0 0 8px; max-width: 76ch; }
.foot strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero, .how, .demo, .plaza-head { grid-template-columns: minmax(0, 1fr); }
  .sign-wrap { max-width: 560px; }
  .phones-note { grid-column: 1; }
}
@media (max-width: 640px) {
  .store-wide .window { aspect-ratio: 16 / 10; }
  .top-link { display: none; }
  .mark { font-size: 1.05rem; }
  .top-nav .btn { padding: .7em 1em; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .hero-act .btn { flex: 1 1 auto; }
  .form .btn { justify-self: stretch; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones img:nth-child(even) { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
