/* ═══════════════════════════════════════════════════════════
   PAPIK · BLOCK COMPONENTS
   Extracted verbatim from the original design HTML files
   (papik/index.html · papik/projecte-k-iturbi.html ·
    papik/article-pressupost-casa-passiva.html ·
    papik/construccio.html).
   Uses tokens declared in tokens.css — does NOT redeclare them.
   Order:
     1. Spacing & utilities (block-margin, bg-warm-*)
     2. block-hero (homepage + service variants)
     3. block-info-repeatable (+ big-text, item__info, item__media)
     4. block-services (services divisions list)
     5. block-categories (categories grid + archive-btn)
     6. block-columns (3-up project grid)
     7. block-info (dark green CTA panel)
     8. block-journal (featured + news cards)
     9. block-process (numbered process list)
    10. block-cta-inv (split contact CTA)
    11. btn-up · btn-close-search
    12. Responsive overrides (@media 900px / 520px)
═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   1 · BLOCK MARGIN · global vertical rhythm
   ───────────────────────────────────────────────────────── */
.spacing,
.block-margin { margin-bottom: 80px; }


/* ─────────────────────────────────────────────────────────
   2 · BG WARM UTILITIES · used on info-repeatable items
   ───────────────────────────────────────────────────────── */
.bg-warm-1 { background: var(--warm-1); }
.bg-warm-2 { background: var(--warm-2); }


/* ─────────────────────────────────────────────────────────
   3 · BLOCK-HERO · full-width cinematic opener
   Used on: homepage, service pages, landings, project pages
   Variants: default, with __eyebrow + __sub (service hero),
             with __cta (homepage), without overlay tint shift
   ───────────────────────────────────────────────────────── */
.block-hero {
  width: 100vw;
  height: 54.6875vw;
  max-height: calc(100vh - 100px);
  position: relative;
  overflow: hidden;
}
.block-hero__media { position: absolute; inset: 0; }
.block-hero__media .ph { position: absolute; inset: 0; }
.block-hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,40,25,.42);
}
/* Service-page variant uses a darker tint */
.block-hero--service .block-hero__overlay,
.block-hero.is-service .block-hero__overlay { background: rgba(0,40,25,.5); }

.block-hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 6vw;
}
.block-hero__eyebrow {font-weight: var(--fw-regular);
  font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #d9e4e0; margin-bottom: 24px;
}
.block-hero__title {
  color: #fff; font-weight: 300;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.08; max-width: 860px;
}
.block-hero__sub {
  color: #d9e4e0;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.65; max-width: 560px; margin-top: 22px;
}
.block-hero__cta {
  margin-top: 48px;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}


/* ─────────────────────────────────────────────────────────
   4 · BLOCK-INFO-REPEATABLE · alternating media/info rows
   Used on: homepage (Construccio + Rehabilitacio rows)
   ───────────────────────────────────────────────────────── */
.block-info-repeatable { position: relative; z-index: 1; }
.block-info-repeatable__item {
  display: flex; min-height: 37.5vw;
}

.item__info {
  width: 40%; padding: 4.6875vw;
  display: flex; flex-direction: column; justify-content: space-between;
}
.item__info__text .tag {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 18px;
  opacity: .65;
}
.item__info__text .big-text {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.18; font-weight: 300;
}
.item__info__text .text {
  font-size: 16px; line-height: 1.65;
  color: var(--muted); margin-top: 20px;
}

.item__media {
  width: 60%; overflow: hidden; position: relative;
}
.item__media .ph { position: absolute; inset: 0; }

/* Alternate order on even rows */
.block-info-repeatable__item:nth-child(even) .item__info  { order: 1; }
.block-info-repeatable__item:nth-child(even) .item__media { order: 0; }

/* Stacked avatar links cluster */
.item__info__link { margin-top: 28px; }
.item__info__link .link_images {
  width: 64px; height: 64px;
  position: relative; display: inline-block;
}
.item__info__link .link_images > div {
  width: 36px; height: 36px; border-radius: 50%;
  position: absolute; top: 0; overflow: hidden;
  border: 2px solid var(--warm-1);
}
.item__info__link .link_images > div:nth-child(1) { left: 0;  z-index: 3; }
.item__info__link .link_images > div:nth-child(2) { left: 16px; z-index: 2; }
.item__info__link .link_images > div:nth-child(3) { left: 32px; z-index: 1; }
.item__info__link .link_images > div .ph { height: 100%; }

.link-wrapper {
  display: flex; align-items: center; gap: 12px;
}
.link-wrapper:hover { opacity: .7; }


/* ─────────────────────────────────────────────────────────
   5 · BLOCK-SERVICES · gif + interactive divisions list
   Used on: homepage
   ───────────────────────────────────────────────────────── */
.block-services { padding: 80px 0; }

.block-services__content {
  display: flex; gap: 0; padding-left: 12.96875vw;
}

.services__gif { width: 44.6875vw; flex-shrink: 0; }
.services__gif .ph {
  height: 29.8vw; border-radius: 8px; transition: opacity .3s;
}

.services__list {
  padding-left: 7.03125vw;
  display: flex; flex-direction: column; justify-content: center;
}
.services__list .label { color: var(--green); font-size: 15px; }
.services__list ul { margin-top: 16px; }
.services__list ul li {
  font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2;
  padding: 6px 0; color: var(--muted-light); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s;
}
.services__list ul li.active { color: var(--green); }
.services__list ul li:hover  { color: var(--green); }
.services__list ul li svg { opacity: 0; transition: opacity .2s; }
.services__list ul li.active svg,
.services__list ul li:hover svg { opacity: 1; }


/* ─────────────────────────────────────────────────────────
   6 · BLOCK-CATEGORIES · 3-tile grid + archive-btn
   Used on: homepage (Serveis section)
   ───────────────────────────────────────────────────────── */
.block-categories {
  padding: 80px 0;
  background: var(--bg-light);
}
.block-categories__title { margin-bottom: 60px; }

.categories-container {
  width: 100%; display: flex; flex-wrap: wrap;
  margin: 0 -1.68vw; width: calc(100% + 3.36vw);
}

.categories__item {
  display: flex; flex-direction: column; align-items: center;
  width: 27.96vw; margin: 0 1.68vw 45px;
  cursor: pointer; transition: opacity .2s;
}
.categories__item:hover { opacity: .6; }

.categories__item img,
.categories__item .ph-cat {
  width: 100%; height: 17.97vw; object-fit: cover;
  border-radius: 8px; margin-bottom: 12px;
}
.categories__item .ph-cat { height: 17.97vw; border-radius: 8px; }
.categories__item__title { font-size: 22px; font-weight: 300; }

.archive-btn {
  display: block; width: max-content; margin: 10px auto 0;
  padding: 10px 24px; background: #d9e4e0; border-radius: 10px;
  font-size: 16px; transition: background .2s, color .2s;
}
.archive-btn:hover { background: #000; color: #fff; }


/* ─────────────────────────────────────────────────────────
   7 · BLOCK-COLUMNS · 3-up project / showroom grid
   Used on: homepage (Projectes recents)
   ───────────────────────────────────────────────────────── */
.block-columns { padding-bottom: 80px; }
.block-columns__title { margin-bottom: 40px; }

.block-columns__repeater {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.block-columns__item { position: relative; }
.block-columns__item .item__media-col {
  height: 18vw; overflow: hidden; position: relative;
  margin-bottom: 18px; border-radius: 8px;
}
.block-columns__item .item__media-col .ph {
  position: absolute; inset: 0; transition: opacity .2s;
}
.block-columns__item:hover .item__media-col .ph { opacity: .82; }
.block-columns__item .title { font-size: 22px; margin-bottom: 8px; }
.block-columns__item .text {
  color: var(--muted); font-size: 15px; line-height: 1.6;
}


/* ─────────────────────────────────────────────────────────
   8 · BLOCK-LOGIN · two account cards
   Used on: homepage (Usuaris area)
   ───────────────────────────────────────────────────────── */
.block-login { padding-bottom: 80px; }
.block-login__content {
  display: flex; gap: 20px; justify-content: center;
}
.block-login__item {
  min-height: 130px; width: 43vw;
  background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; padding: 36px 40px;
  position: relative; transition: border-color .2s; cursor: pointer;
}
.block-login__item:hover { border-color: #000; }
.block-login__item h6 { font-size: 22px; margin-bottom: 12px; }
.block-login__item .link_button {
  display: flex; align-items: center; gap: 4px; font-size: 15px;
}


/* ─────────────────────────────────────────────────────────
   9 · BLOCK-INFO · dark-green half-image CTA panel
   Used on: homepage (Nosaltres section)
   ───────────────────────────────────────────────────────── */
.block-info { padding-bottom: 80px; }
.block-info__content {
  border-radius: 8px;
  padding: 56px 56px 56px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--green);
}
.block-info__text {
  width: 60%; padding: 0 40px 0 56px;
}
.block-info__text h4 {
  color: #fff; font-size: 42px; margin-bottom: 16px;
}
.block-info__text .text {
  color: #d9e4e0;
  font-size: 16px; margin-bottom: 36px;
}
.block-info__image { margin-right: 56px; }
.block-info__image .ph-circle {
  width: 20vw; height: 20vw; border-radius: 50%;
  max-width: 340px; max-height: 340px;
}


/* ─────────────────────────────────────────────────────────
   10 · BLOCK-JOURNAL · featured article + news grid
   Used on: homepage (Actualitat)
   ───────────────────────────────────────────────────────── */
.block-journal { padding-bottom: 0; }

.journal-bar {
  display: flex; align-items: baseline;
  justify-content: space-between; padding-bottom: 28px;
}

/* Featured article */
.featured__item__content {
  display: flex; align-items: center; gap: 40px;
  margin-top: 40px; justify-content: space-between;
}
.featured__item__img { flex-shrink: 0; }
.featured__item__img .ph {
  width: 43vw; height: 27.5vw; border-radius: 8px;
}
.featured__item__text { flex: 1; transition: opacity .2s; }
.featured__item__text:hover { opacity: .75; }
.featured__item__text .categories {
  color: var(--muted); font-size: 16px; margin-bottom: 12px;
}
.featured__item__text .title {
  font-size: 40px; margin-bottom: 12px;
}
.featured__item__text .desc {
  color: var(--muted); font-size: 16px;
}
.featured__item__text .date {
  display: block; color: var(--muted); font-size: 15px; margin-top: 12px;
}

/* Small news cards row */
.other-articles { padding: 80px 0 80px; }
.news-grid {
  display: flex; gap: 30px; margin-top: 10px;
}
.news-card { flex: 1; cursor: pointer; }
.news-card__img {
  width: 100%; height: 14vw;
  overflow: hidden; margin-bottom: 16px; border-radius: 8px;
}
.news-card__img .ph { height: 100%; transition: opacity .2s; }
.news-card:hover .news-card__img .ph { opacity: .82; }
.news-card .category {
  font-size: 11px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; letter-spacing: 0.04em;
}
.news-card h4 {
  font-size: 18px; line-height: 1.35; margin-bottom: 8px;
}
.news-card .news-text { transition: opacity .2s; }
.news-card:hover .news-text { opacity: .7; }


/* ─────────────────────────────────────────────────────────
   11 · BLOCK-PROCESS · numbered phases grid
   Used on: construccio.html, rehabilitacio.html, promocio.html
   ───────────────────────────────────────────────────────── */
.block-process {
  padding: 80px 0; background: var(--bg-light);
}
.block-process__header { margin-bottom: 36px; }
.block-process__tag {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 14px; display: block;
}
.block-process__title {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
}
.block-process__intro {
  font-size: 16px; color: var(--muted); line-height: 1.65;
  max-width: 540px; margin-top: 14px;
}

.process-steps {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.process-step {
  padding: 28px 0; display: flex; gap: 24px; align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.process-step:nth-child(odd)  { padding-right: 5vw; }
.process-step:nth-child(even) { padding-left: 5vw; border-left: 1px solid var(--border); }
.process-step__num {
  font-size: clamp(36px, 3vw, 52px);
  color: var(--border); font-weight: 300;
  line-height: 1; min-width: 64px; flex-shrink: 0;
  letter-spacing: -.02em;
}
.process-step__body { padding-top: 4px; }
.process-step__title {
  font-size: 17px; color: var(--green);
  margin-bottom: 10px; line-height: 1.3; font-weight: 400;
}
.process-step__desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.65; max-width: 360px;
}


/* ─────────────────────────────────────────────────────────
   12 · BLOCK-CTA-INV · split-panel contact form CTA
   Used on: construccio.html, service pages
   (block-cta itself is in components.css — do NOT redeclare)
   ───────────────────────────────────────────────────────── */
.block-cta-inv {
  padding: 80px 0; background: #fff;
}
.block-cta-inv__inner {
  background: var(--green);
  display: flex; align-items: stretch;
  overflow: hidden; border-radius: 8px;
}
.block-cta-inv .cta-left {
  flex: 1; padding: 44px;
}
.block-cta-inv .cta-left .tag {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 20px; display: block;
}
.block-cta-inv .cta-left h2 {
  font-size: clamp(26px, 2.8vw, 40px); color: #fff;
  line-height: 1.12; margin-bottom: 20px;
}
.block-cta-inv .cta-left p {
  font-size: 16px; color: #d9e4e0;
  line-height: 1.65; margin-bottom: 36px; max-width: 400px;
}
.block-cta-inv .cta-confidencial {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.35); margin-top: 20px;
}
.block-cta-inv .cta-right {
  width: 42%; background: rgba(255,255,255,.04);
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}


/* ─────────────────────────────────────────────────────────
   13 · BTN-UP · floating "scroll to top" pill
   (companion to block-margin · footer-adjacent)
   ───────────────────────────────────────────────────────── */
/* Note: `.btn-up` already exists in components.css — keep
   any additional inverse-state hover here if needed. */


/* ─────────────────────────────────────────────────────────
   14 · BTN-CLOSE-SEARCH · header search dismissal pill
   (referenced from header.css search drawer)
   ───────────────────────────────────────────────────────── */
.btn-close-search {
  background: var(--bg-light);
  height: 40px; width: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; border: 0;
  transition: all .2s linear;
}
.header-sticky.search-open .btn-close-search {
  opacity: 1; visibility: visible; transition-delay: .3s;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES · mirror exactly what the source files do
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .spacing,
  .block-margin { margin-bottom: 45px; }

  /* Hero */
  .block-hero { height: 106vw; max-height: 500px; }
  .block-hero__title { font-size: 30px; }

  /* Info repeatable stacks vertically */
  .block-info-repeatable__item { flex-wrap: wrap; }
  .item__info  { width: 100%; order: 1 !important; padding: 6vw 4.8vw; }
  .item__media { width: 100%; order: 0 !important; height: 62vw; }
  .block-info-repeatable__item:nth-child(even) .item__info  { order: 1 !important; }
  .block-info-repeatable__item:nth-child(even) .item__media { order: 0 !important; }

  /* Services */
  .block-services__content {
    flex-direction: column; padding-left: 0; gap: 30px;
  }
  .services__gif { width: 100%; }
  .services__gif .ph { height: 62vw; }
  .services__list { padding-left: 0; }
  .services__list ul li { font-size: 22px; }

  /* Categories grid */
  .categories-container { margin: 0; width: 100%; }
  .categories__item { width: 48%; margin: 0 1% 20px; }
  .categories__item .ph-cat { height: 30vw; }

  /* Columns */
  .block-columns__repeater { grid-template-columns: 1fr; }
  .block-columns__item .item__media-col { height: 56vw; }

  /* Login cards */
  .block-login__content { flex-direction: column; }
  .block-login__item { width: 100%; }

  /* Block-info dark CTA */
  .block-info__content {
    flex-direction: column; padding: 40px 5vw;
    text-align: center;
  }
  .block-info__text { width: 100%; padding: 0 0 30px; }
  .block-info__text h4 { font-size: 28px; }
  .block-info__image { margin: 0; }
  .block-info__image .ph-circle { width: 50vw; height: 50vw; }

  /* Journal */
  .featured__item__content { flex-direction: column; }
  .featured__item__img .ph { width: 100%; height: 56vw; }
  .news-grid { flex-wrap: wrap; gap: 20px; }
  .news-card { width: calc(50% - 10px); flex: none; }
  .news-card__img { height: 30vw; }

  /* Process steps stack to 1 col on tablet down */
  .process-steps { grid-template-columns: 1fr; }
  .process-step:nth-child(odd),
  .process-step:nth-child(even) {
    padding: 28px 0; border-left: 0;
  }

  /* Block-cta-inv stacks */
  .block-cta-inv__inner { flex-direction: column; }
  .block-cta-inv .cta-right { width: 100%; }
}

@media (max-width: 520px) {
  .categories__item { width: 100%; margin: 0 0 20px; }
  .categories__item .ph-cat { height: 56vw; }
  .news-card { width: 100%; }
  .news-card__img { height: 56vw; }
  .block-hero__title { font-size: 26px; }
}


/* ═══════════════════════════════════════════════════════════
   15 · EDITORIAL CARD SYSTEM
   Shared section-head + card-ed pattern used by all
   multi-column blocks (2 / 3 / 4 columns) on the homepage
   and across hubs. Reference: Hermès / Aesop editorial layout.
═══════════════════════════════════════════════════════════ */

/* ─── Section header (eyebrow + 2-col title/lede) ─── */
.section-head {
  margin-bottom: 56px;
}
.section-head__eyebrow {
  margin-bottom: 28px;
}
.section-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.section-head__title {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--text);
  font-weight: var(--fw-light);
  margin: 0;
  text-wrap: balance;
}
.section-head__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: pretty;
}

/* ─── Eyebrow pill (sage on cream) ─── */
.eyebrow-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  line-height: 1;
}

/* ─── Card grid (responsive 2 / 3 / 4 columns) ─── */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ─── Editorial card (shared) ─── */
.card-ed {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-paper),
              border-color var(--t-base) var(--ease-paper),
              box-shadow var(--t-base) var(--ease-paper);
  height: 100%;
}
.card-ed:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: var(--sh-lift);
}

.card-ed__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-light);
}
.card-ed__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-img);
}
.card-ed:hover .card-ed__media img {
  transform: scale(1.04);
}

.card-ed__body {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card-ed__eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  line-height: 1;
  margin-bottom: 2px;
}
.card-ed__title {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.18;
  font-weight: var(--fw-regular);
  color: var(--text);
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
.card-ed__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  /* clamp to 3 lines for visual rhythm */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-ed__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .005em;
}

/* ─── Responsive cascade ─── */
@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section-head__grid { grid-template-columns: 1fr; gap: 20px; }
  .section-head__lede { max-width: none; }
  .card-grid--3,
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card-ed__body { padding: 22px 22px 20px; gap: 12px; }
  .card-ed__title { font-size: 19px; }
}
@media (max-width: 560px) {
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   16 · EDITORIAL HOMEPAGE PRIMITIVES
   Restrained Aesop / Margaret Howell direction.
   Pairs with the .card-grid + .card-ed system.
═══════════════════════════════════════════════════════════ */

/* ─── Page background for homepage (applied via .home on <main>) ─── */
main.home { background: var(--paper); }

/* ─── Eyebrow · microscopic uppercase label (no pill) ─── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #002819;
  line-height: 1;
  margin: 0 0 24px;
}
.eyebrow.center { text-align: center; }

/* ─── Editorial CTA button · pill, dark green, animated arrow ─── */
.btn-ed {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 28px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: var(--fw-regular);
  letter-spacing: .005em;
  transition: transform var(--t-base) var(--ease-paper),
              background var(--t-base) var(--ease-paper);
  border: 0;
  cursor: pointer;
}
.btn-ed::after {
  content: '→';
  display: inline-block;
  font-size: 16px;
  transform: translateX(0);
  transition: transform var(--t-base) var(--ease-paper);
}
.btn-ed:hover { background: var(--ink); }
.btn-ed:hover::after { transform: translateX(4px); }
.btn-ed:active { transform: scale(.985); }

/* ─── Editorial text link with arrow ─── */
.link-ed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: var(--fw-regular);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap var(--t-base) var(--ease-paper);
}
.link-ed::after {
  content: '→';
  transition: transform var(--t-base) var(--ease-paper);
}
.link-ed:hover { gap: 12px; }
.link-ed:hover::after { transform: translateX(2px); }

/* ─── Hero · editorial split (text + portrait image) ─── */
.hero-ed {
  background: var(--paper);
  padding: clamp(56px, 7vw, 112px) 0 clamp(60px, 7vw, 96px);
}
.hero-ed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-ed__title {
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: var(--fw-light);
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-ed__lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 38ch;
}
.hero-ed__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-ed__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}
.hero-ed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-img);
}
.hero-ed:hover .hero-ed__media img { transform: scale(1.02); }

/* ─── Stats band · 4 numbers with hairlines ─── */
.stat-band {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(36px, 4.5vw, 56px) 0;
}
.stat-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.stat__num {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1;
  font-weight: var(--fw-light);
  color: var(--green);
  font-feature-settings: 'tnum';
  letter-spacing: -.02em;
  margin: 0;
}
.stat__label {
  font-size: 13px;
  line-height: 1.45;
  color: #002819;
  letter-spacing: .005em;
  margin: 0;
  max-width: 22ch;
}

/* ─── Feat-spread · editorial feature (image + body, full-width) ─── */
.feat-spread {
  background: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0;
}
.feat-spread .eyebrow { margin-bottom: 40px; }
.feat-spread__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
}
.feat-spread--reverse .feat-spread__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.feat-spread--reverse .feat-spread__body { order: 0; }
.feat-spread--reverse .feat-spread__media { order: 1; }

.feat-spread__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
}
.feat-spread__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-img);
}
.feat-spread:hover .feat-spread__media img { transform: scale(1.02); }

.feat-spread__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feat-spread__title {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.012em;
  font-weight: var(--fw-light);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.feat-spread__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}
.feat-spread__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 8px 0 8px;
}
.feat-spread__meta > div {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.feat-spread__meta dt {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.feat-spread__meta dd {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  font-feature-settings: 'tnum';
}
.feat-spread__cta { margin-top: 8px; }

/* ─── Quote band · single typographic moment on cream ─── */
.quote-band {
  background: var(--cream);
  padding: clamp(80px, 9vw, 132px) 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.quote-band .eyebrow { margin-bottom: 32px; }
.quote-band__quote {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.18;
  letter-spacing: -.012em;
  font-weight: var(--fw-light);
  color: var(--ink);
  text-wrap: balance;
}
.quote-band__quote p { margin: 0; }
.quote-band__cite {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ─── Contact band · restrained CTA ─── */
.contact-band {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: clamp(80px, 10vw, 132px) 0;
  text-align: center;
}
.contact-band__inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact-band .eyebrow { margin-bottom: 28px; }
.contact-band__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.014em;
  font-weight: var(--fw-light);
  color: var(--ink);
  margin: 0 0 20px;
  text-wrap: balance;
}
.contact-band__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 48ch;
}
.contact-band__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ─── Adjust card-grid section spacing for new homepage ─── */
main.home .block-categories,
main.home .block-columns,
main.home .other-articles {
  background: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0;
}
main.home .block-categories { background: var(--cream); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ─── Card surface tuning when on cream/paper sections ─── */
main.home .card-ed { background: #fff; }

/* ─── Responsive cascade ─── */
@media (max-width: 1100px) {
  .stat-band__grid { gap: 32px; }
}
@media (max-width: 900px) {
  .hero-ed__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-ed__media { aspect-ratio: 4 / 3; }
  .hero-ed__title { font-size: clamp(36px, 8vw, 56px); }
  .stat-band__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .feat-spread__grid,
  .feat-spread--reverse .feat-spread__grid { grid-template-columns: 1fr; gap: 28px; }
  .feat-spread--reverse .feat-spread__body { order: 1; }
  .feat-spread--reverse .feat-spread__media { order: 0; }
  .feat-spread__media { aspect-ratio: 4 / 3; }
  .quote-band__quote { max-width: 18ch; }
}
@media (max-width: 560px) {
  .stat-band__grid { gap: 28px 18px; }
  .feat-spread__meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-ed__cta,
  .contact-band__cta { gap: 18px; }
}
