@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream: #FAF6F0;
  --ivory: #F5EFE6;
  --sand: #EDE3D3;
  --espresso: #2E1F16;
  --espresso-soft: #4A3528;
  --terracotta: #A8593A;
  --terracotta-dark: #8A4530;
  --gold: #C69856;
  --sage: #9AA583;
  --muted: #7A6A5C;
  --line: rgba(46, 31, 22, 0.12);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(168, 89, 58, 0.05), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(154, 165, 131, 0.05), transparent 55%);
  overflow-x: clip;
}

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: 92px; }

a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--terracotta-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }

p { color: var(--espresso-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  color: var(--espresso-soft);
  max-width: 62ch;
  line-height: 1.7;
}

.divider {
  width: 56px;
  height: 1px;
  background: var(--terracotta);
  margin: 1.5rem auto;
  border: none;
}

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--espresso);
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand:hover { color: var(--terracotta); }
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--espresso);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--espresso);
  padding: 0.25rem 0.5rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  text-align: center;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168, 89, 58, 0.25); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); transform: translateY(-1px); }

/* ============ Hero ============ */
.hero {
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}
.hero-copy { min-width: 0; }
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.5rem; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 55ch;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-mark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(340px, 42vw, 580px);
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(46, 31, 22, 0.35),
              0 12px 24px -12px rgba(168, 89, 58, 0.25);
  transform: translateZ(0);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 31, 22, 0) 55%, rgba(46, 31, 22, 0.35) 100%);
  pointer-events: none;
}
.hero-visual-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  right: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ============ Section heads ============ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 5vw, 4rem); }
.section-head .lead { margin: 1.25rem auto 0; }
.section-head .divider { margin: 1.25rem auto 0; }

/* ============ Backgrounds ============ */
.bg-ivory { background: var(--ivory); }
.bg-sand { background: var(--sand); }
.bg-espresso {
  background: var(--espresso);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.bg-espresso::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1600&q=60&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
}
.bg-espresso > .container { position: relative; z-index: 1; }
.bg-espresso h1, .bg-espresso h2, .bg-espresso h3, .bg-espresso h4 { color: var(--cream); }
.bg-espresso p { color: rgba(250, 246, 240, 0.78); }
.bg-espresso .eyebrow { color: var(--gold); }

/* ============ Brand story (pillars) ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.25rem;
  margin-top: 3rem;
}
.pillar {
  text-align: center;
  padding: 0 1rem;
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
  display: block;
}
.pillar h3 { margin-bottom: 0.75rem; font-style: italic; }

/* ============ Coffees ============ */
.coffees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.coffee-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.coffee-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.coffee-card.swagruha::before { background: linear-gradient(90deg, var(--gold), #e7c98a); }
.coffee-card.sangam::before { background: linear-gradient(90deg, var(--terracotta), #d27a55); }
.coffee-card.swara::before { background: linear-gradient(90deg, var(--espresso), var(--terracotta)); }
.coffee-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(46, 31, 22, 0.09); }
.coffee-card h3 {
  font-style: italic;
  font-size: 2.1rem;
  color: var(--terracotta);
  margin-bottom: 0.15rem;
  font-weight: 500;
}
.coffee-tag {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: block;
}

/* ============ Differentiators ============ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.diff-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.diff-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--terracotta);
  line-height: 1;
  flex-shrink: 0;
  font-weight: 400;
}
.diff-item h4 { margin-bottom: 0.5rem; }
.diff-item p { font-size: 0.95rem; }

/* ============ About / Founder ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}
.about-grid p + p { margin-top: 1rem; }

.founder-card {
  background: var(--ivory);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--terracotta);
  position: relative;
}
.founder-card .eyebrow { color: var(--terracotta); }
.founder-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--espresso);
  margin: 0.25rem 0 0.5rem;
}
.founder-role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.founder-card p + p { margin-top: 1rem; }

/* ============ Pull quote / tagline meaning ============ */
.pullquote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.pullquote .sanskrit {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-weight: 400;
}
.pullquote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--espresso-soft);
  line-height: 1.6;
}
.pullquote .meaning {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.feeling-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--cream);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}
.feeling-quote .accent { color: var(--gold); }

/* ============ Footer ============ */
.site-footer {
  background: var(--espresso);
  color: rgba(250, 246, 240, 0.85);
  padding: 5rem 0 2rem;
}
.site-footer h3, .site-footer h4 { color: var(--cream); }
.site-footer p { color: rgba(250, 246, 240, 0.78); font-size: 0.95rem; line-height: 1.7; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer a { color: rgba(250, 246, 240, 0.85); }
.site-footer a:hover { color: var(--gold); }
.footer-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.55);
}

/* ============ Page banner (inner pages) ============ */
.page-banner {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-banner .lead { margin: 1.25rem auto 0; }

/* ============ Brewing guide ============ */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .guide-layout { grid-template-columns: 220px 1fr; gap: 4.5rem; }
}
/* Let the content column shrink below the ratio table's min-width;
   the table then scrolls inside its own wrapper instead of blowing
   out the whole page on small screens */
.guide-content { min-width: 0; }
.guide-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.guide-toc h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-weight: 600;
}
.guide-toc ol {
  list-style: none;
  border-left: 1px solid var(--line);
}
.guide-toc li { margin: 0; }
.guide-toc a {
  display: block;
  padding: 0.45rem 0 0.45rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all .2s ease;
}
.guide-toc a:hover, .guide-toc a.active {
  color: var(--terracotta);
  border-left-color: var(--terracotta);
}

.guide-section { margin-bottom: 4.5rem; scroll-margin-top: 96px; }
.guide-section > h2 { margin-bottom: 0.5rem; }
.guide-section > .lead { margin-bottom: 2rem; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.method-card {
  background: var(--ivory);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.method-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 31, 22, 0.06); }
.method-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-right: 0.4rem;
}
.method-card h3 { margin-bottom: 0.4rem; }
.method-card .descriptors {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}
.method-card .examples {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}
.method-card .examples strong { color: var(--espresso); font-weight: 600; letter-spacing: 0; }
.method-card .choose-if {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--espresso-soft);
}
.method-card .choose-if strong { color: var(--terracotta); font-weight: 600; }

/* Roast / Filter / Grind cards reuse method-card */

/* Brewing ratios table */
.ratios-table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; -webkit-overflow-scrolling: touch; }
.ratios-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.ratios-table th, .ratios-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ratios-table th {
  background: var(--ivory);
  font-family: var(--serif);
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.02em;
}
.ratios-table tr:last-child td { border-bottom: none; }
.ratios-table tr:hover td { background: rgba(168, 89, 58, 0.03); }
.ratios-table .ratio {
  font-family: 'Courier New', monospace;
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}

.tip-box {
  background: linear-gradient(135deg, var(--ivory), var(--sand));
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
}
.tip-box strong {
  color: var(--terracotta);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.tip-box p { color: var(--espresso-soft); }

.guide-help {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
}
.guide-help p { margin-bottom: 0.5rem; }
.guide-help p:last-child { margin-bottom: 0; }

/* ============ Consultancy ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--cream);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(46, 31, 22, 0.07); }
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 1;
}
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p { font-size: 0.96rem; }

/* CTA strip */
.cta-strip {
  background: var(--espresso);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
}
.cta-strip h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-strip p { color: rgba(250, 246, 240, 0.8); max-width: 55ch; margin: 0 auto 2rem; }
.cta-strip .btn-primary { background: var(--gold); color: var(--espresso); }
.cta-strip .btn-primary:hover { background: #d8a967; color: var(--espresso); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.75rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 34px -20px rgba(46, 31, 22, 0.35);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
    align-items: flex-start;
    z-index: 1;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-toggle { display: block; }
  /* Brand and toggle stay above the sliding panel */
  .brand, .nav-toggle { position: relative; z-index: 2; }
}

/* Utilities */
.text-center { text-align: center; }

/* ============ Imagery ============ */
.pillar-image {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 30px -10px rgba(46, 31, 22, 0.25);
  border: 3px solid var(--cream);
  outline: 1px solid var(--line);
}
.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coffee-card .coffee-image {
  position: relative;
  margin: -2.75rem -2.25rem 1.75rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory);
}
.coffee-card .coffee-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.coffee-card:hover .coffee-image img { transform: scale(1.04); }

.about-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.75rem;
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 40px -16px rgba(46, 31, 22, 0.25);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.founder-portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid var(--cream);
  box-shadow: 0 10px 20px -8px rgba(46, 31, 22, 0.3);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Page banner with image */
.page-banner {
  position: relative;
  overflow: hidden;
}
.page-banner.has-image {
  background: var(--espresso);
  color: var(--cream);
  border-bottom: none;
}
.page-banner.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  z-index: 0;
}
.page-banner.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 31, 22, 0.55), rgba(46, 31, 22, 0.85));
  z-index: 1;
}
.page-banner.has-image .container { position: relative; z-index: 2; }
.page-banner.has-image h1,
.page-banner.has-image .eyebrow { color: var(--cream); }
.page-banner.has-image .eyebrow { color: var(--gold); }
.page-banner.has-image .lead { color: rgba(250, 246, 240, 0.85); }
.page-banner.has-image h1 em { color: var(--gold); font-style: italic; }

/* Wide figures inside guide sections */
.guide-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.75rem 0 2rem;
  aspect-ratio: 16 / 7;
  box-shadow: 0 18px 40px -16px rgba(46, 31, 22, 0.25);
}
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Method-card image (brewing guide) */
.method-card .card-image {
  aspect-ratio: 16 / 10;
  margin: -2rem -2rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--cream);
}
.method-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.method-card:hover .card-image img { transform: scale(1.03); }

/* Service-card image */
.service-card .card-image {
  aspect-ratio: 16 / 10;
  margin: -2.25rem -2.25rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .card-image img { transform: scale(1.03); }

/* ============ Mobile fine-tuning ============ */
@media (max-width: 640px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 3.25rem 0; }
  .section-tight { padding: 2.5rem 0; }

  /* Lighter images on small screens */
  .page-banner.has-image::before {
    background-image: var(--banner-image-sm, var(--banner-image));
  }
  .bg-espresso::before {
    background-image: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=800&q=55&auto=format&fit=crop');
  }
  .guide-figure { aspect-ratio: 16 / 10; }

  h1 { font-size: clamp(2.1rem, 8.5vw, 2.75rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { max-width: none; }
  .hero-mark { width: 280px; right: -80px; opacity: 0.04; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
  .hero-visual { max-width: 100%; aspect-ratio: 5 / 4; }

  .pillars { gap: 2rem; margin-top: 2rem; }
  .pillar { padding: 0; }
  .pillar-image { width: 96px; height: 96px; }

  .coffee-card { padding: 2rem 1.75rem; }
  .coffee-card .coffee-image { margin: -2rem -1.75rem 1.5rem; }
  .coffee-card h3 { font-size: 1.8rem; }

  .diff-item { padding: 1.25rem; gap: 0.9rem; }
  .diff-num { font-size: 1.75rem; }

  .founder-card { padding: 1.75rem 1.5rem; }
  .founder-name { font-size: 1.45rem; }

  .pullquote { padding: 2.25rem 0.5rem; }

  .footer-grid { gap: 2.25rem; margin-bottom: 2rem; }
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }

  .cta-strip { margin: 0; padding: 2.5rem 1.25rem; }

  .method-card { padding: 1.75rem; }
  .method-card .card-image { margin: -1.75rem -1.75rem 1.25rem; }

  .service-card { padding: 1.75rem; }
  .service-card .card-image { margin: -1.75rem -1.75rem 1.25rem; }

  .guide-toc { display: none; }
  .guide-layout { gap: 0; }
  .guide-section { margin-bottom: 3rem; }

  .ratios-table th, .ratios-table td { padding: 0.75rem 0.85rem; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  .brand { font-size: 1.3rem; letter-spacing: 0.14em; }
  .btn { padding: 0.75rem 1.4rem; font-size: 0.9rem; }
}

/* Larger tap targets for nav links on mobile */
@media (max-width: 820px) {
  .nav-links a {
    display: block;
    padding: 0.6rem 0;
    width: 100%;
    font-size: 1.05rem;
  }
  .nav-toggle { padding: 0.5rem 0.65rem; min-height: 44px; min-width: 44px; }
  .site-header { background: rgba(250, 246, 240, 0.96); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
