:root {
  --navy: #1b1b3a;
  --pink: #ff2e9a;
  --cyan: #00e5ff;
  --silver: #b8c7e6;
  --ice: #e3eeff;
  --bubblegum: #ffd6f0;
  --lavender: #c9a8ff;
  --lime: #b6ff3b;
  --yellow: #ffe66d;
  --periwinkle: #7b8cff;
  --white: #ffffff;
  --mist: #f4f7fd;
  --display: "Orbitron", "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  color-scheme: only light;
}

html {
  background-color: #e3eeff;
  color-scheme: only light;
  forced-color-adjust: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  background-color: var(--ice);
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 82%, rgba(0, 229, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 12%, rgba(255, 46, 154, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 74%, rgba(255, 230, 109, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 6%, rgba(201, 168, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 48%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 10% 16%, rgba(201, 168, 255, 0.45), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(0, 229, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 100%, rgba(255, 46, 154, 0.16), transparent 32%),
    linear-gradient(165deg, var(--ice) 0%, #f7f4ff 46%, var(--bubblegum) 100%);
}

body::selection,
body *::selection {
  background: var(--bubblegum);
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cyan);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.6rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.8rem max(1rem, env(safe-area-inset-right)) 0.8rem max(1rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(184, 199, 230, 0.95);
  box-shadow: 0 10px 30px rgba(27, 27, 58, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  background: rgba(255, 214, 240, 0.85);
}

.nav a[aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.85);
  background: var(--navy);
  color: var(--cyan);
  text-shadow:
    0 0 4px #ffffff,
    0 0 10px var(--cyan),
    0 0 20px var(--cyan),
    0 0 34px var(--pink);
  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.9),
    0 0 18px rgba(255, 46, 154, 0.55),
    inset 0 0 12px rgba(0, 229, 255, 0.28);
  animation: neon 2.8s ease-in-out infinite;
}

.nav a[aria-current="page"]:hover {
  background: var(--navy);
  color: var(--cyan);
}

@keyframes neon {
  0%,
  100% {
    text-shadow:
      0 0 4px #ffffff,
      0 0 10px var(--cyan),
      0 0 22px var(--cyan),
      0 0 36px var(--pink);
    box-shadow:
      0 0 8px rgba(0, 229, 255, 0.9),
      0 0 20px rgba(255, 46, 154, 0.6),
      inset 0 0 12px rgba(0, 229, 255, 0.28);
  }

  46% {
    text-shadow:
      0 0 4px #ffffff,
      0 0 8px var(--cyan),
      0 0 16px var(--cyan),
      0 0 26px var(--pink);
  }

  52% {
    text-shadow:
      0 0 2px #ffffff,
      0 0 6px var(--cyan),
      0 0 12px var(--pink);
  }

  58% {
    text-shadow:
      0 0 5px #ffffff,
      0 0 14px var(--cyan),
      0 0 26px var(--cyan),
      0 0 40px var(--pink);
  }
}

main {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.scene-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 2rem;
}

.stage {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(680px, 100%);
}

.halo {
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(460px, 92vw);
  height: min(460px, 92vw);
  transform: translate(-50%, -52%);
  border: 2px solid rgba(123, 140, 255, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(227, 238, 255, 0.72) 38%, rgba(255, 214, 240, 0.28) 60%, transparent 74%);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.85),
    0 0 50px rgba(201, 168, 255, 0.28);
  pointer-events: none;
}

.sparks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.sparks span {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 16px;
  height: 16px;
  margin: -8px;
  background: var(--c, var(--cyan));
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
  opacity: 0;
}

.stage.is-hatched .sparks span {
  animation: spark-out 900ms ease-out var(--d, 0ms) forwards;
}

@keyframes spark-out {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.3) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.05) rotate(35deg);
  }
}

.egg-world {
  position: relative;
  z-index: 1;
  perspective: 720px;
  perspective-origin: 50% 40%;
}

.egg-float {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  animation: float 3.6s ease-in-out infinite;
}

.stage.is-cracking .egg-float,
.stage.is-open .egg-float,
.stage.is-hatched .egg-float {
  animation: none;
}

.stage.is-cracking .egg-float {
  animation: shake 0.42s linear 3;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  20% {
    transform: translateX(-7px) rotate(-2deg);
  }

  40% {
    transform: translateX(7px) rotate(2deg);
  }

  60% {
    transform: translateX(-5px) rotate(-1deg);
  }

  80% {
    transform: translateX(5px) rotate(1deg);
  }
}

.egg-button {
  width: min(300px, 78vw);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -12deg));
  filter: drop-shadow(16px 28px 10px rgba(27, 27, 58, 0.2));
  animation: egg-sway 4.4s ease-in-out infinite;
  transition: transform 0.16s ease-out, filter 0.2s ease;
}

.egg-button:hover,
.egg-button:focus-visible,
.egg-button.is-tilting,
.stage.is-cracking .egg-button,
.stage.is-open .egg-button,
.stage.is-hatched .egg-button {
  animation: none;
}

.egg-button:active:not(:disabled) {
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -12deg)) scale(0.96);
}

.stage.is-cracking .egg-button,
.stage.is-open .egg-button {
  transform: rotateX(18deg) rotateY(0deg);
}

.stage.is-hatched .egg-button {
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, 0deg));
}

.egg-button:disabled {
  cursor: default;
}

.egg-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.shell-top,
.shell-bottom,
.chick,
.ground-shadow,
.shell-lip,
.crack-line {
  transform-box: view-box;
}

.shell-top,
.shell-bottom {
  transform-origin: 120px 168px;
  transition: transform 0.85s cubic-bezier(0.18, 0.9, 0.22, 1.25);
}

.stage.is-open .shell-top {
  transform: translate3d(26px, -92px, 48px) rotateX(-64deg) rotateZ(-18deg);
}

.stage.is-open .shell-bottom {
  transform: translate3d(-8px, 26px, -16px) rotateX(24deg) rotateZ(7deg);
}

.chick {
  opacity: 0;
  transform-origin: 120px 160px;
  transform: translateY(18px) scale(0.72);
  transition:
    transform 0.55s cubic-bezier(0.2, 1.35, 0.32, 1),
    opacity 0.35s ease;
}

.stage.is-open .chick {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stage.is-hatched .chick {
  animation: chick-bob 1.5s ease-in-out infinite;
}

.crack-line {
  fill: none;
  stroke: var(--pink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: opacity 0.3s ease;
}

.stage.is-cracking .crack-line {
  stroke-dashoffset: 0;
}

.stage.is-open .crack-line {
  opacity: 0;
}

.shell-lip {
  fill: none;
  stroke: var(--navy);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stage.is-open .shell-lip {
  opacity: 1;
}

.egg-glint {
  opacity: 0.82;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  transition: transform 0.16s ease-out, opacity 0.25s ease;
  pointer-events: none;
}

.stage.is-cracking .egg-glint,
.stage.is-open .egg-glint {
  opacity: 0;
}

.chip {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.stage.is-cracking .chip {
  animation: chip-pop 720ms ease-out forwards;
}

.stage.is-cracking .chip-b {
  animation-delay: 70ms;
}

.stage.is-cracking .chip-c {
  animation-delay: 120ms;
}

@keyframes chip-pop {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1) rotate(48deg);
  }
}

@keyframes egg-sway {
  0%,
  100% {
    transform: rotateX(16deg) rotateY(-16deg);
  }

  50% {
    transform: rotateX(8deg) rotateY(16deg);
  }
}

@keyframes chick-bob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.egg-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 1.8s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.ground-shadow {
  transform-origin: center;
  transform: translateX(calc(var(--lean, 0) * -28px));
  transition: transform 0.2s ease;
}

.stage.is-open .ground-shadow {
  transform: translateX(calc(var(--lean, 0) * -28px)) scaleX(1.25);
}

.hatch-help,
.hatch-result {
  position: relative;
  z-index: 4;
  text-align: center;
}

.hatch-help {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.hatch-line {
  margin: 0.2rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.hatch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.page {
  width: min(1040px, calc(100% - 2rem));
  margin: 1.5rem auto 2.25rem;
}

.sheet,
.page-intro,
.empty-note,
.project-card {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(184, 199, 230, 0.95);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 16px 40px rgba(27, 27, 58, 0.06);
}

.sheet {
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.page-intro {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  background: var(--pink);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translateY(-0.08rem);
}

h1,
h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.lede,
.about-copy p,
.empty-note,
.email-card p,
.sheet p {
  line-height: 1.7;
}

.lede {
  max-width: 40rem;
  margin: 0;
  font-size: 1.12rem;
}

.about-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.about-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.about-switch button:hover {
  background: rgba(255, 214, 240, 0.85);
}

.about-switch button[aria-selected="true"] {
  border-color: rgba(0, 229, 255, 0.85);
  background: var(--navy);
  color: var(--cyan);
  text-shadow:
    0 0 4px #ffffff,
    0 0 10px var(--cyan),
    0 0 20px var(--cyan),
    0 0 34px var(--pink);
  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.9),
    0 0 18px rgba(255, 46, 154, 0.55),
    inset 0 0 12px rgba(0, 229, 255, 0.28);
  animation: neon 2.8s ease-in-out infinite;
}

.about-switch button[aria-selected="true"]:hover {
  background: var(--navy);
  color: var(--cyan);
}

.studio-action {
  margin: 1.25rem 0 0;
}

.about-layout {
  display: grid;
  gap: 1.75rem;
}

.portrait {
  position: relative;
  width: min(280px, 100%);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(201, 168, 255, 0.35)),
    linear-gradient(180deg, var(--ice), var(--bubblegum));
  box-shadow: 8px 8px 0 rgba(27, 27, 58, 0.12);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.25rem;
  gap: 0.45rem;
  text-align: center;
}

.portrait-placeholder p {
  margin: 0;
}

.placeholder-star {
  width: 36px;
  height: 36px;
}

.portrait-hint {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.skills {
  margin-top: 2rem;
}

.skill-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.skill-grid div {
  padding: 0.95rem 1rem;
  border: 1px solid var(--silver);
  border-radius: 18px;
  background: var(--mist);
}

.skill-grid dt {
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-grid dd {
  margin: 0;
}

.empty-note {
  margin: 1rem 0 0;
  padding: 1.4rem 1.3rem;
  border-style: dashed;
}

.project-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.project-list:empty {
  display: none;
}

.project-list:not(:empty) ~ .empty-note {
  display: none;
}

.project-card {
  padding: 1.25rem 1.3rem 1.35rem;
}

.project-card h2 {
  margin-bottom: 0.35rem;
}

.project-card p {
  margin: 0;
}

.project-meta {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.project-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.project-card li + li {
  margin-top: 0.4rem;
}

.connect-layout {
  display: grid;
  gap: 1rem;
}

.email-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--silver);
  border-radius: 18px;
  background: var(--mist);
}

.email-value {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.email-value a {
  color: var(--navy);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--silver);
  border-radius: 16px;
  background: var(--white);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--pink);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 46, 154, 0.18);
}

.form-grid .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.form-grid {
  position: relative;
}

.form-grid.is-mailing {
  overflow: hidden;
}

.form-grid.is-mailing > label,
.form-grid.is-mailing > .btn,
.form-grid.is-mailing > .form-status {
  visibility: hidden;
}

.mail-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  margin: -1px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(227, 238, 255, 0.94) 62%, rgba(255, 214, 240, 0.9));
  border-radius: inherit;
}

.mail-packet {
  position: relative;
  width: 230px;
  height: 250px;
  perspective: 900px;
}

.form-grid.is-mailing .mail-packet {
  animation: send-off 0.95s 2.65s ease-in forwards;
}

.envelope-back,
.envelope-pocket,
.envelope-flap,
.envelope-seal {
  position: absolute;
  left: 50%;
}

.envelope-back {
  bottom: 8px;
  width: 196px;
  height: 118px;
  margin-left: -98px;
  background: #ffe3f3;
  border: 2px solid var(--navy);
  border-radius: 8px;
}

.letter {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 118px;
  height: 156px;
  margin-left: -59px;
  z-index: 2;
  transform-style: preserve-3d;
}

.form-grid.is-mailing .letter {
  animation: letter-insert 0.7s 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.letter-bottom,
.letter-face,
.letter-back {
  background: #ffffff;
  border: 2px solid var(--navy);
}

.letter-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 14px 10px;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.letter-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.form-grid.is-mailing .letter-top {
  animation: fold-letter 0.7s 0.28s ease-in forwards;
}

.letter-face,
.letter-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 6px 6px 0 0;
}

.letter-face {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 14px;
}

.letter-back {
  background:
    linear-gradient(#ffffff, #ffffff) 14px 50% / calc(100% - 28px) 2px no-repeat,
    #f6e7ff;
  transform: rotateX(180deg);
}

.letter span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--silver);
}

.letter span.short {
  width: 58%;
}

.envelope-pocket {
  bottom: 8px;
  z-index: 3;
  display: grid;
  align-items: end;
  width: 196px;
  height: 118px;
  margin-left: -98px;
  padding: 0 0 14px;
  background: #fff7fc;
  border-radius: 8px;
  clip-path: polygon(0 32%, 50% 72%, 100% 32%, 100% 100%, 0 100%);
}

.envelope-pocket p {
  margin: 0;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.envelope-flap {
  bottom: 92px;
  z-index: 4;
  width: 196px;
  height: 68px;
  margin-left: -98px;
  background: #ffd0ee;
  transform-origin: center top;
  transform: rotateX(-168deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 1px 0 var(--navy));
}

.form-grid.is-mailing .envelope-flap {
  animation: close-flap 0.55s 1.9s ease-out forwards;
}

.envelope-seal {
  bottom: 58px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--pink);
  opacity: 0;
  transform: scale(0.4);
}

.envelope-seal svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan);
  stroke: var(--navy);
  stroke-width: 1.4;
}

.form-grid.is-mailing .envelope-seal {
  animation: seal-pop 0.35s 2.35s ease-out forwards;
}

.mail-caption {
  margin: 0;
  min-height: 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
}

@keyframes fold-letter {
  to {
    transform: rotateX(-180deg);
  }
}

@keyframes letter-insert {
  to {
    transform: translateY(92px) scale(0.72);
  }
}

@keyframes close-flap {
  to {
    transform: rotateX(0deg);
  }
}

@keyframes seal-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes send-off {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  30% {
    opacity: 1;
    transform: translate3d(18px, -42px, 0) rotate(-10deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(180px, -110px, 40px) rotate(18deg) scale(0.72);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
}

.btn-pink:hover {
  box-shadow: 0 8px 24px rgba(255, 46, 154, 0.35);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cyan:hover {
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.45);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 14vw, 9rem);
  flex-wrap: nowrap;
  margin: 0 1rem 1rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid rgba(184, 199, 230, 0.95);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 12px 30px rgba(27, 27, 58, 0.06);
}

.footer-logo {
  display: block;
  width: 92px;
  flex: 0 0 auto;
  height: auto;
  margin: 0;
}

.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.nav a[aria-current="page"]:focus-visible,
.btn-cyan:focus-visible {
  outline-color: var(--navy);
}

@media (min-width: 720px) {
  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .portrait {
    margin-inline: 0;
  }

  .connect-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-footer {
    gap: clamp(1.25rem, 8vw, 2.5rem);
    padding-inline: 0.75rem;
  }

  .footer-logo {
    width: 64px;
  }

  .footer-name {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 420px) {
  .nav a {
    padding-inline: 0.6rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
