:root {
  --color-primary: #222222;
  --color-secondary: #7B7B7B;
  --color-tertiary: #F8F8F8;
  --color-white: #FFFFFF;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1280px;
  --container-padding: 24px;
  --section-padding: 64px;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 48px;
    --section-padding: 96px;
  }
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ─── Navbar ─────────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none; /* let clicks pass through the transparent band */
}

.navbar-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  border-radius: 50px;
  max-width: 900px;
  width: calc(100% - 48px);
  margin-top: 24px;
  padding: 8px 24px;
  gap: 16px;
  transition: background 0.3s ease;
  animation: navbarFadeIn 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navbarFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.navbar-logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

/* Desktop nav links */
.navbar-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.navbar-link {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.2s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.navbar-link:hover {
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.7;
}

.navbar-link.is-active {
  background: rgba(255, 255, 255, 0.1);
}

/* Hamburger */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animated X when menu is open */
.menu-open .navbar-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-open .navbar-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-open .navbar-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile fullscreen menu ──────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-link {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Desktop breakpoint ──────────────────────────────────── */

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }

  .navbar-hamburger {
    display: none;
  }

  /* Hide mobile menu entirely on desktop */
  .mobile-menu {
    display: none;
  }
}

/* ─── Hero ────────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: 100vh;
  background: var(--color-tertiary);
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  overflow: hidden;
}

/* ── Rotated side labels ── */

.hero-side-label {
  display: none;
  position: absolute;
  left: 16px;
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 3px;
  color: var(--color-secondary);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.hero-side-label--title {
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.hero-side-label--year {
  bottom: 48px;
  opacity: 0.5;
  transform: rotate(180deg);
}

/* ── Content ── */

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px var(--container-padding) 80px;
  flex: 1;
}

.hero-headline-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-hello {
  font-family: var(--font-display);
  font-size: clamp(48px, 19.2vw, 72px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--color-primary);
  letter-spacing: -2px;
}

.hero-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-secondary);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--container-padding);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-secondary);
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Portrait — absolutely placed, bleeds to bottom-right ── */

.hero-image-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 55%; /* mobile: cropped so it doesn't swamp the text */
  width: auto;
  background: transparent;
  z-index: 1;
}

.hero-image {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* ─── Hero desktop ────────────────────────────────────────── */

@media (min-width: 768px) {
  #hero {
    padding-top: 0;
  }

  .hero-side-label {
    display: block;
  }

  .hero-content {
    padding: 120px 48px 80px 96px;
    max-width: 58%;
  }

  .hero-scroll {
    bottom: 48px;
    left: 72px;
  }

  .hero-hello {
    font-size: clamp(120px, 15vw, 200px);
  }

  .hero-image-wrap {
    height: 92%;
    right: 12%;
  }
}

/* ─── About ───────────────────────────────────────────────── */

#about {
  background: var(--color-white);
  padding-top: var(--section-padding);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.about-inner {
  display: flex;
  flex-direction: column;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-left {
  flex: 1;
}

.about-text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-secondary);
}

/* Stats — mobile: horizontal row with vertical dividers */
.about-stats {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.about-stat {
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
  border-left: 1px solid rgba(34, 34, 34, 0.15);
}

.about-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.about-stat-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-secondary);
  opacity: 0.6;
  margin-top: 4px;
  line-height: 1.4;
}

/* ─── Animate on scroll ───────────────────────────────────── */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — experience rows */
.exp-list .exp-row:nth-child(1) { transition-delay: 0s; }
.exp-list .exp-row:nth-child(2) { transition-delay: 0.1s; }
.exp-list .exp-row:nth-child(3) { transition-delay: 0.2s; }
.exp-list .exp-row:nth-child(4) { transition-delay: 0.3s; }

/* Stagger delays — portfolio cards */
.portfolio-grid .portfolio-card:nth-child(1) { transition-delay: 0s; }
.portfolio-grid .portfolio-card:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .portfolio-card:nth-child(3) { transition-delay: 0.3s; }

/* Stagger delays — internship cards */
.internship-grid .internship-card:nth-child(1) { transition-delay: 0s; }
.internship-grid .internship-card:nth-child(2) { transition-delay: 0.15s; }
.internship-grid .internship-card:nth-child(3) { transition-delay: 0.3s; }

/* ─── About desktop ───────────────────────────────────────── */

@media (min-width: 768px) {
  .about-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  /* Stats — desktop: vertical stack, fixed width */
  .about-stats {
    flex-direction: column;
    width: 280px;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 0;
  }

  .about-stat {
    flex-direction: column;
    padding-inline: 0;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .about-stat:first-child {
    border-left: none;
    padding-left: 0;
  }

  .about-stat--last {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .about-stat-number {
    font-size: 48px;
  }
}

/* ─── About collage ───────────────────────────────────────── */

.about-collage {
  position: relative;
  height: 155px;
  margin-top: 48px;
  background: transparent;
  overflow: hidden;
}

.collage-item {
  position: absolute;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  background: transparent;
}

/* Individual photo placement — desktop (single row, stretches to right column edge) */
.collage-item:nth-child(1) {
  left: 0;
  top: 12px;
  width: 160px;
  height: 118px;
  z-index: 1;
  transform: rotate(-3deg);
}

.collage-item:nth-child(2) {
  left: 125px;
  top: 22px;
  width: 155px;
  height: 112px;
  z-index: 2;
  transform: rotate(2deg);
}

.collage-item:nth-child(3) {
  left: 250px;
  top: 6px;
  width: 158px;
  height: 115px;
  z-index: 3;
  transform: rotate(-1.5deg);
}

.collage-item:nth-child(4) {
  left: 375px;
  top: 16px;
  width: 160px;
  height: 118px;
  z-index: 4;
  transform: rotate(2.5deg);
}

.collage-item:nth-child(5) {
  left: 500px;
  top: 8px;
  width: 155px;
  height: 112px;
  z-index: 5;
  transform: rotate(-2deg);
}

.collage-item:nth-child(6) {
  left: 622px;
  top: 18px;
  width: 155px;
  height: 115px;
  z-index: 6;
  transform: rotate(3deg);
}

/* Mobile — single row, scaled to fit ~320px wide */
@media (max-width: 767px) {
  .about-collage {
    height: 90px;
    margin-top: 32px;
  }

  .collage-item:nth-child(1) {
    left: 0;
    top: 6px;
    width: 86px;
    height: 64px;
    transform: rotate(-3deg);
  }

  .collage-item:nth-child(2) {
    left: 68px;
    top: 12px;
    width: 84px;
    height: 61px;
    transform: rotate(2deg);
  }

  .collage-item:nth-child(3) {
    left: 136px;
    top: 3px;
    width: 85px;
    height: 62px;
    transform: rotate(-1.5deg);
  }

  .collage-item:nth-child(4) {
    left: 204px;
    top: 9px;
    width: 86px;
    height: 64px;
    transform: rotate(2.5deg);
  }

  .collage-item:nth-child(5) {
    left: 272px;
    top: 4px;
    width: 84px;
    height: 61px;
    transform: rotate(-2deg);
  }

  .collage-item:nth-child(6) {
    left: 338px;
    top: 10px;
    width: 84px;
    height: 62px;
    transform: rotate(3deg);
  }
}

/* ─── Shared section pill label ──────────────────────────── */

.section-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-primary);
}

/* ─── Experiences ─────────────────────────────────────────── */

#experiences {
  background: var(--color-white);
  padding-top: 64px;
  padding-bottom: var(--section-padding);
}

/* Header */
.exp-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.exp-header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

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

.exp-header-right p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-secondary);
}

.exp-cta {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

/* List */
.exp-list {
  margin-top: 40px;
}

.exp-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.exp-row:hover {
  transform: translateX(6px);
}

/* Company / date column */
.exp-company {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-company-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.exp-date {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-secondary);
}

/* Role text */
.exp-role {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* Tags */
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  padding: 4px 14px;
  white-space: nowrap;
}

.exp-tag--inverted {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Thumbnails (featured row) */
.exp-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.exp-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Arrow button (featured row) */
.exp-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ─── Experiences desktop ─────────────────────────────────── */

@media (min-width: 768px) {
  .exp-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .exp-header-left {
    flex: 1;
  }

  .exp-header-right {
    max-width: 400px;
    flex-shrink: 0;
  }

  .exp-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .exp-company {
    flex: 0 0 300px;
    padding-right: 32px;
  }

  .exp-thumb {
    width: 120px;
    height: 80px;
  }

  .exp-role {
    flex: 1;
    max-width: 350px;
    padding-right: 32px;
  }

  .exp-tags {
    flex: 0 0 auto;
    margin-left: auto;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .exp-arrow-btn {
    margin-left: 24px;
    align-self: center;
  }
}

/* ─── Portfolio ───────────────────────────────────────────── */

#portfolio {
  background: var(--color-tertiary);
  padding: 96px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 48px;
}

.portfolio-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Card */
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.portfolio-img-wrap:hover .portfolio-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* Overlay arrow button */
.portfolio-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-img-wrap:hover .portfolio-overlay-btn,
.internship-img-wrap:hover .portfolio-overlay-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Card meta */
.portfolio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.portfolio-card-tag {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* View more */
.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.portfolio-more-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portfolio-more-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ─── Portfolio desktop ───────────────────────────────────── */

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ─── Internship ──────────────────────────────────────────── */

#internships {
  background: var(--color-white);
  padding-top: 48px;
  padding-bottom: var(--section-padding);
}

.internship-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 48px;
}

.internship-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.internship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.internship-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.internship-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
}

.internship-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.internship-img-wrap:hover .internship-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.internship-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.internship-tag {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  padding: 6px 14px;
  white-space: nowrap;
}

.internship-read {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-secondary);
}

.internship-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Internship desktop ──────────────────────────────────── */

@media (min-width: 768px) {
  .internship-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ─── Contact ─────────────────────────────────────────────── */

#contact {
  background: var(--color-tertiary);
  padding-block: var(--section-padding);
}

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

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-secondary);
  max-width: 600px;
}

.contact-cta {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-cta:hover .contact-cta-arrow {
  transform: translate(3px, -3px);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.contact-social-link {
  display: flex;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-social-link:hover {
  opacity: 0.6;
}


/* ─── Footer ──────────────────────────────────────────────── */

#footer {
  background: var(--color-primary);
  padding-block: 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Corner brackets wrapper */
.footer-brackets {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 40px 32px;
}

.footer-brackets::before,
.footer-brackets::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.15);
  border-style: solid;
}

/* Top-left corner */
.footer-brackets::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

/* Top-right corner — bottom-left trick: use a box-shadow inner element instead */
.footer-brackets::after {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

/* Bottom corners via pseudo-elements on the nav and email wrapper */
.footer-nav::before,
.footer-email::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.15);
  border-style: solid;
}

.footer-nav::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.footer-email::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

/* Footer nav pill */
.footer-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 8px 16px;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-white);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.3s ease;
}

.footer-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.7;
}

.footer-nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
}

/* Email */
.footer-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
  transition: opacity 0.3s ease;
}

.footer-email:hover {
  opacity: 0.7;
}

/* ─── Footer desktop ──────────────────────────────────────── */

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .footer-brackets {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .footer-nav {
    position: static;
  }
}

/* ─── Navbar scrolled state ───────────────────────────────── */

#navbar.scrolled .navbar-pill {
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Focus states ────────────────────────────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Invert outline on dark backgrounds */
#navbar a:focus-visible,
#navbar button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible,
#footer a:focus-visible,
#footer button:focus-visible {
  outline-color: var(--color-white);
}

/* ─── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  /* Make animated elements immediately visible */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .navbar-pill,
  .hero-scroll {
    animation: none !important;
  }
}
