:root {
  color-scheme: dark;
  /* Horizontal inset from the viewport for nav, hero, and sections */
  --page-gutter: 16px;
}

html {
  /* Fixed nav (~48px) + breathing room; complements section scroll-margin */
  scroll-padding-top: 72px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-inline: var(--page-gutter);
  background: #EADDCA;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px var(--page-gutter);
  background: transparent;
}

.nav__inner {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: block;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 48px;
  transform-origin: center;
  opacity: 0;
  animation:
    nav-appear 180ms ease-out 0ms forwards,
    nav-expand 900ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards;
}

.nav__inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  transform-origin: center;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 14 C 18 6, 36 22, 54 14 S 90 6, 108 14 S 144 22, 162 14 S 198 6, 216 14 S 232 22, 240 14' fill='none' stroke='rgba(0,0,0,0.24)' stroke-width='1.15'/%3E%3Cpath d='M0 22 C 20 10, 40 34, 60 22 S 100 10, 120 22 S 160 34, 180 22 S 220 10, 240 22' fill='none' stroke='rgba(0,0,0,0.18)' stroke-width='1'/%3E%3Cpath d='M0 30 C 24 18, 48 42, 72 30 S 120 18, 144 30 S 192 42, 216 30 S 232 18, 240 30' fill='none' stroke='rgba(92,63,38,0.22)' stroke-width='1'/%3E%3Cpath d='M0 36 C 22 28, 44 44, 66 36 S 110 28, 132 36 S 176 44, 198 36 S 222 28, 240 36' fill='none' stroke='rgba(92,63,38,0.14)' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.05));
  background-repeat: repeat, no-repeat;
  background-size: 240px 44px, auto;
  background-position: 0 0, 0 0;
  opacity: 0.6;
  filter: blur(0.25px);
  z-index: -2;
  animation: nav-waves 7.5s linear infinite;
}

@media (min-width: 641px) {
  /* Top wave can sit under the pill curve; nudge pattern + keep first stroke readable */
  .nav__inner::before {
    background-position: 0 4px, 0 0;
    opacity: 0.72;
  }
}

.nav__inner::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  transform-origin: center;
  pointer-events: none;
  background: rgba(234, 221, 202, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: -1;
  /* background stays constant while container expands */
}

.nav__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: rgba(48, 40, 32, 0.88);
  font-weight: 720;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: nav-brand-left 700ms cubic-bezier(0.16, 1, 0.3, 1) 1100ms forwards;
}

.nav__brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.08));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nav__links {
  position: absolute;
  top: 50%;
  right: var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(calc(-50% - 4px));
  animation: nav-links-in 650ms ease 1850ms forwards;
}

.nav__menu {
  position: absolute;
  top: 50%;
  right: var(--page-gutter);
  transform: translateY(-50%);
  display: none;
}

.nav__menuBtn {
  list-style: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  color: rgba(48, 40, 32, 0.78);
  font-size: 12px;
  font-weight: 480;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 160ms ease, color 160ms ease;
}

.nav__menuIcon {
  width: 18px;
  height: 12px;
  display: block;
  position: relative;
}

.nav__menuIcon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)) center 1px / 14px 1px no-repeat,
    linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)) center 5.5px / 14px 1px no-repeat,
    linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)) center 10px / 14px 1px no-repeat;
}

.nav__menu[open] .nav__menuIcon::before {
  background:
    linear-gradient(rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.55)) center 1px / 14px 1px no-repeat,
    linear-gradient(rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.55)) center 5.5px / 14px 1px no-repeat,
    linear-gradient(rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.55)) center 10px / 14px 1px no-repeat;
}

.nav__menuBtn::-webkit-details-marker {
  display: none;
}

.nav__menu[open] > .nav__menuBtn {
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 3px rgba(92, 63, 38, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.10);
  border-color: rgba(92, 63, 38, 0.28);
}

/* Mobile dropdown panel: styled + shown only in @media (max-width: 900px) */
.nav__menuPanel {
  display: none;
}

.nav__menuLink {
  display: block;
  text-decoration: none;
  color: rgba(48, 40, 32, 0.86);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav__menuLink:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 11px;
  margin-bottom: 2px;
}

.nav__menuLink:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 11px;
}

.nav__menuLink:hover {
  color: rgba(42, 35, 28, 0.92);
  transform: translateY(-1px);
}

.nav__menuLink:not(:last-child):hover,
.nav__menuLink:not(:last-child):focus-visible {
  border-bottom-color: rgba(0, 0, 0, 0.70);
}

.nav__menuLink:not(:last-child):active {
  border-bottom-color: rgba(0, 0, 0, 1);
}

.nav__menuLink:focus-visible {
  outline: none;
}

.nav__menuLink--pill {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.22);
}

.nav__link {
  position: relative;
  text-decoration: none;
  color: rgba(48, 40, 32, 0.86);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.26);
  color: rgba(42, 35, 28, 0.92);
  transform: translateY(-1px);
}

.nav__link:hover::after {
  transform: scaleX(1);
  opacity: 0.7;
}

.nav__link--pill {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.25);
  font-weight: 820;
}

.nav__link--pill:hover {
  background: rgba(255, 255, 255, 0.35);
}

.nav__link--pill::after {
  display: none;
}

@keyframes nav-waves {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 240px 0, 0 0;
  }
}

@keyframes nav-expand {
  from {
    max-width: 240px;
  }
  to {
    max-width: 1100px;
  }
}

@keyframes nav-appear {
  to {
    opacity: 1;
  }
}

@keyframes nav-brand-left {
  to {
    left: var(--page-gutter);
    transform: translate(0, -50%);
  }
}

@keyframes nav-links-in {
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__inner::before {
    animation: none;
  }
  .heroSpoke__pill::before {
    animation: none;
  }
  .heroIntro__o::before {
    animation: none;
  }
  .nav__inner {
    animation: none;
    opacity: 1;
    clip-path: none;
  }
  .nav__links {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .nav__menu {
    animation: none;
    opacity: 1;
    transform: translateY(-50%);
  }
  .nav__link {
    transition: background-color 160ms ease, color 160ms ease;
  }
  .nav__link::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  /* Outer shell transparent so backdrop-filter samples page, not an opaque bar */
  .nav {
    background: transparent;
    border: 0.1px solid transparent;
    overflow: visible;
    padding: 10px var(--page-gutter);
  }

  /* Ensure nothing blocks hamburger clicks */
  .nav__brand,
  .nav__links {
    pointer-events: none;
  }

  .nav__inner {
    width: 100%;
    max-width: 1100px;
    padding: 10px 12px;
  }

  .nav__links--desktop {
    display: none;
  }

  .nav__menu {
    display: block;
    opacity: 1;
    animation: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto;
  }

  .nav__menuBtn {
    position: absolute;
    top: 50%;
    right: var(--page-gutter);
    transform: translateY(-50%);
    z-index: 21;
    pointer-events: auto;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Sibling of .nav__inner: blurs real page behind translucent fill */
  .nav__menuPanel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 22;
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(80svh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    background: rgba(251, 250, 251, 0.22);
    -webkit-backdrop-filter: blur(1.5px) saturate(200%);
    backdrop-filter: blur(1.5px) saturate(200%);

    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);

    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .nav.is-open .nav__menuPanel {
    display: flex;
  }

  .nav__menuLink {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__menuLink--pill {
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
  }

  .nav__brand {
    font-size: 12px;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 900px) {
  /* Give the fixed nav breathing room on phones */
  .home__content {
    min-height: 100svh;
    padding-top: 86px;
    padding-bottom: 18px;
    align-items: center;
  }

  .heroOrnament {
    --ornamentShiftX: 0px;
    --spokesShiftX: -20px;
  }
}

@media (max-width: 480px) {
  .heroOrnament {
    --ringSize: 280px;
    --spokesShiftX: -18px;
  }
}

.home {
  position: relative;
  min-height: 100vh;
  /* visible so the About 3D diagram (in-page, not iframe) can paint past the main axis */
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #EADDCA;
}

.home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* Restore original texture strength */
  opacity: 0.7;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1000px 700px at 85% 70%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 65%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.10) 1px, rgba(0, 0, 0, 0) 1.6px),
    repeating-linear-gradient(115deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 1px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 6px
    );
  background-size: auto, auto, 18px 18px, auto, auto;
  mix-blend-mode: multiply;
}

.home__content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}

/* ——— About (reference layout, site palette) ——— */
.about {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  scroll-margin-top: 72px;
  box-sizing: border-box;
}

.about__layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 228px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.about__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(92, 63, 38, 0.22);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(251, 248, 244, 0.55), rgba(234, 221, 202, 0.72));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Flork: dashed line under panel = partition; bench sits on it, legs dangle into nav */
.about__brandPanel {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  /* Shorter than square so the cream area fits the mascot scale */
  aspect-ratio: 5 / 4;
  padding: clamp(6px, 1.4vw, 12px) 8px 0;
  overflow: visible;
  margin-bottom: 0;
  background: linear-gradient(180deg, #fffefb 0%, #f3ebe3 100%);
  border-bottom: 1px dashed rgba(92, 63, 38, 0.22);
}

.aboutFlorkStage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  border-radius: 10px;
  /* Feet extend past partition into beige nav */
  margin-bottom: calc(-1 * clamp(2.35rem, 6.5vw, 3.15rem));
  /* Align SVG seat line with panel’s bottom dashed border */
  transform: translateY(clamp(-10px, -1.00vw, -6px));
}

.aboutFlorkStage:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.42);
  outline-offset: 3px;
}

/* Hi in layered clouds (SVG), left of head; fade on panel hover */
.aboutFlork__hiBadge {
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.28s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(92, 63, 38, 0.08));
}

.aboutFlork__hiCloud--back {
  fill: rgba(255, 252, 247, 0.78);
  stroke: rgba(92, 63, 38, 0.14);
}

.aboutFlork__hiCloud--front {
  fill: var(--flork-paper);
  stroke: rgba(92, 63, 38, 0.2);
}

.aboutFlork__hiText {
  paint-order: stroke fill;
}

.about__brandPanel:hover .aboutFlork__hiBadge,
.about__brandPanel:focus-within .aboutFlork__hiBadge {
  opacity: 1;
  transform: translateY(0);
}

/* Right arm only: shoulder (64, 61). Clockwise = lifts hand in screen space (y-down coords). */
.aboutFlork__waveArm {
  transform-origin: 64px 61px;
}

.about__brandPanel:hover .aboutFlork__waveArm,
.about__brandPanel:focus-within .aboutFlork__waveArm {
  animation: aboutFlork-wave 6s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* Longer total time; wave segment ~34–78% so wiggle lasts noticeably longer. */
@keyframes aboutFlork-wave {
  0%,
  10% {
    transform: rotate(0deg);
  }
  22% {
    transform: rotate(244deg);
  }
  28% {
    transform: rotate(220deg);
  }
  34% {
    transform: rotate(212deg);
  }
  42% {
    transform: rotate(188deg);
  }
  50% {
    transform: rotate(208deg);
  }
  58% {
    transform: rotate(196deg);
  }
  66% {
    transform: rotate(210deg);
  }
  74% {
    transform: rotate(192deg);
  }
  78% {
    transform: rotate(204deg);
  }
  86% {
    transform: rotate(76deg);
  }
  94% {
    transform: rotate(18deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__brandPanel:hover .aboutFlork__waveArm,
  .about__brandPanel:focus-within .aboutFlork__waveArm {
    animation: none;
  }

  .aboutFlork__hiBadge {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .about__brandPanel:hover .aboutFlork__hiBadge,
  .about__brandPanel:focus-within .aboutFlork__hiBadge {
    transform: none;
  }
}

.aboutFlork {
  /* Theme-aligned ink / paper (matches about sidebar browns + cream, not harsh UI black) */
  --flork-paper: rgba(255, 252, 247, 0.97);
  --flork-ink: rgba(58, 44, 34, 0.9);
  --flork-ink-muted: rgba(58, 44, 34, 0.78);
  --flork-blush: rgba(140, 68, 68, 0.72);
  --flork-seat-shadow: rgba(92, 63, 38, 0.16);
  display: block;
  width: min(116px, 94%);
  height: auto;
  max-height: none;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(92, 63, 38, 0.06));
}

.aboutFlork__legMount {
  transform-box: fill-box;
}

.aboutFlork__leg {
  transform-origin: 0 0;
  transform-box: fill-box;
  /* Pendulum from hips: same arc, opposite phase (like feet passing each other) */
  animation: aboutFlork-leg-pendulum 1.85s ease-in-out infinite;
}

.aboutFlork__leg--right {
  animation-delay: -0.925s;
}

@keyframes aboutFlork-leg-pendulum {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aboutFlork__leg {
    animation: none;
  }

  .aboutFlork__leg--left {
    transform: rotate(5deg);
  }

  .aboutFlork__leg--right {
    transform: rotate(-5deg);
  }
}

.about__subnav {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  padding-top: clamp(1.5rem, 3.2vh, 2.65rem);
  background: rgba(92, 63, 38, 0.12);
  border-top: none;
}

.about__subnavLinks {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: stretch;
  padding: clamp(18px, 3.5vh, 28px) 10px clamp(16px, 2.5vh, 22px);
  min-height: 200px;
}

/* Vertical rail through the nav (reference: line + nodes on links) */
.about__subnavLinks::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(14px, 2.5vh, 22px);
  bottom: clamp(14px, 2.5vh, 22px);
  width: 1px;
  background: rgba(92, 63, 38, 0.32);
  z-index: 0;
  pointer-events: none;
}

.about__subnavLink {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.8vh, 24px) 6px;
  font-size: clamp(11.5px, 1.15vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(52, 42, 32, 0.78);
  border: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.about__subnavText {
  position: relative;
  z-index: 3;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(92, 63, 38, 0.18);
  line-height: 1.25;
}

.about__subnavLink:hover,
.about__subnavLink:focus-visible {
  color: rgba(82, 58, 40, 0.88);
  outline: none;
}

.about__subnavLink:hover .about__subnavText,
.about__subnavLink:focus-visible .about__subnavText {
  background: rgba(255, 255, 255, 0.55);
}

.about__subnavLink--active {
  color: rgba(255, 255, 255, 0.96);
}

.about__subnavLink--active .about__subnavText {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(180deg, #ddb66e 0%, #b8833a 48%, #9a6f2e 100%);
  border-color: rgba(62, 42, 28, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 6px 14px rgba(62, 42, 28, 0.22);
}

.about__subnavLink--active:hover .about__subnavText,
.about__subnavLink--active:focus-visible .about__subnavText {
  background: linear-gradient(180deg, #e4c17e 0%, #c09042 50%, #a67a34 100%);
  color: rgba(255, 255, 255, 0.99);
}

.about__logoCloud {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 14px 10px 16px;
  border-top: 1px dashed rgba(92, 63, 38, 0.22);
  background: rgba(92, 63, 38, 0.06);
  place-items: center;
}

.about__logo {
  width: 100%;
  height: 28px;
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
  filter: grayscale(0.08);
  transition: opacity 160ms ease;
}

.about__logo:hover {
  opacity: 1;
}

.about__main {
  min-width: 0;
}

.about__titleBox {
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(92, 63, 38, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.about__title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(38, 30, 22, 0.78);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.5vw, 32px);
  overflow: visible;
}

.about__copy {
  min-width: 0;
  width: 100%;
}

/* Diagram uses remaining width; “What I do” stays a slim fixed-width column */
.about__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(188px, 236px);
  column-gap: clamp(20px, 3.5vw, 40px);
  align-items: stretch;
  overflow: visible;
}

/* In-page 3D diagram (no iframe): allow transforms to paint outside the grid cell */
.about__diagram {
  box-sizing: border-box;
  width: 100%;
  max-width: min(520px, 100%);
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: visible;
  color-scheme: light dark;
}

.about__diagram .stage:focus {
  outline: none;
}

.about__diagram .stage:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Softer layer treatment + tighter top spacing on About (standalone demo keeps full depth in design/fullstack-layers.css) */
.about .about__diagram {
  padding-top: clamp(28px, 5vw, 56px);
}

.about .about__diagram .layer {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}

.about .about__diagram .layerLogos img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.about__lead {
  margin: 0 0 1em;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 520;
  line-height: 1.45;
  color: rgba(38, 30, 22, 0.78);
  max-width: none;
}

.about__text {
  margin: 0 0 1.35em;
  max-width: none;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(52, 44, 36, 0.64);
}

.about__text--tight {
  margin-bottom: 0;
}

.about__services {
  min-width: 0;
  width: 100%;
  max-width: 236px;
  justify-self: end;
}

.about__servicesTitle {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(38, 30, 22, 0.78);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92, 63, 38, 0.18);
}

.about__serviceList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__service {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(92, 63, 38, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.about__serviceIcon {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  line-height: 0;
  color: rgb(78, 54, 38);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(92, 63, 38, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.about__serviceIcon svg {
  display: block;
}

.about__serviceName {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  align-self: center;
  min-width: 0;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(38, 30, 22, 0.78);
}

.about__serviceText {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.6;
  color: rgba(52, 44, 36, 0.66);
}

@media (max-width: 820px) {
  .about__layout {
    grid-template-columns: 1fr;
  }

  .about__sidebar {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    /* Don’t stretch subnav to photo height — forces link stack onto logo grid */
    align-items: flex-start;
    /* Avoid clipping the logo row when nav + logos are taller than the photo */
    overflow: visible;
    width: 100%;
    min-width: 0;
  }

  .about__brandPanel {
    width: 136px;
    flex: 0 0 auto;
    aspect-ratio: 5 / 4;
    padding: 6px 6px 0;
  }

  .aboutFlorkStage {
    margin-bottom: calc(-1 * clamp(2rem, 5vw, 2.75rem));
    transform: translateY(-7px);
  }

  .aboutFlork {
    width: min(100px, 100%);
  }

  /* Mobile / tablet: nav (left) and logos (right); minmax(0,…) + min-width:0 avoids a phantom third strip */
  .about__subnav {
    flex: 1 1 200px;
    border-top: none;
    border-left: 1px dashed rgba(92, 63, 38, 0.28);
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
    padding: clamp(1.25rem, 2.5vh, 2rem) 0 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about__subnavLinks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
  }

  .about__subnavLinks::before {
    display: none;
  }

  .about__subnavLink {
    padding: 8px 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about__subnavText {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.4);
  }

  .about__logoCloud {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    justify-self: stretch;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 8px;
    border-top: none;
    border-left: 1px dashed rgba(92, 63, 38, 0.22);
  }

  .about__logo {
    height: 24px;
  }

  .about__split {
    grid-template-columns: 1fr;
    row-gap: clamp(28px, 5vw, 40px);
  }

  .about__services {
    max-width: none;
    justify-self: stretch;
  }

  .about__diagram {
    max-width: none;
    width: min(100%, 520px);
    justify-self: center;
    align-self: start;
  }
}

@media (max-width: 480px) {
  .about {
    padding: clamp(34px, 8vw, 54px) 0 clamp(42px, 10vw, 70px);
  }

  .about__layout {
    gap: 18px;
  }

  .about__subnavLinks {
    padding: 10px 8px;
    gap: 4px;
  }

  .about__subnav {
    border-left: none;
    border-top: none;
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
  }

  .about__logoCloud {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 6px;
    gap: 8px 6px;
    border-top: none;
    border-left: 1px dashed rgba(92, 63, 38, 0.22);
  }

  .about__logo {
    height: 22px;
  }

  .about__sidebar {
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .about__brandPanel {
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    aspect-ratio: 5 / 2;
    min-height: 0;
    max-height: min(168px, 42vw);
    padding: 10px 16px 0;
  }

  .aboutFlorkStage {
    margin-bottom: calc(-1 * clamp(2.25rem, 7vw, 3rem));
    transform: translateY(-7px);
  }

  .aboutFlork {
    width: min(132px, 58vw);
    max-width: 160px;
  }

  .about__subnavText {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

.heroIntro {
  position: absolute;
  z-index: 4;
  max-width: min(560px, calc(100% - 24px));
  color: rgba(48, 40, 32, 0.82);
  user-select: none;
  opacity: 0;
}

.heroIntro__hello {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 420;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.heroIntro__mobileName {
  display: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.heroIntro__o {
  position: relative;
  display: inline-block;
  margin-left: 2px;
  width: 0.88em;
  height: 0.88em;
  vertical-align: -0.06em;
}

.heroIntro__o::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.22);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 22 C 20 10, 40 34, 60 22 S 100 10, 120 22 S 160 34, 180 22 S 220 10, 240 22' fill='none' stroke='rgba(0,0,0,0.18)' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.06));
  background-repeat: repeat, no-repeat;
  background-size: 240px 44px, auto;
  background-position: 0 0, 0 0;
  opacity: 0.85;
  filter: blur(0.15px);
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}

.heroIntro__o::after {
  content: ",";
  position: absolute;
  left: 100%;
  top: 54%;
  transform: translate(3px, -50%);
  color: rgba(55, 46, 38, 0.72);
  font-weight: 520;
  line-height: 1;
}

.heroIntro__name {
  margin-top: 10px;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.heroIntro__role {
  margin-top: 10px;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 380;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(72, 60, 48, 0.58);
  position: relative;
  display: inline-block;
}

.heroIntro__role::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: rgba(15, 15, 15, 0.42);
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline-in 720ms cubic-bezier(0.16, 1, 0.3, 1) 820ms forwards;
}

@media (min-width: 901px) {
  .heroIntro {
    left: 0;
    top: 54%;
    transform: translateY(-50%) translateX(-48px);
    text-align: left;
    animation: hero-intro-in-desktop 900ms cubic-bezier(0.16, 1, 0.3, 1) 260ms forwards;
  }
}

@media (max-width: 900px) {
  .heroIntro {
    left: 0;
    top: 20%;
    transform: translateX(-40px);
    text-align: left;
    max-width: min(560px, 100%);
    animation: hero-intro-in-900 900ms cubic-bezier(0.16, 1, 0.3, 1) 260ms forwards;
  }
}

@keyframes hero-intro-in-desktop {
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes hero-intro-in-900 {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-underline-in {
  to {
    transform: scaleX(1);
  }
}

.heroOrnament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  --ink: rgba(52, 42, 32, 0.88);
  --inkSoft: rgba(55, 46, 38, 0.38);
  --glass: rgba(252, 247, 240, 0.68);
  --glassBorder: rgba(45, 32, 22, 0.18);
  --ringSize: 520px;
  --spokesShiftX: -40px;
  --fullStackTop: 28%;
  --ornamentShiftX: 120px;
}

/* --ringTop: must live in media queries so max-width rules are not overridden by this block (file order).
   Pill orbit hub uses the same anchor as the ring (--ringTop), not a separate --spokesTop, so they stay aligned. */
@media (min-width: 901px) {
  .heroOrnament {
    --ringTop: 56%;
  }
}

@media (max-width: 900px) {
  .heroOrnament {
    --ringTop: 62%;
  }
}

.heroRing {
  position: absolute;
  left: 50%;
  top: var(--ringTop);
  width: min(86vw, var(--ringSize));
  height: auto;
  transform: translate(calc(-50% + var(--ornamentShiftX, 0px)), -50%);
  overflow: visible;
  opacity: 0.9;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.06));
}

.heroRing__track {
  fill: none;
  stroke: rgba(15, 15, 15, 0.12);
  stroke-width: 1.2;
}

.heroRing__stroke {
  fill: none;
  stroke: rgba(15, 15, 15, 0.26);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.portraitCircle {
  position: absolute;
  left: 50%;
  top: var(--ringTop);
  width: min(64vw, calc(var(--ringSize) * 0.68));
  aspect-ratio: 1 / 1;
  transform: translate(calc(-50% + var(--ornamentShiftX, 0px)), -50%);
  z-index: 3;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(234, 221, 202, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  isolation: isolate;
}

/* Soft blurred layer of the same photo inside the circle (sharp img stacks above). */
.portraitCircle::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  border-radius: 50%;
  background-image: url("./assets/home/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  filter: blur(24px);
  transform: scale(1.05);
  pointer-events: none;
}

.heroMaskText--inCircle {
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  height: auto;
  padding: 0 18px;
  font-size: clamp(18px, 2.6vw, 34px);
  opacity: 0;
  background-size: 140% 140%;
  -webkit-mask-image: none;
  mask-image: none;
}

.portraitCircle__img {
  position: absolute;
  left: 50%;
  bottom: -14%;
  transform: translateX(-50%);
  width: 112%;
  height: auto;
  user-select: none;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateX(-50%) translateY(22px);
  animation: circle-portrait-in 900ms cubic-bezier(0.18, 0.9, 0.2, 1) 120ms forwards;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.92) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.92) 74%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

@keyframes circle-portrait-in {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.heroMaskText {
  position: absolute;
  left: 50%;
  top: calc(var(--ringTop) - 64px);
  transform: translate(-50%, -50%);
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 0.95;
  text-align: center;
  padding: 6px 10px;

  background-image: url("./assets/home/text_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  opacity: 0;
  filter: none;

  /* Keep it as a circle background element */
  width: min(72vw, calc(var(--ringSize) * 0.78));
  height: min(72vw, calc(var(--ringSize) * 0.78));
  display: grid;
  place-items: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 71%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 71%);
}

.heroMaskText.heroMaskText--inCircle {
  top: var(--fullStackTop, 44%);
}

.heroSpokes {
  position: absolute;
  left: 50%;
  /* Slightly above ring center so labels sit a touch higher (ring/portrait still use --ringTop). */
  top: calc(var(--ringTop) - var(--spokesLift, 1.25%));
  width: 0;
  height: 0;
  transform: translate(calc(-50% + var(--ornamentShiftX, 0px) + var(--spokesShiftX)), -50%);
}

.heroSpoke {
  position: absolute;
  left: 0;
  top: 0;
  opacity: var(--o, 1);
  transform: rotate(var(--a)) translateX(var(--pillR, 180px)) rotate(calc(-1 * var(--a))) scale(var(--s, 1));
  transform-origin: 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

/* Start animations only after JS lays out angles/radii */
.heroOrnament.isReady .heroRing__stroke {
  animation: ring-draw 900ms cubic-bezier(0.16, 1, 0.3, 1) 420ms forwards;
}

.heroOrnament.isReady .heroTag {
  animation: tag-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 820ms forwards;
}

.heroOrnament.isReady .heroMaskText {
  animation:
    masktext-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 760ms forwards,
    masktext-shimmer 9s ease-in-out 1.4s infinite;
}

.heroOrnament.isReady .heroSpoke {
  animation: pill-in 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 1.05s) forwards;
}

.heroSpoke__line {
  display: none;
  width: calc(var(--lineW, 34px) + (var(--nudgeX, 0) * 1px));
  height: 1px;
  background: rgba(15, 15, 15, 0.22);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.heroSpoke__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: calc(var(--nudgeX, 0) * 1px);
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
  text-align: center;
  min-width: 72px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 1px rgba(255, 255, 255, 0.2);
}

.heroSpoke__pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 14 C 18 6, 36 22, 54 14 S 90 6, 108 14 S 144 22, 162 14 S 198 6, 216 14 S 232 22, 240 14' fill='none' stroke='rgba(0,0,0,0.14)' stroke-width='1'/%3E%3Cpath d='M0 22 C 20 10, 40 34, 60 22 S 100 10, 120 22 S 160 34, 180 22 S 220 10, 240 22' fill='none' stroke='rgba(0,0,0,0.20)' stroke-width='1'/%3E%3Cpath d='M0 30 C 24 18, 48 42, 72 30 S 120 18, 144 30 S 192 42, 216 30 S 232 18, 240 30' fill='none' stroke='rgba(92,63,38,0.24)' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(0, 0, 0, 0.06));
  background-repeat: repeat, no-repeat;
  background-size: 240px 44px, auto;
  background-position: 0 0, 0 0;
  opacity: 0.38;
  filter: blur(0.2px);
  mix-blend-mode: multiply;
  animation: nav-waves 8.5s linear infinite;
}

@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tag-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-9deg) translateY(0);
  }
}

@keyframes masktext-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.985);
    filter: none;
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }
}

@keyframes masktext-shimmer {
  0%   { background-position: 42% 48%; }
  50%  { background-position: 58% 52%; }
  100% { background-position: 42% 48%; }
}

@keyframes pill-in {
  from {
    transform: rotate(var(--a)) translateX(var(--pillR, 180px)) rotate(calc(-1 * var(--a))) scale(calc(var(--s, 1) * 0.96)) translateY(6px);
    opacity: 0;
  }
  to {
    transform: rotate(var(--a)) translateX(var(--pillR, 180px)) rotate(calc(-1 * var(--a))) scale(var(--s, 1)) translateY(0);
    opacity: var(--o, 1);
  }
}

/* (portrait is now cropped into `.portraitCircle`) */

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroRing__stroke {
    animation: none;
    stroke-dashoffset: 0;
  }

  .heroMaskText {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .heroSpoke {
    animation: none;
    opacity: var(--o, 1);
  }

  .portraitCircle__img {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  @media (min-width: 901px) {
    .heroIntro {
      animation: none;
      opacity: 1;
      transform: translateY(-50%);
    }
  }

  @media (max-width: 900px) {
    .heroIntro {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 640px) {
  .heroIntro {
    left: 0;
    top: 14%;
    transform: translateX(-28px);
    text-align: left;
    max-width: min(520px, 100%);
    opacity: 0;
    animation: hero-intro-in-mobile 900ms cubic-bezier(0.16, 1, 0.3, 1) 220ms forwards;
  }

  .heroIntro__hello {
    font-size: clamp(18px, 5.2vw, 26px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .heroIntro__name {
    display: none;
  }

  .heroIntro__role {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .heroIntro__mobileName {
    display: inline;
  }

  @keyframes hero-intro-in-mobile {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .heroOrnament {
    --ringSize: 300px;
    /* Portrait phones: orbit lower (pills share --ringTop hub with ring + portrait) */
    --ringTop: 64%;
    --spokesShiftX: -30px;
    --fullStackTop: 18%;
    --ornamentShiftX: 0px;
  }

  .heroMaskText {
    font-size: clamp(24px, 8vw, 40px);
  }

  /* Make ring boundary visible on mobile */
  .heroRing__track {
    stroke: rgba(15, 15, 15, 0.18);
    stroke-width: 1.6;
  }

  .heroRing__stroke {
    stroke: rgba(15, 15, 15, 0.32);
    stroke-width: 1.9;
  }

  .heroSpoke__line {
    width: 26px;
  }

  .heroSpoke__pill {
    font-size: 12px;
    font-weight: 820;
    padding: 8px 10px;
    min-width: 64px;
  }

  @media (max-width: 480px) {
    .heroSpoke__pill {
      font-size: 11px;
      font-weight: 780;
      padding: 6px 8px;
      min-width: 54px;
      letter-spacing: 0.01em;
    }
  }

  .portraitCircle {
    width: min(78vw, calc(var(--ringSize) * 0.72));
  }

  @media (prefers-reduced-motion: reduce) {
    .heroIntro {
      opacity: 1;
      animation: none;
      transform: none;
    }
  }
}

/* ——— Resume & Contact (end of page) ——— */
.endBand {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  scroll-margin-top: 72px;
  padding: clamp(40px, 7vw, 72px) 0;
  box-sizing: border-box;
}

.endBand--resume {
  padding-bottom: clamp(32px, 6vw, 56px);
}

.endBand--resume .endBand__inner {
  overflow: visible;
}

/* ——— Experience at a glance: 3D floating cards + water plate ——— */
.experienceStage {
  margin: clamp(8px, 3vw, 20px) 0 clamp(28px, 5vw, 40px);
  position: relative;
  padding-inline: clamp(0px, 2vw, 8px);
  overflow-x: hidden;
}

.experienceStage__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 12px);
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.experienceStage__sceneHost {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.experienceStage__arrow {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 8vw, 48px);
  height: clamp(40px, 8vw, 48px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(92, 63, 38, 0.22);
  background: rgba(255, 252, 247, 0.92);
  color: rgba(58, 44, 34, 0.88);
  box-shadow:
    0 10px 28px rgba(40, 32, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(92, 63, 38, 0.12);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.experienceStage__arrow:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(92, 63, 38, 0.32);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(40, 32, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.experienceStage__arrow:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.45);
  outline-offset: 2px;
}

.experienceStage__arrowIcon {
  display: block;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1;
  margin-top: -0.06em;
}

.experienceStage__caption {
  margin: clamp(10px, 2.5vw, 16px) auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(58, 44, 34, 0.78);
  letter-spacing: 0.01em;
}

@supports (overflow: clip) {
  .experienceStage {
    overflow-x: clip;
  }
}

.experienceStage__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  min-height: min(380px, 68vw);
  max-width: 920px;
  width: 100%;
  perspective: 1500px;
  perspective-origin: 50% 34%;
  transform-style: preserve-3d;
}

.experienceStage__scene::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 28px;
  background-image: url("./assets/work/background.png");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  filter: blur(24px);
  transform: translateZ(-1px) scale(1.04);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 640px) {
  .experienceStage__scene {
    min-height: min(460px, 52vw);
  }
}

@media (min-width: 900px) {
  .experienceStage__scene {
    min-height: 500px;
  }
}

/* Mobile: contain blur + cards, flatter 3D, no negative off-screen satellites */
@media (max-width: 639px) {
  /* Don’t clip satellites /3D overflow; body already has overflow-x: hidden */
  .experienceStage {
    padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }

  @supports (overflow: clip) {
    .experienceStage {
      overflow-x: visible;
      overflow-y: visible;
    }
  }

  /* Full-width 3D scene on first row; thumb-sized prev/next on second row */
  .experienceStage__carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px clamp(10px, 3vw, 16px);
    max-width: 100%;
    align-items: center;
  }

  .experienceStage__sceneHost {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .experienceStage__arrow--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-inline-start: max(4px, env(safe-area-inset-left, 0px));
  }

  .experienceStage__arrow--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-inline-end: max(4px, env(safe-area-inset-right, 0px));
  }

  .experienceStage__arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .experienceStage__caption {
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    font-size: 0.9rem;
  }

  .experienceStage__scene {
    min-height: clamp(300px, 82vw, 400px);
    perspective: 900px;
    perspective-origin: 50% 48%;
    padding-block: 10px 16px;
    /* Inset so absolute satellites + shadows stay inside the padded box (avoids “frame” crop) */
    padding-inline: clamp(12px, 5vw, 22px);
  }

  .experienceStage__scene::before {
    inset: -8px;
    border-radius: 20px;
    filter: blur(16px);
    opacity: 0.85;
  }

  .experienceStage__hero {
    padding-block: clamp(10px, 3vw, 20px);
  }

  .experienceStage__mainShell {
    width: min(100%, min(92vw, 360px));
  }

  /* rotateX + overflow:hidden on the card was cropping the photo at the top/bottom */
  .experienceStage__main {
    overflow: visible;
  }

  .experienceStage__main img {
    border-radius: 14px;
  }

  .experienceStage--active .experienceStage__mainShell {
    animation-name: experience-main-rise-mobile;
  }

  .experienceStage--active .experienceSat {
    animation-name: experience-sat-pop-mobile;
  }

  .experienceSat {
    min-width: 0;
    max-width: min(30vw, 120px);
  }

  .experienceSat--1 {
    top: 2%;
    left: 2%;
    right: auto;
    --sat-w: 26%;
  }
  .experienceSat--2 {
    top: 36%;
    left: 2%;
    right: auto;
    --sat-w: 25%;
  }
  .experienceSat--3 {
    display: block;
    bottom: 10%;
    left: 4%;
    top: auto;
    right: auto;
    --sat-w: 26%;
  }
  .experienceSat--4 {
    top: 0;
    right: 2%;
    left: auto;
    --sat-w: 28%;
  }
  .experienceSat--5 {
    top: 32%;
    right: 2%;
    left: auto;
    --sat-w: 25%;
  }
  .experienceSat--6 {
    bottom: 8%;
    right: 2%;
    left: auto;
    --sat-w: 26%;
  }
}

@media (max-width: 400px) {
  .experienceStage__scene {
    min-height: clamp(280px, 88vw, 360px);
  }

  .experienceSat--2,
  .experienceSat--5 {
    display: none;
  }

  .experienceSat {
    max-width: min(34vw, 108px);
  }
}

@keyframes experience-main-rise-mobile {
  0% {
    opacity: 0;
    transform: translateY(18%) rotateX(14deg) translateZ(-40px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(6deg) translateZ(0) scale(1);
  }
}

@keyframes experience-sat-pop-mobile {
  0% {
    opacity: 0;
    transform: rotateX(10deg) translateY(18px) translateZ(-40px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: rotateX(4deg) translateY(0) translateZ(8px) scale(1);
  }
}

.experienceStage__hero {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(16px, 4vw, 32px);
}

.experienceStage__mainShell {
  position: relative;
  z-index: 6;
  width: min(92%, 440px);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(22%) rotateX(22deg) translateZ(-60px) scale(0.92);
}

.experienceStage--active .experienceStage__mainShell {
  animation: experience-main-rise 1.08s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

@keyframes experience-main-rise {
  0% {
    opacity: 0;
    transform: translateY(22%) rotateX(22deg) translateZ(-60px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(12deg) translateZ(0) scale(1);
  }
}

.experienceStage__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 252, 248, 0.4);
  box-shadow:
    0 28px 60px rgba(40, 32, 26, 0.14),
    0 8px 24px rgba(40, 32, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.experienceStage__main img {
  display: block;
  width: 100%;
  height: auto;
}

.experienceStage__plate {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: min(78%, 340px);
  height: clamp(36px, 10vw, 54px);
  margin: -8px auto 0;
  border-radius: 50%;
  transform: scale(0.88, 0.32);
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 100% at 50% 36%, rgba(255, 255, 255, 0.5), rgba(190, 224, 255, 0.16) 44%, transparent 72%),
    radial-gradient(ellipse 88% 52% at 50% 88%, rgba(255, 255, 255, 0.2), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 14px 36px rgba(70, 110, 140, 0.14),
    inset 0 2px 14px rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.experienceStage--active .experienceStage__plate {
  animation: experience-plate-in 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes experience-plate-in {
  0% {
    opacity: 0;
    transform: scale(0.82, 0.28);
  }
  100% {
    opacity: 1;
    transform: scale(1, 0.46);
  }
}

.experienceStage__plateShine {
  position: absolute;
  inset: 14% 20%;
  border-radius: inherit;
  background: linear-gradient(108deg, transparent 18%, rgba(255, 255, 255, 0.4) 42%, transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.experienceSat {
  position: absolute;
  z-index: 4;
  width: var(--sat-w, 26%);
  min-width: 100px;
  max-width: 228px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: rotateX(15deg) translateY(26px) translateZ(-72px) scale(0.85);
}

.experienceStage--active .experienceSat {
  animation: experience-sat-pop 0.72s cubic-bezier(0.34, 1.28, 0.64, 1) forwards;
}

.experienceStage--active .experienceSat--1 {
  animation-delay: 1.38s;
}
.experienceStage--active .experienceSat--2 {
  animation-delay: 1.5s;
}
.experienceStage--active .experienceSat--3 {
  animation-delay: 1.62s;
}
.experienceStage--active .experienceSat--4 {
  animation-delay: 1.34s;
}
.experienceStage--active .experienceSat--5 {
  animation-delay: 1.46s;
}
.experienceStage--active .experienceSat--6 {
  animation-delay: 1.58s;
}

@keyframes experience-sat-pop {
  0% {
    opacity: 0;
    transform: rotateX(16deg) translateY(28px) translateZ(-78px) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: rotateX(10deg) translateY(0) translateZ(18px) scale(1);
  }
}

.experienceSat__frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 252, 248, 0.38);
  box-shadow:
    0 20px 44px rgba(40, 32, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.experienceSat__frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Portrait mobile (ElderLink): no wide frosted “frame” — shell + card hug the screenshot */
[data-experience-stage][data-experience-phone="true"] .experienceStage__mainShell {
  width: fit-content;
  max-width: min(92%, 280px);
  margin-inline: auto;
}

[data-experience-stage][data-experience-phone="true"] .experienceStage__main {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

[data-experience-stage][data-experience-phone="true"] .experienceStage__main img {
  display: block;
  width: auto;
  max-width: min(220px, 48vw);
  max-height: min(46vh, 340px);
  margin: 0;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  box-shadow:
    0 12px 32px rgba(40, 32, 26, 0.18),
    0 2px 8px rgba(40, 32, 26, 0.08);
}

/* Side cards: shrink slot + frame wraps image only (no wide gray plate) */
[data-experience-stage][data-experience-phone="true"] .experienceSat {
  --sat-w: 11%;
  min-width: 0;
  max-width: min(92px, 20vw);
}

[data-experience-stage][data-experience-phone="true"] .experienceSat__frame {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  max-height: none;
}

[data-experience-stage][data-experience-phone="true"] .experienceSat__frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(22vh, 148px);
  height: auto;
  margin: 0;
  object-fit: contain;
  border-radius: 8px;
  box-shadow:
    0 8px 20px rgba(40, 32, 26, 0.14),
    0 1px 4px rgba(40, 32, 26, 0.08);
}

@media (max-width: 639px) {
  [data-experience-stage][data-experience-phone="true"] .experienceStage__mainShell {
    max-width: min(92%, 240px);
  }

  [data-experience-stage][data-experience-phone="true"] .experienceStage__main img {
    max-width: min(190px, 56vw);
    max-height: min(40vh, 260px);
  }

  [data-experience-stage][data-experience-phone="true"] .experienceSat {
    --sat-w: 13%;
    max-width: min(76px, 22vw);
  }

  [data-experience-stage][data-experience-phone="true"] .experienceSat__frame img {
    max-height: min(18vh, 120px);
  }
}

.experienceSat--1 {
  top: 5%;
  left: 1%;
  --sat-w: 24%;
}
.experienceSat--2 {
  top: 32%;
  left: -3%;
  --sat-w: 22%;
}
.experienceSat--3 {
  bottom: 24%;
  left: 3%;
  --sat-w: 22%;
}
.experienceSat--4 {
  top: 3%;
  right: -1%;
  left: auto;
  --sat-w: 26%;
}
.experienceSat--5 {
  top: 28%;
  right: -4%;
  left: auto;
  --sat-w: 23%;
}
.experienceSat--6 {
  bottom: 16%;
  right: 1%;
  left: auto;
  --sat-w: 24%;
}

/* Hidden when a hovered project has fewer than six “side” screenshots */
.experienceStage--active .experienceSat.experienceSat--inactive {
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .experienceStage__mainShell,
  .experienceStage__plate,
  .experienceSat {
    animation: none !important;
  }

  .experienceStage__mainShell {
    opacity: 1;
    transform: translateY(0) rotateX(10deg) translateZ(0) scale(1);
  }

  .experienceStage__plate {
    opacity: 1;
    transform: scale(1, 0.46);
  }

  .experienceSat {
    opacity: 1;
    transform: rotateX(10deg) translateZ(10px) scale(1);
  }
}

.endBand__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 18px;
  border: 1px solid rgba(92, 63, 38, 0.22);
  background: linear-gradient(165deg, rgba(251, 248, 244, 0.88), rgba(234, 221, 202, 0.55));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.endBand__header {
  max-width: 52rem;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.endBand__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(92, 63, 38, 0.78);
}

.endBand__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: rgba(38, 30, 22, 0.94);
}

.endBand__lede {
  margin: 0;
  font-size: clamp(0.95rem, 1.65vw, 1.05rem);
  line-height: 1.55;
  color: rgba(48, 38, 28, 0.78);
}

.endBand__list {
  margin: 0 0 clamp(22px, 3vw, 30px);
  padding: 0 0 0 1.15rem;
  color: rgba(48, 38, 28, 0.82);
  line-height: 1.65;
  font-size: 0.95rem;
}

.endBand__list li + li {
  margin-top: 8px;
}

.endBand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.endBand__fineprint {
  margin: clamp(14px, 2vw, 18px) 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(48, 38, 28, 0.68);
}

.endBand__inlineLink {
  color: rgba(92, 63, 38, 0.92);
  font-weight: 640;
  text-decoration: underline;
  text-decoration-color: rgba(92, 63, 38, 0.35);
  text-underline-offset: 2px;
}

.endBand__inlineLink:hover {
  color: rgba(52, 42, 32, 0.95);
}

.endBand__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.endBand__btn--primary {
  color: rgba(255, 252, 248, 0.96);
  background: rgba(52, 42, 32, 0.92);
  border-color: rgba(52, 42, 32, 0.35);
  box-shadow: 0 6px 18px rgba(40, 32, 26, 0.15);
}

.endBand__btn--primary:hover {
  transform: translateY(-1px);
  background: rgba(42, 34, 26, 0.96);
}

.endBand__btn--ghost {
  color: rgba(52, 42, 32, 0.88);
  background: rgba(255, 252, 248, 0.65);
  border-color: rgba(92, 63, 38, 0.28);
}

.endBand__btn--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 252, 248, 0.88);
}

.endBand__btn:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.55);
  outline-offset: 3px;
}

/* ——— Site footer (contact anchor, icon-only social, branding) ——— */
.siteFooter {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  width: 100%;
  margin-top: clamp(8px, 2vw, 20px);
  margin-inline: calc(var(--page-gutter) * -1);
  scroll-margin-top: 72px;
  padding: clamp(48px, 8vw, 80px) var(--page-gutter) clamp(20px, 4vw, 32px);
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(218, 202, 182, 0.55) 0%, rgba(234, 221, 202, 0.92) 38%, #eaddca 100%);
  border-top: 1px solid rgba(92, 63, 38, 0.18);
}

.siteFooter__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.siteFooter__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(28px, 5vw, 40px);
}

@media (min-width: 720px) {
  .siteFooter__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.siteFooter__cta {
  text-align: center;
}

@media (min-width: 720px) {
  .siteFooter__cta {
    text-align: left;
    flex: 1 1 auto;
    max-width: 22rem;
  }
}

.siteFooter__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a4d32;
}

.siteFooter__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(38, 30, 22, 0.94);
}

.siteFooter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(38, 30, 22, 0.92);
  background: linear-gradient(180deg, #e8a088 0%, #c45c3e 100%);
  border: 1px solid rgba(154, 77, 50, 0.45);
  box-shadow: 0 6px 16px rgba(154, 77, 50, 0.22);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.siteFooter__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.siteFooter__btn:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.55);
  outline-offset: 3px;
}

.siteFooter__divider {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 77, 50, 0.45), transparent);
}

@media (min-width: 720px) {
  .siteFooter__divider {
    width: 1px;
    height: 72px;
    align-self: center;
    background: linear-gradient(180deg, transparent, rgba(154, 77, 50, 0.5), transparent);
  }
}

.siteFooter__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 24px);
}

@media (min-width: 720px) {
  .siteFooter__aside {
    align-items: flex-end;
    flex: 0 0 auto;
    min-width: min(100%, 280px);
  }
}

.siteFooter__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 720px) {
  .siteFooter__icons {
    justify-content: flex-end;
  }
}

.siteFooter__iconBtn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.75);
  border: 1px solid rgba(92, 63, 38, 0.14);
  box-shadow: 0 4px 12px rgba(40, 32, 26, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.siteFooter__iconBtn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.siteFooter__iconBtn:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 63, 38, 0.28);
  box-shadow: 0 10px 22px rgba(40, 32, 26, 0.1);
}

.siteFooter__iconBtn:focus-visible {
  outline: 2px solid rgba(92, 63, 38, 0.55);
  outline-offset: 3px;
}

.siteFooter__legal {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a4d32;
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .siteFooter__legal {
    text-align: right;
  }
}

.siteFooter__legalSep {
  margin: 0 0.35em;
  opacity: 0.6;
}

.siteFooter__legalSub {
  opacity: 0.85;
}

.siteFooter__brand {
  margin: clamp(8px, 3vw, 16px) 0 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(3.25rem, 17vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-transform: uppercase;
  text-align: center;
  color: rgba(92, 63, 38, 0.14);
  -webkit-text-stroke: 1px rgba(92, 63, 38, 0.08);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 720px) {
  .siteFooter__brand {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .siteFooter__btn:hover,
  .siteFooter__iconBtn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .endBand__btn--primary:hover,
  .endBand__btn--ghost:hover {
    transform: none;
  }
}
