/* Hero section: background canvas, bento navigation grid and tiles.
   The hero top padding must clear the absolutely-positioned header at
   every breakpoint. */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 136px 0 70px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255,250,240,.92) 0%, rgba(228,220,205,.78) 52%, rgba(255,250,240,.5) 100%),
    url("../images/background.jpg") center / cover;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(18,25,34,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,25,34,.14) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

#case-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .82;
  pointer-events: none;
}

.bento-nav {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.15fr .75fr .75fr;
  grid-template-rows: 1.2fr .82fr .82fr;
  gap: var(--bento-gap);
  perspective: 1200px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255,250,240,.1);
  color: #fff;
  min-width: 0;
  transform-style: preserve-3d;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(18, 25, 34, .18),
    0 16px 34px rgba(18, 25, 34, .18);
  transition: transform .36s var(--ease), background .36s ease, box-shadow .36s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .7;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(208,183,121,.28), transparent 36%);
  pointer-events: none;
}

.tile:hover,
.tile:focus-visible {
  background: rgba(255,250,240,.14);
  box-shadow:
    inset 0 0 0 1px rgba(18, 25, 34, .32),
    0 18px 38px rgba(18, 25, 34, .2);
  outline: none;
}

.tile-main {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--tile-pad);
  background: linear-gradient(145deg, rgba(255,250,240,.92), rgba(228,220,205,.78));
  color: var(--ink);
}

.tile-main::before {
  display: none;
}

.tile-main:hover,
.tile-main:focus-visible {
  background: linear-gradient(145deg, rgba(255,250,240,.92), rgba(228,220,205,.78));
  box-shadow:
    inset 0 0 0 1px rgba(18, 25, 34, .18),
    0 16px 34px rgba(18, 25, 34, .18);
  transform: none;
}

.tile-main .kicker { color: var(--claret); }

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: 0;
}

.intro {
  max-width: 650px;
  margin: 28px 0 0;
  color: #45413c;
  font-size: 18px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(18, 25, 34, .18);
  margin-top: 42px;
}

.quick-facts div {
  padding: 18px 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.tile-link {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: 39px 1fr;
  align-items: start;
  gap: var(--bento-gap);
  padding: var(--tile-pad);
}

.tile-link > span:last-child {
  align-self: end;
  min-height: 128px;
  display: grid;
  align-content: end;
}

.tile-link h2,
.tile-link h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.tile-link h2 { font-size: clamp(30px, 3vw, 42px); }
.tile-link h3 { font-size: 29px; }
.tile-link p {
  max-width: 330px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}

.arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px currentColor;
  color: currentColor;
  transition: transform .36s var(--ease), background .36s ease, color .36s ease;
}

.tile:hover .arrow {
  background: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--navy);
}

.tile-photo img {
  position: absolute;
  inset: 0;
  filter: grayscale(12%) contrast(1.04);
  transform: scale(1.04);
  transition: filter .9s ease;
}

.tile-photo .tile-link {
  background: linear-gradient(180deg, rgba(18,25,34,.06), rgba(18,25,34,.86));
}

/* Photo tiles dim on hover — no zoom, no brightening. */
.tile-photo:hover img { filter: grayscale(12%) contrast(1.04) brightness(.6); }
.tile-wide { grid-column: span 2; background: linear-gradient(135deg, #17202b, rgba(23, 32, 43, .72)); }
.tile-small { background: linear-gradient(135deg, rgba(208,183,121,.46), rgba(255,250,240,.08)); }
.tile-muted { background: linear-gradient(135deg, rgba(113,128,111,.62), rgba(123,146,164,.24)); }

@media (max-width: 1050px) {
  .hero { padding-top: 242px; }

  .bento-nav {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .tile-main,
  .tile-wide {
    grid-column: span 2;
    grid-row: auto;
  }

  .tile-link { min-height: 250px; }
}

@media (max-width: 680px) {
  .hero-wrap { width: min(100% - 24px, 1240px); }

  .hero { padding-top: 214px; padding-bottom: 44px; }
  .bento-nav { grid-template-columns: 1fr; }
  .tile-main,
  .tile-wide { grid-column: auto; }
  h1 { font-size: 40px; }
  .intro { font-size: 16px; }
  .quick-facts { grid-template-columns: 1fr; }
}
