/* Motion belongs only to the quote section—not the homepage hero. */
.horizontal-intro {
  position: relative;
  height: 280svh;
}

.horizontal-intro-track {
  --page-progress: 0;
  --hero-turn: 0deg;
  --puzzle-turn: 8deg;
  --spine-opacity: .15;
  position: sticky;
  top: 0;
  display: flex;
  width: 200vw;
  height: 100svh;
  overflow: hidden;
  perspective: 2200px;
  transform-style: preserve-3d;
  will-change: transform;
}

.horizontal-intro-track::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: calc(100vw - 2px);
  width: 14px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(29,24,58,.18), rgba(255,255,255,.32) 44%, rgba(29,24,58,.1));
  box-shadow: -18px 0 32px rgba(34,25,70,.14), 18px 0 32px rgba(34,25,70,.1);
  opacity: var(--spine-opacity);
}

.horizontal-panel {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  flex: 0 0 100vw;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.horizontal-intro .hero {
  transform-origin: right center;
  transform: rotateY(var(--hero-turn));
  box-shadow: 22px 0 45px rgba(32,24,67,.12);
}

.horizontal-intro .portfolio-puzzle {
  transform-origin: left center;
  transform: rotateY(var(--puzzle-turn));
  box-shadow: -22px 0 42px rgba(32,24,67,.1);
}

.horizontal-intro .portfolio-puzzle {
  display: grid;
  align-content: center;
  padding-top: clamp(72px, 9vh, 105px);
  padding-bottom: clamp(20px, 4vh, 46px);
}

.horizontal-intro .portfolio-puzzle .section-kicker {
  margin-bottom: clamp(10px, 2vh, 22px);
}

.horizontal-intro .puzzle-heading {
  margin: 0 auto clamp(8px, 1.5vh, 18px);
}

.horizontal-intro .puzzle-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: .92;
}

.horizontal-intro .puzzle-board {
  z-index: 2;
  width: min(860px, 78vw, 71vh);
}

@media (prefers-reduced-motion: reduce) {
  .horizontal-intro { height: auto; }
  .horizontal-intro-track {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    transform: none !important;
  }
  .horizontal-intro-track::after { display: none; }
  .horizontal-intro .hero,
  .horizontal-intro .portfolio-puzzle { transform: none; box-shadow: none; }
  .horizontal-panel { width: 100%; min-height: 100svh; }
}

.home-page .unified-statement::before{content:"a little more about me ✦"}
.home-page .unified-profile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 20%, rgba(248,223,132,.72), transparent 27%),
    radial-gradient(circle at 92% 78%, rgba(169,149,232,.48), transparent 30%),
    linear-gradient(125deg,#fff7e8,#eaf8f2 52%,#e6f1fb);
  background-size: 125% 125%,130% 130%,100% 100%;
  animation: quote-colour-drift 12s ease-in-out infinite alternate;
}

.home-page .unified-profile::before {
  content: "“";
  position: absolute;
  z-index: -1;
  right: 4vw;
  top: -8%;
  color: rgba(169,149,232,.2);
  font: 700 clamp(240px,38vw,560px)/1 Georgia,serif;
  transform: rotate(8deg);
  animation: quote-breathe 7s ease-in-out infinite;
}

.home-page .unified-profile::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -210px;
  border: 1px solid rgba(7,26,53,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(169,149,232,.06),0 0 0 72px rgba(117,189,224,.04);
  animation: quote-orbit 18s linear infinite;
}

.home-page .unified-statement {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.76);
}

@keyframes quote-colour-drift {
  from { background-position: 0 0,100% 100%,0 0; }
  to { background-position: 20% 18%,72% 75%,0 0; }
}

@keyframes quote-breathe {
  0%,100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.05); }
}

@keyframes quote-orbit { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .home-page .unified-profile,
  .home-page .unified-profile::before,
  .home-page .unified-profile::after { animation: none; }
}

/* Slightly deeper violet for the homepage palette */
.home-page .hero {
  background: linear-gradient(140deg, #7458b8 0 62%, #d9ad37 62%);
}

@media (max-width: 640px) {
  .home-page .hero {
    background: linear-gradient(155deg, #7458b8 0 81%, #d9ad37 81%);
  }
}

/* Clearer hero hierarchy */
.home-page .hero::before { content: none; }

.home-page .role-line {
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(30px, 3.7vw, 58px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 2px 18px rgba(49, 31, 92, .2);
}

.home-page .rotating-role {
  min-width: 0;
  color: #f2c94c;
  font-weight: 800;
}

.home-page .hero .role-line + h1 {
  margin: 22px 0 26px;
  font-size: clamp(38px, 4.5vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}

@media (max-width: 640px) {
  .home-page .role-line { font-size: clamp(27px, 8vw, 38px); }
  .home-page .hero .role-line + h1 { font-size: 42px; }
}

/* Professional hero interactions and quieter portrait treatment */
.home-page .hero-actions .button.primary,
.home-page .hero-actions .text-link {
  min-width: 210px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: color .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.home-page .hero-actions .button.primary:hover,
.home-page .hero-actions .button.primary:focus-visible {
  color: #fff;
  background: #171f3b;
  border-color: #171f3b;
  box-shadow: 0 12px 30px rgba(20, 23, 54, .25), 0 0 0 3px rgba(217, 173, 55, .3);
  outline: none;
}

.home-page .hero-actions .text-link {
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .home-page .hero-actions .button.primary,
  .home-page .hero-actions .text-link { width: min(100%, 250px); }
}

.home-page .hero-actions .text-link:hover,
.home-page .hero-actions .text-link:focus-visible {
  color: #171f3b;
  background: rgba(255,255,255,.9);
  border-color: #fff;
  box-shadow: 0 10px 26px rgba(26, 22, 61, .18);
  transform: translateY(-3px);
  outline: none;
}

.home-page .orbit { display: none; }

.home-page .hero-portrait {
  width: min(35vw, 570px);
  filter: drop-shadow(0 26px 38px rgba(41, 29, 81, .2));
}

@media (max-width: 1000px) {
  .home-page .hero-portrait { width: 66vw; }
}

@media (max-width: 640px) {
  .home-page .hero-portrait { width: 88vw; }
}

.home-page .hero-portrait::before {
  inset: 7% -4% 3% 7%;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(217,173,55,.12));
  box-shadow: 14px 16px 0 rgba(63, 43, 118, .2);
  transform: none;
  animation: none;
}

.home-page .hero-portrait::after {
  inset: 12% 2% 6%;
  border: 0;
  border-radius: 34px;
  background: radial-gradient(circle at 68% 42%, rgba(217,173,55,.24), rgba(97,70,160,.12) 48%, transparent 72%);
  box-shadow: none;
  transform: translate(24px, 18px);
  animation: none;
}

/* Echo the hero palette in the closing call to action */
.home-page .home-cta {
  min-height: 74vh;
  overflow: hidden;
  isolation: isolate;
  color: #071a35;
  background:
    linear-gradient(90deg, transparent 0 calc(8.4% - 48px), rgba(167,88,113,.1) calc(8.4% - 48px) calc(8.52% - 48px), transparent calc(8.52% - 48px)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(71,111,157,.09) 33px 34px),
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.58), transparent 30%),
    radial-gradient(circle at 92% 78%, rgba(176,197,239,.42), transparent 32%),
    linear-gradient(125deg, #eaf6fb, #dceef7 52%, #d7e8f5);
  background-size: auto, auto, 125% 125%, 130% 130%, 100% 100%;
  animation: quote-colour-drift 12s ease-in-out infinite alternate;
}

.home-page .home-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(13px, 3.2vw, 46px);
  top: 0;
  bottom: 0;
  width: 18px;
  background: radial-gradient(circle, rgba(255,255,255,.42) 0 5px, rgba(86,77,120,.1) 5.5px 6.5px, transparent 7px) center 14px / 18px 68px repeat-y;
  opacity: .5;
}

.home-page .home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.18'/%3E%3C/svg%3E");
}

.home-page .home-cta > p { color: rgba(7,26,53,.68); }

.home-page .home-cta h2 {
  position: relative;
  top: -42px;
  z-index: 2;
  max-width: 820px;
  color: #d9ad37;
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: .94;
}

.home-page .home-cta .circle-link {
  z-index: 3;
  right: auto;
  left: clamp(467px, calc(30vw + 192px), 692px);
  bottom: calc(9% + 106px);
  width: 118px;
  height: 118px;
  color: #624c9a;
  background: #d9ad37;
  border: 1px solid rgba(7,26,53,.22);
  box-shadow: 0 18px 42px rgba(111, 80, 13, .22);
}

.home-page .home-cta .circle-link span { color: #624c9a; }

.home-cta-plane {
  position: absolute;
  z-index: 1;
  right: clamp(106px, calc(2.5vw + 96px), 138px);
  top: 25%;
  width: min(38vw, 560px);
  min-width: 380px;
  overflow: visible;
  transform: rotate(4deg);
  color: #624c9a;
  filter: drop-shadow(0 8px 10px rgba(65, 78, 120, .1));
}

.home-cta-plane path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-cta-plane .plane-route {
  stroke-dasharray: 15 18;
  stroke-width: 6;
}

.home-cta-plane .plane-shape {
  fill: rgba(255,255,255,.3);
}

/* Warm gold field behind the globe */
.home-page .world-section {
  position: relative;
  isolation: isolate;
  padding-bottom: 42px;
  background:
    linear-gradient(90deg, transparent 0 calc(8.4% - 48px), rgba(167,88,113,.1) calc(8.4% - 48px) calc(8.52% - 48px), transparent calc(8.52% - 48px)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(81,105,152,.07) 33px 34px),
    radial-gradient(circle at 78% 28%, rgba(217,173,55,.15), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(116,88,184,.045), transparent 36%),
    linear-gradient(135deg, #faf6e9 0%, #f5edcf 58%, #f0e1ad 100%);
}

.home-page .world-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(13px, 3.2vw, 46px);
  top: 0;
  bottom: 0;
  width: 18px;
  background: radial-gradient(circle, rgba(255,255,255,.4) 0 5px, rgba(86,77,120,.1) 5.5px 6.5px, transparent 7px) center 14px / 18px 68px repeat-y;
  opacity: .5;
}

.home-page .world-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.18'/%3E%3C/svg%3E");
}

.home-page .globe-stage::before {
  background: rgba(85, 60, 37, .1);
}

.home-page .world-section .section-kicker {
  margin-bottom: 14px;
}

.home-page .world-layout {
  align-items: start;
}

.home-page .globe-copy {
  padding-top: 8px;
}

.home-page .globe-stage {
  transform: translateY(-96px);
  margin-bottom: -96px;
}

.home-page .globe-stage canvas {
  width: min(108%, 710px);
  max-width: none;
}

@media (min-width: 1001px) {
  .home-page .command-nav { translate: 0 -4px; }
}

@media (max-width: 800px) {
  .home-page .world-section { padding-bottom: 34px; }
  .home-page .globe-stage { margin-bottom: -38px; transform: translateY(-38px); }
  .home-page .globe-stage canvas { width: min(104%, 650px); }
}

@media (max-width: 640px) {
  .home-page .home-cta {
    background:
      linear-gradient(90deg, transparent 0 calc(8.4% - 48px), rgba(167,88,113,.1) calc(8.4% - 48px) calc(8.52% - 48px), transparent calc(8.52% - 48px)),
      repeating-linear-gradient(0deg, transparent 0 33px, rgba(71,111,157,.09) 33px 34px),
      radial-gradient(circle at 10% 20%, rgba(255,255,255,.58), transparent 30%),
      radial-gradient(circle at 92% 78%, rgba(176,197,239,.42), transparent 32%),
      linear-gradient(125deg, #eaf6fb, #dceef7 52%, #d7e8f5);
  }
  .home-page .home-cta h2 { font-size: 43px; }
  .home-page .home-cta .circle-link {
    left: calc(36vw + 40px);
    right: auto;
    bottom: calc(7% + 58px);
    width: 105px;
    height: 105px;
  }
  .home-cta-plane { top: 45%; right: 12px; width: 380px; min-width: 0; opacity: .72; }
}

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