/* ==========================================================================
   LIQUID GLASS. Loaded after styles.css; remove its <link> to go back.
   Palette is the site's own: #D80001 / #990101, black and white.
   Not glass on purpose: header wordmark, logo band, contact block, footer.
   ========================================================================== */
:root {
  --accent: #D80001;
  --accent-hover: #a60000;
  --accent-deep: #990101;
  --glow: 255 255 255;
  --rim-a: rgba(255, 255, 255, 0.75);
  --rim-b: rgba(255, 255, 255, 0.12);
  --rim-c: rgba(255, 255, 255, 0.42);
  --card-bg: transparent;
  --section-bg: transparent;
  --menu-bg: rgba(14, 14, 14, 0.86);
  --hover: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.15);
  --rim: rgba(255, 255, 255, 0.5);
  --rim-soft: rgba(255, 255, 255, 0.16);
  --rim-bottom: rgba(255, 255, 255, 0.07);
  --inner: rgba(255, 255, 255, 0.05);
  --glass-shadow: rgba(0, 0, 0, 0.6);
  --cta: linear-gradient(135deg, rgba(216, 0, 1, 0.9), rgba(153, 1, 1, 0.88));
  --orb1: rgba(216, 0, 1, 0.26);
  --orb2: rgba(153, 1, 1, 0.22);
  --orb3: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] {
  --glow: 216 0 1;
  --rim-a: rgba(255, 255, 255, 1);
  --rim-b: rgba(0, 0, 0, 0.1);
  --rim-c: rgba(0, 0, 0, 0.24);
  --accent: #D80001;
  --accent-hover: #a60000;
  --menu-bg: rgba(255, 255, 255, 0.9);
  --hover: rgba(0, 0, 0, 0.07);
  --glass: rgba(255, 255, 255, 0.4);
  --glass-hi: rgba(255, 255, 255, 0.85);
  --rim: rgba(255, 255, 255, 1);
  --rim-soft: rgba(0, 0, 0, 0.1);
  --rim-bottom: rgba(0, 0, 0, 0.1);
  --inner: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.22);
  --orb1: rgba(216, 0, 1, 0.16);
  --orb2: rgba(153, 1, 1, 0.1);
  --orb3: rgba(0, 0, 0, 0.06);
}

/* ---- Colour behind the glass (glass needs something to bend) ------------ */
.ambient-wave, [data-theme="light"] .ambient-wave { background-image: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -11; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 62% 108%, var(--orb1), transparent 70%),
    radial-gradient(38vmax 38vmax at 92% 32%, var(--orb2), transparent 70%),
    radial-gradient(46vmax 46vmax at 28% 96%, var(--orb3), transparent 70%);
}
.hero, .work, .resume, .about { border-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- The material: blur + saturation, specular rim, soft pointer sheen --- */
.site-nav, .dropdown-menu, .theme-toggle, .menu-toggle, .project-play,
.project-card, .list-item, .photo-placeholder, .photo-tile, .fact, .resume-block, .experience-item,
.about-stamp, .yt-banner a, .role-heading,
.hero .eyebrow, .hero-side-note {
  background:
    radial-gradient(circle 200px at var(--mx, 28%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(155deg, var(--glass-hi), var(--glass) 45%, rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid var(--rim-soft);
  box-shadow:
    inset 0 1px 0 var(--rim), inset 0 -1px 0 var(--rim-bottom),
    inset 1px 0 0 var(--rim-bottom), inset 0 0 26px var(--inner),
    inset 0 0 10px -3px var(--rim-soft),
    0 18px 38px -18px var(--glass-shadow);
}
.dropdown-menu { background: var(--menu-bg); }

/* ---- Navigation --------------------------------------------------------- */
.site-nav { border-radius: 30px; }
.site-nav a:hover, .dropdown-menu a:hover { color: var(--ink); }
.dropdown-menu { border-radius: 26px; padding: 8px; top: calc(100% + 18px); }
.dropdown-menu::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.dropdown-menu a { border: 0; border-radius: 18px; padding: 12px 18px; }
.dropdown-menu a:hover { background: var(--hover); }
@media (min-width: 761px) {
  .site-nav { position: relative; gap: 4px; padding: 8px; border-radius: 999px; font-size: 12px; }
  .site-nav > a, .dropdown-trigger { padding: 11px 18px; border-radius: 999px; transition: background 0.3s, color 0.25s; }
  .site-nav > a:hover, .dropdown-trigger:hover { background: var(--hover); }
  .nav-dropdown { padding: 0; }
}

/* Theme toggle: a glass switch with a frosted thumb */
.theme-toggle, .site-nav .theme-toggle {
  position: relative; width: 58px; height: 34px; padding: 0; border-radius: 999px; font-size: 14px;
}
.theme-toggle:hover { border-color: var(--rim-soft); color: inherit; }
.theme-toggle::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.6));
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateX(24px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.25s ease;
}
[data-theme="light"] .theme-toggle::before { transform: none; }
.theme-toggle span {
  position: absolute; top: 50%; left: 40px; z-index: 1; transform: translate(-50%, -50%);
  color: #000; font-size: 14px; line-height: 1;
}
[data-theme="light"] .theme-toggle span { left: 16px; }
.theme-toggle .theme-icon-dark, [data-theme="light"] .theme-toggle .theme-icon-light { display: block; }
.theme-toggle .theme-icon-light, [data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }

/* ---- Hero & logo band ---------------------------------------------------- */
.hero .eyebrow { display: inline-block; padding: 9px 20px; border-radius: 999px; }
.hero-side-note { padding: 9px 18px; border-radius: 999px; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.role-heading { display: inline-block; padding: 9px 20px; border-radius: 999px; }

/* Logo band: flat, full-width black in both themes (no glass) */
.client-roster { background: #000; border: 0; }
.client-logo, [data-theme="light"] .client-logo { filter: brightness(0) invert(0.6); }
.client-logo:hover, [data-theme="light"] .client-logo:hover { filter: brightness(0) invert(1); }
/* Contact block: "IT HAPPEN" is black in the light theme */
[data-theme="light"] .contact > h1 em, [data-theme="light"] .contact > h2 em { color: #000; }

/* ---- Work --------------------------------------------------------------- */
.project-card {
  padding: 12px; border-radius: 36px;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover { transform: translateY(-6px); }
.project-image, .project-large .project-image { border: 0; border-radius: 26px; }
.project-card:hover .project-image { transform: none; box-shadow: none; border-color: transparent; }
.project-meta { padding: 16px 12px 8px; }
.project-play { border-radius: 50%; color: #fff; }
.project-card:hover .project-play { background: var(--cta); border-color: var(--rim-soft); }
.list-item { padding: 22px 24px; border-radius: 28px; }
.list-item:hover { border-color: var(--rim-soft); transform: translateY(-4px); }
.photo-placeholder { border-radius: 32px; }
.photo-tile { border: 1px solid var(--rim-soft); }
.yt-banner a {
  border-radius: 40px;
  background:
    radial-gradient(circle 260px at var(--mx, 20%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(100deg, rgba(216, 0, 1, 0.32), rgba(153, 1, 1, 0.16) 70%, transparent);
}
.yt-banner a:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--rim), 0 26px 50px -18px var(--glass-shadow); }
.yt-icon {
  border-radius: 50%; background: var(--cta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px -10px rgba(216, 0, 1, 0.8);
}
.yt-icon svg rect { rx: 6px; }
.yt-icon svg { stroke-linejoin: round; }
.yt-icon { font-size: 30px; line-height: 1; }

/* ---- Background / about -------------------------------------------------- */
.resume-block { padding: 22px 24px; border-radius: 30px; }
.resume-block h3 { border-bottom: 0; padding-bottom: 0; }
.brutalist-list li { border-bottom: 1px solid var(--line); }
.brutalist-list li:last-child { border-bottom: 0; }
.experience-item { padding: 28px 30px; border-radius: 36px; margin-bottom: 28px; }
.exp-header { border-bottom: 1px solid var(--line); }
.exp-role:last-child { margin-bottom: 0; }
.about-stamp { border-radius: 50%; }

@media (max-width: 760px) {
  .site-header { background: none; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav:not(.is-open) {
    background: none; border-width: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-nav:not(.is-open)::after { display: none; }
  .menu-toggle { width: 44px; height: 44px; border-radius: 50%; }
  .site-nav { top: 78px; left: 3vw; width: 94vw; border-radius: 30px; background: var(--menu-bg); border-color: transparent; box-shadow: none; }
  .site-nav.is-open { border-color: var(--rim-soft); box-shadow: inset 0 1px 0 var(--rim), 0 24px 48px -16px var(--glass-shadow); }
  .site-nav .theme-toggle { margin: 16px 0 4px; }
  .project-card { padding: 10px; border-radius: 30px; }
  .experience-item { padding: 22px 20px; }
  /* Projects submenu opens inline under PROJECTS (it used to slide off-screen and show as an empty box) */
  .dropdown-menu, .nav-dropdown:hover .dropdown-menu {
    position: static; transform: none; min-width: 0; width: 100%;
    padding: 0 0 8px 20px; border: 0; border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu a { padding: 12px 0; font-size: 13px; border: 0; border-radius: 0; }
  .nav-dropdown .dropdown-trigger { border-top: 0; padding-top: 0; }
  /* footer: wordmark sits lower, tucked toward the socials */
  .site-footer { padding-top: 44px; padding-bottom: 36px; }
  .footer-left { gap: 4px; }
  .site-footer .wordmark { padding-bottom: 8px; }
  .footer-socials { padding-top: 18px; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: rgba(30, 30, 30, 0.94); --glass-hi: rgba(48, 48, 48, 0.96); }
  [data-theme="light"] { --glass: rgba(250, 250, 250, 0.96); --glass-hi: rgba(255, 255, 255, 0.98); }
}

/* Hero content sits higher on desktop. Change --hero-lift to nudge it up or down. */
@media (min-width: 761px) {
  .hero { --hero-lift: 67px; padding-bottom: calc(74px + 2 * var(--hero-lift)); }
  .hero-side-note { bottom: calc(26px + var(--hero-lift)); }
}

/* ---- Light-bending rim -------------------------------------------------
   A thin ring on every interactive glass piece: soft corner highlights at
   rest (top-left and bottom-right, like Apple's glass), and a bright glow that
   follows the pointer along the edge while hovering. */
@property --g { syntax: "<number>"; inherits: false; initial-value: 0; }
.menu-toggle, .yt-banner a, .project-card, .list-item, .photo-tile, .experience-item, .resume-block, .about-stamp { position: relative; }
.site-nav::after, .theme-toggle::after, .menu-toggle::after,
.project-play::after, .yt-banner a::after, .project-card::after,
.list-item::after, .photo-tile::after, .experience-item::after, .resume-block::after, .about-stamp::after {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle 120px at var(--mx, -400px) var(--my, -400px), rgb(var(--glow) / calc(var(--g) * 0.95)), transparent),
    linear-gradient(135deg, var(--rim-a), var(--rim-b) 28%, var(--rim-b) 72%, var(--rim-c));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: --g 0.35s ease;
}
.site-nav:hover::after, .theme-toggle:hover::after, .menu-toggle:hover::after,
.project-play:hover::after, .yt-banner a:hover::after, .project-card:hover::after,
.list-item:hover::after, .photo-tile:hover::after, .experience-item:hover::after, .resume-block:hover::after, .about-stamp:hover::after { --g: 1; }

/* Springy press feedback, like a physical glass key */
.theme-toggle, .menu-toggle { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.theme-toggle:hover, .menu-toggle:hover { transform: scale(1.06); }
.theme-toggle:active, .menu-toggle:active { transform: scale(0.95); }
.theme-toggle:active::before { width: 34px; transform: translateX(18px); }
[data-theme="light"] .theme-toggle:active::before { transform: none; }
.project-card:active { transform: translateY(-3px) scale(0.99); }
.yt-banner a:active { transform: scale(0.99); }

/* Desktop: the wordmark lives in the left margin so scrolling content never runs under it */
@media (min-width: 761px) {
  .site-header .wordmark {
    margin-left: calc(-6vw + clamp(14px, 1.5vw, 26px));
    font-size: clamp(13px, 1.4vw, 22px);
  }
}

/* Dark theme: the nav rim stays neutral at rest; only the hover glow is red (as in the light theme) */
body:not([data-theme="light"]) .site-nav { --glow: 216 0 1; }
