/* Sophie's Bureau — editorial redesign
   Palette preserved from current site, cloud/watercolour stripped out. */

:root {
  --cream: #faf8f5;
  --sand: #f3ecdf;
  --sand-deep: #e8dcc4;
  --sand-line: #d9cdb4;
  --charcoal: #2c2c2c;
  --charcoal-soft: #3a3a38;
  --ink-60: rgba(44, 44, 44, 0.62);
  --ink-40: rgba(44, 44, 44, 0.42);
  --ink-15: rgba(44, 44, 44, 0.15);
  --ink-08: rgba(44, 44, 44, 0.08);
  --gold: #a07845;
  --gold-warm: #f1d4a0;
  --teal: #5b8a8a;
  --teal-light: #7aaba5;
  --teal-deep: #4a7575;
  /* Accent — used wherever charcoal was being used as a dark fill/border.
     Calmer & brighter than charcoal; sits naturally with cream + sand. */
  --accent: #5b8a8a;
  --accent-deep: #466e6e;
  --accent-soft: rgba(91, 138, 138, 0.18);
  --on-accent: #faf8f5;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent any unwanted horizontal scrolling on mobile.
   Some sections use width:100vw with negative margins for full-bleed bands;
   that pattern can cause overflow on mobile if a child overflows. */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg, iframe { max-width: 100%; }

/* ── Fixed nav offset ──────────────────────────────
   The site nav is position:fixed, so add padding-top on body
   to push all content below it. Nav is 84px on desktop, 68px on mobile.
   scroll-padding-top ensures anchor links land below the nav, not behind it. */
html { scroll-padding-top: 100px; }
body { padding-top: 84px; }
@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  body { padding-top: 68px; }
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ── Type scale ─────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.eyebrow-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-60);
}

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
}

.h-block {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.12;
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--charcoal);
}

.body-lg { font-size: 18px; line-height: 1.6; color: var(--charcoal); }
.body    { font-size: 15.5px; line-height: 1.62; color: var(--charcoal); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-60); }
.tag     {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ── Layout ─────────────────────────────────────────── */
.shell { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.shell-narrow { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 40px; }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-loose { padding: 128px 0; }

.hairline { height: 1px; background: var(--ink-15); border: 0; margin: 0; }
.hairline-strong { height: 1px; background: var(--charcoal); border: 0; margin: 0; }

/* Section heading row: index number + title side by side */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--ink-15);
  margin-bottom: 56px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  padding-top: 10px;
}
.section-head .head-body { max-width: 720px; }
.section-head .h-section { margin-bottom: 16px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--charcoal);
  border-radius: 2px;
  transition: all .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 2px 14px 2px 14px;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-text {
  padding: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: none;
}
.btn-text:hover { color: var(--gold); border-color: var(--gold); }

.btn .arrow {
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Cards ─────────────────────────────────────────── */
.card-sand {
  background: var(--sand);
  border: 1px solid var(--sand-line);
  padding: 32px;
}
.card-cream {
  background: var(--cream);
  border: 1px solid var(--ink-15);
  padding: 32px;
}
.asym { border-radius: 2px 24px 2px 24px; }

/* Image / placeholder treatment */
.editorial-img {
  background: var(--sand-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sand-line);
}
.editorial-img.warm-tone img {
  filter: sepia(0.25) saturate(0.88) contrast(0.97) brightness(1.03) hue-rotate(-6deg);
}
.editorial-img-link {
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
}
.editorial-img-link img {
  transition: transform .5s ease, filter .35s ease;
}
.editorial-img-link:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.editorial-img-link:hover .label {
  color: var(--gold);
}
.editorial-img-link .label::after {
  content: " →";
  opacity: 0;
  transition: opacity .25s ease;
  display: inline-block;
  margin-left: 4px;
}
.editorial-img-link:hover .label::after { opacity: 1; }
.editorial-img .label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: rgba(250,248,245,.8);
  padding: 4px 8px;
  border-radius: 1px;
}

/* ── Glyph circle marker (for pillars, packages) ─────── */
.glyph {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
  display: inline-block;
}
.glyph-lg { font-size: 44px; }

/* ── Forms ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-40);
  padding: 10px 0;
  outline: none;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--charcoal);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error input, .field-error textarea { border-bottom-color: #b94a3c; }
.field .err { color: #b94a3c; font-size: 12px; }

/* ── Misc ─────────────────────────────────────────── */
.divider-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-40);
}
.divider-mark::before, .divider-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-15);
}

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border: 1px solid var(--ink-15);
  border-radius: 3px;
  color: var(--ink-60);
}

/* Inverse blocks — use the accent (muted teal) instead of charcoal */
.inverse {
  background: var(--accent);
  color: var(--cream);
}
.inverse .body, .inverse .lede, .inverse h1, .inverse h2, .inverse h3 { color: var(--cream); }
.inverse .eyebrow, .inverse .eyebrow-num, .inverse .body-sm, .inverse .tag { color: rgba(250,248,245,.65); }
.inverse .hairline { background: rgba(250,248,245,.18); }
.inverse .field input, .inverse .field textarea {
  color: var(--cream);
  border-bottom-color: rgba(250,248,245,.35);
}
.inverse .field input:focus, .inverse .field textarea:focus { border-bottom-color: var(--cream); }
.inverse .field label { color: rgba(250,248,245,.55); }

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

/* Scroll lock helper */
html { scroll-behavior: smooth; }

/* Selection */
::selection { background: var(--gold-warm); color: var(--charcoal); }

/* ── Responsive ─────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .shell, .shell-narrow { padding: 0 28px; }
  .section { padding: 72px 0; }
  .section-loose { padding: 96px 0; }
  .section-head {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .h-display { font-size: clamp(40px, 6vw, 72px); }
  .h-section { font-size: clamp(30px, 4vw, 48px); }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell, .shell-narrow { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-loose { padding: 72px 0; }
  .section-tight { padding: 48px 0; }

  .h-display {
    font-size: 40px;
    line-height: 1.05;
  }
  .h-section {
    font-size: 28px;
    line-height: 1.12;
  }
  .h-block { font-size: 22px; }
  .lede { font-size: 18px; }
  .body-lg { font-size: 16px; }

  /* Section heads stack */
  .section-head {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 32px;
    padding-top: 16px;
  }
  .section-head .num { padding-top: 0; }

  /* Buttons fill width by default on mobile */
  .btn { padding: 14px 18px; font-size: 14px; }

  /* Hide desktop nav links + lang toggle on mobile.
     The burger button (rendered by Nav) takes over. */
  .nav-links { display: none !important; }
  .lang-toggle { display: none !important; }
  .nav-cta-compact { display: none !important; }
  .nav-burger { display: inline-flex !important; }

  /* Force the sticky nav to be solid + bordered from the start on mobile —
     transparent-until-scrolled looks broken on small screens because the hero
     content shows through the bar as it scrolls past. */
  .site-nav {
    background: var(--cream) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--ink-15) !important;
  }
  .site-nav .shell { height: 68px !important; }
  /* Slightly smaller wordmark on mobile so the burger doesn't crowd it */
  .sb-logo-mark { width: 42px !important; height: 42px !important; }
  .sb-logo-word { font-size: 20px !important; }

  /* Force every CSS-grid 80/1fr/Nfr pattern (and similar) to single column.
     Components use inline styles for grids; we override via attribute selector
     wrapping. The classes below give us hooks. */
  .stack-mobile {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .stack-mobile-tight {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pad-left-zero-mobile { padding-left: 0 !important; }
  .indent-collapse-mobile { display: none !important; }

  /* Editorial placeholder rows that use fixed pixel columns */
  .row-collapse-mobile {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Pricing two-column → stack */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pricing-grid > .pricing-index {
    border-right: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--ink-15);
    padding-bottom: 24px;
    margin-bottom: 32px;
  }
  .pricing-grid > .pricing-detail { padding-left: 0 !important; }
  .pricing-detail h3 { font-size: 32px !important; line-height: 1.08 !important; }
  .pricing-feature-list {
    grid-template-columns: 1fr !important;
  }
  .pricing-price-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pricing-price-row > div:nth-child(2) {
    border-left: 0 !important;
    border-top: 1px solid var(--ink-15);
    padding-left: 0 !important;
    padding-top: 16px !important;
  }
  .pricing-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .pricing-index-btn {
    grid-template-columns: auto 1fr auto !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }
  .pricing-index-btn h4 { font-size: 17px !important; }

  /* Pillar rows */
  .pillar-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  .pillar-row .pillar-meta {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .pillar-items > li {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
/* Testimonials body */
  .testimonial-quote { font-size: 20px !important; line-height: 1.4 !important; }
  /* Hide the thin bar markers on mobile.
     They're 4px tall (poor tap target) and 8 x 36px overflows
     narrow viewports, causing horizontal drift. The mono "01/08"
     counter plus prev/next buttons carry navigation cleanly. */
  .testimonial-controls button[aria-label^="Testimonial"] {
    display: none !important;
  }
  .testimonial-controls .mono {
    margin-left: 0 !important;
  }

  /* About */
  .about-head-grid,
  .about-body-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .about-portrait { max-width: 280px; }

  /* Testimonials grid */
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Positioning copy */
  .positioning-copy {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 32px !important;
  }

  /* Articles */
  .article-featured {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .article-featured h3 { font-size: 28px !important; line-height: 1.1 !important; }
  .article-grid,
  .article-secondary {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .archive-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 24px 0 !important;
  }
  .archive-row .editorial-img { aspect-ratio: 16/10 !important; }

  /* Hero meta row */
  .hero-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .hero-headline-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 48px !important;
  }
  .hero-plates {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 56px !important;
  }
  .hero-plates > .editorial-img { aspect-ratio: 16/10 !important; }
  .intro-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Positioning stats */
  .positioning-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .positioning-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .positioning-stats .serif { font-size: 36px !important; }

  /* Contact */
  .contact-head-grid,
  .contact-body-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .contact-name-grid,
  .contact-form-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Footer */
  .footer-cols,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-accred,
  .footer-accreds {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .footer-colophon {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
  }

  /* Filter pill row in archive */
  .archive-filters { gap: 6px !important; }
  .archive-filters button { padding: 6px 12px !important; font-size: 12px !important; }
}



/* ── Article body typography ─────────────────────── */
.article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.65; color: var(--charcoal); }
.article-body p { margin: 0 0 1.4em; color: var(--charcoal); }
/* The first element in a body should not push itself away from the hero.
   Articles opening with a <p> already have no top margin; ones opening with a
   heading were getting 96px of section padding plus a 2em heading margin. */
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.18; letter-spacing: -0.008em; margin: 2.2em 0 0.6em; color: var(--charcoal); }
.article-body h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.005em; margin: 2em 0 0.5em; color: var(--charcoal); }
.article-body h4 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; margin: 1.8em 0 0.4em; }
.article-body a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-soft); transition: border-color .15s ease; }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body strong, .article-body b { font-weight: 600; }
.article-body em, .article-body i { font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article-body ul li, .article-body ol li { margin: 0 0 .5em; }
.article-body ul li p, .article-body ol li p { margin: 0; }
.article-body figure { margin: 2.2em 0; }
.article-body figure img { width: 100%; height: auto; display: block; border-radius: 2px; }
.article-body figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-60); text-align: center; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--charcoal-soft); }
.article-body hr { border: 0; height: 1px; background: var(--ink-15); margin: 3em 0; }
.article-body code { font-family: var(--mono); font-size: 0.92em; background: var(--ink-08); padding: 2px 6px; border-radius: 2px; }

/* ── Article FAQ ─────────────────────────────────
   Two presentations:
     - Default (non-JS, server-rendered): static <dl> styling.
     - .article-faq--accordion (after JS enhancement): clickable items.
*/
.article-body .article-faq { margin: 2.4em 0 1em; padding: 0; border-top: 1px solid var(--ink-15); }
/* Static fallback (no JS / before enhancement) */
.article-body .article-faq:not(.article-faq--accordion) dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  padding: 28px 0 12px;
  margin: 0;
}
.article-body .article-faq:not(.article-faq--accordion) dd {
  margin: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--ink-15);
  color: var(--charcoal);
}
.article-body .article-faq dd p:last-child { margin-bottom: 0; }
.article-body .article-faq:not(.article-faq--accordion) dd:last-child { border-bottom: none; }
.article-body .article-faq dd p { margin: 0 0 1em; }

/* Accordion (after JS enhancement) */
.article-body .article-faq--accordion { display: block; }
.article-body .article-faq__item {
  border-bottom: 1px solid var(--ink-15);
}
.article-body .article-faq__item:last-child { border-bottom: none; }
.article-body .article-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  transition: color .15s ease;
}
.article-body .article-faq__q:hover { color: var(--gold); }
.article-body .article-faq__q-text { flex: 1; }
.article-body .article-faq__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink-15);
  color: var(--ink-60);
  flex: none;
  transition: transform .25s ease, border-color .15s ease, color .15s ease;
}
.article-body .article-faq__q[aria-expanded="true"] .article-faq__chev {
  transform: rotate(180deg);
  border-color: var(--gold);
  color: var(--gold);
}
.article-body .article-faq__q:hover .article-faq__chev {
  border-color: var(--gold);
  color: var(--gold);
}
.article-body .article-faq__a { padding: 0 0 22px; color: var(--charcoal); }
.article-body .article-faq__a-inner { padding-top: 4px; }
.article-body .article-faq__a-inner p { margin: 0 0 1em; }
.article-body .article-faq__a-inner p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .article-body .article-faq__q { font-size: 18px; padding: 18px 0; gap: 16px; }
  .article-body .article-faq__a { padding-bottom: 18px; }
}
.article-body pre { font-family: var(--mono); background: var(--charcoal); color: var(--cream); padding: 20px; overflow-x: auto; border-radius: 2px; font-size: 14px; line-height: 1.55; }

.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; display: block; }

.article-meta-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.article-meta-row .mono { font-size: 11px; letter-spacing: .12em; color: var(--ink-60); text-transform: uppercase; }
.article-cat-pill { display: inline-block; padding: 5px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 2px; }

@media (max-width: 768px) {
  .article-body { font-size: 17px; }
}

/* ── Case study: moodboard, gallery, lightbox ─────────────── */
/* Both blocks "break out" of the 720px article-body column to a wider frame.
   Technique: width is set to a viewport-relative value, then negative left margin
   pulls the left edge back. Since the article-body is centered (margin: 0 auto),
   shifting equally on both sides is equivalent to: width = X, margin-left = (parent-width - X)/2. */
.article-body .cs-moodboard,
.cs-moodboard,
.cs-gallery-block {
  width: min(1100px, calc(100vw - 48px));
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
  position: relative;
  left: 0;
}
.article-body .cs-moodboard { margin-top: 3em; margin-bottom: 3em; }
.cs-moodboard { margin-top: 3em; margin-bottom: 3em; }
.cs-gallery-block { margin-top: 3.6em; margin-bottom: 2em; }
.cs-moodboard-frame {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--ink-15);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .2s ease;
}
.cs-moodboard-frame:hover { border-color: var(--ink-30); }
.cs-moodboard-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-gallery-block {
  width: min(1100px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
}
.cs-gallery-head { margin-bottom: 28px; }
.cs-gallery-head .eyebrow-num { margin-bottom: 8px; }
.cs-gallery-head h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--charcoal);
}
.cs-gallery {
  display: grid;
  gap: 24px;
}
.cs-gallery-four { grid-template-columns: repeat(4, 1fr); }
.cs-gallery-three { grid-template-columns: repeat(3, 1fr); }
.cs-gallery-two { grid-template-columns: repeat(2, 1fr); }
.cs-gallery-one { grid-template-columns: 1fr; }
.cs-gallery-item { margin: 0; }
.cs-gallery-frame {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--sand);
  border: 1px solid var(--ink-15);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: border-color .2s ease, transform .3s ease;
}
.cs-gallery-frame:hover { border-color: var(--ink-30); }
.cs-gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s ease;
}
.cs-gallery-frame:hover img { transform: scale(1.02); }

/* Aspect variants for full-page screenshots that need more vertical room */
.cs-gallery-aspect-tall .cs-gallery-frame { aspect-ratio: 3/4; }
.cs-gallery-aspect-tall .cs-gallery-frame img { object-fit: cover; object-position: top center; }
.cs-gallery-aspect-page .cs-gallery-frame { aspect-ratio: 1/2; }
.cs-gallery-aspect-page .cs-gallery-frame img { object-fit: cover; object-position: top center; }
.cs-gallery-aspect-natural .cs-gallery-frame { aspect-ratio: auto; background: transparent; }
.cs-gallery-aspect-natural .cs-gallery-frame img { object-fit: contain; height: auto; width: 100%; }
.cs-gallery-aspect-natural .cs-gallery-item { align-self: start; }

/* Four-up spreads need two columns before they need one */
@media (max-width: 960px) {
  .cs-gallery-four { grid-template-columns: repeat(2, 1fr); }
}
.cs-gallery-aspect-scroll .cs-gallery-frame { aspect-ratio: auto; height: 560px; overflow-y: auto; cursor: ns-resize; }
.cs-gallery-aspect-scroll .cs-gallery-frame img { height: auto; object-fit: contain; }
.cs-gallery-aspect-scroll .cs-gallery-frame:hover img { transform: none; }
.cs-caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-align: left;
}

@media (max-width: 768px) {
  .cs-moodboard, .cs-gallery-block {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
  .cs-gallery-three, .cs-gallery-two, .cs-gallery-four { grid-template-columns: 1fr; }
  .cs-gallery-aspect-scroll .cs-gallery-frame { height: 440px; }
}/* Lightbox */
.cs-lightbox {
  position: fixed; inset: 0;
  background: rgba(28, 28, 26, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  cursor: zoom-out;
  animation: cs-lb-fade .2s ease;
}
@keyframes cs-lb-fade { from { opacity: 0; } to { opacity: 1; } }
.cs-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.cs-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.4);
  color: var(--cream);
  width: 44px; height: 44px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease;
}
.cs-lightbox-close:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 230, 0.08);
}
.cs-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.7);
  text-align: center;
  padding: 0 24px;
}

/* ── Index filter UI ─────────────────────── */
.cat-chip { padding: 8px 16px; font-size: 13px; font-weight: 500; border: 1px solid var(--ink-15); background: transparent; color: var(--charcoal); cursor: pointer; border-radius: 2px; font-family: var(--sans); transition: all .15s; }
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.active { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

.archive-row { display: grid; grid-template-columns: 100px 200px 1fr 60px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--ink-15); align-items: center; transition: background .15s ease; }
.archive-row:hover { background: var(--sand); }
.archive-row .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-deep); }
.archive-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  /* Stack archive rows; show a generous thumbnail above the text */
  .archive-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .archive-row .thumb {
    display: block;
    aspect-ratio: 16/10;
    width: 100%;
    margin-bottom: 4px;
    order: -1; /* image on top */
  }
  .archive-row > .arrow { display: none; }

  /* Featured (latest) hero — stack and let the image breathe */
  .archive-feature {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-bottom: 56px !important;
  }
  .archive-feature > div:first-child { aspect-ratio: 16/10 !important; }
  .archive-feature h2 { font-size: 32px !important; line-height: 1.1 !important; }
}

/* ── Service pillars — unified typography, varied tone & layout ───── */

/* This kills the section's bottom padding so pillar 04 flows straight
   into the next (inverse) section with no gap. */
.section--no-bottom-padding { padding-bottom: 0 !important; }

.pillar-stack {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
}

.pillar {
  position: relative;
  padding: 96px 72px;
  /* Edge-to-edge bands — full viewport width, regardless of .shell */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Tone bands — flush against each other for a continuous flow */
.pillar--cream { background: #f6f1e7; }
.pillar--sage  { background: #dde6dc; }
.pillar--sand  { background: var(--sand); }
.pillar--clay  { background: linear-gradient(180deg, #ebe1d3 0%, #d8c5a4 100%); }

/* The grid: meta column + items column. Reversed pillars swap them. */
.pillar__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.6fr;
  gap: 80px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}
.pillar--reverse .pillar__grid {
  grid-template-columns: 1.6fr minmax(280px, 1fr);
}
.pillar--reverse .pillar__meta {
  grid-column: 2;
  text-align: right;
  align-items: flex-end;
}
.pillar--reverse .pillar__items {
  grid-column: 1;
  grid-row: 1;
}
.pillar--reverse .pillar__sub {
  margin-left: auto;
}

/* Meta column — display number + title + subtitle.
   IDENTICAL TYPOGRAPHY across all 4 pillars. */
.pillar__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 32px;
}
.pillar__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(120px, 14vw, 200px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--charcoal);
  text-stroke: 1px var(--charcoal);
  user-select: none;
  margin-bottom: 28px;
  display: block;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--charcoal);
  margin: 0 0 16px;
  max-width: 380px;
}
.pillar__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
  color: var(--ink-60);
  margin: 0;
  max-width: 380px;
}
.pillar--reverse .pillar__title { margin-left: auto; }

/* Items column — one stacked column, hairline-separated.
   Same in every pillar. */
.pillar__items {
  display: flex;
  flex-direction: column;
}
.pillar-item {
  padding: 28px 0;
  border-top: 1px solid var(--ink-15);
}
.pillar-item:last-child {
  border-bottom: 1px solid var(--ink-15);
}
.pillar-item__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 12px;
}
.pillar-item__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  margin: 0 0 10px;
}
.pillar-item__body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
  margin: 0;
  max-width: 640px;
}

/* Sage and clay tones use slightly stronger borders for contrast */
.pillar--sage .pillar-item,
.pillar--clay .pillar-item {
  border-top-color: rgba(44, 44, 44, 0.18);
}
.pillar--sage .pillar-item:last-child,
.pillar--clay .pillar-item:last-child {
  border-bottom-color: rgba(44, 44, 44, 0.18);
}

/* Mobile collapse */
@media (max-width: 900px) {
  .pillar { padding: 56px 24px; }
  .pillar__grid,
  .pillar--reverse .pillar__grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .pillar--reverse .pillar__meta {
    grid-column: 1;
    text-align: left;
    align-items: flex-start;
  }
  .pillar--reverse .pillar__items {
    grid-column: 1;
    grid-row: auto;
  }
  .pillar--reverse .pillar__title,
  .pillar--reverse .pillar__sub {
    margin-left: 0;
    margin-right: auto;
  }
  .pillar__meta { position: static; }
  .pillar__num {
    font-size: 108px;
    margin-bottom: 16px;
  }
  .pillar__title { font-size: 28px; }
  .pillar__sub { font-size: 17px; }
}


/* ── Mobile burger menu ───────────────────────── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--ink-15);
  border-radius: 2px;
  color: var(--charcoal);
  padding: 0;
}
.nav-burger:hover { border-color: var(--charcoal); }
.nav-burger svg { display: block; }

.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: drawer-fade .2s ease;
}
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 24px;
}
.nav-drawer-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-15);
  border-radius: 2px;
  color: var(--charcoal);
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.nav-drawer-close:hover { border-color: var(--charcoal); }

.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer-list li {
  border-top: 1px solid var(--ink-15);
}
.nav-drawer-list li:last-child {
  border-bottom: 1px solid var(--ink-15);
}
.nav-drawer-list a, .nav-drawer-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.nav-drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
}
.nav-drawer-sub a {
  padding: 10px 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-60);
  border-bottom: 0;
}
.nav-drawer-sub a:hover { color: var(--gold); }

.nav-drawer-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nav-drawer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-drawer-lang a { padding-bottom: 1px; border-bottom: 1px solid transparent; }
.nav-drawer-lang a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Mobile additions: portfolio, hero meta row, etc. ───── */
@media (max-width: 720px) {
  /* Hero meta row: stack and tighten so neither line is "lost".
     Already covered by .hero-meta in main mobile block but make sure both
     items have visual separation. */
  .hero-meta { gap: 14px !important; padding-bottom: 22px !important; margin-bottom: 56px !important; }
  .hero-meta .eyebrow:first-child { font-size: 10.5px; }
  /* Make the tagline line distinct so it doesn't blend with the est-france line */
  .hero-meta .eyebrow:last-child {
    color: var(--gold) !important;
    font-style: italic !important;
    font-family: var(--serif) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  /* Portfolio featured rows: collapse to single column, tighten image */
  .pf-feature, .pf-feature.alt {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 0 !important;
  }
  .pf-feature.alt .pf-feature-img { order: -1 !important; }
  .pf-feature h3 { font-size: 28px !important; line-height: 1.1 !important; }
  .pf-feature-meta { grid-template-columns: 1fr !important; gap: 4px 0 !important; }
  .pf-feature-meta dt { padding-top: 12px; }
  .pf-feature-meta dt:first-of-type { padding-top: 0; }

  /* Generic 3-col grid -> 1 col */
  .pf-grid { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }

  /* Stats / marquee tables */
  .pf-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }

  /* Portfolio header intro grid */
  .archive-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 56px !important;
  }
  .archive-intro-grid .h-display { font-size: 40px !important; line-height: 1.05 !important; }

  /* Portfolio closing CTA grid */
  .pf-cta-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Portfolio stats: tighten cell padding & remove right borders that bleed */
  .pf-stats > div { padding: 20px 14px !important; }
  .pf-stats .serif { font-size: 32px !important; }

  /* Case study at-a-glance */
  .cs-glance, .cs-glance-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Case study prev/next */
  .cs-prev-next {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cs-prev-next a:nth-child(2) { text-align: left !important; }
  /* Generic case-study hero meta row */
  .cs-hero-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Article hero image: don't go beyond viewport */
  .article-hero { aspect-ratio: 16/10 !important; }

  /* Article body images / figures stay in column */
  .article-body img, .article-body figure { max-width: 100% !important; }

  /* About — working style keywords, tighten so wrapped rows aren't airy */
  .working-style-row { gap: 8px 10px !important; line-height: 1.15 !important; }
  .working-style-row > span { font-size: 22px !important; line-height: 1.15 !important; }

  /* Two-column layouts inside article body (e.g. prev/next) */
  .article-body + div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
/* =========================================================
   MOBILE FORMATTING FIXES (append to styles.css)

   Tested against styles.css md5 0a653969efff... (Sophie's
   uploaded 16 May 2026 version, 1302 lines, 39311 bytes).

   Three issues fixed:
   1. Article banner can still feel tall on small phones
      even after the 16/10 aspect-ratio mobile override
   2. BYOD pricing grid doesn't collapse to one column
      below 720px (inline-styled grid in the article HTML)
   3. .controls-table on parental-controls article has no
      CSS at all and falls back to default browser rendering
   ========================================================= */

/* ---- 1. Article hero — cap height on mobile -------------
   The existing mobile rule at line ~1288 already sets
   aspect-ratio: 16/10 !important. This adds a hard pixel
   cap so the banner stays under 240px tall on any phone
   viewport, regardless of width. object-position is
   already 'center' on the desktop rule and inherits. */
@media (max-width: 720px) {
  .article-hero { max-height: 240px !important; }
}

/* ---- 2. Pricing-cards grid (used in BYOD) ---------------
   Article markup uses inline `grid-template-columns:
   1fr 1fr 1fr`, so !important is needed to win the
   cascade on mobile. Requires class="pricing-cards" on
   the grid wrapper div in the article HTML. */
@media (max-width: 720px) {
  .pricing-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pricing-cards h4 { font-size: 20px !important; }
  .pricing-cards ul { font-size: 14px !important; line-height: 1.55 !important; }
  .pricing-cards p { font-size: 14px !important; }
  .pricing-cards [style*="min-height"] { min-height: 0 !important; }
}

/* ---- 3. Controls comparison table -----------------------
   The parental-controls article has <table class="controls-table">
   with data-label attributes on every td and th scope="row"
   for left-column row labels. No CSS currently exists for
   this class. Desktop: standard table. Mobile: each row
   collapses to a labelled card. Uses hex colours throughout
   per project rule about CSS vars in tables. */
.controls-table-wrapper {
  margin: 32px 0;
  overflow-x: auto;
}
.controls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.controls-table caption {
  caption-side: top;
  padding: 0 0 16px;
  font-style: italic;
  font-size: 14px;
  color: #555;
  text-align: left;
}
.controls-table thead th {
  background: #f3ecdf;
  color: #2c2c2c;
  font-weight: 500;
  font-size: 13px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e8dcc4;
  vertical-align: top;
}
.controls-table tbody th {
  background: #faf8f5;
  font-weight: 500;
  width: 22%;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e8dcc4;
  vertical-align: top;
  color: #2c2c2c;
}
.controls-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8dcc4;
  vertical-align: top;
  color: #2c2c2c;
}
.controls-table tbody tr:last-child th,
.controls-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 720px) {
  .controls-table thead { display: none; }
  .controls-table caption { padding-bottom: 12px; font-size: 13px; }
  .controls-table,
  .controls-table tbody,
  .controls-table tr {
    display: block;
    width: 100%;
  }
  .controls-table tr {
    margin-bottom: 16px;
    border: 1px solid #e8dcc4;
    border-radius: 2px;
    overflow: hidden;
  }
  .controls-table tbody th {
    display: block;
    width: auto;
    background: #f3ecdf;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #e8dcc4;
  }
  .controls-table td {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #f3ecdf;
  }
  .controls-table td:last-child { border-bottom: 0; }
  .controls-table td:before {
    content: attr(data-label);
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
    font-weight: 400;
  }
}

/* ── Practice grid — four columns, golden-ratio proportion ─────────
   phi = 1.618. Type: 11 → 16 → 26 (16/phi ≈ 11, 16×phi ≈ 26).
   Rhythm: 16 → 26 → 42 → 68, each step the previous × phi.
   Column gutter 40px; head-to-grid 64px (40 × phi).
   Hex only, no custom properties — vars have failed to resolve here before. */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.practice {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.practice__rule {
  height: 1px;
  background: #d9cdb4;
  margin-bottom: 26px;
}

.practice__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8a8a85;
  margin-bottom: 16px;
}

.practice__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.008em;
  color: #2c2c2c;
  margin: 0 0 16px;
}

.practice__body {
  font-size: 15px;
  line-height: 1.62;
  color: #6f6f6c;
  margin: 0 0 26px;
}

.practice__keys {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #74746d;
  margin: auto 0 26px;   /* pushes keys + link to a shared baseline */
  padding-top: 16px;
  border-top: 1px solid #e6ddcb;
}

/* Keys + link sit on a shared baseline, so the four columns align
   at the foot even when the bodies differ in length. */
.practice__link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a7575;
  border-bottom: 1px solid rgba(74, 117, 117, 0.3);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: border-color .25s ease, color .25s ease;
}
.practice__link:hover { color: #2c2c2c; border-bottom-color: #2c2c2c; }
.practice__link span { display: inline-block; transition: transform .25s ease; }
.practice__link:hover span { transform: translateX(3px); }

@media (max-width: 1040px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 40px; }
}
@media (max-width: 720px) {
  .practice-grid { grid-template-columns: 1fr; gap: 42px; margin-top: 42px; }
  .practice__title { font-size: 24px; }
}

/* ── Offerings strip — three products on the sand band ────────────── */

.shop-band { background: #f3ecdf; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

.shop-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8dcc4;
  margin-bottom: 26px;
}
.shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.shop-card:hover .shop-card__img img { transform: scale(1.03); }

.shop-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  background: #faf8f5;
  color: #2c2c2c;
}
.shop-card__badge--paid { background: #4a7575; color: #faf8f5; }

.shop-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.008em;
  color: #2c2c2c;
  margin: 0 0 16px;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.shop-card:hover .shop-card__title { border-bottom-color: #2c2c2c; }

.shop-card__desc {
  font-size: 15px;
  line-height: 1.62;
  color: #6f6f6c;
  margin: 0 0 26px;
}

.shop-card__meta {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid #ddd2ba;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #74746d;
}

.shop-more { margin-top: 42px; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; gap: 42px; margin-top: 42px; }
  .shop-card__img { aspect-ratio: 16 / 9; }
  .shop-card__title { font-size: 24px; }
  .shop-more { margin-top: 32px; }
}

/* ── MOCKUP: one left edge, and a real heading hierarchy ──────────────
   1. The section counter moves above the eyebrow, so every heading starts
      on the same left edge as the content beneath it. No 112px gutter.
   2. .h-section steps down to a supporting size; .h-section--lead is the
      size the old default used to be, kept for the three sections that
      carry the argument (services, pricing, contact). */

.section-head {
  display: block;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 44, 44, 0.15);
  margin-bottom: 56px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8a8a85;
  padding-top: 0;
  margin-bottom: 14px;
}
.section-head .head-body { max-width: 760px; }

.h-section { font-size: clamp(30px, 2.9vw, 42px); }
.h-section--lead { font-size: clamp(38px, 4.4vw, 62px); }

/* Services: the four rules carry the colour now that the numerals are gone. */
.shop-band .practice__rule { background: #5b8a8a; height: 2px; }
.shop-band .practice__keys { border-top-color: #d9cdb4; }

/* Section heads on the two teal bands take the same structure as the rest. */
.section-head--inverse { border-top-color: rgba(250,248,245,0.18); }
.section-head--inverse .num { color: rgba(250,248,245,0.55); }

/* These three sections hand-rolled the old 80px gutter inline; neutralise
   any leftover grid so .section-head's single column wins. */
.positioning-grid.section-head,
.contact-head-grid.section-head,
.about-head-grid.section-head { display: block; grid-template-columns: none; }

/* A section whose neighbour below shares its background gets less tail space:
   the next section's own top rule does the separating, so the full 72px+96px
   stack reads as a hole rather than a break. */
.section--meets-same { padding-bottom: 40px; }
.section--meets-same .shop-more { margin-top: 32px; }

/* Section-head top line: counter on the left, the section's own link on the
   right. Replaces the short left-aligned tail that used to sit under the
   offerings grid and left a full-width band of dead space behind it. */
.section-head__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.head-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a7575;
  border-bottom: 1px solid rgba(74, 117, 117, 0.3);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: border-color .25s ease, color .25s ease;
}
.head-link:hover { color: #2c2c2c; border-bottom-color: #2c2c2c; }
.head-link span { display: inline-block; transition: transform .25s ease; }
.head-link:hover span { transform: translateX(3px); }
@media (max-width: 560px) {
  .section-head__top { flex-direction: column; align-items: flex-start; gap: 12px; }
}
