:root {
  --cloud: #c4ddff;
  --sky: #7fb5ff;
  --navy: #001d6e;
  --peach: #fee2c5;
  --ink: #06133f;
  --paper: #f7fbff;
  --white: #ffffff;
  --line: rgba(0, 29, 110, 0.18);
  --shadow: 0 24px 70px rgba(0, 29, 110, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(254, 226, 197, 0.9), transparent 24rem),
    linear-gradient(135deg, var(--paper), var(--cloud) 52%, var(--peach));
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

main {
  overflow: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.scroll-meter {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 6px;
  background: rgba(255, 255, 255, 0.34);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--navy), var(--sky), var(--peach));
  border-radius: 999px;
}

.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 181, 255, 0.34), transparent 62%);
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: var(--navy);
}

.brand {
  position: relative;
  display: grid;
  width: 4rem;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--sky);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66) url("images/Profesional.jpg") center 18% / cover;
  color: transparent;
  font-weight: 800;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0, 29, 110, 0.14);
}

.brand-bubble {
  position: fixed;
  top: 4.9rem;
  left: 4.5rem;
  z-index: 51;
  max-width: 13rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 29, 110, 0.14);
  opacity: 0;
  transform: translateY(-0.4rem) scale(0.96);
  animation: talkBubble 12s ease-in-out infinite 1s;
  pointer-events: none;
}

.brand-bubble::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 0.8rem;
  width: 0.9rem;
  aspect-ratio: 1;
  background: inherit;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

nav {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.5rem);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

nav a {
  white-space: nowrap;
}

.scroll-computer {
  position: fixed;
  top: 10vh;
  left: 50%;
  z-index: 20;
  width: clamp(6rem, 12vw, 12rem);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -8rem, 0) rotate(-14deg) scale(0.72);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 20px 24px rgba(0, 29, 110, 0.24));
  mix-blend-mode: multiply;
  transition: opacity 220ms ease;
}

.scroll-computer-alt {
  z-index: 19;
  width: clamp(4.8rem, 9vw, 8.5rem);
}

.panel {
  min-height: 100svh;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.72fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: 7rem clamp(1.1rem, 5vw, 5rem) 3rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  display: grid;
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.2vw, 6.3rem);
  line-height: 0.88;
}

h1 span:first-child {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
}

h1 span:last-child {
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.94;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.lede {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-icon-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.hero-icon-links a {
  display: grid;
  width: 2.8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 29, 110, 0.1);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1.2rem;
  font-weight: 800;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.66);
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: min(72vw, 43rem);
}

.portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(30rem, 70vw);
  aspect-ratio: 3 / 4;
  border: 10px solid var(--white);
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 36%;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.computer {
  position: absolute;
  width: min(18rem, 40vw);
  filter: drop-shadow(0 24px 25px rgba(0, 29, 110, 0.22));
  mix-blend-mode: multiply;
}

.hero-computer {
  left: -5rem;
  bottom: 3.5rem;
  z-index: 2;
  opacity: 0.88;
  transform: rotate(-10deg);
}

.code-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  background: var(--peach);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 29, 110, 0.14);
}

.chip-one {
  top: 14%;
  left: -4%;
}

.chip-two {
  top: 42%;
  right: 4%;
}

.chip-three {
  bottom: 2%;
  left: 8%;
}

.story-rail {
  position: relative;
  height: 420vh;
  z-index: 3;
}

.sky-scroll-section {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.1rem, 5vw, 5rem);
  background:
    linear-gradient(90deg, rgba(0, 29, 110, 0.88), rgba(0, 29, 110, 0.46)),
    url("images/Sea.jpg") center / cover fixed;
}

.sky-word {
  position: absolute;
  inset: auto -1rem -0.08em;
  color: transparent;
  background: url("images/Sea.jpg") 50% 50% / cover fixed;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(5.6rem, 15vw, 14.5rem);
  font-weight: 800;
  line-height: 0.74;
  opacity: 0.72;
  pointer-events: none;
  text-align: right;
}

.sky-copy {
  position: relative;
  max-width: 50rem;
  color: var(--white);
}

.sky-copy h2,
.sky-copy .eyebrow {
  color: var(--white);
}

.sky-copy p:not(.eyebrow) {
  max-width: 38rem;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  line-height: 1.6;
}

.sky-facts {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.sky-facts span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.story-sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 5rem clamp(1.1rem, 5vw, 5rem);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 29, 110, 0.96), rgba(0, 29, 110, 0.82));
  color: var(--white);
}

.story-sticky h2,
.story-sticky .eyebrow {
  color: var(--white);
}

.chapter-count {
  position: absolute;
  top: 6rem;
  left: clamp(1.1rem, 5vw, 5rem);
  z-index: 8;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 29, 110, 0.36);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 68vh;
  perspective: 1000px;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 10% -8% 8% 9%;
  border: 1px solid rgba(254, 226, 197, 0.52);
  border-radius: 8px;
}

.scene-img {
  position: absolute;
  inset: 0;
  width: min(32rem, 78vw);
  height: 68vh;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(-2rem, 2rem, 0) rotate(-6deg) scale(0.9);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.scene-card {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(196, 221, 255, 0.96), rgba(254, 226, 197, 0.92)),
    var(--white);
}

.scene-img.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--tilt, -2deg)) scale(1);
}

.browser-bar,
.tooltip-card,
.booking-flow {
  position: absolute;
  border: 1px solid rgba(0, 29, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 29, 110, 0.16);
}

.browser-bar {
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
}

.browser-bar span {
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sky);
}

.chart-lines {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1rem);
  width: 82%;
  height: 62%;
  border-bottom: 3px solid rgba(0, 29, 110, 0.5);
  border-left: 3px solid rgba(0, 29, 110, 0.5);
}

.chart-lines i {
  width: clamp(1.8rem, 5vw, 3.4rem);
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(var(--navy), var(--sky));
}

.tooltip-card {
  right: 1.4rem;
  bottom: 1.5rem;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  width: 82%;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.calendar-grid span {
  aspect-ratio: 1;
  border: 2px solid rgba(0, 29, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.calendar-grid span:nth-child(3),
.calendar-grid span:nth-child(6),
.calendar-grid span:nth-child(11) {
  background: var(--sky);
}

.booking-flow {
  left: 1.4rem;
  bottom: 1.5rem;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.vr-world {
  position: relative;
  width: 82%;
  height: 62%;
}

.vr-headset {
  position: absolute;
  inset: 20% 12% auto;
  height: 34%;
  border: 10px solid var(--navy);
  border-radius: 999px 999px 34px 34px;
  background: rgba(255, 255, 255, 0.4);
}

.vr-grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(90deg, rgba(0, 29, 110, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(0, 29, 110, 0.22) 1px, transparent 1px);
  background-size: 32px 24px;
  transform: perspective(280px) rotateX(58deg);
}

.circuit-board {
  position: relative;
  width: 82%;
  height: 62%;
  border: 3px solid rgba(0, 29, 110, 0.4);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 30%, var(--sky) 0 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 68% 66%, var(--peach) 0 0.65rem, transparent 0.72rem),
    linear-gradient(90deg, transparent 24%, rgba(0, 29, 110, 0.28) 24% 26%, transparent 26%),
    linear-gradient(rgba(0, 29, 110, 0.2) 2px, transparent 2px);
  background-size: auto, auto, auto, 100% 34px;
}

.circuit-board span {
  position: absolute;
  width: 18%;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--navy);
}

.circuit-board span:nth-child(1) { top: 24%; left: 18%; }
.circuit-board span:nth-child(2) { top: 42%; left: 48%; }
.circuit-board span:nth-child(3) { top: 62%; left: 22%; }
.circuit-board span:nth-child(4) { top: 30%; right: 14%; }
.circuit-board span:nth-child(5) { bottom: 18%; right: 24%; }

.chapter {
  grid-column: 2;
  grid-row: 1;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.chapter.active {
  opacity: 1;
  transform: translateY(0);
}

.chapter p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.6;
}

.chapter-triggers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.work-section {
  position: relative;
  z-index: 4;
  padding: clamp(4rem, 10vw, 9rem) clamp(1.1rem, 5vw, 5rem);
}

.section-intro {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 46px rgba(0, 29, 110, 0.1);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 650ms ease, transform 650ms ease;
}

.work-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.year {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.work-card p,
.contact-section p {
  line-height: 1.65;
}

ul {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.65;
}

.resume-section {
  position: relative;
  z-index: 4;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.1rem, 5vw, 5rem);
  background: linear-gradient(180deg, rgba(254, 226, 197, 0.52), rgba(196, 221, 255, 0.66));
}

.ghost-lab {
  position: relative;
  justify-self: end;
  width: min(42rem, 100%);
  min-height: 17rem;
  overflow: hidden;
  border: 1px solid rgba(0, 29, 110, 0.18);
  border-radius: 8px;
  background: radial-gradient(circle at center, #263d66, #06133f 68%, #02091f);
  box-shadow: 0 24px 70px rgba(0, 29, 110, 0.2);
}

#speedcapture {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.ghost {
  position: absolute;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
  width: 100px;
  height: 100px;
  border-radius: 100%;
  background: #fff;
  transform: translateX(-100px);
  animation: ghostSwirl 2s ease-in-out infinite alternate;
  transition: 0s ease-in-out;
}

.ghost::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #fff;
  filter: blur(5px);
  animation: ghostBubbling 2s linear infinite;
}

.ghost.face .arms {
  position: absolute;
  left: -10px;
  top: 45px;
  z-index: -1;
  width: 120px;
  height: 30px;
  border-radius: 50px;
}

.ghost.face .arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-top: 15px solid #fff;
  border-left: 15px solid #fff;
  border-radius: 100px 0 0 0;
  opacity: 0.5;
  transform: rotate(20deg);
  transform-origin: top right;
  animation: ghostWave 2s ease-in-out infinite alternate;
}

.ghost.face .arm::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -15px;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background: #fff;
}

.ghost.face .arm:last-of-type {
  right: 0;
  left: auto;
  border-right: 15px solid #fff;
  border-left: 0;
  border-radius: 0 100px 0 0;
  transform-origin: top left;
}

.ghost.face .arm:last-of-type::before {
  right: -15px;
  left: auto;
}

.ghost.face .inner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  transform-style: preserve-3d;
  animation: ghostLook 4s ease-in-out infinite;
}

.ghost.face .mouth {
  position: absolute;
  bottom: 20px;
  left: 40px;
  width: 20px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-left: 2px solid #000;
  border-radius: 5px 5px 150px 150px;
}

.ghost.face .mouth::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -17.5px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 100%;
  background: #000;
  box-shadow: 45px 0 0 #000;
}

.ghost:nth-child(1) { transition: 0.05s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 19; animation-delay: 0.03s; }
.ghost:nth-child(2) { transition: 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #f7f7f7; z-index: 18; animation-delay: 0.07s; }
.ghost:nth-child(3) { transition: 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 88px; height: 88px; margin: -44px 0 0 -44px; background: #efefef; z-index: 17; animation-delay: 0.1s; }
.ghost:nth-child(4) { transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #e7e7e7; z-index: 16; animation-delay: 0.13s; }
.ghost:nth-child(5) { transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 80px; height: 80px; margin: -40px 0 0 -40px; background: #dfdfdf; z-index: 15; animation-delay: 0.17s; }
.ghost:nth-child(6) { transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #d7d7d7; z-index: 14; animation-delay: 0.2s; }
.ghost:nth-child(7) { transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #cfcfcf; z-index: 13; animation-delay: 0.23s; }
.ghost:nth-child(8) { transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 68px; height: 68px; margin: -34px 0 0 -34px; background: #c7c7c7; z-index: 12; animation-delay: 0.27s; }
.ghost:nth-child(9) { transition: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #bfbfbf; z-index: 11; animation-delay: 0.3s; }
.ghost:nth-child(10) { transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 60px; height: 60px; margin: -30px 0 0 -30px; background: #b7b7b7; z-index: 10; animation-delay: 0.33s; }
.ghost:nth-child(11) { transition: 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 56px; height: 56px; margin: -28px 0 0 -28px; background: #afafaf; z-index: 9; animation-delay: 0.37s; }
.ghost:nth-child(12) { transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 52px; height: 52px; margin: -26px 0 0 -26px; background: #a7a7a7; z-index: 8; animation-delay: 0.4s; }
.ghost:nth-child(13) { transition: 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 48px; height: 48px; margin: -24px 0 0 -24px; background: #9f9f9f; z-index: 7; animation-delay: 0.43s; }
.ghost:nth-child(14) { transition: 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 44px; height: 44px; margin: -22px 0 0 -22px; background: #979797; z-index: 6; animation-delay: 0.47s; }
.ghost:nth-child(15) { transition: 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 40px; height: 40px; margin: -20px 0 0 -20px; background: #8f8f8f; z-index: 5; animation-delay: 0.5s; }
.ghost:nth-child(16) { transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 36px; height: 36px; margin: -18px 0 0 -18px; background: #878787; z-index: 4; animation-delay: 0.53s; }
.ghost:nth-child(17) { transition: 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 32px; height: 32px; margin: -16px 0 0 -16px; background: #7f7f7f; z-index: 3; animation-delay: 0.57s; }
.ghost:nth-child(18) { transition: 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 28px; height: 28px; margin: -14px 0 0 -14px; background: #777; z-index: 2; animation-delay: 0.6s; }
.ghost:nth-child(19) { transition: 0.95s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 24px; height: 24px; margin: -12px 0 0 -12px; background: #6f6f6f; z-index: 1; animation-delay: 0.63s; }
.ghost:nth-child(20) { transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #676767; z-index: 0; animation-delay: 0.67s; }

.resume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.resume-panel {
  min-height: 16rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(0, 29, 110, 0.1);
}

.resume-panel.wide {
  grid-column: span 2;
}

.resume-panel.stack-panel {
  grid-column: auto;
  min-height: 20rem;
}

.resume-stack-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(16rem, 0.38fr);
  gap: 1rem;
}

.stack-spirit {
  align-self: stretch;
  width: 100%;
  min-height: 20rem;
}

.stack-spirit #speedcapture {
  opacity: 0.34;
}

.resume-panel p {
  line-height: 1.6;
}

.compact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.compact-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.82rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
}

.skill-orbit {
  display: flex;
  min-height: 34rem;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(0, 29, 110, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 29, 110, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 36px 36px;
}

.skill-orbit-small {
  min-height: 13rem;
  margin-top: 1rem;
  padding: 1.4rem;
  gap: 0.65rem;
}

.skill-orbit-small span {
  padding: 0.58rem 0.82rem;
  font-size: 0.9rem;
}

.skill-orbit span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  animation: floaty 5s ease-in-out infinite;
}

.skill-orbit span:nth-child(2n) {
  background: var(--cloud);
  animation-delay: -1.2s;
}

.skill-orbit span:nth-child(3n) {
  background: var(--peach);
  animation-delay: -2.1s;
}

.contact-section {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.48fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.1rem, 5vw, 5rem);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section > div {
  position: relative;
  z-index: 2;
}

.contact-links {
  display: grid;
  gap: 0.85rem;
}

.contact-links a {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (min-width: 1440px) {
  .hero,
  .sky-scroll-section,
  .story-sticky,
  .work-section,
  .resume-section,
  .contact-section {
    padding-right: max(5rem, calc((100vw - 1320px) / 2));
    padding-left: max(5rem, calc((100vw - 1320px) / 2));
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 0.72fr);
  }

  .portrait {
    width: min(34rem, 34vw);
  }

  .work-grid,
  .resume-grid {
    max-width: 1320px;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes talkBubble {
  0%, 8%, 100% {
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.96);
  }
  12%, 28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  32% {
    opacity: 0;
    transform: translateY(-0.2rem) scale(0.98);
  }
}

@keyframes ghostSwirl {
  to {
    transform: translateX(72px);
  }
}

@keyframes ghostBubbling {
  0% {
    box-shadow: 50px 120px 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: -85px 0 0 rgba(255, 255, 255, 1);
  }
  100% {
    box-shadow: 50px -120px 0 rgba(255, 255, 255, 0);
  }
}

@keyframes ghostWave {
  to {
    transform: rotate(-20deg);
  }
}

@keyframes ghostLook {
  0%,
  75%,
  100% {
    transform: translateX(-20px) rotateY(-10deg);
  }
  25% {
    transform: translateX(20px) rotateY(10deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .story-sticky,
  .sky-scroll-section,
  .resume-stack-row,
  .resume-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
    gap: 1.5rem;
  }

  .hero-stage {
    min-height: 35rem;
  }

  .sky-scroll-section {
    min-height: auto;
    background-attachment: scroll;
  }

  .sky-word {
    inset: auto 0.75rem 0.15rem;
    background-attachment: scroll;
    font-size: clamp(3.1rem, 13.8vw, 7.5rem);
    line-height: 0.86;
    text-align: center;
    white-space: nowrap;
  }

  .story-sticky {
    align-content: center;
    padding-top: 6rem;
  }

  .scene {
    min-height: 42vh;
  }

  .scene-img {
    width: min(24rem, 76vw);
    height: 42vh;
  }

  .chapter {
    grid-column: 1;
    grid-row: 2;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-panel.wide {
    grid-column: span 1;
  }

  .resume-stack-row {
    gap: 1rem;
  }

  .work-card {
    min-height: auto;
  }

  .stack-spirit {
    min-height: 16rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.75rem;
  }

  .brand {
    width: 3.25rem;
    border-width: 2px;
  }

  .brand-bubble {
    top: 4.2rem;
    left: 3.3rem;
    max-width: 11rem;
  }

  nav {
    max-width: min(17rem, calc(100vw - 5rem));
    flex-wrap: wrap;
    justify-content: flex-end;
    border-radius: 8px;
    gap: 0.45rem 0.7rem;
    padding: 0.58rem 0.7rem;
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 13vw, 4.1rem);
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-stage {
    min-height: 29rem;
  }

  .portrait {
    right: -0.2rem;
    width: min(22rem, 82vw);
    border-width: 7px;
  }

  .computer {
    width: min(12rem, 42vw);
  }

  .hero-computer {
    left: -4rem;
    bottom: 1.2rem;
  }

  .story-rail {
    height: 450vh;
  }

  .chapter-count {
    top: 5.1rem;
    left: 1rem;
  }

  .story-sticky {
    min-height: 100svh;
    padding: 5.8rem 1rem 2.5rem;
    gap: 1rem;
  }

  .scene {
    min-height: 35vh;
    margin-top: 1rem;
  }

  .scene::before {
    display: none;
  }

  .scene-img {
    width: min(21rem, 88vw);
    height: 35vh;
    border-width: 6px;
  }

  .chapter p:not(.eyebrow) {
    font-size: 1rem;
  }

  .work-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .work-section,
  .resume-section,
  .contact-section,
  .sky-scroll-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .resume-panel {
    min-height: auto;
  }

  .skill-orbit {
    min-height: auto;
    justify-content: flex-start;
    padding: 1rem;
    background-size: 28px 28px;
  }

  .skill-orbit span {
    padding: 0.58rem 0.78rem;
    font-size: 0.84rem;
  }

  .stack-spirit {
    min-height: 14rem;
  }

  .contact-section {
    min-height: auto;
  }
}

@media (max-width: 390px) {
  nav {
    max-width: calc(100vw - 4.8rem);
    font-size: 0.72rem;
  }

  .hero-icon-links {
    flex-wrap: wrap;
  }

  .button {
    width: 100%;
  }

  .contact-links a {
    min-height: 3rem;
    padding: 0 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .cursor-glow {
    display: none;
  }
}
