/* Blog list ----------------------------------------- */

.blog-list {
  background: var(--paper);
  padding: clamp(40px, 5vw, 80px) var(--gutter) var(--section);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
@media (max-width: 1000px) { .blog-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .blog-list { grid-template-columns: 1fr; } }

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  opacity: 0.55;
}

.blog-card { display: block; }
.blog-card.is-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
}
.blog-card.is-lead .bc-media { aspect-ratio: 16 / 10; }
.blog-card.is-lead .bc-title { font-size: clamp(28px, 3.4vw, 52px); }
.blog-card.is-lead .bc-excerpt { font-size: clamp(16px, 1.3vw, 18px); }
@media (max-width: 760px) { .blog-card.is-lead { grid-template-columns: 1fr; } }

.bc-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-soft);
  margin-bottom: 20px;
}
.bc-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.bc-link:hover .bc-media img { transform: scale(1.04); }

.bc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 40% 35%, rgba(143,179,154,0.25), transparent 60%),
    linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: var(--paper);
}
.bc-placeholder span {
  font-family: var(--font-display);
  font-size: clamp(96px, 12vw, 200px);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.6;
}

.bc-cat {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(244, 241, 234, 0.92);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.bc-body { display: flex; flex-direction: column; gap: 12px; }

.bc-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.bc-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  transition: color 0.3s;
}
.bc-link:hover .bc-title { color: var(--amber); }

.bc-excerpt {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap 0.3s var(--ease-out);
}
.bc-link:hover .bc-cta { gap: 12px; }


/* Single post --------------------------------------- */

.blog-post {
  background: var(--paper);
}

.post {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 96px) var(--gutter) clamp(64px, 8vw, 120px);
}

.post-head { margin-bottom: clamp(40px, 5vw, 64px); }

.post-head .crumbs {
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 32px;
}
.post-head .crumbs a { color: inherit; }
.post-head .crumbs span { opacity: 0.45; }

.post-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 18ch;
}

.post-lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  opacity: 0.8;
  max-width: 36ch;
  margin: 0 0 32px;
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}
.post-meta .dot-sep { color: var(--amber); }

.post-cover {
  margin: 0 0 clamp(40px, 5vw, 64px);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--paper-soft);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
}
.post-body p { margin: 0 0 24px; }
.post-body p strong { font-weight: 600; }
.post-body p em { color: var(--amber); font-style: italic; }
.post-body h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
}
.post-body h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 36px 0 12px;
}

.post-fig {
  margin: 40px 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-soft);
}
.post-fig img { width: 100%; height: auto; display: block; }

.post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.post-back { color: inherit; transition: color 0.3s; }
.post-back:hover { color: var(--amber); }
.post-share { display: inline-flex; gap: 12px; align-items: center; }
.post-share a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.post-share a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-related {
  background: var(--paper-soft);
  padding: clamp(48px, 6vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
}
.post-related .section-h {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 auto clamp(32px, 4vw, 48px);
  max-width: var(--container);
}
.post-related-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 2vw, 32px);
}
@media (max-width: 760px) { .post-related-grid { grid-template-columns: 1fr; } }

.rel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-out);
}
.rel-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.rel-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.rel-card h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.005em;
}
.rel-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: auto;
}


/* Homepage brands logo wall — editorial, generous, prestigious ---- */

.home-brands {
  background: var(--paper-soft);
  padding: clamp(72px, 9vw, 140px) var(--gutter);
  position: relative;
}

.home-brands-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 3vw, 56px);
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.home-brands-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 14ch;
}
.home-brands-head h2 em { color: var(--amber); font-style: italic; font-weight: 500; }
.home-brands-head .aside {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.65;
  max-width: 320px;
  text-align: right;
}
@media (max-width: 760px) {
  .home-brands-head { grid-template-columns: 1fr; }
  .home-brands-head .aside { text-align: left; }
}

/* Editorial logo grid — generous spacing, no harsh borders, subtle
   guide lines only between rows for a calm rhythm. */
.home-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .home-brands-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .home-brands-grid { grid-template-columns: 1fr; }
}

.brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  /* Generous breathing room — the whole point of a logo wall */
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px);
  min-height: clamp(180px, 22vh, 240px);
  text-decoration: none;
  color: inherit;
  background: transparent;
  /* Hairline guides between cells: right + bottom, but the right border
     of the LAST tile in a row and the bottom border of the LAST ROW
     are hidden via nth-child below. */
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease-out), transform 0.4s var(--ease-out);
  isolation: isolate;
}
.brand-tile:hover {
  background: var(--paper);
  transform: translateY(-2px);
}
/* Right edge: last column has no right border */
.home-brands-grid .brand-tile:nth-child(3n) { border-right: 0; }
@media (max-width: 760px) {
  .home-brands-grid .brand-tile:nth-child(3n) { border-right: 1px solid var(--line); }
  .home-brands-grid .brand-tile:nth-child(2n) { border-right: 0; }
}
@media (max-width: 420px) {
  .home-brands-grid .brand-tile { border-right: 0; }
}

/* Logo image — constrained, grayscale by default, full color on hover */
.brand-tile img {
  display: block;
  max-width: min(220px, 70%);
  max-height: clamp(56px, 7vw, 88px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.brand-tile:hover img { filter: grayscale(0) opacity(1); transform: scale(1.04); }

/* Brand name — always present below the logo, very subtle */
.brand-tile .brand-tile-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s;
}
.brand-tile:hover .brand-tile-label { opacity: 1; color: var(--ink); }

/* Empty state — when no logo uploaded yet */
.brand-tile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brand-tile-empty .brand-monogram {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 0.35;
  transition: opacity 0.4s, color 0.4s;
}
.brand-tile:hover .brand-monogram { opacity: 0.8; color: var(--amber); }
.brand-tile-empty .brand-name-full {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.brand-tile:hover .brand-name-full { opacity: 1; }

/* Foot: clean two-column ribbon under the grid */
.home-brands-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: clamp(28px, 3.5vw, 48px);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.home-brands-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.22em;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.home-brands-foot a:hover { color: var(--amber); gap: 16px; }

/* Homepage blog strip — editorial asymmetric layout ---- */

.home-blog {
  background: var(--paper);
  padding: var(--section) var(--gutter);
  position: relative;
}

.home-blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.home-blog-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
}
.home-blog-head h2 em { color: var(--amber); font-style: italic; font-weight: 500; }
.home-blog-head .all {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.home-blog-head .all:hover { color: var(--amber); gap: 14px; }

/* Asymmetric layout: first card is the feature (large, left-half),
   then two stacked smaller cards on the right. */
.home-blog-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 36px);
  max-width: var(--container);
  margin: 0 auto;
  min-height: clamp(380px, 50vh, 580px);
}
@media (max-width: 900px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
}

.home-blog-grid .hb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  border: 1px solid var(--line);
}
.home-blog-grid .hb-card:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
  border-color: var(--ink);
}

/* First card spans full left column, both rows */
.home-blog-grid .hb-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
}
.home-blog-grid .hb-card:nth-child(1) .hb-media { flex: 1; min-height: 220px; }
.home-blog-grid .hb-card:nth-child(1) .hb-title { font-size: clamp(24px, 2.6vw, 38px); }
.home-blog-grid .hb-card:nth-child(1) .hb-excerpt { display: block; }

/* Side cards: image left, text right (compact horizontal) */
.home-blog-grid .hb-card:nth-child(2),
.home-blog-grid .hb-card:nth-child(3) {
  grid-column: 2;
  flex-direction: row;
  min-height: 0;
}
.home-blog-grid .hb-card:nth-child(2) .hb-media,
.home-blog-grid .hb-card:nth-child(3) .hb-media {
  flex: 0 0 38%;
  min-height: 100%;
}
.home-blog-grid .hb-card:nth-child(2) .hb-body,
.home-blog-grid .hb-card:nth-child(3) .hb-body {
  padding: clamp(20px, 2vw, 28px);
  gap: 8px;
}
.home-blog-grid .hb-card:nth-child(2) .hb-title,
.home-blog-grid .hb-card:nth-child(3) .hb-title {
  font-size: clamp(16px, 1.5vw, 20px);
}
.home-blog-grid .hb-card:nth-child(2) .hb-excerpt,
.home-blog-grid .hb-card:nth-child(3) .hb-excerpt {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

@media (max-width: 900px) {
  .home-blog-grid .hb-card,
  .home-blog-grid .hb-card:nth-child(1),
  .home-blog-grid .hb-card:nth-child(2),
  .home-blog-grid .hb-card:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
  }
  .home-blog-grid .hb-card .hb-media { flex: none; aspect-ratio: 16/10; min-height: 0; }
}

/* Card pieces */
.hb-media {
  position: relative;
  background: var(--leaf-deep);
  overflow: hidden;
}
.hb-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.hb-card:hover .hb-media img { transform: scale(1.05); }

.hb-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 200px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(244, 241, 234, 0.18);
  background:
    radial-gradient(circle at 30% 35%, rgba(143,179,154,0.22), transparent 60%),
    linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
}

.hb-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(244, 241, 234, 0.92);
  color: var(--ink);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hb-tag .no { color: var(--amber); font-weight: 600; }

.hb-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 36px);
}

.hb-meta {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hb-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: inherit;
  transition: color 0.3s;
}
.hb-card:hover .hb-title { color: var(--amber); }

.hb-excerpt {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.78;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}

.hb-cta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: gap 0.3s var(--ease-out);
}
.hb-card:hover .hb-cta { gap: 16px; color: var(--amber); }
