:root {
  --bg: #070a10;
  --glass: rgba(255, 255, 255, .072);
  --glass-strong: rgba(255, 255, 255, .105);
  --line: rgba(255, 255, 255, .16);
  --line-soft: rgba(255, 255, 255, .085);
  --text: #f7f9fc;
  --muted: #a7b0bf;
  --accent: #79aef2;
  --accent-bright: #c8e0ff;
  --green: #67dda3;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(65, 126, 217, .23), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(41, 101, 171, .2), transparent 34%),
    linear-gradient(145deg, #090d15 0%, #05070b 48%, #0b111b 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(circle at 54% 44%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 54% 44%, #000 0%, transparent 72%);
}
.backdrop::after {
  content: ""; position: absolute; width: 62vw; height: 62vw; left: 27vw; top: 18vh;
  border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
  border: 1px solid rgba(163, 205, 255, .08);
  background: radial-gradient(circle at 35% 28%, rgba(141,197,255,.1), rgba(44,92,166,.025) 45%, transparent 68%);
  filter: blur(1px); transform: rotate(-14deg);
  animation: liquid-turn 28s ease-in-out infinite alternate;
}
.backdrop span { position: absolute; border-radius: 50%; filter: blur(105px); opacity: .34; }
.backdrop span:first-child { width: 45vw; height: 45vw; top: -24vw; right: -2vw; background: #3178df; animation: drift-one 17s ease-in-out infinite alternate; }
.backdrop span:last-child { width: 38vw; height: 38vw; bottom: -21vw; left: -5vw; background: #1552a0; animation: drift-two 22s ease-in-out infinite alternate; }

.topbar {
  position: fixed; inset: 14px 18px auto; z-index: 20;
  min-height: 60px; padding: 0 clamp(18px, 2.7vw, 36px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  -webkit-backdrop-filter: blur(34px) saturate(185%);
  backdrop-filter: blur(34px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 48px rgba(0,0,0,.22);
}
.topbar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255,255,255,.12), transparent 28%, transparent 72%, rgba(129,181,255,.055)); }
.topbar-public .live { grid-column: 2; }
.live { position: relative; display: flex; align-items: center; gap: 12px; color: #bcc5d1; font-size: .75rem; letter-spacing: .075em; text-transform: uppercase; }
.live span + span:not(.live-dot)::before { content: "/"; margin-right: 12px; color: #596678; }
.live .clock-link + span::before { content: "/"; margin-right: 12px; color: #596678; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(103,221,163,.75); }
.clock-link { position: relative; z-index: 2; padding: 7px 9px; margin: -7px -9px; border-radius: 10px; color: #eef5ff; text-decoration: none; transition: background .25s, box-shadow .25s; }
.clock-link:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.back-home { position: relative; z-index: 2; justify-self: start; padding: 9px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d4dbe5; background: rgba(255,255,255,.05); font-size: .74rem; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.topbar-spacer { justify-self: end; width: 74px; }

.page-shell { position: relative; z-index: 2; min-height: 100svh; padding: 88px 18px 18px; display: grid; grid-template-columns: minmax(310px, 34vw) 1fr; gap: 18px; }
.identity {
  position: sticky; top: 88px; align-self: start; height: calc(100svh - 106px);
  padding: clamp(38px, 5vw, 76px) clamp(24px, 4vw, 64px) 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; border: 1px solid var(--line); border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035) 52%, rgba(98,153,225,.055));
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  backdrop-filter: blur(40px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), 0 30px 75px rgba(0,0,0,.26);
}
.identity::before { content: ""; position: absolute; width: 82%; height: 34%; left: 4%; top: -21%; border-radius: 50%; background: rgba(255,255,255,.17); filter: blur(36px); transform: rotate(-9deg); pointer-events: none; }
.identity-copy { position: relative; z-index: 2; padding-top: clamp(18px, 4vh, 52px); }
.overline { margin: 0 0 25px; color: var(--accent-bright); font-size: .75rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.overline span { color: #69768a; }
h1 { margin: 0; font-size: clamp(4.1rem, 7.1vw, 8.2rem); line-height: .79; letter-spacing: -.075em; font-weight: 590; text-shadow: 0 12px 42px rgba(0,0,0,.24); }
h1 span { color: var(--accent); text-shadow: 0 0 28px rgba(121,174,242,.26); }
.descriptor { margin: clamp(28px, 5vh, 52px) 0 0; color: #bec7d3; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.55; }
.monogram { position: absolute; right: -4vw; bottom: 3vh; color: transparent; font-size: clamp(18rem, 37vw, 44rem); font-weight: 800; line-height: .7; letter-spacing: -.12em; -webkit-text-stroke: 1px rgba(182,218,255,.14); filter: drop-shadow(0 0 28px rgba(72,141,230,.09)); user-select: none; }
.identity-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #8591a2; font-size: .75rem; letter-spacing: .12em; }

.directory { min-width: 0; padding: clamp(36px, 4vw, 64px) clamp(12px, 4vw, 66px) 54px; }
.directory-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: clamp(42px, 5vw, 68px); }
.directory-head .overline { margin-bottom: 12px; }
h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.7rem); line-height: .9; letter-spacing: -.058em; font-weight: 560; text-shadow: 0 10px 34px rgba(0,0,0,.2); }
.directory-head > p { max-width: 285px; margin: 0 0 5px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.group + .group { margin-top: 58px; }
.group-title { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; margin-bottom: 15px; }
.group-title span, .group-title i { color: #7e8b9e; font-size: .72rem; letter-spacing: .1em; font-style: normal; text-transform: uppercase; }
.group-title h3 { margin: 0; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.cards { display: grid; gap: 14px; }
.cards-personal { grid-template-columns: 1.25fr 1fr; }
.cards-work { grid-template-columns: 1fr 1fr; }
.contact-card {
  --mx: 50%; --my: 0%;
  position: relative; min-width: 0; min-height: 190px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045) 48%, rgba(84,137,207,.055));
  -webkit-backdrop-filter: blur(34px) saturate(185%);
  backdrop-filter: blur(34px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.18);
  text-decoration: none; isolation: isolate;
  transition: transform .36s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.24), transparent 58%); opacity: .56; transition: opacity .3s; }
.contact-card::after { content: ""; position: absolute; z-index: -2; width: 210px; height: 210px; right: -105px; bottom: -125px; border-radius: 50%; background: linear-gradient(135deg, #8fc4ff, #3c78d3); filter: blur(48px); opacity: .08; transition: opacity .35s, transform .45s; }
.contact-card:hover { transform: translateY(-5px) scale(1.012); border-color: rgba(198,225,255,.34); background: linear-gradient(145deg, rgba(255,255,255,.145), rgba(255,255,255,.055) 54%, rgba(94,155,237,.085)); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 24px 60px rgba(0,0,0,.25); }
.contact-card:hover::before { opacity: .92; }
.contact-card:hover::after { opacity: .2; transform: translate(-10px,-8px) scale(1.1); }
.contact-card.featured { background: linear-gradient(145deg, rgba(125,181,250,.2), rgba(255,255,255,.06) 52%, rgba(61,112,183,.12)); border-color: rgba(180,216,255,.26); }
.contact-card.compact { min-height: 132px; }
.contact-card.wide { min-height: 150px; }
.card-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(210,231,255,.24); border-radius: 13px; color: var(--accent-bright); background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 9px 24px rgba(0,0,0,.14); font-size: .75rem; font-weight: 700; }
.contact-card small { position: absolute; top: 27px; left: 75px; right: 48px; overflow: hidden; color: #aab5c4; font-size: .75rem; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.contact-card strong { max-width: 100%; overflow: hidden; color: #f5f8fc; font-size: clamp(1.12rem, 1.9vw, 1.72rem); font-weight: 440; line-height: 1.13; letter-spacing: -.035em; text-overflow: ellipsis; text-shadow: 0 8px 24px rgba(0,0,0,.24); }
.contact-card.compact strong, .contact-card.wide strong { white-space: nowrap; }
.contact-card > i { position: absolute; top: 27px; right: 23px; color: #8895a7; font-size: 1rem; font-style: normal; transition: color .25s, transform .25s; }
.contact-card:hover > i { color: var(--accent-bright); transform: translate(3px,-3px); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes drift-one { to { transform: translate3d(-7vw, 7vh, 0) scale(1.12); } }
@keyframes drift-two { to { transform: translate3d(9vw, -6vh, 0) scale(.9); } }
@keyframes liquid-turn { to { transform: translate3d(3vw,-3vh,0) rotate(15deg) scale(1.08); border-radius: 60% 40% 38% 62% / 42% 60% 40% 58%; } }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .identity { position: relative; top: auto; height: auto; min-height: 440px; }
  .monogram { right: -2vw; bottom: -7vw; font-size: 55vw; }
  .identity-footer { margin-top: 70px; }
  .directory { padding-top: 56px; }
}

@media (max-width: 680px) {
  .backdrop::before { background-size: 54px 54px; }
  .topbar { inset: 10px 12px auto; min-height: 58px; padding: 0 14px; grid-template-columns: auto 1fr; }
  .topbar-public { grid-template-columns: 1fr; }
  .topbar-public .live { grid-column: 1; justify-self: center; }
  .live { justify-self: end; font-size: .69rem; }
  .topbar-spacer { display: none; }
  .back-home { padding: 8px 11px; font-size: .68rem; }
  .page-shell { padding: 80px 12px 12px; gap: 12px; }
  .identity { min-height: 360px; padding-top: 35px; border-radius: 26px; }
  h1 { font-size: clamp(3.9rem, 19vw, 6.2rem); }
  .descriptor { margin-top: 26px; }
  .identity-footer { margin-top: 52px; }
  .directory { padding: 42px 6px 42px; }
  .directory-head { align-items: start; margin-bottom: 48px; padding: 0 6px; }
  .directory-head > p { display: none; }
  .cards-personal, .cards-work { grid-template-columns: 1fr; }
  .contact-card, .contact-card.compact, .contact-card.wide { min-height: 126px; border-radius: 22px; }
  .contact-card strong { font-size: 1.22rem; white-space: nowrap; }
  .desktop-break { display: none; }
  .group + .group { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop span, .backdrop::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .contact-card, .contact-card::before, .contact-card::after, .contact-card > i { transition: none; }
}
