/* =========================================================================
   Blog (/blog/) — featured stories + recent news list.
   Three equal story cards (first one ink + "Featured"), every image shown in
   full inside a 4:3 well, nothing cropped or overlapping; list = tidy rows.
   Loaded after product.css.
   ========================================================================= */

/* ---------- featured stories ---------- */
.news-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, .75rem + 1.5vw, 1.75rem); align-items: stretch; }
@media (min-width: 640px) { .news-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-feature .news-card--lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .news-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); } .news-feature .news-card--lead { grid-column: auto; } }
/* reset the older "lead spans two rows" layout so all three cards share one row and one height */
.news-feature { grid-template-rows: none; grid-auto-rows: auto; }
.news-feature .news-card--lead { grid-row: auto; }
.news-feature .news-card { height: 100%; }

/* whole card is clickable through its title link */
.news-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.news-card h3 a { color: inherit; text-decoration: none; background: none; }

.news-feature .news-card {
  position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; gap: 0;
  padding: clamp(.6rem, .4rem + .8vw, .85rem); border-radius: var(--r-card, 26px);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.news-feature .news-card:hover { transform: translateY(-6px); box-shadow: var(--lift, 0 40px 70px -40px rgba(0, 0, 0, .5)); border-color: var(--line-strong); }

/* image well: full picture, never cropped */
.news-feature .news-card__media {
  display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; min-height: 0;
  border-radius: var(--r-media, 22px); background: var(--white); box-shadow: none; overflow: hidden;
}
.news-feature .news-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* text block */
.news-feature .news-card h3 {
  margin: 0; padding: clamp(1rem, .8rem + 1vw, 1.5rem) clamp(.5rem, .3rem + .8vw, .9rem) 0; border: 0;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; color: var(--ink);
}
.news-feature .news-card > div { padding: 1rem clamp(.5rem, .3rem + .8vw, .9rem) clamp(.6rem, .5rem + .6vw, .9rem); }
.news-feature .news-card:hover h3 { color: var(--ink); }

/* lead = ink card, white copy, "Featured" pill over the image */
.news-feature .news-card--lead { background: var(--ink); border-color: var(--ink); }
.news-feature .news-card--lead::before {
  content: "Featured"; position: absolute; z-index: 2; top: clamp(1.1rem, 1rem + .6vw, 1.5rem); left: clamp(1.1rem, 1rem + .6vw, 1.5rem);
  padding: .3rem .8rem; border-radius: 999px; background: var(--amber); color: var(--ink);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.news-feature .news-card--lead h3, .news-feature .news-card--lead:hover h3 { color: #fff; }
.news-feature .news-card--lead .arrow-link { color: #fff; }
.news-feature .news-card--lead .arrow-link .circle { border-color: rgba(255, 255, 255, .4); }
.news-feature .news-card--lead:hover .arrow-link .circle { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ---------- recent news ---------- */
.news-list { margin: 0; padding: 0; list-style: none; border-top: 0; display: grid; gap: .5rem; }
.news-row {
  position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: clamp(.9rem, .6rem + 1.2vw, 1.5rem);
  padding: .65rem clamp(.65rem, .4rem + 1vw, 1.1rem) .65rem .65rem; margin: 0;
  border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 20px;
  transition: background .35s, border-color .35s, transform .5s var(--ease), box-shadow .5s;
}
.news-row::after { content: none; }
.news-row:hover { background: var(--white); border-color: var(--line-strong); transform: translateX(4px); box-shadow: 0 24px 48px -36px rgba(0, 0, 0, .35); }
.news-row__thumb { width: 5.5rem; height: 4.25rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { margin: 0; font-size: clamp(.98rem, .93rem + .3vw, 1.15rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.news-row:hover h3 { color: var(--ink); }
.news-row__num { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.news-row__num::after {
  content: "↗"; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink); font-size: .95rem; line-height: 1;
  transition: background .3s, border-color .3s, transform .5s var(--ease);
}
.news-row:hover .news-row__num::after { background: var(--amber); border-color: var(--amber); transform: rotate(45deg); }

/* article sidebar reuses the rows: compact, no index/arrow */
.article-aside .news-row { grid-template-columns: 3.5rem minmax(0, 1fr); padding: .5rem; }
.article-aside .news-row__thumb { width: 3.5rem; height: 3.5rem; }
.article-aside .news-row__num { display: none; }
.article-aside .news-row h3 { font-size: .9rem; }

/* sticky heading column */
.section--surface .split { align-items: start; }
.section--surface .split__aside .h2 { max-width: 10ch; }

/* ---------- small screens ---------- */
@media (max-width: 639.98px) {
  .news-row { grid-template-columns: 4.25rem minmax(0, 1fr); padding: .55rem; }
  .news-row__thumb { width: 4.25rem; height: 3.5rem; }
  .news-row__num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .news-row, .news-row:hover, .news-feature .news-card:hover { transform: none; transition: none; }
}

/* =========================================================================
   Contact — photo fills the empty space under the details in the ink panel
   ========================================================================= */
.contact-panel__info { display: flex; flex-direction: column; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.contact-panel__info > *:not(.watermark) { position: relative; z-index: 1; }
.contact-panel__info > .watermark { position: absolute; z-index: 0; }
.contact-panel__photo {
  position: relative; flex: 1 1 auto; min-height: clamp(13rem, 10rem + 12vw, 20rem); margin: 0; margin-top: auto;
  border-radius: var(--r-media, 22px); overflow: hidden; background: rgba(255, 255, 255, .06);
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .7);
}
.contact-panel__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s var(--ease); }
.contact-panel__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(12, 12, 12, .45), transparent 55%); }
.contact-panel:hover .contact-panel__photo img { transform: scale(1.04); }
@media (max-width: 1023.98px) { .contact-panel__photo { flex: none; min-height: 0; aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .contact-panel__photo img { transition: none; } }
