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

:root {
  --content-width: 1100px;
  --hero-scroll-color: #f08e36;
  --nav-offset: 110px;
  --section-top-space: clamp(128px, 16vh, 160px);
  --section-bottom-space: clamp(72px, 10vh, 108px);
  --section-title-gap: clamp(42px, 6vh, 72px);
  --contact-stack-gap: clamp(28px, 4vh, 40px);
  --overview-hover-shift: clamp(28px, 5vw, 68px);
  --overview-row-height: clamp(180px, 24vh, 220px);
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #050505;
  color: white;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* NAV -------------------------- */
.nav {
  width: 100%;
  padding: 24px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(12px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  cursor: pointer;
  opacity: 0.85;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: 0.2s;
}
.nav-link:hover { opacity: 1; }

/* HERO -------------------------- */
.hero {
  min-height: 100svh;
  padding: 0 20px;
  position: relative;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  min-height: 100svh;
  padding: 118px 0 54px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #050505;
  z-index: 0;
  pointer-events: none;
}

.hero-inner > * {
  position: relative;
  z-index: 1;
}

.hero-pill-stage {
  --hero-floating-width: clamp(176px, 18vw, 226px);
  width: min(100%, 1320px);
  min-height: clamp(760px, 86vh, 980px);
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  padding: clamp(32px, 4.4vw, 48px) clamp(12px, 2.4vw, 24px) clamp(104px, 12vw, 152px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0px, 0.25vw, 4px);
}

.hero-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(3.8rem, 8.4vw, 8.5rem);
  font-weight: 780;
  letter-spacing: -0.09em;
  line-height: 0.88;
  color: rgba(244, 238, 230, 0.94);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-18px);
  will-change: clip-path, opacity, transform;
}

.hero-line-one {
  margin-left: clamp(430px, 34vw, 560px);
  font-size: clamp(4.1rem, 7vw, 7rem);
  color: #a259ff;
}

.hero-line-two {
  margin-left: clamp(150px, 11vw, 220px);
  font-size: clamp(5.4rem, 9.2vw, 8.8rem);
}

.hero-line-three {
  margin-left: clamp(248px, 19vw, 338px);
  font-size: clamp(5rem, 8.6vw, 8rem);
}

.hero-line-four {
  margin-left: clamp(628px, 49vw, 790px);
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  letter-spacing: -0.06em;
}

.hero-line-five {
  margin-left: clamp(112px, 8.5vw, 184px);
  font-size: clamp(5.8rem, 10vw, 9.2rem);
}

.hero-word-accent-orange {
  color: #f08e36;
}

.hero-word-accent-yellow {
  color: #f1d07a;
}

.hero-word-accent-violet {
  color: #a259ff;
}

.hero-word-accent-teal {
  color: #2fe8c3;
}

.hero-designer-word {
  display: inline-block;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville Old Face", Georgia, serif;
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: #f4eee6;
  transform: translateY(0.03em);
}

.hero-subtext {
  max-width: 1180px;
  margin-top: clamp(38px, 5vw, 58px);
  font-size: clamp(1rem, 1.55vw, 1.34rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: rgba(244, 238, 230, 0.74);
  opacity: 0;
  transform: translateY(18px);
  text-align: center;
}

.hero-subtext-line {
  display: block;
}

.hero-subtext-line-emphasis {
  margin-top: 8px;
}

.hero-floating-pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-floating-pill {
  position: absolute;
  opacity: 0;
  transform: translate3d(var(--pill-in-x, 16px), var(--pill-in-y, 10px), 0) scale(0.82);
  will-change: transform, opacity;
}

.hero-floating-pill-one {
  top: 22%;
  left: 8.2%;
  --pill-in-x: -12px;
  --pill-in-y: 10px;
  --pill-delay: 0.58s;
}

.hero-floating-pill-two {
  top: 47%;
  left: 12.2%;
  right: auto;
  --pill-in-x: 16px;
  --pill-in-y: 10px;
  --pill-delay: 0.68s;
}

.hero-floating-pill-three {
  top: 22%;
  right: 8.6%;
  left: auto;
  bottom: auto;
  --pill-in-x: 10px;
  --pill-in-y: 14px;
  --pill-delay: 0.78s;
}

.hero-floating-pill-four {
  top: 50%;
  right: 11.4%;
  left: auto;
  bottom: auto;
  --pill-in-x: 18px;
  --pill-in-y: 8px;
  --pill-delay: 0.88s;
}

.hero-card-scene {
  --hero-cutout-color: #171717;
  --hero-card-rgb: 23, 23, 23;
  --hero-slider-color: #f08e36;
  --hero-slider-rgb: 240, 142, 54;
  --hero-word-color: #f08e36;
  --hero-slider-top: 0px;
  --hero-card-shift: 0px;
  --hero-card-radius: 34px;
  --hero-card-outline-inset: 10px;
  width: min(100%, 1080px);
  perspective: 2000px;
  border-radius: var(--hero-card-radius);
  cursor: default;
}

.hero-card {
  position: relative;
  width: 100%;
  min-height: clamp(430px, 62vh, 560px);
  aspect-ratio: 1.76 / 1;
  transform-style: preserve-3d;
  transform: translateY(var(--hero-card-shift)) rotateX(0deg);
  transition: transform 0.92s cubic-bezier(.22, 1, .36, 1);
}

.hero-card-scene.is-auto-flipped .hero-card {
  transform: translateY(var(--hero-card-shift)) rotateX(180deg);
}

.hero-card-face {
  position: absolute;
  inset: 0;
  padding: 0;
  border-radius: var(--hero-card-radius);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.hero-card-face::before {
  display: none;
}

.hero-card-front {
  overflow: visible;
  background: transparent;
}

.hero-card-cutout-fill {
  position: absolute;
  inset: 0;
  border-radius: var(--hero-card-radius);
  background: #050505;
  z-index: 0;
}

.hero-card-plate {
  fill: var(--hero-cutout-color);
}

.hero-card-front::after,
.hero-card-back::after {
  content: "";
  position: absolute;
  inset: var(--hero-card-outline-inset);
  border-radius: calc(var(--hero-card-radius) - var(--hero-card-outline-inset));
  pointer-events: none;
}

.hero-card-front::after {
  border: 1px dotted rgba(244, 238, 230, 0.18);
  z-index: 4;
}

.hero-card-back::after {
  border: 1px dotted rgba(244, 238, 230, 0.12);
}

.hero-card-back {
  transform: rotateX(180deg);
  padding: clamp(28px, 4vw, 44px);
  background: #171717;
}

.hero-card-back-copy,
.hero-card-back-grid,
.hero-card-corner {
  position: relative;
  z-index: 1;
}

.hero-card-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-card-word {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(calc(100% - 184px), 840px);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.hero-card-word-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-card-word-line {
  display: flex;
  align-items: baseline;
  gap: 0.38em;
  width: fit-content;
  max-width: 100%;
}

.hero-card-word-line-hero-main {
  align-self: flex-start;
  margin-bottom: -2px;
}

.hero-card-word-line-hero-sub {
  align-self: flex-start;
  margin-bottom: 12px;
  margin-left: clamp(52px, 8vw, 112px);
}

.hero-card-word-line-a {
  align-self: flex-start;
}

.hero-card-word-line-b {
  align-self: center;
}

.hero-card-word-line-c {
  align-self: flex-end;
}

.hero-card-word-line-d {
  align-self: center;
  margin-left: clamp(46px, 7vw, 92px);
}

.hero-card-word-line-e {
  align-self: flex-end;
}

.hero-card-word-prefix {
  font-size: clamp(1rem, 1.62vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: rgba(244, 238, 230, 0.66);
  white-space: nowrap;
}

.hero-card-word-prefix-hero {
  font-size: clamp(3rem, 5.9vw, 5.4rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.9;
  color: rgba(244, 238, 230, 0.92);
}

.hero-card-word-prefix-sub {
  font-size: clamp(1.18rem, 2vw, 1.62rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: rgba(244, 238, 230, 0.74);
}

.hero-card-word-slot {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: clamp(188px, 20vw, 252px);
  min-height: 1.1em;
}

.hero-card-word-item {
  position: relative;
  display: inline-block;
  font-size: clamp(2.28rem, 4.7vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.96;
  color: rgba(244, 238, 230, 0.22);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px);
  text-shadow: 0 8px 20px rgba(0,0,0,0.2);
  will-change: opacity, transform, filter, color;
  transition:
    opacity 0.46s cubic-bezier(.22, 1, .36, 1),
    transform 0.52s cubic-bezier(.22, 1, .36, 1),
    filter 0.52s cubic-bezier(.22, 1, .36, 1),
    color 0.4s cubic-bezier(.22, 1, .36, 1);
}

.hero-card-word-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-card-word-item.is-settled {
  color: var(--hero-item-color, var(--hero-word-color));
}

.hero-card-word-item.is-active {
  color: var(--hero-item-color, var(--hero-word-color));
}

.hero-card-slider {
  position: absolute;
  top: var(--hero-card-outline-inset);
  right: var(--hero-card-outline-inset);
  bottom: var(--hero-card-outline-inset);
  width: clamp(54px, 6vw, 74px);
  overflow: hidden;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: none;
}

.hero-card-slider-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to left,
    rgba(244, 238, 230, 0.08) 0%,
    rgba(244, 238, 230, 0.04) 12%,
    rgba(var(--hero-card-rgb), 0.18) 28%,
    rgba(var(--hero-card-rgb), 0.72) 58%,
    rgba(var(--hero-card-rgb), 1) 100%
  );
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.03);
  opacity: 0.96;
}

.hero-card-slider-track::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(244, 238, 230, 0.38);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06);
}

.hero-card-slider-thumb {
  position: absolute;
  top: var(--hero-slider-top);
  right: -1px;
  width: 26px;
  height: 36px;
  transform: translateY(-2px);
}

.hero-card-slider-dot {
  position: absolute;
  top: 7px;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(244, 238, 230, 0.92);
  border: 2px solid rgba(20, 20, 20, 0.76);
  box-shadow:
    0 0 0 1px rgba(244,238,230,0.08),
    0 8px 18px rgba(0,0,0,0.18);
}

.hero-card-slider-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 19px;
  background: rgba(22, 20, 18, 0.92);
  clip-path: polygon(0 0, 78% 46%, 54% 51%, 73% 100%, 50% 100%, 36% 63%, 0 86%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 6px 14px rgba(0,0,0,0.16);
}

/* hero focus map */
.hero-focus {
  position: relative;
  width: min(100%, 1040px);
  margin-top: clamp(10px, 2.8vh, 24px);
  padding-top: 18px;
  --focus-solid-line: rgba(244, 238, 230, 0.42);
  --focus-dotted-line: rgba(244, 238, 230, 0.22);
}

.focus-title {
  width: fit-content;
  margin: 0 auto;
}

.focus-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: rgba(244, 238, 230, 0.84);
  cursor: pointer;
}

.focus-toggle:hover {
  color: rgba(244, 238, 230, 0.98);
}

.focus-toggle:focus-visible {
  outline: 1px dashed rgba(244, 238, 230, 0.38);
  outline-offset: 6px;
}

.focus-toggle-label,
.focus-toggle-arrow {
  display: inline-block;
}

.focus-toggle-arrow {
  width: 0.95em;
  text-align: center;
  color: rgba(244, 238, 230, 0.68);
}

.focus-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 8px;
  height: 8px;
  background: #a259ff;
  transform: translateX(-50%) rotate(45deg) scale(0.5);
  opacity: 0;
  transition:
    transform 0.24s cubic-bezier(.22, 1, .36, 1) 0.04s,
    opacity 0.18s ease 0.04s;
}

.focus-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  height: 0;
  border-left: 1px dashed var(--focus-dotted-line);
  transform: translateX(-50%);
  opacity: 0;
  transition:
    height 0.24s cubic-bezier(.22, 1, .36, 1) 0.12s,
    opacity 0.18s ease 0.12s;
}

.hero-focus-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.52s cubic-bezier(.22, 1, .36, 1),
    opacity 0.22s ease;
}

.hero-focus-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.hero-focus.is-open .hero-focus-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.hero-focus.is-open .focus-toggle::before {
  transform: translateX(-50%) rotate(45deg) scale(1);
  opacity: 1;
}

.hero-focus.is-open .focus-toggle::after {
  height: 28px;
  opacity: 1;
}

.focus-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 92px);
  padding-top: 64px;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.24s ease 0.08s,
    transform 0.36s cubic-bezier(.22, 1, .36, 1) 0.08s;
}

.focus-grid::before {
  display: none;
}

.hero-focus.is-open .focus-grid {
  opacity: 1;
  transform: translateY(0);
}

.focus-column {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.focus-column::before {
  content: "";
  position: absolute;
  top: -38px;
  width: clamp(150px, 48%, 210px);
  border-top: 1px solid var(--focus-solid-line);
  opacity: 0;
  transform: scaleX(0);
  transition:
    transform 0.3s cubic-bezier(.22, 1, .36, 1) 0.22s,
    opacity 0.18s ease 0.22s;
}

.focus-column::after {
  display: none;
}

.focus-column-roles::before {
  left: 50%;
  transform-origin: left center;
}

.focus-column-skills::before {
  right: 50%;
  transform-origin: right center;
}

.hero-focus.is-open .focus-column::before {
  opacity: 1;
  transform: scaleX(1);
}

.focus-subtitle {
  position: relative;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
  color: rgba(244, 238, 230, 0.82);
  text-align: center;
  padding-top: 0;
}

.focus-subtitle::before,
.focus-subtitle::after {
  content: "";
  position: absolute;
  left: 50%;
  border-left: 1px dashed var(--focus-dotted-line);
  transform: translateX(-50%);
  opacity: 0;
}

.focus-subtitle::before {
  top: -38px;
  height: 0;
  transition:
    height 0.22s cubic-bezier(.22, 1, .36, 1) 0.34s,
    opacity 0.18s ease 0.34s;
}

.focus-subtitle::after {
  top: calc(100% + 12px);
  height: 0;
  transition:
    height 0.24s cubic-bezier(.22, 1, .36, 1) 0.46s,
    opacity 0.18s ease 0.46s;
}

.hero-focus.is-open .focus-subtitle::before {
  height: 24px;
  opacity: 1;
}

.hero-focus.is-open .focus-subtitle::after {
  height: 26px;
  opacity: 1;
}

/* floating auto-layout boxes */
.hero-pill-carousel {
  width: min(100%, 980px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.hero-pill-item {
  position: relative;
  flex: 0 0 auto;
  will-change: transform;
  transform:
    translateX(var(--pill-shift-x, 0px))
    translateY(var(--pill-shift-y, 0px))
    scale(var(--pill-scale, 1));
  transform-origin: center center;
  transition:
    transform 0.34s cubic-bezier(.22, 1, .36, 1),
    opacity 0.28s ease;
  z-index: var(--pill-z, 1);
}

.hero-skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  will-change: transform;
  z-index: 3;
  opacity: 0;
}

.pill-label {
  position: relative;
  z-index: 2;
  padding: 2px 0;
  white-space: nowrap;
}

.pill-handle {
  width: 9px;
  height: 9px;
  background: #2fe8c3;
  border-radius: 2px;
  position: absolute;
  z-index: 1;
}

.pill-handle.tl { top: -6px; left: -6px; }
.pill-handle.tr { top: -6px; right: -6px; }
.pill-handle.bl { bottom: -6px; left: -6px; }
.pill-handle.br { bottom: -6px; right: -6px; }

.hero-pill-carousel.is-hovering .hero-pill-item:not(.is-active) {
  opacity: 0.92;
}

.focus-pill-carousel {
  position: relative;
  width: clamp(264px, 28vw, 330px);
  max-width: 100%;
  padding-top: 38px;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: space-between;
  align-items: flex-start;
  overflow: visible;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease 0.56s,
    transform 0.3s cubic-bezier(.22, 1, .36, 1) 0.56s;
}

.focus-pill-carousel.is-static .hero-pill-item {
  transform: none !important;
  transition: none;
}

.hero-focus.is-open .focus-pill-carousel {
  opacity: 1;
  transform: translateY(0);
}

.focus-pill-carousel::before {
  display: none;
}

.focus-pill-branch {
  position: relative;
  display: flex;
  width: clamp(84px, 9vw, 116px);
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  padding-top: 30px;
}

.focus-pill-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--focus-solid-line);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(.22, 1, .36, 1) 0.66s,
    opacity 0.18s ease 0.66s;
}

.hero-focus.is-open .focus-pill-branch::before {
  opacity: 1;
  transform: scaleX(1);
}

.focus-pill-branch .hero-pill-item::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  height: 0;
  border-left: 1px dashed rgba(244, 238, 230, 0.2);
  transform: translateX(-50%);
  opacity: 0;
  transition:
    height 0.22s cubic-bezier(.22, 1, .36, 1) 0.78s,
    opacity 0.18s ease 0.78s;
}

.focus-pill-branch .hero-pill-item::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #a259ff;
  background: transparent;
  transform: translateX(-50%) rotate(45deg) scale(0.7);
  opacity: 0;
  transition:
    transform 0.2s cubic-bezier(.22, 1, .36, 1) 0.92s,
    opacity 0.16s ease 0.92s;
}

.hero-focus.is-open .focus-pill-branch .hero-pill-item::before {
  height: 22px;
  opacity: 1;
}

.hero-focus.is-open .focus-pill-branch .hero-pill-item::after {
  transform: translateX(-50%) rotate(45deg) scale(1);
  opacity: 1;
}

.focus-node-label {
  display: block;
  padding-top: 14px;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(244, 238, 230, 0.82);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.22s ease 0.98s,
    transform 0.28s cubic-bezier(.22, 1, .36, 1) 0.98s;
}

.hero-focus.is-open .focus-node-label {
  opacity: 1;
  transform: translateY(0);
}

.hero-card-back-copy {
  max-width: 44ch;
}

.hero-card-back-label {
  margin-top: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.hero-card-back h2 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #f6f0e8;
}

.hero-card-back-copy > p:not(.hero-card-back-label) {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.74);
}

.hero-card-back-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-card-back-item {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-card-back-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.hero-card-back-item p {
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.hero-card-corner {
  position: absolute;
  right: clamp(28px, 4vw, 44px);
  bottom: clamp(24px, 3.2vw, 36px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.34);
  opacity: 0;
}

.purple { color: #b28bff; }
.yellow { color: #f2c774; }
.cream  { color: #f6f6e9; }
.teal   { color: #2fe8c3; }

/* HERO INTRO ANIMATIONS (triggered by .hero-animated on body) */
.hero-animated .hero-pill-stage {
  animation: heroCardIn 0.62s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-animated .hero-line {
  animation: heroFrameLineReveal 0.7s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-animated .hero-line-one {
  animation-delay: 0.08s;
}

.hero-animated .hero-line-two {
  animation-delay: 0.18s;
}

.hero-animated .hero-line-three {
  animation-delay: 0.28s;
}

.hero-animated .hero-line-four {
  animation-delay: 0.38s;
}

.hero-animated .hero-line-five {
  animation-delay: 0.48s;
}

.hero-animated .hero-subtext {
  animation: heroSubtextIn 0.58s cubic-bezier(.22, 1, .36, 1) 0.62s forwards;
}

.hero-animated .hero-giant-pill {
  animation:
    heroFrameGrow 0.96s cubic-bezier(.22, 1, .36, 1) 0.08s forwards,
    heroFrameResizeOut 0.56s cubic-bezier(.55, 0, .18, 1) 1.68s forwards;
}

.hero-animated .hero-giant-pill-line {
  animation: heroFrameLineReveal 0.7s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-animated .hero-giant-pill-line-one {
  animation-delay: 0.62s;
}

.hero-animated .hero-giant-pill-line-two {
  animation-delay: 0.72s;
}

.hero-animated .hero-giant-pill-line-three {
  animation-delay: 0.82s;
}

.hero-animated .hero-floating-pill {
  animation: heroFloatingPillIn 0.42s cubic-bezier(.22, 1, .36, 1) var(--pill-delay) forwards;
}

.hero-animated .hero-giant-pill .pill-handle {
  animation:
    heroFrameHandleReveal 0.28s cubic-bezier(.22, 1, .36, 1) 0.18s forwards,
    heroFrameHandleSnapOut 0.02s linear 2.2s forwards;
}

@keyframes heroCardIn {
  0% {
    opacity: 0;
    transform: none;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroTitleIn {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubtextIn {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroPillFade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroFrameGrow {
  0% {
    opacity: 0;
    width: 84px;
    height: 84px;
  }
  14% {
    opacity: 1;
    width: 84px;
    height: 84px;
  }
  48% {
    opacity: 1;
    width: 84px;
    height: var(--hero-pill-target-height);
  }
  78% {
    opacity: 1;
    width: calc(var(--hero-pill-target-width) + 18px);
    height: var(--hero-pill-target-height);
  }
  100% {
    opacity: 1;
    width: var(--hero-pill-target-width);
    height: var(--hero-pill-target-height);
  }
}

@keyframes heroFrameLineReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes heroFrameHandleReveal {
  0% {
    opacity: 0.12;
    transform: translate(var(--handle-x), var(--handle-y));
  }
  62% {
    opacity: 1;
    transform: translate(var(--handle-x), var(--handle-y));
  }
  100% {
    opacity: 1;
    transform: translate(var(--handle-x), var(--handle-y));
  }
}

@keyframes heroFrameResizeOut {
  0% {
    opacity: 1;
    width: var(--hero-pill-target-width);
    height: var(--hero-pill-target-height);
  }
  92% {
    opacity: 1;
    width: 0;
    height: var(--hero-pill-target-height);
  }
  100% {
    opacity: 0;
    width: 0;
    height: var(--hero-pill-target-height);
  }
}

@keyframes heroFrameHandleSnapOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroFloatingPillIn {
  0% {
    opacity: 0;
    transform: translate3d(var(--pill-in-x, 16px), var(--pill-in-y, 10px), 0) scale(0.82);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Sections -------------------------- */
.section {
  width: min(100%, var(--content-width));
  padding-inline: 20px;
  margin: 0 auto;
}

.section[id] {
  scroll-margin-top: var(--nav-offset);
}

.about-section,
.what-section,
.contact-section {
  min-height: 100svh;
  padding-top: var(--section-top-space);
  padding-bottom: var(--section-bottom-space);
}

/* ABOUT + WHAT I DO titles */
.about-title,
.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0;
  margin-bottom: var(--section-title-gap);
  text-align: center;
}

/* Project overview rows */
.overview-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr 2fr;
  column-gap: 40px;
  align-items: stretch;
  min-height: var(--overview-row-height);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.overview-row:first-child { border-top: none; }

.overview-label,
.overview-text {
  display: flex;
  align-items: center;
}

.overview-divider {
  position: relative;
  width: 1px;
  height: 100%;
  border-right: 1px dotted rgba(255,255,255,0.35);
  opacity: 0.6;
  transition: border-color 0.28s ease, opacity 0.28s ease;
  justify-self: center;
}

.overview-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(8,8,8,0.94);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(.25,1.4,.45,1),
    border-color 0.24s ease;
  pointer-events: none;
}

.overview-row.row-what .overview-divider::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fe8c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='4.5' width='6' height='6' rx='1.2'/%3E%3Crect x='13.5' y='4.5' width='6' height='6' rx='1.2'/%3E%3Crect x='9' y='13.5' width='6' height='6' rx='1.2'/%3E%3Cpath d='M10.5 7.5h3M12 10.5v3'/%3E%3C/svg%3E");
}

.overview-row.row-who .overview-divider::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c774' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M6 19c1.3-3 4-4.6 6-4.6S16.7 16 18 19'/%3E%3Cpath d='M4.5 19h15'/%3E%3C/svg%3E");
}

.overview-row.row-why .overview-divider::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b28bff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M12 4.5v3M12 16.5v3M4.5 12h3M16.5 12h3M6.7 6.7l2.1 2.1M15.2 15.2l2.1 2.1M17.3 6.7l-2.1 2.1M8.8 15.2l-2.1 2.1'/%3E%3C/svg%3E");
}

.overview-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f2c774;
}

.overview-text p {
  width: 100%;
  opacity: 0.82;
  line-height: 1.8;
  font-size: 1rem;
}

/* ABOUT ROW REVEAL */
.observe-row .overview-label,
.observe-row .overview-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.observe-row.visible .overview-label,
.observe-row.visible .overview-text {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .overview-row:hover .squeeze-left {
    transform: translateX(var(--overview-hover-shift));
    transition: transform 0.4s ease;
  }

  .overview-row:hover .squeeze-right {
    transform: translateX(calc(-1 * var(--overview-hover-shift)));
    transition: transform 0.4s ease;
  }

  .overview-row:hover .overview-divider {
    border-right-color: rgba(255,255,255,0.56);
    opacity: 0.95;
  }

  .overview-row:hover .overview-divider::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(255,255,255,0.3);
  }
}

/* WHAT I DO GRID */
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 34px);
  row-gap: clamp(42px, 5vw, 56px);
}

.what-card {
  position: relative;
  min-height: clamp(260px, 34vw, 360px);
  padding: 18px;
  background: #070707;
  border-radius: 18px;
  overflow: visible;
  cursor: pointer;
  isolation: isolate;
  z-index: 0;

  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.what-card::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.22);
  opacity: 1;
  transition: border-color 0.55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  z-index: 4;
}

/* reveal on scroll */
.what-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* LABEL ABOVE */
.figma-label {
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3b82f6;
  opacity: 0.95;
  pointer-events: none;
  z-index: 25;
}

/* GRID BG */
.card-grid {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* image overlay */
.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.18;
  transition:
    opacity 0.3s ease,
    filter 0.35s ease;
  z-index: 1;
  pointer-events: none;
  filter: saturate(0.92) contrast(0.98);
}

.card-image-frumbler {
  object-position: center 72%;
}

.card-image.is-missing {
  display: none;
}

.what-card:hover .card-image {
  opacity: 1;
  filter: none;
}

/* CONTENT */
.card-content {
  position: relative;
  z-index: 2;
  transition: opacity 0.35s ease;
  text-align: left;
}
.card-content h3 { font-size: 1rem; margin-bottom: 10px; }
.card-content p { font-size: 0.9rem; opacity: 0.78; line-height: 1.6; }

.what-card:hover .card-content { opacity: 0; }

/* MIXED HOVER EFFECT (lift + scale) */
.what-card:hover {
  transform: translateY(-8px) scale(1.04);
  transition: transform 0.45s cubic-bezier(.25,1.5,.45,1);
  z-index: 3;
}

.what-card:hover::after {
  border-color: rgba(255,255,255,0.68);
}

/* CONTACT */
.contact-section {
  text-align: center;
}

.contact-title {
  font-size: 1.45rem;
  margin-bottom: var(--section-title-gap);
  letter-spacing: 0.26em;
}

.contact-text {
  max-width: 700px;
  opacity: 0.84;
  margin: 0 auto var(--contact-stack-gap);
  line-height: 1.8;
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  margin-top: 0;
}

.contact-link {
  text-decoration: none;
  color: white;
  opacity: 0.85;
  font-size: 0.98rem;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-top: 0;
  transition: 0.2s;
}
.contact-link:hover { border-bottom-color: rgba(255,255,255,0.7); }

/* CURSOR PILL (smooth bubble-in + shrink-toward-mouse) */
.cursor-pill {
  position: fixed;
  top: 0;
  left: 0;
  --x: -999px;
  --y: -999px;
  transform: translate(var(--x), var(--y)) scale(0.65);
  padding: 6px 14px;
  border-radius: 999px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.78rem;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  z-index: 2000;
}

.cursor-pill.visible {
  animation: pillIn 240ms cubic-bezier(.25,1.4,.45,1) forwards;
}

.cursor-pill.fade-out {
  animation: pillOut 240ms cubic-bezier(.4,0,.7,1) forwards;
}

@keyframes pillIn {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.5);
  }
  55% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

@keyframes pillOut {
  0% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.35);
  }
}

/* ------------------------------------------------------
   CUSTOM SCROLLBAR — DOTTED LINE + FLOATING PILL STYLE
------------------------------------------------------ */

/* Scrollbar overall width */
::-webkit-scrollbar {
  width: 14px; 
}

/* TRACK – dotted line like About section */
::-webkit-scrollbar-track {
  background: transparent;
  border-left: 1px dotted rgba(255,255,255,0.28);
  margin: 4px 0;
}

/* THUMB – vertical pill */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    #f08e36 0%,
    #f2bb4c 24%,
    #ef7354 52%,
    #bf72f2 78%,
    #2fe8c3 100%
  );
  border-radius: 12px;
  width: 6px;
  margin-right: 4px;
  border: 3px solid rgba(0,0,0,0);     /* visually centers it over the line */
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 14px rgba(162,89,255,0.14);
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Hover makes the pill glow + widen slightly */
::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.08);
  transform: scaleX(1.18);
}

/* ------------------------------------------
   CONTACT NAV — TRACING BORDER ANIMATION
------------------------------------------ */

/* Keep Contact aligned perfectly with other nav items */
.nav-link.contact-btn {
  position: relative;
  display: inline-block;
  line-height: 1;          /* keeps vertical rhythm tight */
  padding: 0;              /* remove extra vertical expansion */
  margin-top: 2px;         /* slight nudge up for alignment */
  color: var(--hero-scroll-color);
  transition: color 0.25s ease;
}


/* Animated outline */
.nav-link.contact-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 10px);
  border-radius: 999px;
  pointer-events: none;

  border: 1px solid rgb(255, 255, 255);
  box-shadow: none;
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(0.96);

  /* Subtle animated tracing effect */
  animation: contactTrace 2.6s cubic-bezier(.25,1,.4,1) infinite;
}

/* Smooth slow→fast→finish tracing */
@keyframes contactTrace {
  0% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.96);
  }
  40% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.03);
  }
  100% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(0.96);
  }
}


/* RESPONSIVE */
@media (max-width: 900px) {
  :root {
    --nav-offset: 96px;
    --section-top-space: clamp(108px, 14vh, 132px);
    --section-bottom-space: clamp(56px, 8vh, 84px);
    --section-title-gap: clamp(32px, 5vh, 48px);
    --overview-hover-shift: 0px;
    --overview-row-height: auto;
  }

  .hero {
    min-height: 100svh;
    padding-inline: 20px;
  }

  .hero-inner {
    min-height: 100svh;
    padding: 112px 0 42px;
  }

  .hero-card {
    min-height: 460px;
    aspect-ratio: auto;
  }

  .hero-pill-stage {
    min-height: clamp(420px, 62vh, 540px);
    padding: 24px 18px 52px;
  }

  .hero-copy {
    max-width: 1000px;
  }

  .hero-line {
    font-size: clamp(3rem, 6.9vw, 6rem);
  }

  .hero-line-one {
    margin-left: clamp(250px, 24vw, 360px);
  }

  .hero-line-two {
    margin-left: clamp(84px, 7vw, 126px);
  }

  .hero-line-three {
    margin-left: clamp(140px, 12vw, 210px);
  }

  .hero-line-four {
    margin-left: clamp(350px, 32vw, 460px);
  }

  .hero-line-five {
    margin-left: clamp(42px, 4vw, 82px);
  }

  .hero-subtext {
    max-width: 940px;
    font-size: clamp(0.98rem, 1.45vw, 1.14rem);
  }

  .hero-floating-pills {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 30px;
  }

  .hero-floating-pill {
    position: relative;
    display: inline-flex;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0;
  }

  .hero-card-scene {
    --hero-card-radius: 30px;
    --hero-card-outline-inset: 9px;
  }

  .hero-card-face {
    border-radius: var(--hero-card-radius);
  }

  .hero-card-back {
    padding: 28px;
  }

  .hero-card-slider {
    top: var(--hero-card-outline-inset);
    right: var(--hero-card-outline-inset);
    bottom: var(--hero-card-outline-inset);
    width: 52px;
  }

  .hero-card-slider-thumb {
    width: 28px;
    height: 32px;
  }

  .hero-card-word {
    width: min(calc(100% - 148px), 600px);
  }

  .hero-card-word-list {
    gap: 9px;
  }

  .hero-card-word-line-hero-sub {
    margin-left: 34px;
  }

  .hero-card-word-slot {
    width: clamp(164px, 24vw, 220px);
  }

  .hero-card-word-prefix {
    font-size: 0.98rem;
  }

  .hero-card-word-prefix-hero {
    font-size: clamp(2.55rem, 6vw, 4.1rem);
  }

  .hero-card-word-prefix-sub {
    font-size: clamp(1.06rem, 2.2vw, 1.34rem);
  }

  .hero-card-word-item {
    font-size: clamp(1.95rem, 4.8vw, 3rem);
  }

  .hero-card-slider-dot {
    width: 16px;
    height: 16px;
    right: 0;
  }

  .hero-card-slider-cursor {
    width: 13px;
    height: 18px;
  }

  .hero-pill-carousel {
    width: min(100%, 760px);
    margin-top: 0;
    gap: 14px;
  }

  .hero-skill-pill {
    padding: 10px 14px;
    font-size: 0.66rem;
  }

  .hero-focus {
    width: 100%;
  }

  .focus-grid {
    gap: 34px;
    padding-top: 58px;
  }

  .focus-column::before {
    top: -34px;
    width: clamp(118px, 44%, 176px);
  }

  .focus-subtitle::before {
    top: -34px;
  }

  .focus-subtitle::after {
    top: calc(100% + 10px);
  }

  .hero-focus.is-open .focus-subtitle::before {
    height: 20px;
  }

  .hero-focus.is-open .focus-subtitle::after {
    height: 24px;
  }

  .focus-pill-carousel {
    width: 100%;
    gap: 0;
    padding-top: 38px;
  }

  .focus-pill-branch {
    width: clamp(76px, 10vw, 98px);
    gap: 0;
    padding-top: 26px;
  }

  .focus-pill-branch::before {
    left: 0;
    right: 0;
  }

  .focus-pill-branch .hero-pill-item::before {
    top: -26px;
    height: 20px;
  }

  .focus-pill-branch .hero-pill-item::after {
    top: -10px;
    width: 7px;
    height: 7px;
  }

  .focus-node-label {
    font-size: 0.94rem;
  }

  .hero-card-back-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
  }

  .hero-card-corner {
    right: 28px;
    bottom: 24px;
  }

  .overview-row {
    grid-template-columns: minmax(110px, 150px) 1fr;
    min-height: auto;
    align-items: flex-start;
  }
  .overview-label,
  .overview-text {
    display: block;
  }
  .overview-divider { display: none; }
  .overview-text { grid-column: 1 / -1; margin-top: 10px; }
}

@media (max-width: 600px) {
  :root {
    --section-top-space: 96px;
    --section-bottom-space: 48px;
    --section-title-gap: 28px;
  }

  .nav {
    padding: 16px 18px 14px;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 0.92rem;
  }

  .nav ul {
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .nav-link.contact-btn::after {
    width: calc(100% + 16px);
    height: calc(100% + 8px);
  }

  .hero {
    min-height: 100svh;
    padding-inline: 16px;
  }

  .hero-inner {
    max-width: 100%;
    min-height: 100svh;
    padding: 122px 0 36px;
  }

  .hero-card-scene {
    --hero-card-radius: 28px;
    --hero-card-outline-inset: 8px;
    border-radius: var(--hero-card-radius);
  }

  .hero-card {
    min-height: 520px;
  }

  .hero-pill-stage {
    min-height: auto;
    padding: 14px 0 24px;
  }

  .hero-copy {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-headline {
    align-items: flex-start;
  }

  .hero-line {
    font-size: clamp(2rem, 11vw, 3.85rem);
  }

  .hero-line-one {
    margin-left: clamp(100px, 18vw, 180px);
  }

  .hero-line-two {
    margin-left: clamp(20px, 4vw, 42px);
  }

  .hero-line-three {
    margin-left: clamp(64px, 10vw, 116px);
  }

  .hero-line-four {
    margin-left: clamp(146px, 24vw, 220px);
  }

  .hero-line-five {
    margin-left: clamp(0px, 1vw, 10px);
  }

  .hero-subtext {
    max-width: 100%;
    margin-top: 22px;
    font-size: 0.98rem;
    text-align: left;
  }

  .hero-floating-pills {
    justify-content: flex-start;
    gap: 10px 12px;
    margin-top: 24px;
  }

  .hero-card-face {
    border-radius: var(--hero-card-radius);
  }

  .hero-card-back {
    padding: 22px 20px 20px;
  }

  .hero-card-slider {
    top: var(--hero-card-outline-inset);
    right: var(--hero-card-outline-inset);
    bottom: var(--hero-card-outline-inset);
    width: 42px;
  }

  .hero-card-slider-thumb {
    width: 24px;
    height: 28px;
  }

  .hero-card-word {
    width: min(calc(100% - 102px), 320px);
  }

  .hero-card-word-list {
    gap: 8px;
  }

  .hero-card-word-line {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hero-card-word-line-hero-sub {
    margin-left: 0;
  }

  .hero-card-word-line-b,
  .hero-card-word-line-c,
  .hero-card-word-line-d,
  .hero-card-word-line-e {
    align-self: flex-start;
    margin-left: 0;
  }

  .hero-card-word-slot {
    width: 100%;
  }

  .hero-card-word-prefix {
    font-size: 0.92rem;
  }

  .hero-card-word-prefix-hero {
    font-size: clamp(2.42rem, 10.4vw, 3.55rem);
  }

  .hero-card-word-prefix-sub {
    font-size: 1rem;
  }

  .hero-card-word-item {
    font-size: clamp(1.9rem, 9.2vw, 2.8rem);
  }

  .hero-card-slider-dot {
    width: 14px;
    height: 14px;
    right: 0;
    top: 6px;
  }

  .hero-card-slider-cursor {
    width: 12px;
    height: 17px;
  }

  .hero-pill-carousel {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
  }

  .hero-pill-item {
    transform: none !important;
  }

  .hero-skill-pill {
    padding: 9px 12px;
    font-size: 0.62rem;
    transform: none !important;
  }

  .hero-focus {
    width: 100%;
    margin-top: 0;
    padding-top: 6px;
  }

  .focus-toggle::before,
  .focus-toggle::after,
  .focus-grid::before,
  .focus-column::before,
  .focus-subtitle::before,
  .focus-subtitle::after,
  .focus-pill-carousel::before,
  .focus-pill-branch::before,
  .focus-pill-branch .hero-pill-item::before,
  .focus-pill-branch .hero-pill-item::after {
    display: none;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 24px;
  }

  .focus-column {
    align-items: flex-start;
  }

  .focus-subtitle {
    padding-top: 0;
    padding-left: 0;
    text-align: left;
  }

  .focus-pill-carousel {
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-top: 18px;
  }

  .focus-pill-branch {
    width: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-top: 0;
  }

  .hero-card-back h2 {
    font-size: 2.5rem;
  }

  .hero-card-back p,
  .hero-card-back-item p {
    font-size: 0.92rem;
  }

  .hero-card-corner {
    right: 20px;
    bottom: 18px;
    font-size: 0.66rem;
  }

  .section {
    padding-inline: 16px;
  }

  .what-grid { grid-template-columns: 1fr; }
  .what-card { min-height: 280px; }
  .what-card::after { inset: -2px; }
  .what-card .card-image {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    box-shadow: none;
    opacity: 1;
  }
  .what-card .card-content {
    display: none;
  }
  .what-card .card-image.is-missing + .card-content {
    display: block;
    opacity: 1;
  }
  .figma-label { top: -18px; }
  .contact-links { gap: 20px; }
  .cursor-pill { display: none; }
}

/* Restored screenshot hero */
.hero {
  min-height: 100svh;
  padding: 0 20px;
}

.hero-inner {
  width: min(100%, 1500px);
  max-width: 1500px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 108px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.big-title {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.big-title span {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}

.big-title .amp {
  margin: 0.18em 0 0.22em;
  font-size: 0.45em;
  line-height: 0.9;
  color: #f6f6e9;
}

.subtext {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-top: 36px;
  color: rgba(246, 246, 233, 0.86);
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.subtext span {
  font-weight: 600;
}

.hero-inner > .hero-skill-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 52px;
  padding: 0 18px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: rgba(246, 246, 233, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0;
  transform: translate3d(var(--pill-in-x, 0), var(--pill-in-y, 10px), 0) scale(0.9);
  z-index: 3;
}

.hero-inner > .hero-skill-pill .pill-handle {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #69e4ce;
}

.hero-inner > .hero-skill-pill .pill-handle.tl { top: -6px; left: -6px; }
.hero-inner > .hero-skill-pill .pill-handle.tr { top: -6px; right: -6px; }
.hero-inner > .hero-skill-pill .pill-handle.bl { bottom: -6px; left: -6px; }
.hero-inner > .hero-skill-pill .pill-handle.br { bottom: -6px; right: -6px; }

.hero-pill-a {
  top: 34%;
  left: 18%;
  --pill-in-x: -12px;
  --pill-in-y: 10px;
  --pill-delay: 0.58s;
}

.hero-pill-b {
  top: 52%;
  left: 21%;
  --pill-in-x: 16px;
  --pill-in-y: 10px;
  --pill-delay: 0.68s;
}

.hero-pill-c {
  top: 34%;
  right: 18%;
  --pill-in-x: 10px;
  --pill-in-y: 14px;
  --pill-delay: 0.78s;
}

.hero-top-pill {
  top: 55%;
  right: 21%;
  --pill-in-x: 18px;
  --pill-in-y: 8px;
  --pill-delay: 0.88s;
}

.hero-animated .big-title span {
  animation: heroTitleIn 0.7s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-animated .big-title span:nth-child(1) { animation-delay: 0.08s; }
.hero-animated .big-title span:nth-child(2) { animation-delay: 0.18s; }
.hero-animated .big-title span:nth-child(3) { animation-delay: 0.28s; }
.hero-animated .big-title span:nth-child(4) { animation-delay: 0.38s; }
.hero-animated .big-title span:nth-child(5) { animation-delay: 0.48s; }

.hero-animated .subtext {
  animation: heroSubtextIn 0.58s cubic-bezier(.22, 1, .36, 1) 0.62s forwards;
}

.hero-animated .hero-inner > .hero-skill-pill {
  animation: heroPillOpacityIn 0.34s ease var(--pill-delay) forwards;
}

@keyframes heroPillOpacityIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1100px) {
  .big-title {
    font-size: 4.8rem;
  }

  .hero-pill-a,
  .hero-pill-b {
    left: 8%;
  }

  .hero-pill-c,
  .hero-top-pill {
    right: 8%;
  }
}

@media (max-width: 760px) {
  .hero-inner {
    padding: 118px 0 48px;
  }

  .big-title {
    font-size: 3.7rem;
    line-height: 0.94;
  }

  .subtext {
    max-width: 540px;
    margin-top: 34px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-inner > .hero-skill-pill {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-inline: 16px;
  }

  .big-title {
    font-size: 2.55rem;
  }

  .subtext br {
    display: none;
  }
}

@media (max-width: 380px) {
  .big-title {
    font-size: 2.25rem;
  }
}

















