:root {
  --bg: #f6f3ee;
  --ink: #16181d;
  --muted: #6b6f78;
  --line: #e4dfd6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}
.bg__blob--1 { width: 48vmax; height: 48vmax; top: -20vmax; right: -12vmax; background: #ffb27a; animation: float1 24s ease-in-out infinite alternate; }
.bg__blob--2 { width: 40vmax; height: 40vmax; bottom: -18vmax; left: -14vmax; background: #8fe3d6; animation: float2 28s ease-in-out infinite alternate; }
.bg__blob--3 { width: 34vmax; height: 34vmax; top: 35%; left: 40%; background: #b7c0ff; opacity: 0.4; animation: float3 32s ease-in-out infinite alternate; }

@keyframes float1 { to { transform: translate(-14vw, 16vh) scale(1.1); } }
@keyframes float2 { to { transform: translate(16vw, -14vh) scale(1.15); } }
@keyframes float3 { to { transform: translate(-22vw, -12vh) scale(0.9); } }

/* Fine dot pattern, fading out towards the edges */
.bg__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 24, 29, 0.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 85%);
  animation: dots 40s linear infinite;
}
@keyframes dots { to { background-position: 220px 110px; } }

/* ---------- Top bar ---------- */
.topbar {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.topbar__date { color: var(--muted); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 88px) 16px 56px;
}
.hero { margin-bottom: clamp(32px, 6vh, 56px); max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: #f26a1b;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  --accent: #f26a1b;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 60%, #fff) 0%, transparent 55%),
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Big decorative icon */
.card__bg-icon {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 230px;
  height: 230px;
  color: rgba(255, 255, 255, 0.14);
  transform: rotate(-8deg);
  transition: transform 0.7s var(--ease), color 0.5s var(--ease);
  pointer-events: none;
}

.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.icon { width: 28px; height: 28px; }
.card__num { font-weight: 600; font-size: 0.9rem; opacity: 0.75; letter-spacing: 0.08em; }

.card__body { margin-top: auto; position: relative; }
.card__name { margin: 0 0 6px; font-size: 1.65rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.card__desc { margin: 0; opacity: 0.85; font-size: 1rem; max-width: 26ch; }

.card__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.card__cta { font-weight: 600; font-size: 1rem; }
.card__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  transition: transform 0.5s var(--ease);
}
.arrow { width: 20px; height: 20px; transition: transform 0.5s var(--ease); }

/* Hover / focus */
a.card:hover,
a.card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 30px 50px -20px color-mix(in srgb, var(--accent) 80%, transparent);
}
a.card:hover .card__bg-icon,
a.card:focus-visible .card__bg-icon { transform: rotate(0deg) scale(1.12) translate(-14px, -10px); color: rgba(255, 255, 255, 0.22); }
a.card:hover .card__icon,
a.card:focus-visible .card__icon { background: #fff; color: var(--accent); transform: rotate(-8deg); }
a.card:hover .card__go,
a.card:focus-visible .card__go { transform: scale(1.1); }
a.card:hover .arrow,
a.card:focus-visible .arrow { transform: rotate(45deg); }
a.card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a.card:active { transform: translateY(-3px) scale(0.985); }

/* Not linked yet */
.card--disabled { cursor: not-allowed; filter: saturate(0.75); }
.card--disabled .card__cta {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; translate: 0 28px; }
.is-ready .reveal { animation: reveal 0.85s var(--ease) var(--d, 0ms) forwards; }
@keyframes reveal { to { opacity: 1; translate: 0 0; } }

.notice { color: var(--muted); }

.footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 230px; padding: 22px; border-radius: 24px; }
  .card__bg-icon { width: 170px; height: 170px; }
  .card__name { font-size: 1.45rem; }
  .bg__blob { filter: blur(60px); }
  .topbar__date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}
