@charset "UTF-8";
html, body {
  overflow-x: hidden;
  width: 100%;
}

section {
  transition: transform 0.2s ease;
}
section:hover {
  transform: scale(1.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: rgb(56, 60, 65);
  text-decoration: none;
  background-color: transparent;
}

h2 {
  font-size: 2em;
  font-weight: 800;
}

.page {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* From here top and bottom bar css */
.top-bar, .bottom-bar, .social-links, .menu-toggle-label, .menu-items a {
  background-color: rgb(226, 218, 214);
}

.top-bar {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  margin-top: 10px;
  margin-left: 15%;
  margin-right: 15%;
  width: 70%;
  max-width: 100vw;
  height: 70px;
  min-height: 60px;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
  z-index: 100;
  border-radius: 35px;
  transition: transform 0.2s ease;
}
.top-bar:hover {
  transform: scale(1.01);
}

.bottom-bar {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: flex-start;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
}

.logo {
  float: left;
  max-width: 50px;
  max-height: 50px;
  margin-top: 5px;
  margin-left: 20px;
}
.logo:hover {
  transform: scale(1.2);
}

.cv {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgb(245, 237, 237) !important;
  padding: 15px 15px;
  margin: 6px 10px;
  font-family: "Roboto", sans-serif;
  font-size: small;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 50%;
  margin-bottom: 0px;
  margin-right: 0px;
  float: right;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  float: right;
  border-radius: 25px;
  margin-right: 10px;
}
.cv:hover {
  transform: scale(1.3);
}

.contact {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgb(245, 237, 237) !important;
  padding: 15px 15px;
  margin: 6px 10px;
  font-family: "Roboto", sans-serif;
  font-size: small;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 50%;
  margin-bottom: 0px;
  margin-right: 0px;
  float: right;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  float: right;
  margin-right: 10px;
  border-radius: 25px;
}
.contact:hover {
  transform: scale(1.3);
}

.background {
  background-color: rgb(226, 218, 214);
  width: 100%;
  height: 100%;
}

.social-links {
  background-color: transparent;
  color: rgb(56, 60, 65) !important;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  margin-left: 20px;
  padding-top: 20px;
  transition: transform 0.2s ease;
}
.social-links:hover {
  transform: scale(1.05);
}

/* From here specific css sticky menu */
.sticky-menu {
  background-color: transparent;
  color: rgb(56, 60, 65);
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 10px;
  z-index: 1000;
}

#menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgb(56, 60, 65) !important;
  transition: transform 0.2s ease;
}
.menu-toggle-label:hover {
  transform: scale(1.1);
}

.menu-toggle-label::before {
  content: "✖";
  text-shadow: rgba(249, 249, 249, 0.3) 0px 1px 15px;
  position: absolute;
  transform: rotate(135deg);
  font-size: 24px;
  line-height: 60px;
  transition: transform 0.5s ease;
}

#menu-toggle:checked + .menu-toggle-label::before {
  content: "✖";
  transform: rotate(0deg);
}

.menu-items {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgb(56, 60, 65);
  text-shadow: rgba(249, 249, 249, 0.3) 0px 1px 15px;
}

#menu-toggle:checked ~ .menu-items {
  display: block;
}

.menu-items li {
  margin-bottom: 10px;
}

.menu-items a {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  text-decoration: none;
  text-align: center;
  line-height: 60px;
  color: rgb(56, 60, 65);
  text-shadow: rgba(249, 249, 249, 0.3) 0px 1px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.menu-items a:hover {
  transform: scale(1.1);
}

.bi {
  font-size: 20px;
}

/* From here specific css index */
.bio, .coding, .volontar, .hobbies {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bio {
  background-color: rgb(245, 237, 237);
  color: rgb(56, 60, 65);
  width: 100%;
  height: -moz-fit-content;
  height: fit-content;
  padding-top: 100px;
  padding-bottom: 15px;
  display: flex;
  flex-direction: row;
}
.bio .profile-image {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 900px;
  max-height: 900px;
  padding-left: 10%;
  padding-right: 70px;
  padding-bottom: 30px;
  border-radius: 50%;
}
.bio .profile-image img {
  min-width: 65px;
  min-height: 65px;
  max-width: auto;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
}
.bio .bio-text {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: left;
  color: rgb(56, 60, 65);
  max-height: 100%;
}
.bio .empty-space {
  background-color: rgb(245, 237, 237);
  width: 100%;
}

.coding {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: left;
  color: rgb(56, 60, 65);
  background-color: rgb(226, 218, 214);
  color: rgb(56, 60, 65);
  width: 100%;
  height: -moz-fit-content;
  height: fit-content;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-left: 10%;
}

.coding-text {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: left;
  color: rgb(56, 60, 65);
  max-height: 100%;
}

.skills {
  height: -moz-fit-content;
  height: fit-content;
  color: rgb(56, 60, 65);
  padding-top: 0px;
  padding-bottom: 30px;
  padding-left: 10px;
}

.volontar, .hobbies {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: left;
  color: rgb(56, 60, 65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 380px;
}

.volontar {
  background-color: rgb(245, 237, 237);
  min-height: 380px;
}

.hobbies {
  background-color: rgb(56, 60, 65);
  color: rgb(226, 218, 214);
  min-height: 380px;
}

/* From here specific css curriculum */
.curriculum-box {
  width: 90%;
  height: -moz-fit-content;
  height: fit-content;
  background-color: rgb(245, 237, 237);
  font-family: "Roboto", sans-serif;
  color: rgb(56, 60, 65);
  text-align: center;
  margin-left: 5%;
  margin-right: 10%;
  padding-top: 100px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 25px;
  border-radius: 25px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  color: rgb(56, 60, 65);
}

header p {
  margin: 5px 0;
  color: rgb(56, 60, 65);
}

section {
  margin-bottom: 20px;
}

section h2 {
  padding-bottom: 10px;
  color: rgb(56, 60, 65);
}

section p {
  margin: 10px 0;
}

/* From here specific css form */
.form-box {
  padding-top: 100px;
  padding-bottom: 50px;
  width: 100%;
  height: 100%;
  background-color: rgb(226, 218, 214);
}

.compile-box {
  width: 80%;
  height: 700px;
  background-color: rgb(245, 237, 237);
  color: rgb(56, 60, 65);
  min-height: 850px;
  border-radius: 3px;
  padding-top: 100px;
  padding-left: 50px;
  padding-right: 30px;
  margin-left: 5%;
  margin-right: 10%;
  font-family: "Roboto", sans-serif;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 35px;
}

.compile {
  min-height: 40px;
  width: 80%;
  margin-bottom: 40px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
}

.compile input[type=text],
.compile input[type=email] {
  background-color: rgb(255, 255, 255);
  border: none;
  border-radius: 25px;
  width: 90%;
  padding: 7px;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.compile input[type=text]:hover,
.compile input[type=email]:hover {
  transform: scale(1.02);
}

.compile textarea {
  background-color: rgb(255, 255, 255);
  border: none;
  border-radius: 25px;
  width: 100%;
  padding: 7px;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.compile textarea:hover {
  transform: scale(1.02);
}

.submit {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgb(245, 237, 237) !important;
  padding: 15px 15px;
  margin: 6px 10px;
  font-family: "Roboto", sans-serif;
  font-size: small;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 50%;
  margin-bottom: 0px;
  margin-right: 0px;
  float: right;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  background-color: rgb(56, 60, 65);
  color: rgb(245, 237, 237) !important;
  margin-bottom: 10px;
  border: none;
  border-radius: 30px;
  position: relative;
  transition: transform 0.2s ease;
}
.submit:hover {
  transform: scale(1.2);
}

@media only screen and (min-width: 401px) and (max-width: 960px) {
  h2 {
    font-size: 1.5em;
  }
  .bio {
    width: 100%;
  }
  .bio .profile-image {
    min-width: 100px;
    min-height: 100px;
  }
  .coding {
    width: 100%;
  }
  .volontar, .hobbies {
    width: 50%;
    float: left;
    min-height: 1100px;
  }
}
@media only screen and (min-width: 790px) and (max-width: 960px) {
  .compile-box {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    min-height: 1200px;
  }
}
@media only screen and (min-width: 961px) {
  .bio, .coding {
    width: 100%;
    height: 600px;
    margin: 0 auto;
  }
  .volontar, .hobbies {
    width: 50%;
    height: 500px;
    float: left;
  }
  .curriculum-box {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }
  .compile-box {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    min-height: 1200px;
  }
  .compile input[type=text],
  .compile input[type=email] {
    width: 50%;
  }
  .compile textarea {
    width: 70%;
  }
  .submit {
    width: 100px;
    margin-right: 100px;
  }
}
@media only screen and (max-width: 600px) {
  .home-page .bio,
  .home-page .coding,
  .home-page .volontar,
  .home-page .hobbies {
    width: 100%;
    min-height: auto;
    padding-right: 20px;
    padding-left: 20px;
  }
  .home-page .bio > .row,
  .home-page .coding > .row,
  .home-page .volontar > .row,
  .home-page .hobbies > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .home-page .bio .empty-space,
  .home-page .coding .empty-space,
  .home-page .volontar .empty-space,
  .home-page .hobbies .empty-space {
    display: none;
  }
  .home-page .bio {
    padding-top: 90px;
  }
  .home-page .bio .profile-image {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    padding: 0 0 24px;
    justify-content: flex-end;
  }
  .home-page .bio .profile-image img {
    width: 96px;
    min-width: 96px;
    min-height: 96px;
  }
  .home-page .bio-text,
  .home-page .coding-text,
  .home-page .volontar-text,
  .home-page .hobbies-text {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    text-align: left;
  }
  .home-page .coding {
    padding-top: 28px;
  }
  .home-page .skills {
    width: 100%;
    padding: 12px 0 0;
    text-align: right;
  }
  .home-page .skills > h2 {
    margin-bottom: 12px;
  }
  .home-page .skills > br {
    display: none;
  }
  .home-page .skills > h4 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
  }
  .home-page .skills > h4 br {
    display: none;
  }
}

/* =========================================================
   LIQUID GLASS — NAVIGATION ONLY
   ========================================================= */
:root {
  --glass-ink: rgba(56, 60, 65, 0.94);
  --glass-surface: rgba(255, 255, 255, 0.02);
  --glass-surface-hover: rgba(255, 255, 255, 0.07);
  /* Light enough that content underneath shows as shapes, strong enough that it can't be read. */
  --glass-blur: 8px;
  --glass-border: rgba(255, 255, 255, 0.30);
  --glass-highlight: rgba(255, 255, 255, 0.48);
  --glass-shadow: rgba(29, 42, 48, 0.22);
  --glass-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Damped spring (zeta 0.7): ~5% overshoot, settles like macOS Spotlight. */
  --glass-spring: linear(0, 0.098, 0.306, 0.531, 0.726, 0.871, 0.965, 1.018, 1.042, 1.046, 1.04, 1.03, 1.02, 1.011, 1.005, 1.001, 0.999, 0.998, 0.998, 0.998, 0.999, 0.999, 1, 1, 1);
  --action-size: 48px;
  --action-gap: 8px;
  --bar-pad: 9px;
  --bar-split: 14px;
}

.home-page .liquid-glass {
  --glass-x: 50%;
  --glass-y: 0%;
  background: radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.09) 28%, transparent 58%), linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--glass-surface));
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 42px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%);
}

/* Gooey filter layers (injected by liquid-glass.js) draw the liquid neck
   between drops while they split; glass cannot be filtered directly. */
.goo-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.home-page .bar-goo,
.home-page .menu-goo {
  position: absolute;
  opacity: 0;
  /* The shadow gives the white necks an edge on the light page background. */
  filter: url(#goo) drop-shadow(0 6px 14px rgba(29, 42, 48, 0.28));
  pointer-events: none;
}

.home-page .bar-goo i,
.home-page .menu-goo i {
  position: absolute;
  border-radius: 999px;
  background: #fff;
}

/* One curve under several names: switching state restarts the flash. */
@keyframes goo-flash {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.36;
  }
  45% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
  }
}
@keyframes goo-flash-cv {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.36;
  }
  45% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
  }
}
@keyframes goo-flash-all {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.36;
  }
  45% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
  }
}
/* Navbar: the nav is only a layout box, ::before is the glass pill so it can retract. */
.home-page .top-bar {
  /* Derived here, not on :root, so the mobile --action-size override reaches them. */
  /* Space the pill leaves free at rest: both drops plus the split. */
  --bar-cut: calc(var(--bar-pad) + 2 * var(--action-size) + var(--action-gap) + var(--bar-split));
  --bar-cut-last: calc(var(--bar-pad) + var(--action-size) + var(--bar-split));
  /* When the pill swallows only CV, its icon slides left to sit inside the shorter pill. */
  --cv-shift: calc(var(--bar-split) + var(--bar-pad) - var(--action-gap));
  top: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: var(--action-gap);
  width: 70%;
  height: 70px;
  min-height: 60px;
  margin: 10px 15% 0;
  padding: 6px var(--bar-pad) 6px 14px;
  border-radius: 999px;
  transform: translateY(0);
  transition: transform 450ms var(--glass-ease);
}

.home-page .top-bar.liquid-glass {
  background: none;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .top-bar::before {
  --glass-x: 50%;
  --glass-y: 0%;
  background: radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.09) 28%, transparent 58%), linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--glass-surface));
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 42px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  content: "";
  position: absolute;
  inset: 0;
  right: var(--pill-cut, 0px);
  z-index: -1;
  border-radius: inherit;
  transition: right 600ms var(--glass-spring) 90ms;
}

.home-page .bar-goo {
  inset: 0;
  z-index: -1;
}

.home-page .bar-goo i {
  top: 50%;
  width: var(--action-size);
  height: var(--action-size);
  margin-top: calc(var(--action-size) / -2);
}

/* Blob 1 tracks the pill's right end, blobs 2-3 sit under the two actions. */
.home-page .bar-goo i:nth-child(1) {
  top: 0;
  right: var(--pill-cut, 0px);
  width: 64px;
  height: 100%;
  margin-top: 0;
  transition: right 600ms var(--glass-spring) 90ms;
}

.home-page .bar-goo i:nth-child(2) {
  right: calc(var(--bar-pad) + var(--action-size) + var(--action-gap));
  transition: transform 600ms var(--glass-spring) 90ms;
}

.home-page .bar-goo i:nth-child(3) {
  right: var(--bar-pad);
}

.home-page .top-bar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 350ms var(--glass-ease);
}

.home-page .top-bar .logo:hover {
  transform: scale(1.045);
}

.home-page .top-bar .logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* At rest the actions float beside a shorter pill as drops (they split off on page load);
   hovering one lets the pill swallow it and every action before it. */
.home-page .top-bar .cv,
.home-page .top-bar .contact {
  border-color: rgba(255, 255, 255, 0.34);
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.28), transparent 50%), var(--glass-surface-hover);
  box-shadow: 0 9px 24px rgba(29, 42, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: var(--action-size);
  height: var(--action-size);
  min-width: var(--action-size);
  margin: 0;
  padding: 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;
  transition: border-color 260ms ease 90ms, background 300ms ease 90ms, box-shadow 300ms ease 90ms;
}

.home-page .top-bar {
  --pill-cut: var(--bar-cut);
}

.home-page .top-bar .cv,
.home-page .bar-goo i:nth-child(2) {
  animation: drop-pinch 600ms var(--glass-spring) backwards;
}

.home-page .top-bar .contact,
.home-page .bar-goo i:nth-child(3) {
  animation: drop-pinch 600ms var(--glass-spring) 50ms backwards;
}

.home-page .bar-goo {
  animation: goo-flash 600ms ease-out both;
}

.home-page .top-bar .cv {
  margin-left: auto;
}

/* Bridges the gap to the contact drop, so moving between them never passes through rest. */
.home-page .top-bar .cv::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: var(--action-gap);
}

.home-page .top-bar .cv a,
.home-page .top-bar .contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--glass-ink) !important;
  transition: transform 600ms var(--glass-spring) 90ms;
}

/* Moving toward a hovered state reacts at once; returning to rest waits 90ms. */
/* CV hovered: the pill swallows CV, the contact drop stays apart. */
/* Contact hovered: the pill is whole again and swallows both actions. */
@media (hover: hover) {
  .home-page .top-bar:hover {
    transform: translateY(-1px);
  }

  .home-page .top-bar:has(.cv:hover) {
    --pill-cut: var(--bar-cut-last);
    /* Only the icon moves, so the hover target under the pointer stays put. */
  }
  .home-page .top-bar:has(.cv:hover)::before,
  .home-page .top-bar:has(.cv:hover) .cv,
  .home-page .top-bar:has(.cv:hover) .contact,
  .home-page .top-bar:has(.cv:hover) .cv a,
  .home-page .top-bar:has(.cv:hover) .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar:has(.cv:hover) .cv {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar:has(.cv:hover) .bar-goo i:nth-child(2) {
    animation: none;
  }
  .home-page .top-bar:has(.cv:hover) .cv a,
  .home-page .top-bar:has(.cv:hover) .bar-goo i:nth-child(2) {
    transform: translateX(calc(-1 * var(--cv-shift)));
  }
  .home-page .top-bar:has(.cv:hover) .bar-goo {
    animation: goo-flash-cv 600ms ease-out both;
  }

  .home-page .top-bar:has(.contact:hover) {
    --pill-cut: 0px;
  }
  .home-page .top-bar:has(.contact:hover)::before,
  .home-page .top-bar:has(.contact:hover) .cv,
  .home-page .top-bar:has(.contact:hover) .contact,
  .home-page .top-bar:has(.contact:hover) .cv a,
  .home-page .top-bar:has(.contact:hover) .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar:has(.contact:hover) .cv,
  .home-page .top-bar:has(.contact:hover) .contact {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar:has(.contact:hover) .bar-goo i:nth-child(2),
  .home-page .top-bar:has(.contact:hover) .bar-goo i:nth-child(3) {
    animation: none;
  }
  .home-page .top-bar:has(.contact:hover) .bar-goo {
    animation: goo-flash-all 600ms ease-out both;
  }
}
.home-page .top-bar:has(.cv:focus-within) {
  --pill-cut: var(--bar-cut-last);
  /* Only the icon moves, so the hover target under the pointer stays put. */
}
.home-page .top-bar:has(.cv:focus-within)::before,
.home-page .top-bar:has(.cv:focus-within) .cv,
.home-page .top-bar:has(.cv:focus-within) .contact,
.home-page .top-bar:has(.cv:focus-within) .cv a,
.home-page .top-bar:has(.cv:focus-within) .bar-goo i {
  transition-delay: 0ms;
}
.home-page .top-bar:has(.cv:focus-within) .cv {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
.home-page .top-bar:has(.cv:focus-within) .bar-goo i:nth-child(2) {
  animation: none;
}
.home-page .top-bar:has(.cv:focus-within) .cv a,
.home-page .top-bar:has(.cv:focus-within) .bar-goo i:nth-child(2) {
  transform: translateX(calc(-1 * var(--cv-shift)));
}
.home-page .top-bar:has(.cv:focus-within) .bar-goo {
  animation: goo-flash-cv 600ms ease-out both;
}

.home-page .top-bar:has(.contact:focus-within) {
  --pill-cut: 0px;
}
.home-page .top-bar:has(.contact:focus-within)::before,
.home-page .top-bar:has(.contact:focus-within) .cv,
.home-page .top-bar:has(.contact:focus-within) .contact,
.home-page .top-bar:has(.contact:focus-within) .cv a,
.home-page .top-bar:has(.contact:focus-within) .bar-goo i {
  transition-delay: 0ms;
}
.home-page .top-bar:has(.contact:focus-within) .cv,
.home-page .top-bar:has(.contact:focus-within) .contact {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
.home-page .top-bar:has(.contact:focus-within) .bar-goo i:nth-child(2),
.home-page .top-bar:has(.contact:focus-within) .bar-goo i:nth-child(3) {
  animation: none;
}
.home-page .top-bar:has(.contact:focus-within) .bar-goo {
  animation: goo-flash-all 600ms ease-out both;
}

/* Touch screens have no hover: a press squishes the drop, and on arrival the pill
   absorbs the current page's drop (liquid-glass.js adds .is-arrived after first paint). */
@media (hover: none) {
  .home-page .top-bar .logo {
    transition:
      transform 350ms var(--glass-ease),
      scale 450ms var(--glass-spring);
  }

  .home-page .top-bar .cv,
  .home-page .top-bar .contact {
    transition:
      border-color 260ms ease 90ms,
      background 300ms ease 90ms,
      box-shadow 300ms ease 90ms,
      scale 450ms var(--glass-spring);
  }

  .home-page .menu-items a {
    transition:
      transform 380ms var(--glass-ease),
      background 300ms ease,
      scale 450ms var(--glass-spring);
  }

  /* `scale` composes with the transforms the drops already use. */
  .home-page .top-bar .logo:active,
  .home-page .top-bar .cv:active,
  .home-page .top-bar .contact:active,
  .home-page .menu-items a:active {
    scale: 0.82;
    transition-duration: 90ms;
  }

  /* Start state = the previous page's (set by liquid-glass.js), so the pill continues from there. */
  .home-page .top-bar.from-cv {
    --pill-cut: var(--bar-cut-last);
    /* Only the icon moves, so the hover target under the pointer stays put. */
  }
  .home-page .top-bar.from-cv::before,
  .home-page .top-bar.from-cv .cv,
  .home-page .top-bar.from-cv .contact,
  .home-page .top-bar.from-cv .cv a,
  .home-page .top-bar.from-cv .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar.from-cv .cv {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar.from-cv .bar-goo i:nth-child(2) {
    animation: none;
  }
  .home-page .top-bar.from-cv .cv a,
  .home-page .top-bar.from-cv .bar-goo i:nth-child(2) {
    transform: translateX(calc(-1 * var(--cv-shift)));
  }
  .home-page .top-bar.from-cv .bar-goo {
    animation: goo-flash-cv 600ms ease-out both;
  }

  .home-page .top-bar.from-all {
    --pill-cut: 0px;
  }
  .home-page .top-bar.from-all::before,
  .home-page .top-bar.from-all .cv,
  .home-page .top-bar.from-all .contact,
  .home-page .top-bar.from-all .cv a,
  .home-page .top-bar.from-all .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar.from-all .cv,
  .home-page .top-bar.from-all .contact {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar.from-all .bar-goo i:nth-child(2),
  .home-page .top-bar.from-all .bar-goo i:nth-child(3) {
    animation: none;
  }
  .home-page .top-bar.from-all .bar-goo {
    animation: goo-flash-all 600ms ease-out both;
  }

  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) {
    --pill-cut: var(--bar-cut-last);
    /* Only the icon moves, so the hover target under the pointer stays put. */
  }
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"])::before,
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .cv,
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .contact,
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .cv a,
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .cv {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .bar-goo i:nth-child(2) {
    animation: none;
  }
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .cv a,
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .bar-goo i:nth-child(2) {
    transform: translateX(calc(-1 * var(--cv-shift)));
  }
  .home-page .top-bar.is-arrived:has(.cv a[aria-current="page"]) .bar-goo {
    animation: goo-flash-cv 600ms ease-out both;
  }

  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) {
    --pill-cut: 0px;
  }
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"])::before,
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .cv,
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .contact,
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .cv a,
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .bar-goo i {
    transition-delay: 0ms;
  }
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .cv,
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .contact {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .bar-goo i:nth-child(2),
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .bar-goo i:nth-child(3) {
    animation: none;
  }
  .home-page .top-bar.is-arrived:has(.contact a[aria-current="page"]) .bar-goo {
    animation: goo-flash-all 600ms ease-out both;
  }
}

@media (hover: none) {
  /* The arrival move replaces the load split-off (it read as the pill going back). */
  .home-page .top-bar .cv,
  .home-page .top-bar .contact,
  .home-page .top-bar .bar-goo,
  .home-page .top-bar .bar-goo i {
    animation: none;
  }

  .home-page .top-bar.is-arrived .logo:has(a[aria-current="page"]) {
    animation: logo-arrive 650ms ease-in-out;
  }
}

@keyframes logo-arrive {
  35% {
    scale: 1.2;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55);
  }
}

@keyframes drop-pinch {
  from {
    transform: translateX(-16px) scale(0.78);
  }
  to {
    transform: none;
  }
}
.home-page .top-bar a:focus-visible,
.home-page .menu-toggle-label:focus-visible,
.home-page .menu-items a:focus-visible {
  outline: 3px solid rgba(76, 123, 139, 0.62);
  outline-offset: 3px;
}

/* Sticky menu: Spotlight's split, turned vertical. */
.home-page .sticky-menu {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 64px;
  height: 64px;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.home-page .menu-toggle-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  color: var(--glass-ink) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transform-origin: 50% 100%;
  transition: box-shadow 350ms ease;
}

/* The sticky menu keeps flat glass: no glare along the top edge. */
.home-page .sticky-menu .liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--glass-surface));
  box-shadow: 0 14px 42px var(--glass-shadow), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Neutralize the legacy label icon; the glyph below is the only +/×. */
.home-page .menu-toggle-label::before,
.home-page .menu-toggle-label::after {
  content: none !important;
}

.home-page .menu-glyph {
  position: relative;
  z-index: 2;
  display: block;
  width: 23px;
  height: 23px;
  pointer-events: none;
}

.home-page .menu-glyph::before,
.home-page .menu-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.38);
  transition: transform 600ms var(--glass-spring);
}

.home-page .menu-glyph::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.home-page .menu-glyph::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.home-page .sticky-menu.is-open .menu-toggle-label {
  box-shadow: 0 18px 46px rgba(29, 42, 48, 0.26);
}

.home-page .sticky-menu.is-open .menu-toggle-label,
.home-page .sticky-menu.is-open .menu-goo i:last-child {
  animation: toggle-stretch 600ms var(--glass-ease) both;
}

.home-page .sticky-menu.is-open .menu-glyph::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.home-page .sticky-menu.is-open .menu-glyph::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* The toggle leans toward the drops it releases, then springs back. */
@keyframes toggle-stretch {
  0% {
    transform: none;
  }
  22% {
    transform: scale(0.95, 1.08);
  }
  55% {
    transform: scale(1.01, 0.98);
  }
  100% {
    transform: none;
  }
}
.home-page .menu-items {
  position: absolute;
  right: 0;
  bottom: 74px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 64px;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
  pointer-events: none;
}

/* Goo column mirrors the menu: three drops above, the toggle anchor below. */
.home-page .menu-goo {
  right: 0;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 64px;
}

.home-page .menu-goo i {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
}

.home-page .menu-goo i:last-child {
  width: 64px;
  height: 64px;
  transform-origin: 50% 100%;
}

.home-page .menu-items li,
.home-page .menu-goo i:not(:last-child) {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0;
  opacity: 0;
  transform: translateY(var(--bubble-origin)) scale(0.3);
  transform-origin: center;
  transition: transform 420ms var(--glass-ease) var(--close-delay), opacity 140ms ease calc(var(--close-delay) + 240ms);
}

/* Drops are born at the toggle; the nearest one leaves first. */
.home-page .menu-items li:nth-child(1),
.home-page .menu-goo i:nth-child(1) {
  --bubble-origin: 202px;
  --bubble-delay: 90ms;
  --close-delay: 0ms;
}

.home-page .menu-items li:nth-child(2),
.home-page .menu-goo i:nth-child(2) {
  --bubble-origin: 136px;
  --bubble-delay: 45ms;
  --close-delay: 40ms;
}

.home-page .menu-items li:nth-child(3),
.home-page .menu-goo i:nth-child(3) {
  --bubble-origin: 70px;
  --bubble-delay: 0ms;
  --close-delay: 80ms;
}

.home-page .sticky-menu.is-open .menu-items {
  pointer-events: auto;
}

.home-page .sticky-menu.is-open .menu-items li,
.home-page .sticky-menu.is-open .menu-goo i:not(:last-child) {
  opacity: 1;
  transform: none;
  transition: transform 600ms var(--glass-spring) var(--bubble-delay), opacity 90ms linear var(--bubble-delay);
}

.home-page .sticky-menu.is-open .menu-goo {
  animation: goo-flash 600ms ease-out both;
}

.home-page .sticky-menu.is-closing .menu-goo {
  animation: goo-flash-out 480ms ease-out both;
}

.home-page .menu-items a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--glass-ink);
  line-height: normal;
  text-shadow: none;
  transition: transform 380ms var(--glass-ease), background 300ms ease;
}

.home-page .menu-items a:hover {
  transform: translateY(-3px) scale(1.08);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.42), transparent 52%), rgba(255, 255, 255, 0.17);
}

.home-page .nav-icon,
.home-page .menu-items .lucide {
  position: relative;
  z-index: 2;
  width: 21px;
  height: 21px;
  font-size: 20px;
  stroke-width: 1.8;
}

/* Icons resolve from blur once their drop has landed. */
.home-page .menu-items a > * {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 120ms ease, filter 120ms ease;
}

.home-page .sticky-menu.is-open .menu-items a > * {
  opacity: 1;
  filter: none;
  transition: opacity 220ms ease calc(var(--bubble-delay) + 150ms), filter 260ms ease calc(var(--bubble-delay) + 150ms);
}

/* =========================================================
   HOME CONTENT — NAME HEADING AND PROJECTS
   ========================================================= */
.home-page .bio-name {
  margin: 0 0 18px;
  color: #383c41;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* Projects grow the Coding band, so it can no longer keep a fixed height. */
.home-page .coding {
  height: auto;
  min-height: 600px;
}

.home-page .projects {
  margin: 34px 0 0;
  transform: none;
}

.home-page .projects:hover {
  transform: none;
}

.home-page .projects h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-page .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .project-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(245, 237, 237, 0.72);
  border: 1px solid rgba(56, 60, 65, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(56, 60, 65, 0.08);
  transition: transform 350ms var(--glass-ease), box-shadow 350ms ease;
}

.home-page .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(56, 60, 65, 0.13);
}

.home-page .project-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-page .project-card p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.55;
}

.home-page .project-card .project-stack {
  color: #4c7b8b;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-page .project-card .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: auto 0 0;
}

.home-page .project-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .project-links a:focus-visible {
  outline: 3px solid rgba(76, 123, 139, 0.62);
  outline-offset: 3px;
}

/* =========================================================
   INTERIOR PAGES — OPAQUE CONTENT, SHARED VISUAL RHYTHM
   ========================================================= */
.curriculum-page .background,
.form-page .background {
  height: auto;
  min-height: 100vh;
  padding: 112px 0 64px;
  background: #f5eded;
}

.home-page .sheet {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px);
  color: #383c41;
  text-align: left;
  background: #e2dad6;
  border: 1px solid rgba(56, 60, 65, 0.06);
  border-radius: 32px;
  box-shadow: 0 22px 60px rgba(56, 60, 65, 0.1);
}

.home-page .sheet header {
  margin: 0 0 12px;
  padding-bottom: 38px;
  text-align: left;
  border-bottom: 1px solid rgba(56, 60, 65, 0.12);
}

.curriculum-page .cv-kicker,
.form-page .form-kicker {
  margin: 0 0 12px;
  color: #4c7b8b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-page .sheet header h1 {
  margin: 0;
  color: #383c41;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.curriculum-page .cv-location {
  margin: 18px 0 0;
  color: rgba(56, 60, 65, 0.64);
  font-size: 0.95rem;
}

.home-page .sheet section {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  margin: 0;
  padding: 38px 0;
  border-bottom: 1px solid rgba(56, 60, 65, 0.11);
  transform: none;
}

.home-page .sheet section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-page .sheet section:hover {
  transform: none;
}

.home-page .sheet section h2 {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  color: #383c41;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.home-page .sheet section h2::before {
  content: "";
  position: absolute;
  top: 0.1em;
  bottom: 0.1em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: #4c7b8b;
}

.curriculum-page .curriculum-section-content {
  min-width: 0;
}

.curriculum-page .curriculum-section-content > br {
  display: none;
}

.curriculum-page .curriculum-section-content p {
  margin: 0;
  padding: 0 0 22px;
  color: rgba(56, 60, 65, 0.76);
  font-size: 0.98rem;
  line-height: 1.7;
}

.curriculum-page .curriculum-section-content p + p {
  padding-top: 22px;
  border-top: 1px solid rgba(56, 60, 65, 0.08);
}

.curriculum-page .curriculum-section-content p:last-child {
  padding-bottom: 0;
}

.curriculum-page .curriculum-section-content p::first-line {
  color: #383c41;
  font-weight: 700;
}

.curriculum-page .curriculum-section-content em {
  display: inline-block;
  margin-top: 5px;
  color: rgba(56, 60, 65, 0.62);
}

/* Contact page: same sheet as the CV, with the form in the content column. */
.form-page .form-intro {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(56, 60, 65, 0.64);
  font-size: 0.98rem;
  line-height: 1.65;
}

.form-page .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.form-page .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-page .field-wide {
  grid-column: 1 / -1;
}

.form-page .field label {
  margin: 0;
  color: #383c41;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-page .field input,
.form-page .field textarea {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  color: #383c41;
  font: inherit;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(56, 60, 65, 0.1);
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.form-page .field input {
  min-height: 52px;
}

.form-page .field textarea {
  min-height: 176px;
  resize: vertical;
}

.form-page .field input:hover,
.form-page .field textarea:hover {
  background: rgba(255, 255, 255, 0.92);
}

.form-page .field input:focus,
.form-page .field textarea:focus {
  background: white;
  border-color: rgba(76, 123, 139, 0.72);
  box-shadow: 0 0 0 4px rgba(76, 123, 139, 0.14);
}

.form-page .field input::placeholder,
.form-page .field textarea::placeholder {
  color: rgba(56, 60, 65, 0.4);
}

.form-page .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
}

/* Pill CTA with an icon chip: send → spinner while sending → check once delivered. */
.form-page .submit-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  margin: 0;
  padding: 0 8px 0 24px;
  color: white;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #4c7b8b;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(76, 123, 139, 0.28);
  cursor: pointer;
  transition: transform 350ms var(--glass-ease), box-shadow 350ms ease, background 300ms ease;
}

.form-page .submit-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #4c7b8b;
  background: white;
  border-radius: 50%;
  transition: transform 500ms var(--glass-spring), color 300ms ease;
}

.form-page .submit-chip svg,
.form-page .submit-chip i {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  font-size: 17px;
  stroke-width: 2;
  transition: opacity 200ms ease, transform 450ms var(--glass-spring);
}

.form-page .submit-chip .icon-check {
  opacity: 0;
  transform: scale(0.4);
}

.form-page .submit-button:hover {
  background: #426e7d;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px rgba(76, 123, 139, 0.32);
}

.form-page .submit-button:active .icon-send {
  transform: scale(1.3);
}

.form-page .submit-button:active {
  transform: translateY(0) scale(0.98);
}

.form-page .submit-button:focus-visible {
  outline: 3px solid rgba(76, 123, 139, 0.45);
  outline-offset: 3px;
}

.form-page .submit-button[data-state="sending"] {
  cursor: progress;
}

.form-page .submit-button[data-state="sending"] .submit-chip > :not(.submit-orbit) {
  opacity: 0;
}

/* Sending loader: three dots orbiting, each trailing one smaller and lighter. */
.form-page .submit-orbit {
  position: absolute;
  inset: 9px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.form-page .submit-orbit span {
  position: absolute;
  inset: 0;
}

.form-page .submit-orbit span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: currentColor;
  border-radius: 50%;
  --dot-scale: 1;
  transform: scale(var(--dot-scale));
}

.form-page .submit-orbit span:nth-child(2) {
  transform: rotate(-120deg);
}

.form-page .submit-orbit span:nth-child(2)::before {
  opacity: 0.65;
  --dot-scale: 0.85;
  animation-delay: -365ms;
}

.form-page .submit-orbit span:nth-child(3) {
  transform: rotate(-240deg);
}

.form-page .submit-orbit span:nth-child(3)::before {
  opacity: 0.35;
  --dot-scale: 0.7;
  animation-delay: -730ms;
}

.form-page .submit-button[data-state="sending"] .submit-orbit {
  opacity: 1;
  animation:
    submit-spin 900ms cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite,
    submit-breathe 450ms ease-in-out infinite alternate;
}

/* Orbit radius breathes between 12px and 8px (chip is 38px). */
@keyframes submit-breathe {
  from {
    inset: 7px;
  }
  to {
    inset: 11px;
  }
}

/* Longhands so each dot keeps its own animation-delay (staggered pulse). */
.form-page .submit-button[data-state="sending"] .submit-orbit span::before {
  animation-name: submit-pulse;
  animation-duration: 1100ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes submit-pulse {
  50% {
    transform: scale(calc(var(--dot-scale) * 1.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-page .submit-button[data-state="sending"] .submit-orbit {
    animation-name: submit-spin;
    animation-duration: 2.4s;
  }

  .form-page .submit-button[data-state="sending"] .submit-orbit span::before {
    animation-name: none;
  }
}

.form-page .submit-button[data-state="sent"] .icon-send {
  opacity: 0;
  transform: scale(0.4);
}

.form-page .submit-button[data-state="sent"] .icon-check {
  opacity: 1;
  transform: none;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-page #response-message {
  min-height: 1.4em;
  margin: 0;
  color: rgba(56, 60, 65, 0.72);
  font-size: 0.9rem;
}

.form-page #response-message[data-tone="error"] {
  color: #a83a32;
}

.form-page .form-privacy {
  max-width: 62ch;
  margin: 0;
  color: rgba(56, 60, 65, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}

.form-page .form-privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media only screen and (max-width: 600px) {
  .home-page .top-bar {
    width: calc(100% - 28px);
    height: 60px;
    min-height: 60px;
    margin-right: 14px;
    margin-left: 14px;
    padding-left: 10px;
    --action-size: 44px;
  }

  .home-page .top-bar .logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .home-page .sticky-menu {
    right: 16px;
    bottom: 16px;
  }

  .curriculum-page .background,
  .form-page .background {
    padding: 92px 0 36px;
  }

  .home-page .sheet {
    width: calc(100% - 24px);
    padding: 34px 24px;
    border-radius: 26px;
  }

  .home-page .sheet header {
    padding-bottom: 30px;
  }

  .home-page .sheet section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .form-page .field-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-page .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-page .submit-button {
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .top-bar,
  .home-page .top-bar::before,
  .home-page .top-bar *,
  .home-page .sticky-menu * {
    animation: none !important;
    transition: none !important;
  }

  .home-page .bar-goo,
  .home-page .menu-goo {
    display: none;
  }
}
/*# sourceMappingURL=styles.css.map */
