:root {
  --ice: #f3f7fc;
  --white: #ffffff;
  --navy: #0b2545;
  --navy-2: #12345c;
  --blue: #1a56c4;
  --blue-deep: #0e3a78;
  --sky: #e7f0fb;
  --line: rgba(180, 205, 235, 0.85);
  --muted: #5a6d84;
  --text: #12263f;
  --deep: #0b2545;
  --danger: #b42318;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --sheen: rgba(255, 255, 255, 0.45);
  --orb: rgba(26, 86, 196, 0.42);
  --orb-2: rgba(96, 165, 250, 0.5);
  --orb-3: rgba(14, 58, 120, 0.28);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --pad: clamp(1.15rem, 3.5vw, 3.5rem);
  --nav: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

html[data-theme="dark"] {
  --ice: #070e18;
  --white: #101b2c;
  --navy: #eef4ff;
  --navy-2: #c9daf3;
  --blue: #8eb6ff;
  --blue-deep: #c5dcff;
  --sky: #16283f;
  --line: rgba(170, 204, 255, 0.22);
  --muted: #a9bdd4;
  --text: #d7e6f7;
  --deep: #071422;
  --glass: rgba(14, 28, 48, 0.55);
  --glass-strong: rgba(16, 32, 54, 0.72);
  --sheen: rgba(190, 214, 255, 0.16);
  --orb: rgba(70, 130, 255, 0.42);
  --orb-2: rgba(40, 90, 190, 0.38);
  --orb-3: rgba(120, 170, 255, 0.18);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ice); color-scheme: light; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: #1a56c4; color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 800;
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.85rem;
}
.skip:focus { top: 0.7rem; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), #7eb0ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 500;
  pointer-events: none;
}

.wrap {
  width: min(1160px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section { padding: clamp(3.2rem, 7vh, 5.4rem) 0; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { margin-top: 0.35rem; }

main section[id]:not(#top),
.vcard[id] { scroll-margin-top: calc(var(--nav) + 0.5rem); }

/* Intro */

.intro {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  background: var(--ice);
  color: var(--navy);
  animation: introLeave 0.8s var(--ease) 0.95s forwards;
}

.intro-inner { text-align: center; }

.intro-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.6rem, 11vw, 7.2rem);
  line-height: 0.8;
  animation: pop 0.75s var(--ease) both;
}

.intro-mark span { color: var(--blue); }

.intro-name {
  margin-top: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  animation: pop 0.75s var(--ease) 0.12s both;
}

html.skip-intro .intro { display: none; }

@keyframes pop {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes introLeave {
  to { transform: translateY(-102%); visibility: hidden; }
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--pad);
  color: var(--navy);
  background: color-mix(in srgb, var(--ice) 62%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.3);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav.is-solid,
.nav.is-open {
  background: color-mix(in srgb, var(--white) 72%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.06);
}

.wordmark {
  justify-self: start;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--navy);
}

.wordmark span { color: var(--blue); }

.nav-links { display: flex; gap: 1.45rem; }

.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--navy);
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-50deg) scale(0.6);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.nav-toggle i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav-toggle i:first-child { top: 18px; }
.nav-toggle i:last-child { top: 25px; }

.nav-toggle[aria-expanded="true"] i:first-child {
  top: 21px;
  transform: rotate(40deg);
}

.nav-toggle[aria-expanded="true"] i:last-child {
  top: 21px;
  transform: rotate(-40deg);
}

.nav-panel {
  position: fixed;
  inset: var(--nav) 0 0 0;
  z-index: 190;
  background: var(--white);
  overflow: auto;
}

.nav-panel[hidden] { display: none; }

.nav-panel-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 2rem var(--pad) 3rem;
}

.nav-panel a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.05;
  color: var(--navy);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-panel a:hover { color: var(--blue); padding-left: 0.35rem; }

.nav-panel-foot { margin-top: 1rem; color: var(--muted); font-weight: 300; }

.panel-close {
  align-self: flex-start;
  margin-top: 1.1rem;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* Buttons */

.btn {
  min-height: 50px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  transition: transform 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.btn svg { width: 14px; height: 14px; }

.btn-blue {
  background: var(--navy);
  color: var(--ice);
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.18);
}

.btn-blue:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26, 86, 196, 0.28);
}

.btn-line {
  background: var(--glass);
  color: var(--navy);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.btn-line:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Moving glass background */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, var(--orb-2), transparent 32%),
    radial-gradient(circle at 88% 8%, var(--orb), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--sky) 70%, var(--ice)) 0%, var(--ice) 42%, var(--ice) 100%);
}

.aurora::before {
  content: "";
  position: absolute;
  width: 90vw;
  height: 90vw;
  left: 5vw;
  top: -25vw;
  background: conic-gradient(from 40deg, transparent 0%, rgba(26, 86, 196, 0.22) 18%, transparent 36%, rgba(125, 180, 255, 0.28) 58%, transparent 78%);
  filter: blur(46px);
  animation: spinGlow 26s linear infinite;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  animation: floaty 16s ease-in-out infinite;
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, var(--orb), transparent 68%);
}

.aurora span:nth-child(2) {
  width: 34vw;
  height: 34vw;
  left: -10vw;
  bottom: 8vh;
  background: radial-gradient(circle, var(--orb-2), transparent 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.aurora span:nth-child(3) {
  width: 28vw;
  height: 28vw;
  left: 34vw;
  top: 28vh;
  background: radial-gradient(circle, var(--orb-3), transparent 70%);
  animation-duration: 13s;
  animation-delay: -4s;
}

.aurora span:nth-child(4) {
  width: 18vw;
  height: 18vw;
  right: 12vw;
  bottom: 12vh;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
  animation-duration: 19s;
  animation-delay: -8s;
}

main, .footer { position: relative; z-index: 1; }

@keyframes floaty {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(48px, -36px, 0) scale(1.14); }
  100% { transform: translate3d(-42px, 32px, 0) scale(0.92); }
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: calc(var(--nav) + 1rem) var(--pad) 2.2rem;
  overflow: hidden;
  background: transparent;
}

.hero-copy,
.hero-photo { position: relative; z-index: 1; }

.hero-title {
  margin-top: 0.7rem;
  min-height: 1.15em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.typed em { font-style: italic; color: var(--blue); }

.caret {
  display: inline-block;
  width: 0.045em;
  height: 0.72em;
  margin-left: 0.08em;
  background: var(--blue);
  vertical-align: -0.02em;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 1.35rem;
}

.hero .btn-blue,
.contact .btn-blue {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0e3a78, #1a56c4 48%, #3b82f6);
}

.hero .btn-blue::after,
.contact .btn-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hero .btn-line {
  background: #e7f0ff;
  border-color: #7eabf5;
  color: #0e3a78;
}

.hero-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero-pills a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 16px rgba(14, 58, 120, 0.16);
  animation: bob 3.4s ease-in-out infinite alternate;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-pills a:nth-child(1) { background: #1a56c4; }
.hero-pills a:nth-child(2) { background: #7c3aed; animation-delay: 0.2s; }
.hero-pills a:nth-child(3) { background: #0f766e; animation-delay: 0.4s; }
.hero-pills a:nth-child(4) { background: #ea580c; animation-delay: 0.6s; }
.hero-pills a:nth-child(5) { background: #e11d48; animation-delay: 0.8s; }

.hero-pills a:hover {
  animation: none;
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.04);
}

.hero .socials a { animation: bob 3.2s ease-in-out infinite alternate; }
.hero .socials a:nth-child(2) { animation-delay: 0.15s; }
.hero .socials a:nth-child(3) { animation-delay: 0.3s; }
.hero .socials a:nth-child(4) { animation-delay: 0.45s; }
.hero .socials a:nth-child(5) { animation-delay: 0.6s; }
.hero .socials a:hover { animation: none; }

@keyframes sheen {
  0%, 58% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.social-block { margin-top: 1.45rem; }
.social-block .socials { margin-top: 0; }

.social-mail {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--blue);
  font-size: 0.98rem;
  border-bottom: 1px solid transparent;
}

.hero-copy > .social-mail { margin-top: 1.25rem; }

.social-mail:hover { border-bottom-color: currentColor; }
.footer .social-mail { color: #d7e7ff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.35s var(--ease);
}

.socials svg { width: 100%; height: 100%; }
.socials a:hover { transform: translateY(-3px) scale(1.08); }

.socials-nav { margin-top: 0; gap: 0.45rem; }
.socials-nav a { width: 28px; height: 28px; }

.footer .socials { margin-top: 0.35rem; }

.hero-photo {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 0.6rem 0 1rem;
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(78%, 420px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed rgba(26, 86, 196, 0.45);
  animation: spin360 28s linear infinite reverse;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #1a56c4 0deg,
    #7dd3fc 70deg,
    #7c3aed 150deg,
    #14b8a6 230deg,
    #2563eb 310deg,
    #1a56c4 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 10px));
  animation: spin360 8s linear infinite;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin360 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.hero-orbit span {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(26, 86, 196, 0.2),
    0 0 16px rgba(124, 58, 237, 0.9);
}

.hero-shot {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 18px 44px rgba(11, 37, 69, 0.18);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

/* Marquee */

.marquee {
  overflow: hidden;
  background: var(--deep);
  color: #eaf2ff;
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.15rem;
  padding-right: 1.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
}

.marquee-group span:nth-child(even) { color: #8eb6ff; font-style: normal; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Services */

.services { background: transparent; }

.vcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vcard {
  --accent: #1a56c4;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--navy);
  min-height: 100%;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08), inset 0 1px 0 var(--sheen);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.45s ease;
}

.vcard:nth-child(1) { --accent: #1a56c4; }
.vcard:nth-child(2) { --accent: #7c3aed; }
.vcard:nth-child(3) { --accent: #0f766e; }
.vcard:nth-child(4) { --accent: #ea580c; }
.vcard:nth-child(5) { --accent: #e11d48; }

.vcard-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: stretch;
}

.bd-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(155deg, #fb7185, #e11d48 52%, #9f1239);
}

.bd-ring,
.bd-orbit {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  animation: spin360 8s linear infinite;
}

.bd-ring {
  background: conic-gradient(from 0deg, transparent 0 28%, #fff 48%, #fecdd3 70%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px));
}

.bd-orbit { animation-duration: 8s; }

.bd-orbit i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 0 16px #fff;
}

.bd-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 28px rgba(136, 19, 55, 0.28);
  animation: bdFloat 4.6s ease-in-out infinite;
}

.bd-core svg { width: 52px; height: 52px; }

.vcard-wide .vcard-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.4rem;
}

.bd-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.bd-flow span {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.78rem;
  font-weight: 500;
  animation: bdPop 2.8s ease-in-out infinite;
}

.bd-flow span:nth-child(3) { animation-delay: 0.35s; }
.bd-flow span:nth-child(5) { animation-delay: 0.7s; }

.bd-flow i {
  position: relative;
  width: 28px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #fecdd3;
}

.bd-flow i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #e11d48;
  animation: bdDash 1.5s ease-in-out infinite;
}

@keyframes bdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes bdPop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes bdDash {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

.vcard::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, var(--sheen) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.vcard-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--sky);
}

.vcard-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.28), transparent);
  pointer-events: none;
}

.vcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

#bookkeeping img {
  object-position: 72% 0%;
  transform: scale(1.34);
  transform-origin: 78% 0%;
}

.vcard-copy { padding: 0.95rem 1.1rem 1.05rem; }

.vcard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.vcard-pills span {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--white));
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.vcard strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.vcard em {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
}

.vcard-go {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
}

.vcard:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 22px 48px rgba(14, 58, 120, 0.16);
}

.vcard:hover::after { transform: translateX(130%); }

.vcard:hover img { transform: scale(1.07); }
#bookkeeping:hover img { transform: scale(1.4); }

/* Band — office image, used once */

.band {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 22s ease-in-out infinite alternate;
}

.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.05), rgba(11, 37, 69, 0.72));
}

.band-copy {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  color: #f7fbff;
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chips li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 37, 69, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Skills */

.skills {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(59, 130, 246, 0.45), transparent 42%),
    radial-gradient(ellipse at 88% 110%, rgba(124, 58, 237, 0.38), transparent 46%),
    #071422;
  color: #f7fbff;
}

.skills::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 70%;
  left: -6%;
  top: -18%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.35), transparent 68%);
  animation: floaty 18s ease-in-out infinite;
  pointer-events: none;
}

.skills .wrap { position: relative; z-index: 1; }
.skills .kicker { color: #9ec4ff; }
.skills h2 { color: #f7fbff; }

.skill-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.skill-lead span {
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: bob 3.6s ease-in-out infinite;
}

.skill-lead span:nth-child(1) { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.skill-lead span:nth-child(2) { background: linear-gradient(135deg, #6d28d9, #c084fc); animation-delay: 0.2s; }
.skill-lead span:nth-child(3) { background: linear-gradient(135deg, #0f766e, #2dd4bf); animation-delay: 0.4s; }

.skill-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.skill-card { grid-column: span 2; }
.skill-card:nth-child(n + 4) { grid-column: span 3; }

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 22px;
  color: #f7fbff;
  background: linear-gradient(155deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -36px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: floaty 12s ease-in-out infinite;
  pointer-events: none;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-130%);
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.skill-card:nth-child(2)::after { animation-delay: 0.6s; }
.skill-card:nth-child(3)::after { animation-delay: 1.2s; }
.skill-card:nth-child(4)::after { animation-delay: 1.8s; }
.skill-card:nth-child(5)::after { animation-delay: 2.4s; }

.skill-card:hover,
.js .skill-card.is-in:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.skill-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.skill-card ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-card li {
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.8rem;
}

/* Tiles */

.around { background: transparent; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 var(--sheen), 0 12px 28px rgba(11, 37, 69, 0.05);
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.tile::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  top: -52px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}

.tile-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--a), var(--b));
  box-shadow: 0 10px 18px color-mix(in srgb, var(--b) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: bob 3.2s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.tile-icon svg { width: 32px; height: 32px; }

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.tile h3 {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.05;
}

.tile:hover {
  transform: translateY(-8px);
  border-color: var(--a);
  box-shadow: inset 0 1px 0 var(--sheen), 0 18px 36px color-mix(in srgb, var(--b) 28%, transparent);
}

.tile:hover .tile-icon {
  animation: none;
  transform: translateY(-2px) scale(1.08) rotate(-6deg);
}

/* Wire method */

.method-section { background: color-mix(in srgb, var(--white) 72%, transparent); }

.wire { position: relative; padding-top: 0.4rem; }

.wire-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 78px;
  overflow: visible;
  pointer-events: none;
}

.wire-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
}

.js .wire:not(.is-in) .wire-path { stroke-dashoffset: 1600; }

.js .wire.is-in .wire-path { animation: drawWire 1.7s var(--ease) forwards; }

@keyframes drawWire { to { stroke-dashoffset: 0; } }

.wire-spark { fill: var(--navy); opacity: 0; }
.js .wire.is-in .wire-spark { opacity: 1; transition: opacity 0.3s ease 1.1s; }

.wire-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.wire-steps li { text-align: center; padding-top: 0.15rem; }

.node {
  width: 16px;
  height: 16px;
  margin: 22px auto 0.85rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 6px var(--ice);
  transition: background 0.35s ease, transform 0.35s ease;
}

.wire.is-in li:nth-child(1) .node { transition-delay: 0.15s; }
.wire.is-in li:nth-child(2) .node { transition-delay: 0.4s; }
.wire.is-in li:nth-child(3) .node { transition-delay: 0.7s; }
.wire.is-in li:nth-child(4) .node { transition-delay: 0.95s; }
.wire.is-in li:nth-child(5) .node { transition-delay: 1.2s; }

.wire.is-in .node {
  background: var(--blue);
  transform: scale(1.08);
}

.wire-steps h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--navy);
}

.wire-steps p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* Ways */

.ways { background: transparent; }

.ways-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 0.9rem;
}

.way {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px rgba(11, 37, 69, 0.12);
  backdrop-filter: blur(18px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.way-a { grid-row: span 2; min-height: 360px; }

.way::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 68%);
  pointer-events: none;
}

.way::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
  pointer-events: none;
}

.way:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 26px 50px rgba(14, 58, 120, 0.2);
}

.way:hover::after { transform: translateX(130%); }

.way-icon,
.way-copy,
.way-go { position: relative; z-index: 1; }

.way-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: bob 3.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.way-icon svg { width: 28px; height: 28px; }

.way-go {
  align-self: flex-start;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
}

.way h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.way p { font-weight: 300; }

.way-a {
  background: linear-gradient(155deg, rgba(24, 58, 102, 0.88), rgba(8, 28, 54, 0.82));
  color: #fff;
}
.way-a p { color: #d5e4f8; }
.way-b {
  background: linear-gradient(155deg, rgba(47, 111, 214, 0.9), rgba(16, 62, 140, 0.84));
  color: #fff;
}
.way-b p { color: #e7f0ff; }
.way-c {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(232, 240, 252, 0.88));
  color: var(--navy);
  border-color: var(--line);
}
.way-c p { color: var(--muted); }
.way-c .way-icon {
  background: linear-gradient(155deg, #8b5cf6, #6d28d9);
  box-shadow: 0 10px 18px rgba(109, 40, 217, 0.28);
}
.way-c .way-go { color: #6d28d9; }
html[data-theme="dark"] .way-c {
  background: linear-gradient(155deg, rgba(28, 24, 54, 0.92), rgba(16, 22, 42, 0.9));
  color: #f4f0ff;
}
html[data-theme="dark"] .way-c p { color: #d4c8f0; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 0;
}

.contact-side {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.42), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.28), transparent 40%),
    var(--deep);
  color: #f7fbff;
  padding: clamp(2.4rem, 6vh, 3.8rem);
  display: flex;
  align-items: center;
}

.contact-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  left: -70px;
  top: 8%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.55), transparent 68%);
  filter: blur(2px);
  animation: floaty 16s ease-in-out infinite;
  pointer-events: none;
}

.contact-copy { position: relative; z-index: 1; max-width: 28rem; }

.contact-side .kicker { color: #9ec4ff; }
.contact-side h2 { color: #f7fbff; margin: 0.35rem 0 0.9rem; }

.contact-mail {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(185, 212, 255, 0.45);
  font-size: 1rem;
}

.contact-mail:hover { background: rgba(255, 255, 255, 0.18); }

.contact-side p {
  margin-top: 0.95rem;
  max-width: 24rem;
  color: #d5e4f8;
  font-weight: 300;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.contact-points li {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel {
  background: color-mix(in srgb, var(--white) 86%, var(--sky));
  backdrop-filter: blur(18px);
  padding: clamp(1.6rem, 4vh, 2.6rem) clamp(1.1rem, 3vw, 2.4rem);
  display: flex;
  align-items: center;
}

.contact-panel form,
.form-success {
  width: min(40rem, 100%);
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(11, 37, 69, 0.07);
}

.form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0.3rem 0 1.15rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem 1.15rem;
}

.field { display: flex; flex-direction: column; gap: 0.28rem; }
.field-wide { grid-column: 1 / -1; }

.field > span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.78rem 0.85rem;
  color: var(--navy);
  appearance: none;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 86, 196, 0.14);
}

.field select {
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--navy);
  box-shadow: 0 0 0 1000px var(--sky) inset;
}

::placeholder { color: #8aa0b8; opacity: 1; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.form-hint,
.form-note {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 22rem;
}

.form-note { color: var(--danger); min-height: 1.2em; margin-top: 0.65rem; }

.form-success[hidden],
form[hidden] { display: none; }

.form-success h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.45rem 0 0.8rem;
}

.form-success p { color: var(--muted); font-weight: 300; max-width: 32rem; }
.form-success a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.form-success .btn { margin-top: 1.3rem; }

/* Footer */

.footer {
  background: var(--deep);
  color: #e7f0fb;
  padding: 2.6rem 0 1.3rem;
}

.footer .wordmark { color: #f7fbff; }
.footer .wordmark span { color: #9ec4ff; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-top p { max-width: 26rem; color: #c5d7ee; font-weight: 300; }

.footer .btn-line {
  background: transparent;
  color: #f7fbff;
  border-color: rgba(255, 255, 255, 0.35);
}

.footer .btn-line:hover { border-color: #f7fbff; color: #f7fbff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
}

.footer-grid .kicker { color: #9ec4ff; margin-bottom: 0.55rem; }

.footer-grid a,
.footer-grid p {
  display: block;
  padding: 0.22rem 0;
  color: #c5d7ee;
  font-weight: 300;
}

.footer-grid a:hover { color: #f7fbff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9eb0c9;
  font-size: 0.86rem;
  font-weight: 300;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}

.js .reveal.is-in { opacity: 1; transform: none; }

.js .wire.reveal { transform: none; }

/* Responsive */

@media (max-width: 980px) {
  .bento,
  .skill-board { grid-template-columns: 1fr 1fr; }

  .skill-card,
  .skill-card:nth-child(n + 4) { grid-column: auto; }
  .skill-card:last-child { grid-column: 1 / -1; }

  .wire-svg { display: none; }

  .wire-steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.2rem;
  }

  .wire-steps li {
    text-align: left;
    position: relative;
    padding: 0 0 1.3rem 2rem;
  }

  .wire-steps li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--blue);
    transform: scaleY(0);
    transform-origin: top;
  }

  .wire.is-in li::before {
    transform: scaleY(1);
    transition: transform 0.55s var(--ease);
  }

  .wire.is-in li:nth-child(2)::before { transition-delay: 0.15s; }
  .wire.is-in li:nth-child(3)::before { transition-delay: 0.28s; }
  .wire.is-in li:nth-child(4)::before { transition-delay: 0.4s; }
  .wire.is-in li:nth-child(5)::before { transition-delay: 0.52s; }

  .wire-steps li:last-child::before { display: none; }

  .node {
    position: absolute;
    left: 0;
    top: 0.35rem;
    margin: 0;
    box-shadow: 0 0 0 5px var(--ice);
  }

  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-photo {
    order: -1;
    justify-content: center;
  }

  .hero-frame {
    width: min(68%, 300px);
  }

  .vcards { grid-template-columns: 1fr; }
  .vcard-media { height: 200px; }
  .vcard-wide { grid-template-columns: 1fr; }
  .bd-stage { min-height: 168px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .bento,
  .skill-board,
  .ways-grid,
  .form-grid { grid-template-columns: 1fr; }

  .way-a { grid-row: auto; min-height: 210px; }
  .field-wide { grid-column: auto; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.5rem); }
}

@media (max-width: 420px) {
  .nav-mail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .intro,
  .caret,
  .marquee-track,
  .hero-ring,
  .hero-orbit,
  .hero-frame::before,
  .skill-lead span,
  .skills::before,
  .skill-card::before,
  .skill-card::after,
  .contact-glow,
  .bd-ring,
  .bd-orbit,
  .bd-core,
  .bd-flow span,
  .bd-flow i::after,
  .band img,
  .aurora span,
  .aurora::before,
  .wire-spark,
  .tile-icon,
  .way-icon,
  .way::before,
  .hero-pills a,
  .hero .socials a,
  .hero .btn-blue::after,
  .contact .btn-blue::after {
    animation: none;
  }

  .intro { display: none; }

  .js .reveal,
  .js .wire.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wire-path { stroke-dashoffset: 0; animation: none; }
  .wire-spark { display: none; }
  .vcard, .tile, .way, .btn { transition: none; }
}
