/* =========================================================
   32°N KNIVES — Design System
   Ink #111111 / Bone #E6E2DB / Kraft #C9B79C / Steel #7A7D80
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #111111;
  --ink-soft: #1b1b1a;
  --bone: #E6E2DB;
  --bone-light: #F3F1EC;
  --kraft: #C9B79C;
  --steel: #7A7D80;
  --white: #FAF9F6;

  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
}
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.15;
}
h1, .h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: 0.02em; }
h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: #2b2b2b;
  max-width: 62ch;
}
p.body, .body-copy { max-width: 62ch; color: #333; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout utilities ---------- */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.rule {
  border: none;
  border-top: 1px solid rgba(17,17,17,0.12);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background var(--ease) 0.25s, color var(--ease) 0.25s, border-color var(--ease) 0.25s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); }
.btn-on-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(250,249,246,0.55);
}
.btn-on-dark:hover { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  color: var(--white);
  transition: background var(--ease) 0.3s, color var(--ease) 0.3s, padding var(--ease) 0.3s, border-color var(--ease) .3s;
  border-bottom: 1px solid transparent;
}
.site-header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: var(--white);
  color: var(--ink);
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 700;
}
.brand-mark .deg {
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}
.brand-mark .loc {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  display: none;
}
@media (min-width: 640px) {
  .brand-mark .loc { display: inline; }
}
.brand-wave {
  width: 46px;
  height: 10px;
  opacity: 0.85;
}
.brand-wave path { stroke: currentColor; fill: none; stroke-width: 1.4; }

.main-nav ul {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.main-nav a { position: relative; padding-block: 0.25rem; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--ease) 0.3s;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease) 0.25s, opacity var(--ease) 0.25s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease) 0.3s;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; font-size: 1.2rem; gap: 2rem; }
  .header-actions { display: none; }
}

.header-actions { display: flex; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.15) 35%, rgba(17,17,17,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero .lede { color: rgba(250,249,246,0.88); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2.5rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(250,249,246,0.7);
  display: none;
}
@media (min-width: 900px) { .scroll-cue { display: flex; align-items: center; gap: 0.6rem; } }
.scroll-cue::after { content: ''; width: 1px; height: 42px; background: currentColor; display: block; }

/* ---------- Brand statement ---------- */
.brand-statement {
  background: var(--bone-light);
}
.brand-statement .wrap { max-width: 900px; }
.three-line-close {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.three-line-close span { display: block; margin-bottom: 0.35rem; }
.three-line-close .tagline { margin-top: 1rem; color: var(--steel); letter-spacing: 0.2em; }

/* ---------- Series showcase ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(17,17,17,0.1);
}
@media (max-width: 900px) { .series-grid { grid-template-columns: 1fr; } }
.series-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.series-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.series-card:hover img { transform: scale(1.06); }
.series-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 40%, rgba(17,17,17,0.92) 100%);
  z-index: 1;
}
.series-card-body {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}
.series-card .eyebrow { color: rgba(250,249,246,0.7); }
.series-card h3 { margin: 0.35rem 0 0.6rem; color: var(--white); }
.series-card p { font-size: 0.9rem; color: rgba(250,249,246,0.82); margin-bottom: 1rem; max-width: 34ch; }
.series-card .btn-on-dark { font-size: 0.7rem; padding: 0.7em 1.4em; }

/* ---------- Maker teaser ---------- */
.maker-teaser {
  background: var(--ink);
  color: var(--white);
}
.maker-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 800px) { .maker-teaser .wrap { grid-template-columns: 1fr; } }
.maker-teaser .pullquote {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.maker-teaser p.lede { color: rgba(250,249,246,0.75); }

/* ---------- Dealer CTA band ---------- */
.dealer-band {
  background: var(--kraft);
  color: var(--ink);
}
.dealer-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.dealer-band p { max-width: 46ch; }

/* ---------- Press-style strip (materials pillars) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 1.5rem 0.5rem; }
.pillar .num { font-family: var(--font-mono); color: var(--kraft); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 0.6rem; }
.pillar h4 { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.pillar p { font-size: 0.85rem; color: var(--steel); }

/* ---------- Collections page ---------- */
.page-hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--bone-light);
}
.series-block { border-top: 1px solid rgba(17,17,17,0.1); }
.series-block .wrap { padding-block: clamp(3rem, 7vw, 6rem); }
.series-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .series-intro { grid-template-columns: 1fr; } }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--steel);
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(17,17,17,0.15);
}
.spec-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.spec-table td:first-child { color: var(--steel); width: 40%; }
.spec-note { margin-top: 1rem; font-size: 0.88rem; color: var(--steel); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { margin: 0; overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: 1/2.08; }

/* ---------- About page ---------- */
.about-hero {
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.about-copy { display: flex; flex-direction: column; gap: 1.4rem; max-width: 68ch; }
.about-copy p { font-size: 1.05rem; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-story-grid .about-copy { max-width: none; }
.about-story-figure {
  margin: 0;
  position: sticky;
  top: 6.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-story-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-story-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
@media (max-width: 860px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .about-story-figure { position: static; aspect-ratio: 16/10; }
}
.about-note {
  border-left: 2px solid var(--kraft);
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--steel);
  font-style: italic;
  max-width: 60ch;
}

/* ---------- Contact / Dealers page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid rgba(17,17,17,0.25);
  background: transparent;
  padding: 0.7rem 0.1rem;
  color: var(--ink);
  transition: border-color var(--ease) 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--steel); margin-top: 1rem; }
.contact-direct { border-top: 1px solid rgba(17,17,17,0.1); margin-top: 2.5rem; padding-top: 2rem; }
.contact-direct a { border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,249,246,0.75);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,249,246,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(250,249,246,0.45);
}
.footer-brand { color: var(--white); margin-bottom: 0.75rem; }

/* ---------- Misc ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.tag-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(17,17,17,0.2);
  padding: 0.3em 0.7em;
  color: var(--steel);
}
