:root {
  --forest: #173a31;
  --forest-deep: #102a24;
  --forest-soft: #34594e;
  --sand: #d8c8aa;
  --sand-soft: #e9dfcc;
  --bone: #f5f1e8;
  --paper: #fcfaf5;
  --ink: #18231f;
  --muted: #64706a;
  --line: rgba(24, 35, 31, 0.16);
  --shell: min(1240px, calc(100vw - 64px));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--paper);
  transition: background 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
}

.brand b { font-weight: 700; }
.brand-mark { position: relative; width: 28px; height: 28px; display: inline-block; }
.brand-mark i { position: absolute; inset: 3px 9px 3px 3px; border: 1.5px solid currentColor; border-radius: 50% 50% 46% 54%; transform: rotate(-22deg); }
.brand-mark i:last-child { inset: 3px 3px 3px 9px; transform: rotate(22deg); }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 14px; text-decoration: none; position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; inset: auto 0 -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease); }
.site-nav > a:not(.nav-cta):hover::after, .site-nav > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  transition: background 220ms ease, color 220ms ease;
}

.nav-cta:hover, .nav-cta:focus-visible { background: var(--paper); color: var(--forest); }
.site-header.scrolled .nav-cta:hover, .site-header.scrolled .nav-cta:focus-visible { background: var(--forest); color: var(--paper); }
.menu-button { display: none; }

.hero {
  min-height: 880px;
  height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--paper);
  background: var(--forest-deep);
}

.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url('/assets/ivan-bags-hero.jpg') 60% 50% / cover no-repeat; transform: scale(1.015); animation: hero-settle 1.6s var(--ease) both; }
.hero-shade { background: linear-gradient(90deg, rgba(9, 26, 22, 0.88) 0%, rgba(9, 26, 22, 0.52) 36%, rgba(9, 26, 22, 0.06) 70%); }
.hero-content { position: relative; z-index: 1; padding-top: 48px; }

.eyebrow, .section-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow { color: var(--sand-soft); }
.hero h1 {
  max-width: 790px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 7.4vw, 118px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.hero h1 em { color: var(--sand); font-weight: 400; }
.hero-copy { max-width: 590px; margin: 34px 0 0; color: rgba(252, 250, 245, 0.82); font-size: clamp(17px, 1.4vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-light { background: var(--paper); color: var(--forest-deep); }
.button-light:hover, .button-light:focus-visible { background: var(--sand-soft); }
.text-link { text-underline-offset: 7px; font-size: 15px; }
.text-link span, .email-link span { display: inline-block; margin-left: 8px; transition: transform 220ms var(--ease); }
.text-link:hover span, .email-link:hover span { transform: translate(3px, -3px); }

.hero-index { position: absolute; right: 42px; bottom: 42px; z-index: 1; display: flex; align-items: center; gap: 12px; color: rgba(252, 250, 245, 0.7); font-size: 10px; letter-spacing: 0.17em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-index .line { width: 1px; height: 48px; background: rgba(252, 250, 245, 0.42); }

.reveal { animation: rise 900ms var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: 90ms; }
.hero .reveal:nth-child(3) { animation-delay: 170ms; }
.hero .reveal:nth-child(4) { animation-delay: 250ms; }

.section-pad { padding-block: clamp(90px, 10vw, 150px); }
.section-kicker { color: var(--forest-soft); }
.section-kicker-light { color: var(--sand); }

.intro-grid { display: grid; grid-template-columns: 0.72fr 2fr; gap: 64px; align-items: start; }
.intro-grid h2, .section-heading h2, .process h2, .materials h2, .brief h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(42px, 5vw, 76px); }
.lead { max-width: 830px; margin: 34px 0 0; color: var(--muted); font-size: clamp(19px, 2vw, 26px); line-height: 1.48; }

.capability-row { margin-top: 92px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.capability-row div { min-height: 145px; padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.capability-row div:not(:first-child) { padding-left: 20px; }
.capability-row div:last-child { border-right: 0; }
.capability-row span, .collection-meta span, .steps > li > span, .materials-copy li span { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.capability-row p { margin: 42px 0 0; font-size: 15px; }

.collections { background: var(--bone); }
.section-heading { display: grid; grid-template-columns: 1.55fr 0.65fr; gap: 80px; align-items: end; margin-bottom: 60px; }
.section-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 24px; }
.collection-card-wide { grid-column: 1 / -1; }
.collection-image { height: clamp(430px, 48vw, 650px); background-image: url('/assets/ivan-bags-hero.jpg'); background-repeat: no-repeat; background-size: 145%; filter: saturate(0.86); transition: background-size 700ms var(--ease), filter 400ms ease; }
.collection-card:hover .collection-image { background-size: 151%; filter: saturate(1); }
.collection-card-wide .collection-image { height: clamp(480px, 58vw, 740px); background-size: cover; }
.collection-card-wide:hover .collection-image { background-size: cover; }
.crop-tote { background-position: 66% 56%; }
.crop-pack { background-position: 56% 16%; }
.crop-duffel { background-position: 33% 88%; }
.collection-meta { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 16px; }
.collection-meta div { display: flex; align-items: baseline; gap: 16px; }
.collection-meta h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; }
.collection-meta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.process { color: var(--paper); background: var(--forest); }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10vw; align-items: start; }
.process-sticky { position: sticky; top: 140px; }
.process-sticky > p:last-child { max-width: 460px; margin: 30px 0 0; color: rgba(252, 250, 245, 0.68); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: process; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 34px 0 42px; border-top: 1px solid rgba(252, 250, 245, 0.18); }
.steps li:last-child { border-bottom: 1px solid rgba(252, 250, 245, 0.18); }
.steps > li > span { color: var(--sand); margin-top: 8px; }
.steps h3 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 400; }
.steps p { max-width: 600px; margin: 13px 0 0; color: rgba(252, 250, 245, 0.68); }

.materials-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.materials-image { min-height: 700px; background: url('/assets/ivan-bags-materials.jpg') 54% center / cover no-repeat; }
.materials-copy > p:nth-of-type(2) { margin: 30px 0 0; color: var(--muted); font-size: 18px; }
.materials-copy ul { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.materials-copy li { display: grid; grid-template-columns: 46px 1fr; padding: 17px 0; border-bottom: 1px solid var(--line); }

.brief { color: var(--paper); background: var(--forest-deep); }
.brief-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 10vw; align-items: start; }
.brief-grid > div > p:nth-of-type(2) { max-width: 540px; color: rgba(252, 250, 245, 0.65); margin: 30px 0 0; }
.email-link { display: inline-block; margin-top: 42px; color: var(--sand-soft); font-family: var(--serif); font-size: clamp(23px, 2.7vw, 36px); text-underline-offset: 8px; }

.brief-form { display: grid; gap: 22px; padding-top: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-form label { display: grid; gap: 8px; color: rgba(252, 250, 245, 0.68); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.brief-form input, .brief-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(252, 250, 245, 0.34); border-radius: 0; padding: 10px 0 14px; color: var(--paper); background: transparent; outline: none; text-transform: none; letter-spacing: normal; resize: vertical; transition: border-color 180ms ease; }
.brief-form input:focus, .brief-form textarea:focus { border-color: var(--sand); }
.brief-form textarea::placeholder { color: rgba(252, 250, 245, 0.34); }
.brief-form .button { justify-self: start; margin-top: 8px; border: 0; }
.form-note { margin: -8px 0 0; color: rgba(252, 250, 245, 0.45); font-size: 12px; }

.site-footer { color: var(--paper); background: #0a1d18; padding: 56px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-top p { margin: 0; color: rgba(252, 250, 245, 0.55); font-size: 14px; }
.footer-top > a:last-child { justify-self: end; color: var(--sand-soft); text-underline-offset: 6px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 70px; padding-top: 20px; border-top: 1px solid rgba(252, 250, 245, 0.14); color: rgba(252, 250, 245, 0.4); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 720px); }
  .nav-wrap { min-height: 72px; }
  .menu-button { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; color: inherit; background: transparent; border: 0; }
  .menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 220ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 72px 0 auto; display: grid; gap: 0; padding: 12px 20px 24px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-140%); opacity: 0; transition: transform 300ms var(--ease), opacity 200ms ease; }
  .site-nav.open { transform: translateY(0); opacity: 1; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; padding-inline: 0; border: 0; }
  .site-header:has(.site-nav.open) { color: var(--ink); background: var(--paper); }
  .hero { min-height: 760px; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(9, 26, 22, 0.86), rgba(9, 26, 22, 0.30)); }
  .hero-content { padding-top: 100px; }
  .hero h1 { font-size: clamp(58px, 12vw, 92px); }
  .hero-copy { max-width: 520px; }
  .hero-index { display: none; }
  .intro-grid, .section-heading, .process-grid, .materials-grid, .brief-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-grid { gap: 24px; }
  .capability-row { grid-template-columns: 1fr 1fr; }
  .capability-row div:nth-child(2) { border-right: 0; }
  .capability-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process-sticky { position: static; }
  .materials-image { min-height: min(74vw, 620px); }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 16px; }
  .brand { font-size: 12px; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-media { background-position: 66% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(9, 26, 22, 0.92) 0%, rgba(9, 26, 22, 0.57) 64%, rgba(9, 26, 22, 0.22)); }
  .hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .hero-copy { margin-top: 26px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 30px; }
  .section-pad { padding-block: 78px; }
  .capability-row { margin-top: 58px; grid-template-columns: 1fr; }
  .capability-row div, .capability-row div:not(:first-child) { min-height: 100px; padding: 16px 0 0; border-right: 0; border-top: 1px solid var(--line); }
  .capability-row div:first-child { border-top: 0; }
  .capability-row p { margin-top: 24px; }
  .section-heading { margin-bottom: 38px; }
  .collection-grid { grid-template-columns: 1fr; gap: 44px; }
  .collection-card-wide { grid-column: auto; }
  .collection-card .collection-image, .collection-card-wide .collection-image { height: 112vw; max-height: 560px; background-size: auto 112%; }
  .collection-card:hover .collection-image, .collection-card-wide:hover .collection-image { background-size: auto 117%; }
  .crop-tote { background-position: 76% 56%; }
  .crop-pack { background-position: 58% 24%; }
  .crop-duffel { background-position: 37% 78%; }
  .collection-meta { grid-template-columns: 1fr; gap: 12px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 10px; }
  .materials-grid { gap: 38px; }
  .materials-image { min-height: 112vw; background-position: 58% center; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .email-link { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > a:last-child { justify-self: start; }
  .footer-bottom { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
