@font-face {
  font-family: Satoshi;
  src: url("assets/satoshi.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
  font-family: Satoshi, Arial, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
}
html[data-theme="white"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100svh;
  background: #000;
  transition: background 260ms var(--ease-out);
}
html[data-theme="white"] body { background: #f5f5f5; }
button { font: inherit; }
.background-art {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("assets/philhq-background.png") center / cover no-repeat;
  transition: filter 260ms var(--ease-out);
}
html[data-theme="white"] .background-art {
  filter: invert(1) grayscale(1) brightness(1.06) contrast(.9);
}
.rain {
  position: fixed;
  z-index: 1;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
  will-change: transform;
}
.theme-toggle {
  position: fixed;
  z-index: 3;
  top: 24px;
  right: 24px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(235, 235, 235, .38);
  border-radius: 999px;
  background: rgba(34, 34, 34, .7);
  color: #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 10px 30px rgba(0, 0, 0, .17);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
body.entered .theme-toggle {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.theme-symbol {
  width: 17px;
  height: 17px;
  display: block;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, #f8f8f8 50%, #353535 50%);
  transition: transform 200ms var(--ease-out);
}
.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
html[data-theme="white"] .theme-toggle {
  border-color: rgba(90, 90, 90, .34);
  background: rgba(255, 255, 255, .78);
  color: #242424;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(70, 70, 70, .14);
}
html[data-theme="white"] .theme-symbol { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { background: rgba(72, 72, 72, .82); }
  html[data-theme="white"] .theme-toggle:hover { background: rgba(255, 255, 255, .95); }
}
.page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.profile-card {
  --heading-glow: rgba(255, 255, 255, .5);
  --shine-x: 24%;
  --shine-y: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(640px, 100%);
  min-height: 392px;
  display: grid;
  place-items: center;
  padding: 40px;
  border-radius: 22px;
  border: 1px solid rgba(245, 245, 245, .38);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .12), transparent 44%),
    linear-gradient(145deg, rgba(58, 58, 58, .82), rgba(23, 23, 23, .86) 48%, rgba(38, 38, 38, .8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 -22px 34px rgba(0, 0, 0, .2),
    0 26px 80px rgba(0, 0, 0, .48),
    0 0 42px rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(44px) saturate(110%);
  backdrop-filter: blur(44px) saturate(110%);
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.profile-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 0%, #fff, transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(237, 237, 237, .94) 52%, rgba(255, 255, 255, .96));
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.profile-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -30% auto -30% -55%;
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: translateX(-100%) rotate(14deg);
  pointer-events: none;
}
body.entered .profile-card::after { animation: gloss-pass 500ms var(--ease-out) 260ms both; }
@keyframes gloss-pass {
  from { transform: translateX(-100%) rotate(14deg); }
  to { transform: translateX(420%) rotate(14deg); }
}
html[data-theme="white"] .profile-card {
  --heading-glow: rgba(70, 70, 70, .3);
  border-color: rgba(90, 90, 90, .4);
  color: #202020;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(255, 255, 255, .56),
    0 26px 80px rgba(55, 55, 55, .22),
    0 0 55px rgba(80, 80, 80, .12);
}
html[data-theme="white"] .profile-card::before { opacity: 1; }
.glass-reflection {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(340px circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, .22), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 27%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.profile-card.is-reflecting .glass-reflection { opacity: 1; }
html[data-theme="white"] .glass-reflection {
  background:
    radial-gradient(340px circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, .86), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 27%);
}
body.entered .profile-card {
  animation: card-arrive 500ms var(--ease-out) both;
  opacity: 1;
  transform: none;
}
@keyframes card-arrive {
  0% { opacity: 0; transform: translateY(24px) scale(.97); }
  100% { opacity: 1; transform: none; }
}
.card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.profile-identity,
.profile-details {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.profile-identity {
  align-items: center;
}
.profile-details {
  align-items: flex-start;
  padding: 8px 0 8px 32px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
}
html[data-theme="white"] .profile-details {
  border-left-color: rgba(75, 75, 75, .24);
}
body.entered .profile-identity,
body.entered .profile-details {
  opacity: 1;
  transform: translateY(0);
}
body.entered .profile-identity { transition-delay: 60ms; }
body.entered .profile-details { transition-delay: 120ms; }
.avatar {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #4b4b4b, #151515 70%);
  box-shadow: 0 0 24px rgba(255, 255, 255, .13), inset 0 0 20px rgba(255, 255, 255, .06);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, .3);
}
.avatar svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .28));
}
html[data-theme="white"] .avatar {
  border-color: rgba(75, 75, 75, .38);
  background: radial-gradient(circle at 30% 20%, #fff, #d7d7d7 62%, #aaa);
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(70, 70, 70, .22);
  color: #242424;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
html[data-theme="white"] .avatar svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .16)); }
h1 {
  margin: 14px 0 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-shadow: 0 0 14px var(--heading-glow);
}
.location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, .2);
}
html[data-theme="white"] .location { text-shadow: 0 0 10px rgba(50, 50, 50, .18); }
.work-note { margin: 0; }
.work-note h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-shadow: 0 0 14px var(--heading-glow);
}
.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  background: #f4f4f4;
  box-shadow: 0 0 12px rgba(255, 255, 255, .8);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  animation: status-pulse 2s var(--ease-out) infinite;
}
html[data-theme="white"] .status-dot {
  background: #444;
  box-shadow: 0 0 10px rgba(55, 55, 55, .35);
}
html[data-theme="white"] .status-dot::after { border-color: rgba(55, 55, 55, .6); }
@keyframes status-pulse {
  0% { opacity: .85; transform: scale(.55); }
  75%, 100% { opacity: 0; transform: scale(1.7); }
}
p {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.015em;
  text-shadow: 0 0 10px rgba(255, 255, 255, .14);
}
html[data-theme="white"] p { text-shadow: 0 0 10px rgba(50, 50, 50, .12); }
h1,
.location,
.work-note h2,
.work-note p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
body.entered h1,
body.entered .location,
body.entered .work-note h2,
body.entered .work-note p {
  opacity: 1;
  transform: translateY(0);
}
body.entered h1 { transition-delay: 160ms; }
body.entered .location { transition-delay: 220ms; }
body.entered .work-note h2 { transition-delay: 280ms; }
body.entered .work-note p { transition-delay: 340ms; }
body.entered h1,
body.entered .work-note h2 { animation: glow-bloom 700ms var(--ease-out) 180ms both; }
@keyframes glow-bloom {
  0% { text-shadow: 0 0 0 transparent; }
  60% { text-shadow: 0 0 28px var(--heading-glow); }
  100% { text-shadow: 0 0 14px var(--heading-glow); }
}
.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  text-align: center;
}
.error-code {
  --heading-glow: rgba(255, 255, 255, .48);
  margin: 0;
  color: #f7f7f7;
  font-size: clamp(140px, 29vw, 380px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.095em;
  text-indent: -.095em;
  text-align: center;
  text-shadow: 0 0 28px var(--heading-glow), 0 16px 60px rgba(0, 0, 0, .6);
}
html[data-theme="white"] .error-code {
  --heading-glow: rgba(45, 45, 45, .26);
  color: #242424;
  text-shadow: 0 0 28px var(--heading-glow), 0 16px 60px rgba(255, 255, 255, .5);
}
.error-message {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-shadow: 0 0 16px rgba(255, 255, 255, .26);
}
html[data-theme="white"] .error-message {
  color: rgba(30, 30, 30, .8);
  text-shadow: 0 0 16px rgba(35, 35, 35, .12);
}
.email-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
html[data-theme="white"] .email-button {
  border-color: rgba(75, 75, 75, .32);
  background: rgba(255, 255, 255, .58);
  color: #252525;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.email-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
html[data-theme="white"] .email-button:focus-visible { outline-color: #242424; }
.enter-screen {
  position: fixed;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(0, 0, 0, .84);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: opacity 260ms var(--ease-out), visibility 260ms var(--ease-out);
}
html[data-theme="white"] .enter-screen {
  background: rgba(246, 246, 246, .85);
  color: #252525;
}
.enter-screen span {
  font-size: clamp(25px, 4vw, 31px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.enter-screen:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}
html[data-theme="white"] .enter-screen:focus-visible { outline-color: #242424; }
body.entered .enter-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .profile-card:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .42),
      0 30px 85px rgba(0, 0, 0, .43),
      0 0 60px rgba(255, 255, 255, .14);
  }
  html[data-theme="white"] .profile-card:hover {
    box-shadow:
      inset 0 1px 0 #fff,
      0 30px 85px rgba(50, 50, 50, .24),
      0 0 60px rgba(90, 90, 90, .16);
  }
  .email-button:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-2px);
  }
  html[data-theme="white"] .email-button:hover {
    border-color: rgba(70, 70, 70, .52);
    background: rgba(255, 255, 255, .85);
  }
}
@media (max-width: 700px) {
  .page { padding: 20px; }
  .profile-card { min-height: 456px; padding: 28px 22px; }
  .card-content { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; }
  .profile-details {
    align-items: center;
    padding: 0;
    border-left: 0;
    text-align: center;
  }
  .avatar { width: 94px; height: 94px; font-size: 52px; }
  h1 { margin-top: 10px; font-size: 38px; }
  .location { margin-top: 8px; }
  .work-note h2 { font-size: 26px; }
  p { margin-top: 8px; font-size: 17px; }
  .email-button { margin-top: 18px; }
  body { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-reflection { transition: none; }
  .status-dot::after { animation: none; opacity: .6; transform: none; }
  .profile-card::after { animation: none !important; }
  body.entered .profile-card,
  body.entered h1,
  body.entered .work-note h2 { animation: none; }
  .profile-card,
  .profile-identity,
  .profile-details {
    transform: none;
    transition: opacity 200ms var(--ease-out);
  }
  body.entered .profile-card,
  body.entered .profile-identity,
  body.entered .profile-details { transform: none; }
  body.entered .profile-identity,
  body.entered .profile-details { transition-delay: 0ms; }
  h1,
  .location,
  .work-note h2,
  .work-note p {
    transform: none;
    transition: opacity 200ms var(--ease-out);
  }
  body.entered h1,
  body.entered .location,
  body.entered .work-note h2,
  body.entered .work-note p {
    transform: none;
    transition-delay: 0ms;
  }
  .theme-toggle,
  body.entered .theme-toggle { transform: none; }
  .theme-symbol,
  html[data-theme="white"] .theme-symbol { transform: none; }
  .enter-screen { transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out); }
  .email-button { transition: background 160ms ease, border-color 160ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .profile-card {
    background: #292929;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html[data-theme="white"] .profile-card,
  html[data-theme="white"] .profile-card::before { background: #f2f2f2; }
  .glass-reflection { display: none; }
}
