/* ============================================================
   Sustar Woodworks - homepage concept
   Design language: Nordic Minimal
   Display: Bree Serif  |  Body: Barlow Semi Condensed
   Palette taken from their own material:
     #006E39  logo green ("WOODWORKS")
     #3E3F3E  logo charcoal ("SUSTAR")
     #F3F3F3  the exact seamless backdrop in their product photography
   ============================================================ */

:root {
  /* ground: their photo backdrop, so product shots sit on the page seamlessly */
  --paper:        #f3f3f3;
  --paper-lift:   #fbfbfa;
  --paper-edge:   #e2e3e1;

  /* ink: their logo charcoal, deepened for band use */
  --ink:          #1d211e;
  --ink-2:        #262b27;
  --graphite:     #3e3f3e;
  --muted:        #676a67;
  --muted-dark:   #a7ada8;

  /* brand green, plus a lifted variant for text on the dark bands */
  --green:        #006e39;
  --green-deep:   #00522a;
  --green-soft:   #6fc894;
  --green-veil:   rgba(0, 110, 57, 0.10);

  --font-display: 'Bree Serif', Georgia, serif;
  --font-body:    'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;

  --wrap:         min(90%, 1100px);
  --wrap-wide:    min(94%, 1440px);
  --nav-h:        76px;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.33, 0.01, 0.13, 1);

  --pad-y:        clamp(4.5rem, 9vw, 8.5rem);
  --pad-y-tight:  clamp(3rem, 6vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.1rem; text-decoration: none;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

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

/* ---------- one kicker system, used sparingly ---------- */
.kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  margin: 0 0 1.35rem;
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  transition: background-color 0.32s var(--ease), color 0.32s var(--ease),
              transform 0.32s var(--ease);
}

.btn--solid {
  background: var(--green);
  color: #ffffff;
}
.btn--solid:hover { background: var(--green-deep); }

.btn--sm { min-height: 42px; padding: 0.55rem 0.6rem 0.55rem 1.15rem; font-size: 0.8125rem; }

.btn__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform 0.42s var(--ease);
}
.btn__dot svg { width: 12px; height: 12px; }
.btn:hover .btn__dot { transform: translate(2px, -2px); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--paper-edge);
  min-height: 44px;
}
.btn--quiet:hover { color: var(--green); border-bottom-color: var(--green); }

.linky {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--green); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  transition: box-shadow 0.4s var(--ease);
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--paper-edge); }

.nav__inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav__brand { display: block; flex: 0 0 auto; line-height: 0; }
.nav__logo { width: auto; height: 22px; max-width: 230px; object-fit: contain; }
.nav__logo--light { display: none; }

.nav__links {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav__links a {
  font-size: 0.9375rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--graphite);
  padding-block: 0.75rem;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0.45rem;
  height: 1px; background: var(--green);
  transition: right 0.4s var(--ease);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { right: 0; }

.nav__end { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav__links + .nav__end { margin-left: 0; }

/* burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
}

/* ============================== DRAWER ============================== */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }

.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(29, 33, 30, 0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(88%, 380px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-soft);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__close {
  align-self: flex-end;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid rgba(243, 243, 243, 0.24);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__close:hover { border-color: var(--green-soft); color: var(--green-soft); }

.drawer__links { display: flex; flex-direction: column; }
.drawer__links a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  color: var(--paper);
  text-decoration: none;
  padding-block: 0.6rem;
  border-bottom: 1px solid rgba(243, 243, 243, 0.12);
}
.drawer__links a:hover { color: var(--green-soft); }

.drawer__foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 1.0625rem;
}
.drawer__foot a { color: var(--muted-dark); text-decoration: none; padding-block: 0.3rem; }
.drawer__foot a:hover { color: var(--green-soft); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  padding-top: var(--nav-h);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  background: var(--paper);
}

.hero__text {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 4vw, 4rem)
           clamp(2.5rem, 5vw, 4rem) max(calc((100vw - min(94vw, 1440px)) / 2), 1.75rem);
  max-width: 44rem;
}

.hero__h1 {
  font-size: clamp(2.5rem, 4.55vw, 4.15rem);
  line-height: 1.045;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
}
.hero__h1 span { display: block; }
.hero__h1 em { font-style: normal; color: var(--green); }

.hero__sub {
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 2.1rem;
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }

.hero__media {
  position: relative;
  align-self: stretch;
  height: 100%;
  min-height: 60svh;
  overflow: hidden;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
  will-change: transform;
}

/* ============================== STATEMENT ============================== */
.statement {
  background: var(--ink);
  color: var(--muted-dark);
  padding-block: var(--pad-y);
}
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.statement__lead {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.3vw, 3.05rem);
  line-height: 1.13;
  letter-spacing: -0.028em;
  color: var(--paper);
  margin: 0;
}
.statement__body { color: var(--muted-dark); max-width: 46ch; }

.pillars {
  list-style: none;
  margin: clamp(3rem, 7vw, 5.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
}
.pillars li { border-top: 1px solid rgba(243, 243, 243, 0.16); padding-top: 1.35rem; }
.pillars span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.55rem;
}
.pillars p { font-size: 1.0625rem; color: var(--muted-dark); max-width: 32ch; }

/* ============================== FULL BLEED ============================== */
.bleed { margin: 0; overflow: hidden; }
.bleed img {
  width: 100%;
  height: clamp(280px, 46vw, 620px);
  object-fit: cover;
  object-position: center 55%;
}

/* ============================== COLLECTION ============================== */
.collection { padding-block: var(--pad-y); background: var(--paper); }

.collection__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.collection__head h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: -0.028em;
}
.collection__head p { color: var(--muted); max-width: 46ch; margin: 0; }

.filters { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.filters__rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters__rail::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--paper-edge);
  background: transparent;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.pill:hover { border-color: var(--green); color: var(--green); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2.1rem) clamp(1rem, 1.8vw, 1.75rem);
}

.piece { margin: 0; }
.piece[hidden] { display: none; }

.piece__frame {
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 1 / 1;
}
.piece__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}
.piece:hover .piece__frame img { transform: scale(1.035); }

.piece figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.grid__empty {
  margin-top: 2.5rem;
  color: var(--muted);
  text-align: center;
}
.grid__empty[hidden] { display: none; }

/* ============================== MATERIALS ============================== */
.materials {
  background: var(--ink);
  color: var(--muted-dark);
  padding-block: var(--pad-y);
}
/* The brand green is a mid tone; on the ink band it drops to 2.55:1, so the
   kicker here takes the lifted green from the same hue family. */
.materials .kicker { color: var(--green-soft); }
.materials__head { max-width: 30ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.materials__head h2 {
  color: var(--paper);
  font-size: clamp(1.85rem, 3.1vw, 2.9rem);
  letter-spacing: -0.028em;
  line-height: 1.14;
}

.woods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}
.wood { margin: 0; }
.wood img {
  width: 100%;
  height: clamp(300px, 40vw, 560px);
  object-fit: cover;
}
.wood figcaption { padding-top: 1.35rem; }
.wood span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-soft);
  margin-bottom: 0.4rem;
}
.wood p { color: var(--muted-dark); max-width: 38ch; font-size: 1.0625rem; }

.quote {
  margin: clamp(3.5rem, 7vw, 6rem) auto clamp(2rem, 4vw, 3rem);
  max-width: 48rem;
  text-align: center;
  border: 0;
  padding: 0;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.35vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.quote cite {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.materials__note {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
  color: var(--muted-dark);
  font-size: 1.0625rem;
}

/* ============================== IAN ============================== */
.ian { padding-block: var(--pad-y); background: var(--paper); }
.ian__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.ian__media { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ian__media > img:first-child {
  width: 100%;
  height: clamp(360px, 46vw, 620px);
  object-fit: cover;
  object-position: center 28%;
}
.ian__inset {
  position: absolute;
  right: clamp(-1rem, -1.5vw, -0.5rem);
  bottom: 0;
  width: clamp(140px, 24%, 200px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid var(--paper);
  max-width: 60%;
}
.ian__text h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 1.35rem;
  letter-spacing: -0.028em;
}
.ian__text p { color: var(--muted); max-width: 42ch; }
.ian__text .btn--quiet { margin-top: 1rem; }

/* ============================== COMMISSION ============================== */
.commission {
  padding-block: var(--pad-y);
  background: var(--paper-lift);
  border-top: 1px solid var(--paper-edge);
}
.commission__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: start;
}
.commission__lead h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.commission__lead p { color: var(--muted); max-width: 40ch; }

.contactlist { list-style: none; margin: 0; padding: 0; }
.contactlist li {
  border-top: 1px solid var(--paper-edge);
  padding-block: 1.15rem;
}
.contactlist li:last-child { border-bottom: 1px solid var(--paper-edge); }
.contactlist__label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contactlist a,
.contactlist__plain {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  display: inline-block;
  min-height: 44px;
}
.contactlist__plain { min-height: 0; }
.contactlist a:hover { color: var(--green); }

/* ============================== FOOTER ============================== */
.foot { background: var(--ink); color: var(--muted-dark); padding-top: var(--pad-y-tight); }
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.foot__logo { width: auto; height: 22px; max-width: 240px; object-fit: contain; margin-bottom: 1.25rem; }
.foot__brand p { max-width: 30ch; font-size: 1.0625rem; }

.foot__nav { display: flex; flex-direction: column; gap: 0.15rem; }
.foot__nav a {
  text-decoration: none;
  color: var(--muted-dark);
  padding-block: 0.65rem;
  font-size: 1.0625rem;
}
.foot__nav a:hover { color: var(--green-soft); }

.foot__contact { display: flex; flex-direction: column; gap: 0.15rem; font-size: 1.0625rem; }
.foot__contact a { color: var(--muted-dark); text-decoration: none; padding-block: 0.65rem; }
.foot__contact a:hover { color: var(--green-soft); }
.foot__contact span { padding-block: 0.65rem; }

.foot__base {
  border-top: 1px solid rgba(243, 243, 243, 0.12);
  padding-block: 1.5rem 2rem;
  font-size: 0.9375rem;
  color: var(--muted-dark);
}

/* ============================== 404 ============================== */
.error {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 1;
  color: var(--green-soft);
  opacity: 0.34;
  margin-bottom: 0.5rem;
}
.error h1 {
  color: var(--paper);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.028em;
}
.error p { color: var(--muted-dark); max-width: 44ch; margin-inline: auto; margin-bottom: 2rem; }
.error .btn--solid { color: #ffffff; }

/* ============================== MOTION ============================== */
html.js [data-anim] { opacity: 0; }
html.js .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-anim],
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: grid; }
  .nav__end { margin-left: auto; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: min-content;
    align-items: start;
  }
  .hero__text {
    padding: clamp(2.25rem, 8vw, 3.5rem) 5% clamp(2rem, 6vw, 3rem);
    max-width: none;
    width: 100%;
  }
  .hero__sub { max-width: 42ch; }
  .hero__media { height: auto; min-height: 0; }
  .hero__img { height: clamp(320px, 66vw, 520px); }

  .statement__grid,
  .collection__head,
  .commission__grid,
  .ian__grid { grid-template-columns: minmax(0, 1fr); }

  .ian__media { order: 2; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pillars p { max-width: 46ch; }
  .woods { grid-template-columns: minmax(0, 1fr); }
  .wood img { height: clamp(320px, 70vw, 480px); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
  .nav__end .btn--sm { display: none; }
}

@media (max-width: 460px) {
  .nav__logo { height: 19px; }
  .hero__cta { gap: 1rem; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .btn--quiet { justify-content: flex-start; }
}
