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

html {
  background: var(--surface-page);
}

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  overflow-x: clip;
}

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

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-progress);
  width: 0%;
  z-index: 100;
  transition: width 0.04s linear;
}

/* ── HERO ── */
.scroll-space {
  position: relative;
  height: 250vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.hero-frame {
  flex: 1;
  padding: 24px;
  will-change: padding;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-hero);
  will-change: border-radius, clip-path;
  clip-path: inset(50% round 9999px);
  animation: revealCard 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes revealCard {
  from {
    clip-path: inset(50% round 9999px);
  }
  to {
    clip-path: inset(0% round 24px);
  }
}

.glow-blue {
  position: absolute;
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(74, 92, 255, 0.1) 0%,
    rgba(74, 92, 255, 0.03) 50%,
    transparent 75%
  );
  left: -180px;
  top: 60px;
  animation: drift1 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.glow-violet {
  display: none;
}

@keyframes drift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(70px, -50px) scale(1.12);
  }
}
@keyframes drift2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, -70px) scale(1.1);
  }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
  background: radial-gradient(
    circle 520px at 50% 50%,
    transparent 0%,
    transparent 30%,
    rgba(4, 4, 10, 0.45) 65%,
    rgba(4, 4, 10, 0.82) 100%
  );
}
.hero-card:hover .vignette {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px 64px;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

/* ── SITE MENU ── */
.site-menu {
  position: relative;
  z-index: 260;
}

.site-menu-toggle {
  position: fixed;
  top: 56px;
  right: 80px;
  z-index: 262;
  width: 64px;
  height: 64px;
  border: 0.989px solid var(--color-neutral-600);
  border-radius: 999px;
  background: rgba(42, 42, 71, 0.7);
  color: var(--color-white);
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  transform: translateY(-18px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

.site-menu-toggle:hover {
  border-color: var(--color-neutral-500);
  background: rgba(42, 42, 71, 0.82);
}

.site-menu-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.site-menu-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-menu-icon span {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu-icon--list span:first-child { top: 8px; }
.site-menu-icon--list span:last-child { top: 15px; }

.site-menu-icon--x {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.72);
}

.site-menu-icon--x span {
  left: 2px;
  top: 11px;
  width: 20px;
}
.site-menu-icon--x span:first-child { transform: rotate(45deg); }
.site-menu-icon--x span:last-child { transform: rotate(-45deg); }

.site-menu.is-open .site-menu-icon--list {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0.72);
}

.site-menu.is-open .site-menu-icon--x {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.site-menu-panel {
  position: fixed;
  top: 136px;
  right: 80px;
  z-index: 261;
  width: min(721px, calc(100vw - 160px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  max-height: 0;
  padding: 0 32px;
  border: 1px solid var(--color-neutral-600);
  border-radius: 24px;
  background: rgba(42, 42, 71, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 80px rgba(8, 8, 15, 0.28);
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transform-origin: top right;
  transition:
    max-height 0.6s cubic-bezier(0.83, 0, 0.17, 1),
    padding 0.6s cubic-bezier(0.83, 0, 0.17, 1),
    opacity 0.22s ease,
    transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
}

.navbar-spacer {
  height: 56px;
  flex-shrink: 0;
}

.hero-navbar {
  display: flex;
  align-items: center;
  height: 64px;
  flex-shrink: 0;
}

.hero-navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-18px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-navbar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.hero-navbar-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: var(--color-white);
  white-space: nowrap;
}

.site-menu.is-open .site-menu-panel {
  max-height: 520px;
  padding: 32px;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.site-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-menu-link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.5px;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition:
    color 0.2s ease,
    opacity 0.48s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.48s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.site-menu-link:hover,
.site-menu-link:focus-visible {
  color: var(--color-neutral-200);
  opacity: 0.72;
}

.site-menu.is-open .site-menu-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--menu-delay);
}

.site-menu.is-open .site-menu-link:hover,
.site-menu.is-open .site-menu-link:focus-visible {
  color: var(--color-neutral-200);
  opacity: 0.72;
}

.site-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.48s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.48s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.site-menu.is-open .site-menu-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 500ms;
}

.site-menu-segmented {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 8px;
  border: 1px solid var(--color-neutral-500);
  border-radius: 16px;
  background: rgba(8, 8, 15, 0.25);
}

.site-menu-segment {
  min-width: 41px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--color-neutral-400);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  padding: 6px 0;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.site-menu-segment:hover,
.site-menu-segment:focus-visible {
  color: var(--color-white);
  background: rgba(61, 61, 96, 0.45);
}

.site-menu-segment.is-active {
  background: var(--color-neutral-600);
  color: var(--color-white);
}

.site-menu-segment:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.site-menu-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-menu-actions a {
  text-decoration: none;
}

.site-menu-contact {
  min-height: 56px;
}

/* ── MAIN COPY ── */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--color-white);
  max-width: 100%;
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-slot {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.1em;
  position: relative;
  top: 0.02em;
}

.word-slot-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.word-slot-track span {
  display: block;
  line-height: 1.1em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #e8e8f0;
  max-width: 700px;
}

.cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 32px;
  background: var(--color-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  background: var(--color-white-pure);
  transform: translateY(-1px);
}

.btn-primary-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.btn-primary-svg {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn-primary-svg--clone {
  transform: translate(-50%, calc(-50% + 40px));
}

.btn-primary:hover .btn-primary-svg:not(.btn-primary-svg--clone) {
  transform: translate(-50%, calc(-50% - 40px));
}
.btn-primary:hover .btn-primary-svg--clone {
  transform: translate(-50%, -50%);
}

.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-neutral-500);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.btn-icon:hover {
  border-color: var(--color-white);
  background: var(--color-white);
}

.btn-icon-pump {
  display: contents;
}

.btn-icon-img {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  display: block;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Original: centered */
.btn-icon-img:not(.btn-icon-img--clone) {
  transform: translate(-50%, -50%);
}

/* Clone: starts below the button */
.btn-icon-img--clone {
  transform: translate(-50%, calc(-50% + 56px));
  filter: invert(1);
}

/* On hover: original exits top, clone enters center */
.btn-icon:hover .btn-icon-img:not(.btn-icon-img--clone) {
  transform: translate(-50%, calc(-50% - 56px));
  filter: invert(1);
}
.btn-icon:hover .btn-icon-img--clone {
  transform: translate(-50%, -50%);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ── WORK SECTION ── */
.work-section {
  position: relative;
  z-index: 5;
  background: var(--surface-page);
  padding: 128px 80px 104px;
  display: flex;
  flex-direction: column;
  gap: 96px;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.work-header {
  display: flex;
  gap: 152px;
  align-items: flex-start;
}

.work-badge-col {
  flex-shrink: 0;
  width: 246px;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border: 1px solid var(--color-neutral-600);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-black);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}
.work-section.is-visible .work-badge {
  opacity: 1;
  transform: translateY(0);
}

.work-copy-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.work-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 56px;
  letter-spacing: -1.5px;
  color: var(--color-black);
  margin: 0;
}

.work-heading .accent-blue {
  color: var(--color-blue-400);
  -webkit-text-fill-color: var(--color-blue-400);
  background: none;
}

.work-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-neutral-500);
  margin: 0;
}

/* cards + nav wrapper */
.work-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* cards scroll row */
.work-cards-wrap {
  margin-right: -80px;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}
.work-section.is-visible .work-cards-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* arrow nav */
.work-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.85s,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.85s;
}
.work-section.is-visible .work-nav {
  opacity: 1;
  transform: translateY(0);
}

.work-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--color-neutral-400);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}
.work-nav-btn:disabled {
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-200);
  cursor: default;
}
.work-nav-btn:not(:disabled):hover {
  border-color: var(--color-neutral-600);
}

.work-nav-icon {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}

.work-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-top: 8px;
  margin-top: -8px;
  padding-bottom: 16px;
  padding-right: 80px; /* respiro no último card */
  cursor: grab;
}
.work-cards:active {
  cursor: grabbing;
}
.work-cards::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex-shrink: 0;
  width: 480px;
  height: 484px;
  border-radius: 16px;
  background: var(--color-neutral-200);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card.is-placeholder {
  cursor: default;
}

.work-section.is-visible .work-card:not(.has-img):hover,
.work-section.is-visible .work-card.has-img:hover {
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-section.is-visible .work-card {
  opacity: 1;
  transform: translateY(0);
}
.work-section.is-visible .work-card:hover {
  transform: translateY(-8px);
}

.work-card-inner {
  position: relative;
  z-index: 2;
}

.work-card-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(8, 8, 15, 0.5);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--color-black);
}

/* ── IMAGE CARD ── */
.work-card.has-img {
  cursor: none;
  padding: 0;
}
.work-section.is-visible .work-card.has-img:hover {
  transform: translateY(-8px);
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(30, 30, 53, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card.has-img:hover .card-overlay {
  opacity: 1;
}

.card-overlay-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  width: 220px;
}
.card-overlay-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.3px;
  color: var(--color-white);
}
.card-overlay-tag {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-400);
}

/* ── CUSTOM CURSOR ── */
.work-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-white);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-black);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-cursor.is-popping {
  animation: cursor-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cursor-pop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(0.86);
  }
  65% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.work-cursor-icon {
  width: 24px;
  height: 24px;
}

/* word-by-word reveal */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-section.is-visible .word,
.exp-section.is-visible .word,
.about-section.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* ── EXPERIENCE SECTION ── */
.exp-scroll-space {
  position: relative;
  z-index: 10;
  margin-top: -100vh; /* overlap work section so cover anim slides in */
}

/* Wrappers are transparent to pointer events; only the card itself is interactive */
.exp-scroll-space,
.exp-sticky,
.exp-frame,
.exp-section {
  pointer-events: none;
}

.exp-card {
  pointer-events: auto;
}

.exp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.exp-frame {
  flex: 1;
  padding: 24px;
  will-change: transform, padding;
  display: flex;
  flex-direction: column;
}

.exp-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exp-card {
  flex: 1;
  min-height: 0;
  background: var(--color-black);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  will-change: border-radius;
}

.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Left col: absolutely pinned to card */
.exp-left {
  position: absolute;
  top: 80px;
  left: 56px; /* overridden by JS during exit animation */
  width: 395px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

/* Right col: dedicated scroll container driven by JS scrollTop */
.exp-scroll-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  /* left = 56 (padding) + 395 (left col) + 160 (gap) = 611px */
  left: 611px;
  right: 56px;
  /* The page scroll drives scrollTop in JS; keeping this container non-scrollable
     prevents wheel/touch events from getting trapped inside the sticky card. */
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 80px 0 96px;
  z-index: 1;
}
.exp-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.exp-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.exp-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 48px;
  border: 1px solid var(--color-neutral-400);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}
.exp-section.is-visible .exp-badge {
  opacity: 1;
  transform: translateY(0);
}

.exp-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1.5px;
  color: var(--color-white);
  margin: 0;
}

.exp-entry {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--color-neutral-500);
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-entry--last {
  border-bottom: none;
  padding-bottom: 0;
}
.exp-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-neutral-400);
}

.exp-company {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1.5px;
  color: var(--color-white);
  margin: 0;
}

.exp-role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-white);
}

.exp-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-neutral-400);
}

/* ── ABOUT SECTION ── */
.about-section {
  position: relative;
  z-index: 5;
  background: var(--surface-page);
  padding: 88px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.about-header {
  display: flex;
  gap: 152px;
  align-items: flex-start;
}

.about-badge-col {
  flex-shrink: 0;
  width: 264px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border: 1px solid var(--color-neutral-600);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-black);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}
.about-section.is-visible .about-badge {
  opacity: 1;
  transform: translateY(0);
}

.about-copy-col {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.about-section.is-visible .about-copy-col {
  opacity: 1;
  transform: translateY(0);
}

.about-copy-col {
  flex: 1;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 56px;
  letter-spacing: -1.5px;
  color: var(--color-black);
  margin: 0;
}

.about-heading .accent-blue {
  color: var(--color-blue-400);
  -webkit-text-fill-color: var(--color-blue-400);
  background: none;
}

.about-content {
  display: flex;
  gap: 64px;
}

.about-photo {
  flex-shrink: 0;
  width: 480px;
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.about-section.is-visible .about-photo {
  opacity: 1;
  transform: translateY(0);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* Bio block — left border style */
.about-bio-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
.about-section.is-visible .about-bio-block {
  opacity: 1;
  transform: translateY(0);
}

.about-bio-text {
  border-left: 1px solid var(--color-neutral-200);
  padding: 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  display: block;
}

.about-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--color-black);
  margin: 0;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-skill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--color-neutral-600);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-black);
  white-space: nowrap;
}

/* Interest cards grid */
.about-interests {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}
.about-section.is-visible .about-interests {
  opacity: 1;
  transform: translateY(0);
}

.about-interest-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid var(--color-neutral-200);
  border-bottom: 1px solid var(--color-neutral-200);
  background: var(--surface-page);
  min-width: 0;
  transition: background-color 0.3s ease-in-out;
}

.about-interest-card:hover {
  background: var(--color-white);
}

/* Remove right border from last card of each row */
.about-interest-card:nth-child(3n),
.about-interest-card:last-child {
  border-right: none;
}

/* Remove bottom border from last row (children 4 and 5) */
.about-interest-card:nth-child(n + 4) {
  border-bottom: none;
}

.about-interest-card--wide {
  grid-column: span 2;
}

.about-interest-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.about-interest-icon--blue { background: var(--color-blue-100); }
.about-interest-icon--violet { background: var(--color-violet-100); }
.about-interest-icon--sky { background: #c5e6ff; }
.about-interest-icon--pink { background: #ffe2ff; }

.interest-icon-img {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.interest-icon-img--clone {
  transform: translate(-50%, calc(-50% + 48px));
}

.about-interest-card:hover .interest-icon-img:not(.interest-icon-img--clone) {
  transform: translate(-50%, calc(-50% - 48px));
}

.about-interest-card:hover .interest-icon-img--clone {
  transform: translate(-50%, -50%);
}

.about-interest-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-interest-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: var(--color-black);
  margin: 0;
}

.about-interest-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-500);
  margin: 0;
}

/* Social label inside contact icon buttons — hidden on desktop */
.btn-social-label { display: none; }

/* Contact CTA social wrapper — keeps icons side by side on desktop */
.contact-cta-social {
  display: flex;
  gap: 16px;
}

/* ── CONTACT + FOOTER ── */
.contact-section {
  background: var(--surface-page);
  padding: 0 80px 32px;
  max-width: var(--layout-max);
  margin: 0 auto;
}

.contact-card {
  background:
    radial-gradient(
      ellipse 80% 100% at 0% 0%,
      rgba(123, 97, 255, 0.4) 0%,
      rgba(74, 92, 255, 0.2) 40%,
      rgba(41, 50, 135, 0.1) 65%,
      transparent 100%
    ),
    linear-gradient(180deg, var(--color-black) 0%, var(--color-black) 100%);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-section.is-visible .contact-card {
  opacity: 1;
  transform: translateY(0);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  justify-content: center;
  padding: 80px;
  min-height: 586px;
  text-align: center;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 723px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border: 1px solid var(--color-neutral-400);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.contact-section.is-visible .contact-badge {
  opacity: 1;
  transform: translateY(0);
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 72px;
  line-height: 80px;
  letter-spacing: -2.5px;
  color: var(--color-white);
  margin: 0;
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.contact-section.is-visible .contact-heading {
  opacity: 1;
  transform: translateY(0);
}

.contact-heading-gradient {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(169, 140, 247, 0.91) 53%,
    var(--color-blue-400) 93%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--color-neutral-400);
  max-width: 560px;
  margin: 0;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.contact-section.is-visible .contact-body {
  opacity: 1;
  transform: translateY(0);
}

.contact-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}
.contact-section.is-visible .contact-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Dark variant overrides for contact section buttons */
.btn-primary--dark {
  background: var(--color-white);
  color: var(--color-neutral-600);
}
.btn-primary--dark:hover {
  background: var(--color-white-pure);
}

.btn-primary-icon--light {
  background: var(--color-neutral-800);
}

.btn-icon--dark {
  border-color: var(--color-neutral-500);
}
.btn-icon--dark:hover {
  border-color: var(--color-white);
  background: var(--color-white);
}

/* ── FOOTER ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: var(--surface-page);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}
.site-footer.is-visible {
  opacity: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-dot {
  display: block;
  width: 5.76px;
  height: 5.76px;
  background: var(--color-blue-400);
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-black);
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-500);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--color-black);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-neutral-400);
  white-space: nowrap;
}

/* ── PAGE TRANSITIONS ── */
html.pt-transition-pending body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10003;
  pointer-events: none;
  background: var(--color-black);
}

html.pt-transition-pending.pt-transition-back body::before {
  background: var(--surface-page);
}

.pt-curtain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateX(-100%);
}
.pt-curtain--white {
  background: var(--surface-page);
  z-index: 10000;
}
.pt-curtain--dark {
  background: var(--color-black);
  z-index: 10001;
}

.pt-curtain.pt-cover {
  transform: translateX(0);
}

@keyframes ptIn {
  from {
    transform: translateX(-101%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes ptOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(101%);
  }
}

.pt-curtain.pt-in {
  pointer-events: all;
  animation: ptIn 0.38s cubic-bezier(0.76, 0, 0.24, 1) both;
}
.pt-curtain--dark.pt-in {
  animation-delay: 0.1s;
}

.pt-curtain--dark.pt-out {
  animation: ptOut 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.04s;
}

.pt-curtain--white.pt-out {
  animation: ptOut 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .pt-curtain {
    display: none !important;
  }
}

/* ── PASSWORD GATE OVERLAY ── */

/* Shared keyframes */
@keyframes pgFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pgFadeUpDisabled {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 0.25; transform: translateY(0); }
}
@keyframes pgShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* 1 — Backdrop */
.pg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(123, 97, 255, 0.40) 0%, rgba(74, 92, 255, 0.20) 50%, rgba(8, 8, 15, 0) 100%),
    rgba(8, 8, 15, 0.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.pg-overlay.pg-visible { opacity: 1; }

.pg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* 2 — Card (scale pop) */
.pg-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 388px;
  padding: 24px 32px;
  border-radius: 16px;
  background: rgba(15, 15, 26, 0.37);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-neutral-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-overlay.pg-visible .pg-card {
  opacity: 1;
  transform: scale(1);
}

/* Shake on wrong password (overrides transform briefly) */
.pg-card.is-shaking {
  animation: pgShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* 3–7 — Cascade: each child fades up in sequence */
.pg-overlay.pg-visible .pg-icon {
  animation: pgFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}
.pg-overlay.pg-visible .pg-heading {
  animation: pgFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.17s both;
}
.pg-overlay.pg-visible .pg-input {
  animation: pgFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}
.pg-overlay.pg-visible .pg-actions .pg-btn:first-child {
  animation: pgFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.31s both;
}
.pg-overlay.pg-visible .pg-actions .pg-btn:last-child {
  animation: pgFadeUpDisabled 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.37s backwards;
}

/* Error message fade-in when revealed */
.pg-error:not([hidden]) {
  animation: pgFadeUp 0.22s ease both;
}

/* ── Structure ── */
.pg-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 16px;
  box-sizing: border-box;
  background: var(--color-neutral-900);
  color: var(--color-white);
  border: 1px solid var(--color-neutral-700);
  border-radius: 16px;
}

.pg-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--color-white);
  text-align: center;
}

.pg-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pg-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: var(--color-neutral-800);
  border: none;
  border-bottom: 1.5px solid var(--color-neutral-700);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.15s ease;
}
.pg-input::placeholder { color: var(--color-neutral-500); }
.pg-input:focus { border-bottom-color: var(--color-blue-400); }
.pg-input.is-error,
.pg-input.is-error:focus { border-bottom-color: var(--color-danger); }

.pg-error {
  margin: -16px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  color: var(--color-danger);
}
.pg-error[hidden] { display: none; }

.pg-actions { display: flex; gap: 8px; }

.pg-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.pg-btn--ghost {
  background: transparent;
  border: 1px solid var(--color-neutral-700);
  color: var(--color-white);
}
.pg-btn--ghost:hover {
  border-color: var(--color-neutral-600);
  background: rgba(255, 255, 255, 0.02);
}
.pg-btn--primary {
  background: var(--color-white);
  border: 1px solid var(--color-white);
  color: var(--color-neutral-600);
  font-weight: 500;
}
.pg-btn--primary:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.pg-btn--primary:not(:disabled):hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .pg-card { padding: 20px; gap: 20px; }
  .pg-form { gap: 20px; }
  .pg-error { margin-top: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-overlay { transition: none; }
  .pg-card { transition: none; }
  .pg-overlay.pg-visible .pg-icon,
  .pg-overlay.pg-visible .pg-heading,
  .pg-overlay.pg-visible .pg-input,
  .pg-overlay.pg-visible .pg-actions .pg-btn:first-child,
  .pg-overlay.pg-visible .pg-actions .pg-btn:last-child,
  .pg-error:not([hidden]) { animation: none; opacity: 1; transform: none; }
  .pg-card.is-shaking { animation: none; }
  .pg-btn { transition: none; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {

  /* Site menu */
  .site-menu-toggle {
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
  }

  .site-menu-panel {
    top: 96px;
    right: 16px;
    width: calc(100vw - 32px);
    gap: 32px;
    padding: 24px;
  }

  .site-menu-nav {
    gap: 18px;
  }

  .site-menu-link {
    font-size: 28px;
    line-height: 36px;
  }

  .site-menu-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-menu-actions {
    width: 100%;
    gap: 10px;
  }

  .site-menu-contact {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    padding-left: 20px;
  }

  /* Hero */
  .scroll-space { height: 100vh; }

  .hero-frame { padding: 0; }
  .hero-card  { border-radius: 0; animation: none; clip-path: none; }

  .hero-inner {
    padding: 24px 24px 40px;
  }

  .navbar-spacer { height: 72px; }

  .headline {
    font-size: clamp(30px, 8vw, 38px);
    letter-spacing: -1px;
    line-height: 1.15;
  }

  .bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .subtitle {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
  }

  /* Section badges — smaller on mobile */
  .work-badge,
  .exp-badge,
  .about-badge,
  .contact-badge {
    font-size: 13px;
    padding: 10px 24px;
  }

  /* Work section */
  .work-section {
    padding: 64px 20px 56px;
    gap: 64px;
  }
  .work-header {
    flex-direction: column;
    gap: 24px;
  }
  .work-badge-col { width: auto; }
  .work-heading   { line-height: 1.2; }

  .work-cards-wrap { margin-right: -20px; }
  .work-cards      { padding-right: 20px; }

  .work-card {
    width: 85vw;
    height: 85vw;
    max-width: 360px;
    max-height: 360px;
  }

  .work-nav { justify-content: flex-end; }

  /* No hover lift, overlay, or custom cursor on touch */
  .work-section.is-visible .work-card:hover { transform: none; }
  .work-card.has-img:hover .card-overlay    { opacity: 0; }
  .work-cursor                              { display: none; }

  /* Experience section */
  .exp-scroll-space {
    margin-top: 0;
    height: auto !important;
  }
  .exp-sticky {
    position: relative;
    height: auto;
  }
  .exp-frame {
    transform: none !important;
    padding: 0;
  }
  .exp-card { border-radius: 0; }

  .exp-left {
    position: relative;
    top: auto;
    left: auto !important;
    width: auto;
    padding: 32px 24px 24px;
  }
  .exp-scroll-wrap {
    position: relative;
    left: auto !important;
    right: auto !important;
    overflow-y: visible;
    padding: 0 24px 40px;
  }

  .exp-heading {
    font-size: 28px;
    line-height: 36px;
  }
  .exp-company {
    font-size: 28px;
    line-height: 36px;
  }
  .exp-entry {
    gap: 16px;
    padding-bottom: 40px;
  }

  /* About section */
  .about-section {
    padding: 56px 20px 56px;
    gap: 48px;
  }
  .about-header {
    flex-direction: column;
    gap: 16px;
  }
  .about-badge-col { width: auto; }
  .about-heading   { line-height: 1.2; }

  .about-content {
    flex-direction: column;
    gap: 32px;
  }
  .about-photo {
    width: 100%;
    height: 280px;
  }

  /* Interest cards: 2-col grid */
  .about-interests {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-interest-card { padding: 24px; }

  /* Reset desktop 3-col border rules, apply 2-col rules.
     Layout: [1][2] / [3][4] / [5 wide]             */
  .about-interest-card:nth-child(3n)   { border-right: 1px solid var(--color-neutral-200); }
  .about-interest-card:nth-child(n+4)  { border-bottom: 1px solid var(--color-neutral-200); }
  .about-interest-card:nth-child(2n)   { border-right: none; }
  .about-interest-card:last-child      { border-right: none; border-bottom: none; }

  .about-interest-title { font-size: 16px; line-height: 22px; }
  .about-interest-desc  { font-size: 14px; line-height: 20px; }

  /* Contact section */
  .contact-section { padding: 0 20px 24px; }
  .contact-inner {
    padding: 48px 32px;
    min-height: auto;
  }
  .contact-heading {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -1.5px;
  }

  /* Contact CTA: full-width primary button + social row below */
  .contact-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }
  .contact-cta .btn-primary {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 8px;
  }
  /* Transparent spacer that mirrors the icon width, centering the label */
  .contact-cta .btn-primary::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .contact-cta-social { gap: 16px; } /* matches column gap — equilibrated */
  .contact-cta .btn-icon {
    flex: 1;
    width: auto;
    height: 48px;
    overflow: visible;
    gap: 8px;
  }
  /* Scope pump to a sized box so the icon is visible */
  .contact-cta .btn-icon-pump {
    display: flex;
    position: relative;
    width: 24px;
    height: 24px;
    overflow: hidden;
    flex-shrink: 0;
  }
  /* Clone not needed on touch */
  .contact-cta .btn-icon-img--clone { display: none; }
  /* Show labels */
  .btn-social-label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 20px;
    color: var(--color-neutral-400);
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-copy {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
