/* ---------- Fonts ---------- */
@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamLight.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamBook.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamMedium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root{
  --cream: #FFFCE8;
  --cream-soft: #FBF7E4;
  --ink: #17190f;
  --green: #122D12;
  --green-deep: #0c1f0c;
  --line: rgba(18,45,18,0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Gotham", Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

h1,h2,h3{ font-family: var(--serif); font-weight: 400; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1{ font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.02; }
h2{ font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; }
h3{ font-size: 1.4rem; }
p{ margin: 0 0 1em; }

.eyebrow{
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1em;
}
.eyebrow-light{ color: var(--cream); opacity: 0.75; }
.center{ text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.9em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-dark{ background: var(--green); color: var(--cream); }
.btn-dark:hover{ background: var(--green-deep); }
.btn-line{ border-color: var(--ink); color: var(--ink); }
.btn-line:hover{ background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,252,232,0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled, .site-header.header-light{
  background: rgba(255,252,232,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
}
.brand-mark{ height: 22px; width: auto; filter: brightness(0) invert(1); transition: filter 0.35s ease; }
.site-header.scrolled .brand-mark, .site-header.header-light .brand-mark{ filter: none; }

.nav{ display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav a{
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: color 0.35s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.nav a:hover{ opacity: 1; }
.site-header.scrolled .nav a, .site-header.header-light .nav a{ color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block; height: 2px; width: 100%;
  background: var(--cream);
  transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-header.scrolled .nav-toggle span, .site-header.header-light .nav-toggle span{ background: var(--ink); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--green-deep);
}
.hero-media{
  position: absolute; inset: 0;
}
.hero-media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,31,12,0.55) 0%, rgba(12,31,12,0.25) 32%, rgba(12,31,12,0.15) 55%, rgba(12,31,12,0.85) 100%);
}
.hero-copy{
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
}
.hero-copy .eyebrow{ color: var(--cream); opacity: 0.85; }
.hero-copy h1{ color: var(--cream); }
.hero-lede{ font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46ch; opacity: 0.95; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .hero-actions .btn-line{ border-color: var(--cream); color: var(--cream); }
.hero .hero-actions .btn-line:hover{ background: var(--cream); color: var(--green-deep); }

/* ---------- About ---------- */
.about{ padding: clamp(4.5rem, 10vw, 8rem) 0; }
.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-media img{ border-radius: 4px; }
.about-copy p{ max-width: 52ch; }
.about-signoff{
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
}
.about-signoff span{ font-size: 1.15rem; }
.about-signoff small{ font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.03em; opacity: 0.65; margin-top: 0.2rem; }

/* ---------- Products ---------- */
.products{ padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--cream-soft); }
.products h2{ max-width: 16ch; margin-left: auto; margin-right: auto; }
.product-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.product-card{
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-media{ aspect-ratio: 4/3; overflow: hidden; }
.product-media img{ width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease; }
.product-media img.obj-bottom{ object-position: center 88%; }
.product-card:hover .product-media img{ transform: scale(1.04); }
.product-body{ padding: clamp(1.5rem, 3vw, 2.2rem); }
.product-body p{ max-width: 42ch; color: var(--ink); opacity: 0.85; }
.product-link{
  display: block;
  width: fit-content;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: opacity 0.25s ease;
}
.product-link:hover{ opacity: 0.65; }
.product-link--secondary{
  margin-top: 0.6rem;
  font-size: 0.78rem;
  opacity: 0.65;
}

/* ---------- B2B hero ---------- */
.b2b-hero{ padding: clamp(7.5rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 6rem); }
.brands-intro{ padding: clamp(4.5rem, 10vw, 8rem) 0; }
.b2b-hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.b2b-hero h1{ color: var(--green); }
.b2b-hero-lede{ max-width: 46ch; opacity: 0.85; }
.b2b-hero-media{ aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; }
.b2b-hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.b2b-hero .hero-actions{ justify-content: center; }

/* ---------- Four ways ---------- */
.ways{ padding: clamp(3rem, 8vw, 5rem) 0 clamp(4.5rem, 10vw, 8rem); background: var(--cream-soft); }
.ways-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.way-card{
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.way-index{
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green);
  opacity: 0.55;
  margin-bottom: 0.9rem;
}
.way-card h3{ margin-bottom: 0.5rem; }
.way-card p{ opacity: 0.8; max-width: 42ch; margin: 0; }

/* ---------- Collaborations ---------- */
.collabs{ padding: clamp(4.5rem, 10vw, 8rem) 0; }
.collabs--compact{ padding-top: clamp(3rem, 6vw, 4rem); }
.collabs-lede{ max-width: 50ch; margin: 0 auto 0; opacity: 0.8; }
.collab-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.collab-card{
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.collab-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.collab-card:hover img{ transform: scale(1.05); }
.collab-card figcaption{
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(12,31,12,0.9) 85%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
.collab-card figcaption strong{ font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.collab-card figcaption span{ font-size: 0.82rem; opacity: 0.85; line-height: 1.35; }

/* ---------- Contact ---------- */
.contact{
  background: var(--green);
  color: var(--cream);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact h2.light{ color: var(--cream); }
.contact-lede{ opacity: 0.85; max-width: 40ch; }
.contact-details{ display: flex; flex-direction: column; }
.contact-line{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,252,232,0.18);
  transition: opacity 0.25s ease;
}
a.contact-line:hover{ opacity: 0.7; }
.contact-line small{
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.contact-line span{ font-family: var(--serif); font-size: 1.3rem; }
.contact-line--static{ cursor: default; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--green-deep); color: var(--cream); }
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark{ height: 16px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.site-footer p{ margin: 0; font-size: 0.78rem; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .about-grid, .contact-grid, .b2b-hero-grid{ grid-template-columns: 1fr; }
  .about-media, .b2b-hero-media{ order: -1; }
  .product-grid, .ways-grid{ grid-template-columns: 1fr; }
  .collab-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .collab-grid{ grid-template-columns: 1fr; }
  .nav{
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--green);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav.is-open{ transform: translateX(0); }
  .nav a{ color: var(--cream); font-size: 1.1rem; opacity: 1; }
  .nav-toggle{ display: flex; }
  .site-header.scrolled .nav-toggle span,
  .site-header.header-light .nav-toggle span,
  .nav-toggle span{ background: var(--cream); }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
