/* ============================================================
   Modern layout layer: collage heroes + bento photo tiles.
   ============================================================ */

/* ---------- collage hero (inner pages) ---------- */

.hero-modern {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-modern h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-modern .hero-lede { font-size: 1.1rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-trust div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--brand-violet);
}
.hero-trust div span { font-size: 0.82rem; color: var(--muted); }

.collage {
  position: relative;
  height: 470px;
}
.collage::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -34px;
  right: 18px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.55);
  animation: collage-spin 40s linear infinite;
}
@keyframes collage-spin { to { transform: rotate(360deg); } }
.collage-main,
.collage-sub {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.collage-main {
  inset: 0 72px 64px 0;
  border-radius: 34px 34px 34px 8px;
}
.collage-sub {
  right: 0;
  bottom: 0;
  width: 46%;
  height: 50%;
  border-radius: 28px 28px 8px 28px;
  border: 6px solid var(--paper);
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-out);
}
.collage:hover .collage-main img { transform: scale(1.04); }
.collage-chip {
  position: absolute;
  left: -20px;
  bottom: 96px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-lift);
}
.collage-chip .icon-tile { width: 42px; height: 42px; }
.collage-chip .icon-tile .material-symbols-outlined { font-size: 1.35rem; vertical-align: middle; }
.collage-chip strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.collage-chip span { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 991px) {
  .collage { height: 380px; margin-top: 1rem; }
  .collage-chip { left: 12px; }
}
@media (max-width: 575px) {
  .collage { height: 300px; }
  .collage-main { inset: 0 36px 48px 0; }
  .collage::before { display: none; }
}

/* ---------- editorial split section heading ---------- */

.split-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2.4rem;
}
.split-head h2 { margin: 0.8rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.split-head p { color: var(--ink-soft); margin: 0; }
@media (max-width: 767px) { .split-head { grid-template-columns: 1fr; } }

/* ---------- bento grid of photo tiles ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 250px;
  gap: 1.25rem;
}
.bento--tall { grid-auto-rows: 360px; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-5 { grid-column: span 5; }
.bento .span-6 { grid-column: span 6; }
.bento .span-7 { grid-column: span 7; }
.bento .row-2 { grid-row: span 2; }

@media (max-width: 991px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento > .md-wide { grid-column: span 2 !important; }
}
@media (max-width: 575px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento > .md-wide { grid-column: span 1 !important; }
}

.photo-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  border-radius: 28px 28px 28px 6px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
button.photo-tile {
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.photo-tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 30, 34, 0.42) 0%, rgba(4, 30, 34, 0) 26%, rgba(4, 30, 34, 0.1) 40%, rgba(4, 30, 34, 0.6) 64%, rgba(4, 30, 34, 0.94) 100%);
  transition: background 0.45s;
}
.photo-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.photo-tile:hover > img { transform: scale(1.07); }
.photo-tile:hover::before {
  background: linear-gradient(180deg, rgba(4, 30, 34, 0.45) 0%, rgba(11, 94, 102, 0.15) 26%, rgba(11, 94, 102, 0.62) 58%, rgba(4, 30, 34, 0.96) 100%);
}

.tile-chip {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 14px 4px;
  background: rgba(4, 30, 34, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.tile-chip .material-symbols-outlined { vertical-align: middle; font-size: 1.4rem; }
.tile-num {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-pink);
}
.photo-tile h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.photo-tile.row-2 h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.photo-tile p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin: 0;
  max-width: 46ch;
}
.tile-tag {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.92);
  color: #1f1a08;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
}
.tile-link:hover { color: var(--brand-pink); }
.tile-link .material-symbols-outlined { font-size: 1.1rem; transition: transform 0.25s; }
.photo-tile:hover .tile-link .material-symbols-outlined { transform: translateX(4px); }

/* solid brand tile (no photo) for rhythm inside a bento */
.photo-tile--brand {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(212, 175, 55, 0.35), transparent 60%),
    linear-gradient(150deg, #0c6b74 0%, #0b5e66 45%, #073f45 100%);
}
.photo-tile--brand::before { display: none; }
.photo-tile--brand .big-stat {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.photo-tile--brand .big-stat em { font-style: normal; color: var(--brand-pink); }
