/* ============================================================
   Johnny's mama — brand site
   Montserrat · #000 / #FFF / #E3BCB3 · minimalist editorial
   ============================================================ */

:root {
  --ink: #141414;
  --ink-2: #3a3a3a;
  --ink-3: #777;
  --line: #e8e3df;
  --cream: #faf7f3;
  --paper: #fff;
  --pink: #e3bcb3;
  --pink-deep: #c99789;
  --max: 1360px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 200; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-block;
}
.eyebrow.pink { color: var(--pink-deep); }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; font-weight: 300; color: var(--ink-2); }
p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
p + p { margin-top: 1em; }
em { font-style: italic; }
.accent { color: var(--pink-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 40px;
}
.brandmark img { height: 28px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--pink-deep); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--pink-deep);
}
.mobile-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.mobile-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 24px var(--gutter);
    z-index: 99;
  }
  .nav.open a {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .mobile-toggle { display: inline-flex; }
}

/* ---------- Hero / full-bleed image ---------- */
.full-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.full-img.tall { aspect-ratio: 4 / 5; }
.full-img.sq { aspect-ratio: 1 / 1; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 72vh;
}
.hero .hero-text {
  padding: 56px var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  gap: 24px;
  order: 2;
}
.hero .hero-img {
  min-height: 420px;
  background-size: cover;
  background-position: center 20%;
  order: 1;
}
.hero h1 { max-width: 14ch; }
.hero p { max-width: 42ch; }
.hero .meta {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero .meta div {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.hero .meta div strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

@media (min-width: 900px) {
  .hero .hero-grid { grid-template-columns: 5fr 7fr; }
  .hero .hero-text { padding: 80px 64px; order: 1; }
  .hero .hero-img { order: 2; min-height: 72vh; }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.link-arrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--pink-deep); border-color: var(--pink-deep); }
.link-arrow::after { content: ' →'; letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 10vw, 120px) 0; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head h2 { margin: 10px 0 20px; }
.section-head p { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); font-weight: 300; line-height: 1.55; }

/* ---------- Pink strip ---------- */
.pink-strip {
  background: var(--pink);
  padding: 20px 0;
  overflow: hidden;
}
.pink-strip-inner {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.pink-strip-inner span { position: relative; padding-right: 40px; }
.pink-strip-inner span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: 8px;
  color: var(--ink);
  opacity: 0.4;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  display: block;
  color: var(--ink);
  group: product;
  cursor: pointer;
}
.product-card .product-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover img { transform: scale(1.04); }
.product-card .product-info {
  padding: 24px 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.product-card .product-info h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.product-card .product-info .sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.product-card .product-no {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 500;
}

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .product-grid .wide { grid-column: span 2; }
  .product-grid .wide .product-img-wrap { aspect-ratio: 16 / 10; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid .wide { grid-column: span 4; }
  .product-grid > *:not(.wide) { grid-column: span 1; }
}

/* ---------- 94% stat ---------- */
.stat {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat .eyebrow.pink { color: var(--pink-deep); margin-bottom: 40px; }
.stat-number {
  font-size: clamp(130px, 22vw, 240px);
  line-height: 0.85;
  font-weight: 100;
  letter-spacing: -0.06em;
  color: var(--ink);
  display: block;
}
.stat-number sup {
  font-size: 0.32em;
  color: var(--pink-deep);
  font-weight: 300;
  vertical-align: top;
  position: relative;
  top: 0.45em;
  margin-left: -0.1em;
}
.stat-caption {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 300;
  line-height: 1.4;
  max-width: 540px;
  margin: 40px auto 0;
  color: var(--ink-2);
}
.stat-footnote {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- Two-column feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.feature-img img { width: 100%; height: auto; display: block; }
.feature-text h2 { margin-bottom: 24px; }
.feature-text p { margin-bottom: 1em; }
.feature-text .eyebrow { margin-bottom: 20px; }
.feature.reverse .feature-img { order: 2; }
.feature.reverse .feature-text { order: 1; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 6fr 5fr; gap: 80px; }
  .feature.wide-img { grid-template-columns: 7fr 5fr; }
}

/* ---------- Engineering callouts ---------- */
.callouts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.callout .num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--pink-deep);
  margin-bottom: 8px;
}
.callout h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 8px;
  color: var(--ink);
}
.callout p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

@media (min-width: 720px) { .callouts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- Quote blocks ---------- */
.pullquote {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--cream);
}
.pullquote blockquote {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin: 0 auto 32px;
  color: var(--ink);
}
.pullquote blockquote::before { content: '“'; margin-right: 0.08em; }
.pullquote blockquote::after { content: '”'; margin-left: 0.08em; }
.pullquote cite {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  font-style: normal;
}
.pullquote cite strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-style: normal;
}

/* ---------- Press row ---------- */
.press {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}
.press-item {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
}
.press-item .outlet {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.press-item blockquote {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.press-item .source {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.press-item .source a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.press-item .source a:hover { color: var(--pink-deep); border-color: var(--pink-deep); }

@media (min-width: 900px) {
  .press { grid-template-columns: 1fr 1fr; gap: 56px 64px; }
}

/* ---------- Dark section ---------- */
.dark {
  background: var(--ink);
  color: #f5f1ec;
  padding: clamp(60px, 10vw, 120px) 0;
}
.dark h2, .dark h3 { color: #f5f1ec; }
.dark p { color: #c4beb5; }
.dark .eyebrow { color: var(--pink); }
.dark a { color: var(--pink); border-color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c4beb5;
  padding: 80px 0 32px;
}
.site-footer a { color: #c4beb5; transition: color 0.2s; }
.site-footer a:hover { color: var(--pink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #333;
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f5f1ec;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-brand .brandmark img { height: 24px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 36ch; color: #c4beb5; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #867c6d;
}
.footer-bottom nav { display: flex; gap: 28px; }
.social { display: flex; gap: 20px; margin-top: 16px; }
.social a {
  width: 36px; height: 36px;
  border: 1px solid #333;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.social a:hover { background: var(--pink); border-color: var(--pink); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---------- Product page specifics ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--cream);
}
.product-hero .ph-img img { width: 100%; height: auto; display: block; }
.product-hero .ph-text {
  padding: 56px var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.product-hero .ph-text .eyebrow { margin-bottom: 16px; }
.product-hero .ph-text h1 { font-size: clamp(36px, 5.5vw, 56px); margin-bottom: 20px; }
.product-hero .ph-text .lede { margin-bottom: 32px; max-width: 42ch; }
.product-hero .ph-text .status {
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink-deep);
  font-size: 13px;
  color: var(--ink-2);
  max-width: 420px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .product-hero { grid-template-columns: 5fr 4fr; }
  .product-hero .ph-text { padding: 80px 64px; }
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}
.spec-row > div .eyebrow { margin-bottom: 8px; }
.spec-row > div p { font-size: 14px; color: var(--ink); }
@media (min-width: 720px) { .spec-row { grid-template-columns: repeat(4, 1fr); } }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-left: 60px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--pink-deep);
}
.step h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 8px;
  color: var(--ink);
}
.step p { font-size: 14px; color: var(--ink-2); }

@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 200;
  color: var(--pink-deep);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- Problem / solution table ---------- */
.ps-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
}
.ps-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.ps-row .problem {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
}
.ps-row .solution {
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
}
.ps-row .solution::before {
  content: '→';
  color: var(--pink-deep);
  margin-right: 10px;
  font-weight: 500;
}
@media (min-width: 720px) {
  .ps-row { grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
}

/* ---------- Story-specific ---------- */
.story-intro {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 100px) var(--gutter);
}
.story-intro .eyebrow { margin-bottom: 24px; }
.story-intro h1 { margin-bottom: 32px; font-size: clamp(32px, 5vw, 52px); }
.story-intro p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 20px; }
.story-intro p:first-of-type { font-size: 19px; color: var(--ink); }
.story-intro p strong { color: var(--ink); font-weight: 500; }

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
.tl-item { padding: 24px 0; border-top: 1px solid var(--line); }
.tl-item .year {
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--pink-deep);
  margin-bottom: 8px;
}
.tl-item h4 { font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--ink-2); }

@media (min-width: 720px) { .timeline { grid-template-columns: repeat(2, 1fr); gap: 48px 56px; } }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
                transform 0.9s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.mt-md { margin-top: 32px; }
