/* Immersive theme overlay: WebGL canvas behind everything, centered
   minimal typography, glass surfaces, single dark world. Loads after
   dark-theme and overrides it. */

:root {
  --ink-bg: #0b0d11;
  --ink-bg-soft: rgba(255, 255, 255, 0.05);
  --ink-line: rgba(244, 244, 242, 0.14);
}

html { background: #0b0d11; }
body { background: transparent; }

#sh-gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ---------- hero: centered, photo and marquee retired ---------- */
.sh-hero-media, .sh-hero-bg .sh-marquee { display: none; }

.sh-hero-bg {
  min-height: 100svh;
  margin-top: -128px;
  align-items: center;
  justify-content: center;
  display: flex;
}
.sh-hero-bg .sh-hero {
  padding: 128px 24px 0;
  display: block;
  width: auto;
}
.sh-hero-bg .header-title-wrap,
.header-title-wrap {
  text-align: center;
  align-items: center;
  max-width: 880px;
}
.sh-hero .title-wrapper {
  position: static;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0 0 26px;
  padding: 0;
  overflow: visible;
}
.sh-hero .title {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 13px;
  font-weight: 500;
}
.sh-hero-bg .hero-display {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sh-hero-bg .paragraph-display {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.sh-chips { justify-content: center; }
.sh-chip { background: rgba(11, 13, 17, 0.4); backdrop-filter: blur(8px); }

/* ---------- sections float over the canvas ---------- */
.client-section, .resume-section, .footer-section, .sh-section {
  background: transparent;
}
.title-wrap h3, .title-wrap-large h3, .sh-page-label {
  letter-spacing: 0.34em;
}

/* undo the white band: same selectors, dark values, later file wins */
.resume-section, .sh-quote-band, .footer-section {
  --ink-bg: #0b0d11;
  --ink-bg-soft: rgba(255, 255, 255, 0.05);
  --ink-text: #f4f4f2;
  --ink-muted: #9a9ba0;
  --ink-line: rgba(244, 244, 242, 0.14);
  color: var(--ink-text);
}
.footer-section .social-link img,
.resume-section .arrow-right {
  filter: invert(1) grayscale(1) brightness(1.6);
}
.footer-section .sh-cta-heading, .footer-section a { color: var(--ink-text); }

/* ---------- glass surfaces ---------- */
.sh-panel {
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sh-burger {
  background: rgba(13, 15, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sh-shot, .sh-media-slot {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.logo-card { background: none; }

/* subpage heads centered to match */
.sh-page-head { text-align: center; }
.sh-page-title, .sh-page-lead { margin-left: auto; margin-right: auto; }


/* ---------- resident fly ---------- */
.sh-fly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 59px;
  height: 59px;
  pointer-events: none;
  will-change: transform;
  /* grounded shadow plus a cool rim so it reads on the dark canvas */
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 1.5px rgba(190, 205, 235, 0.35));
  transition: filter 0.18s;
}
.sh-fly.is-air {
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 2px rgba(190, 205, 235, 0.4));
}
.sh-fly svg { display: block; overflow: visible; }

/* wings are drawn folded over the back; flight swings them out from
   their hinges and beats them too fast to resolve */
.sh-fly .fly-wing { transition: transform 0.16s ease-out, opacity 0.16s; }
.sh-fly .fly-wl { transform-origin: 28px 17.5px; }
.sh-fly .fly-wr { transform-origin: 32px 17.5px; }
.sh-fly.is-air .fly-wing { opacity: 0.7; }
.sh-fly.is-air .fly-wl { animation: sh-flap-l 0.05s linear infinite; }
.sh-fly.is-air .fly-wr { animation: sh-flap-r 0.05s linear infinite; }

@keyframes sh-flap-l {
  0%, 100% { transform: rotate(-50deg) scaleY(0.95); }
  50%      { transform: rotate(-88deg) scaleY(0.5); }
}
@keyframes sh-flap-r {
  0%, 100% { transform: rotate(50deg) scaleY(0.95); }
  50%      { transform: rotate(88deg) scaleY(0.5); }
}

/* grooming: forelegs rub together over the head */
.sh-fly .fly-fore {
  transform-origin: 30px 16px;
  transition: transform 0.2s;
}
.sh-fly.is-groom .fly-fore { animation: sh-groom 0.22s ease-in-out infinite alternate; }
@keyframes sh-groom {
  from { transform: translateY(0) scaleX(1); }
  to   { transform: translateY(-1.4px) scaleX(0.88); }
}

/* ---------- navigation ---------- */
.sh-topnav { display: none; }

@media (min-width: 768px) {
  /* desktop: horizontal centered nav, no menu button */
  .sh-burger { display: none !important; }

  .navbar {
    z-index: 1200;
    position: fixed;
    top: 14px;
    left: 24px;
    right: 24px;
    border-radius: 18px;
    border: 1px solid rgba(244, 244, 242, 0.08);
    background: rgba(13, 15, 20, 0.55);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    transition: background 0.35s ease, border-color 0.35s ease,
      box-shadow 0.35s ease;
    min-height: 0;
    padding: 0;
  }
  .navbar .navigation-container { padding: 12px 26px; }
  .navigation-right { display: flex; align-items: center; }
  .navbar .sh-nav-cta {
    display: inline-block;
    pointer-events: auto;
    background: var(--ink-text);
    color: var(--ink-bg);
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 66px 0 0;
    transition: opacity 0.3s ease;
  }
  .navbar .sh-nav-cta:hover { opacity: 0.82; }
  /* navbar leaves the flow, so the hero no longer needs pulling up */
  .sh-hero-bg { margin-top: 0; }

  .sh-topnav {
    align-items: center;
    gap: 38px;
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .sh-topnav a {
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
    transition: color 0.3s;
  }
  .sh-topnav a:hover, .sh-topnav a.is-current { color: var(--ink-text); }
  .sh-topnav a:after {
    content: "";
    background: var(--ink-text);
    height: 1px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sh-topnav a:hover:after { transform: scaleX(1); transform-origin: left; }
  .sh-topnav a.is-current:after { transform: scaleX(1); }
}

@media (min-width: 768px) {
  /* the navbar is fixed on desktop, so subpage content must clear it */
  .sh-page-head { padding-top: 168px; }
  .sh-draft-note { margin-top: 128px; }
  /* when a draft banner already pushed things down, don't double up */
  .sh-draft-note + .sh-page-head { padding-top: 40px; }
}

@media (min-width: 768px) {
  /* deepen the glass once the page scrolls under the floating bar */
  .navbar.is-stuck {
    background: rgba(9, 11, 15, 0.72);
    border-color: rgba(244, 244, 242, 0.12);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }
}

/* availability: green inside Pacific working hours, red outside */
.sh-dot { background: #7fd99a; }
.sh-dot.is-off { background: #e0574a; }

/* ---------- display headings: one voice everywhere ---------- */
.sh-page-title,
.resume-section .title-wrap-large h3,
.resume-section .title-left h1,
.sh-cta-heading {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sh-page-title { font-size: clamp(38px, 5.2vw, 76px); }

/* ---------- Jobs quote in the sky band ---------- */
.sh-quote-band { padding: 120px 6%; }
.sh-jobs {
  border: 0;
  padding: 0;
  color: var(--ink-text);
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.32;
  transition: color 0.5s ease;
}
.sh-jobs cite {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-top: 30px;
  font-size: 14px;
  font-style: normal;
  display: block;
  transition: color 0.5s ease;
}

/* ---------- hero cutout portrait ---------- */
.sh-hero-cutout {
  width: min(300px, 62vw);
  margin: 0 auto 4px;
  pointer-events: none;
}
.sh-hero-cutout img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 22px rgba(120, 140, 200, 0.16));
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
}
@media (max-width: 767px) {
  .sh-hero-cutout { width: min(230px, 62vw); }
}

/* ---------- about page portrait ---------- */
.sh-about-intro {
  display: flex;
  align-items: center;
  gap: 56px;
}
.sh-about-text { min-width: 0; }
.sh-about-cutout {
  flex: 0 0 320px;
  width: 320px;
  margin: 0;
  pointer-events: none;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
}
.sh-about-cutout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/about-halo.55b4b641.webp) center / 100% 100% no-repeat;
}
.sh-about-cutout img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.6));
}
@media (max-width: 767px) {
  .sh-about-intro { flex-direction: column; align-items: center; gap: 30px; }
  .sh-about-cutout { flex-basis: auto; width: min(250px, 66vw); }
}

/* ---------- homepage teasers ---------- */
.sh-teasers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sh-teaser {
  display: block;
  padding: 40px 36px;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.sh-teaser:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}
.sh-teaser-label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sh-teaser-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--ink-text);
}
.sh-teaser-note {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}
.sh-teaser-arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.35s ease;
}
.sh-teaser:hover .sh-teaser-arrow { transform: translateX(6px); }
@media (max-width: 767px) {
  .sh-teasers { grid-template-columns: 1fr; }
}

/* ---------- cinematic brand band ---------- */
.sh-band {
  margin: 0 0 34px;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
}
.sh-band img { width: 100%; height: auto; display: block; }

.sh-nav-cta { display: none; }
