:root {
  --blue: #0f2d6b;
  --blue-dark: #0a1f4a;
  --cream: #f7f1ec;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--blue-dark); color: #fff; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo bar floats over the two tiles */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: center;
  padding: 22px var(--gutter); pointer-events: none;
}
.brand {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #fff; color: var(--blue); padding: 10px 18px; border-radius: 4px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.03em;
}

/* Two big image buttons */
.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.tile {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, #1a4aa8 0%, var(--blue) 55%, var(--blue-dark) 100%);
  isolation: isolate;
}
.tile-cafe { background: linear-gradient(160deg, #8a6b4d 0%, #4a3626 100%); }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s ease;
}
.tile::before { /* dark gradient so the text is always readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 31, 74, .85) 0%, rgba(10, 31, 74, .35) 45%, rgba(10, 31, 74, .05) 100%);
  transition: opacity .3s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile-body { display: grid; gap: 12px; padding: clamp(28px, 5vw, 64px); max-width: 620px; }
.tile-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.tile-title { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.tile-cta {
  justify-self: start; margin-top: 8px; display: inline-flex; gap: 10px; align-items: center;
  background: #fff; color: var(--blue); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 4px; transition: background .15s, transform .15s;
}
.tile:hover .tile-cta, .tile:focus-visible .tile-cta { background: var(--cream); transform: translateX(4px); }
.tile:focus-visible { outline: 4px solid #3b82f6; outline-offset: -4px; }
.tile + .tile { border-left: 2px solid #fff; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--gutter); font-size: 14px; background: var(--blue-dark); color: #cfd9ef;
}
.foot a { text-decoration: none; font-weight: 600; color: #fff; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; min-height: 0; }
  .tile { min-height: 62vh; min-height: 62svh; }
  .tile + .tile { border-left: 0; border-top: 2px solid #fff; }
  .top { padding-top: 14px; }
  .brand { font-size: 17px; padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img, .tile-cta { transition: none; }
}
