/* Theme tokens */
:root {
  --bg: #ffffff;
  --fg: #113369;
  --muted: #475569;
  --card: #8499af;
  --accent: #6992e9;
  --ring: rgba(65, 121, 212, 0.4);
  --radius: 14px;
  --maxw: 1080px;
  --blur: 6px;
  --stop: 80%;
  --feather: 8%;
}

/* Dark theme (auto) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1f1f;
    --fg: #8bc1ff;
    --muted: #aeaeae;
    --card: #16161e;
    --accent: #84c3ff;
    --ring: rgba(174, 174, 174, 0.4);
  }
}

/* Base & reset */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Layout */
.wrap { max-width: var(--maxw); margin: 0px auto; padding: 28px 28px; }
.wrap p {font-size: 12px; color: var(--muted); margin: 6px 0 6px; }
main { max-width: var(--maxw); margin: 0px auto; padding: 28px 28px 28px; }

/* Header / Nav */
/*header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}*/

/*header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: -40px;
  height: calc(100% + 60px); 

  background: color-mix(in oklab, var(--bg), transparent 5%);

  -webkit-mask-image: linear-gradient(to bottom, black 100%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 38%, transparent 100%);

  pointer-events: none;
  z-index: 1;
} */

/*header > * {
  position: relative;
  z-index: 2;
}*/



.progressive-blur {
  position: sticky; 
  top: 0; 
  isolation: isolate;
  padding: 42px 28px;
  --step: 25;
}

.progressive-blur .blur-layer {
  position: absolute; 
  inset: 0; 
  pointer-events: none;
  z-index: 0;

  background: --bg;

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(var(--stop) - var(--feather)),
    transparent var(--stop)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(var(--stop) - var(--feather)),
    transparent var(--stop)
  );
}

.progressive-blur > *:not(.blur-layer) {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky; 
  top: 0; 
  z-index: 99;
  background: --bg;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.topbar::before {
  content: "";
  position: absolute; 
  left: 0; 
  right: 0; 
  top: 0; 
  bottom: 0px;
  height: calc(100% + 30px);
  background: color-mix(in oklab, #193e5e, transparent 40%);
  -webkit-mask-image: linear-gradient(to bottom, black 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 1; /* behind */
}
.topbar > * { position: relative; z-index: 1; }

.topbar .topbar-inner {
  max-width: var(--maxw); 
  margin: 0px auto;
  display: flex;
  align-items: center; 
  gap: 16px; 
  justify-content: space-between;
}
.topbar .topbar-inner p { 
  font-size: 12px; 
  color: var(--muted); 
  margin: 0px 0 6px; 
}

.topbar .topbar-inner nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.brand { font-weight: 700; letter-spacing: .2px; }
.navlinks { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card), transparent 40%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklab, black, transparent 85%);
}


/* Hero */
.hero {
  display: grid;
  padding-bottom: 28px;
  gap: 15px;
  grid-template-columns: 1fr min(38vw, 420px);
  align-items: top;
  place-items: center;
  
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 18px 0px;
}
.hero p { color: var(--muted); margin: 6px 0 0; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px color-mix(in oklab, var(--accent), transparent 75%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px color-mix(in oklab, var(--accent), transparent 70%); }

/* Sections */
.section { margin-top: 48px; }
.section h2 { font-size: 22px; margin: 0 0 8px; }

.with-dash {
  margin-bottom: 0.25rem;
}

.with-dash::after{
  content: "";
  padding:1px;
  display: block;
  width: 3rem;
  margin-top: 0.2rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.muted { color: var(--muted); }

/* Grids & Cards */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 18px;
}
.card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--muted), transparent 90%);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 0px;
  transition: transform .15s ease, box-shadow .15s ease;
  --width-max: 100%;
  max-width: var(--width-max);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklab, black, transparent 85%);
}

.face {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--muted), transparent 90%);
  border-radius: var(--radius);
  padding: 0px;
  display: grid;
  gap: 0px;
  max-width: 150px;
  place-items: center;
}

.thumb {
  --thumb-ar: 16 / 9;
  aspect-ratio: var(--thumb-ar);
  width: 100%;
  max-width: var(--thumb-max);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--accent), transparent 80%),
      transparent 85%);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
}
.photos { max-width: var(--maxw); margin: 0px auto;}
.photos .thumb  {margin-top: 24px;}
.photos p {font-size: 14px; color: var(--muted); margin: 24px 0 0px; }

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .card {
    justify-self: start;
  }
} 
/* Tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px dashed color-mix(in oklab, var(--muted), transparent 50%);
}


/* Footer */
footer {
  border-top: 1px solid color-mix(in oklab, var(--muted), transparent 80%);
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Responsiveness */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
