@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("fonts/big-shoulders-stencil.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Taken from the materials: cushions, pallet pine, stain, linen, sunset */
  --night: #232125;
  --cushion: #4a4b52;
  --pine: #d6a463;
  --stain: #7a4b26;
  --linen: #ece2d0;
  --sunset: #f39a3d;
  --ink: #1d1c1f;
  --text: #e9e1d3;
  --text-dim: #a59d92;

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --stencil: "Big Shoulders Stencil", "Big Shoulders", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Fine grain over everything, like sawn wood under a lamp */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--pine); color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--pine);
  color: var(--ink);
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- Garage door intro ---------- */
.door { display: none; }
.js:not(.skip-intro):not(.no-motion) .door {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #000;
  cursor: pointer;
}
.door__slats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.door__slats span {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0 2px, transparent 2px 92%, rgba(0,0,0,.45) 92%),
    repeating-linear-gradient(90deg, transparent 0 22%, rgba(0,0,0,.18) 22% calc(22% + 2px)),
    #2b2a2f;
  border-bottom: 1px solid #141316;
}
.door__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 80vw, 95vh);
  height: auto;
  translate: -50% -50%;
  mix-blend-mode: lighten;
}
.door__lamp {
  position: absolute;
  top: 6vh;
  width: 14px;
  height: 22px;
  background: #ffd08a;
  border-radius: 3px 3px 8px 8px;
  box-shadow: 0 0 40px 18px rgba(243, 154, 61, .35);
}
.door__lamp--l { left: 8vw; }
.door__lamp--r { right: 8vw; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--gutter);
  transition: background-color .4s;
}
.nav.is-scrolled { background: rgba(35, 33, 37, .82); backdrop-filter: blur(10px); }
.nav__brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--linen);
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__call {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--linen);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.btn span { display: inline-block; }
.btn--wood { background: var(--pine); color: var(--ink); }
.btn--ghost { color: var(--linen); box-shadow: inset 0 0 0 1.5px rgba(236, 226, 208, .6); }
/* fill wipes up from below on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--linen);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform-origin: 50% 70%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,22,.55) 0%, transparent 28%),
    linear-gradient(0deg, rgba(20,18,22,.92) 0%, rgba(20,18,22,.5) 40%, transparent 70%);
}
.hero__content {
  position: relative;
  padding: 0 var(--gutter) clamp(48px, 9vh, 110px);
  max-width: 1200px;
}
.hero__title {
  font-size: clamp(3rem, min(1.4rem + 7.4vw, 13vh), 9rem);
  color: var(--linen);
  max-width: 14ch;
}
.hero__lead {
  margin-top: 1.4rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  color: var(--text);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 110px);
  width: 1px;
  height: 90px;
  background: rgba(236, 226, 208, .25);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: var(--pine);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(6rem, 14vw, 12rem) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.about__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.2rem);
  line-height: 1.02;
  color: var(--linen);
}
.about__small {
  margin-top: 2.5rem;
  max-width: 30ch;
  color: var(--text-dim);
  padding-left: 1.2rem;
  border-left: 3px solid var(--pine);
}
.about__figure { margin: 0; }
.reveal { overflow: hidden; border-radius: 6px; }
.reveal__inner img { width: 100%; height: auto; transform-origin: 50% 50%; }

/* ---------- Range (furniture) ---------- */
/* Without animation the row scrolls sideways; with it, the pin drives the track. */
.range { position: relative; overflow-x: auto; }
.js:not(.no-motion) .range { overflow: hidden; }
.range__track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  width: max-content;
  height: 100svh;
  align-items: center;
}
.range__intro { width: min(460px, 80vw); flex: none; }
.range__intro p { margin-top: 1.5rem; max-width: 28ch; color: var(--text-dim); }
.piece {
  flex: none;
  width: min(62vw, 880px);
  display: grid;
  gap: 1.4rem;
}
.piece__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cushion);
}
.piece__media img, .piece__media svg {
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  margin-left: -8%;
}
.piece__body {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.piece__body p { color: var(--text-dim); max-width: 34ch; }

/* Product names set like the branded stamp on a pallet block */
.stamp {
  flex: none;
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1;
  color: var(--pine);
  padding: .45em 1.1em .4em;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: rotate(-4deg);
}

/* ---------- Wheels ---------- */
.wheels {
  background: var(--linen);
  color: var(--ink);
  padding: clamp(6rem, 12vw, 10rem) 0 0;
  overflow: hidden;
}
.wheels__text {
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: end;
}
.wheels__text h2 { color: var(--ink); max-width: 10ch; }
.wheels__text p { max-width: 36ch; color: #4a443d; }
.wheels__stage {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  height: clamp(200px, 30vw, 360px);
}
.sofa {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  width: clamp(260px, 38vw, 560px);
  height: auto;
  overflow: visible;
}
.wheels__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--stain) 0 160px, #6a4122 160px 162px);
}

/* ---------- Words ---------- */
.words {
  padding: clamp(4rem, 9vw, 8rem) 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(236, 226, 208, .12);
}
.words__row { display: flex; white-space: nowrap; }
.words__track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-right: clamp(1.5rem, 3vw, 3.5rem);
  flex: none;
  will-change: transform;
}
.words__track span {
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(4rem, 2rem + 9vw, 11rem);
  line-height: 1;
  color: var(--linen);
}
.words__row--rev .words__track span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pine);
}
/* nail head between words */
.words__track i {
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9c3bb, #6d6e75 60%, #3b3b40);
  flex: none;
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(6rem, 14vw, 12rem) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.contact__intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: end;
}
.contact__intro p { color: var(--text-dim); max-width: 38ch; }
.contact__phone {
  display: inline-block;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.2rem, 1rem + 13vw, 15rem);
  line-height: .9;
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover { color: var(--linen); }
.contact__phone span { display: inline-block; }
.contact__mail {
  display: block;
  width: fit-content;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--pine); }

/* ---------- Footer ---------- */
.footer {
  background: #000;
  padding: 4rem var(--gutter) 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem 3rem;
  color: var(--text-dim);
  font-size: .95rem;
}
.footer__logo { width: 150px; height: auto; }
.footer__credit a {
  color: var(--linen);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--pine), var(--pine)) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease-out), color .3s;
}
.footer__credit a:hover { color: var(--pine); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- States before animation (only when JS will animate) ---------- */
.js:not(.no-motion) .hero__title,
.js:not(.no-motion) .hero__lead,
.js:not(.no-motion) .hero__actions { visibility: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .nav__links { display: none; }
  .about,
  .wheels__text,
  .contact__intro { grid-template-columns: 1fr; }
  .range__track {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    height: auto;
    gap: 4rem;
    padding: 5rem var(--gutter);
  }
  .range__intro, .piece { width: 100%; }
  .piece__body { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px) {
  .nav__call span { font-size: .9rem; }
  .nav__brand { font-size: 1.35rem; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  .nav, .btn::before, .nav__links a::after { transition: none; }
}
