:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Neutrals */
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-700: #3f3f46;
  --color-gray-800: #27272a;
  --color-gray-900: #18181b;
  --color-gray-950: #09090b;

  /* Accent */
  --color-blue-50: #ebf5ff;
  --color-blue-100: #e0f3ff;
  --color-blue-200: #b9e1ff;
  --color-blue-500: #0099ff;
  --color-blue-600: #0066ff;
  --color-blue-700: #0052cc;
  --color-blue-annie: #236fef;

  
  --bg-card-dark: #0d0604;

  
  --color-glass-dark: rgba(83, 83, 83, 0.5);
  --color-glass-pill: rgba(255, 255, 255, 0.2);
  --color-glass-pill-hover: rgba(255, 255, 255, 0.3);
  --color-border-subtle: rgba(0, 0, 0, 0.08);

  /* Semantic */
  --bg-canvas: var(--color-white);
  --text-primary: var(--color-gray-950);
  --text-secondary: var(--color-gray-600);
  --text-muted: var(--color-gray-500);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-body: 15px;
  --line-height-body: 22px;
  --font-size-pill: 13px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 15px;
  --radius-capsule: 18px;

  /* Layout */
  --container-max-width: 1360px;
  --gutter-fluid: clamp(20px, 3vw, 40px);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-accordion: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  html,
  body {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.15;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-fluid);
  padding-right: var(--gutter-fluid);
}

/* Navigation */

.nav-capsule-container {
  position: fixed;
  left: 40px;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.nav-capsule-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: var(--color-glass-dark);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border-radius: var(--radius-capsule);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  min-width: 45px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background-color: var(--color-glass-pill);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--font-size-pill);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    min-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.nav-pill .pill-num {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nav-pill .pill-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition: max-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.32s cubic-bezier(0.25, 1, 0.5, 1),
    margin-left 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* Hover State */
@media (hover: hover) and (pointer: fine) {
  .nav-pill:hover {
    background-color: var(--color-glass-pill-hover);
    color: #ffffff;
    padding: 0 16px;
  }

  .nav-pill:hover .pill-label {
    max-width: 100px;
    opacity: 1;
    margin-left: 8px;
    transform: translateX(0);
  }

  
  .nav-capsule:has(.nav-pill:not(.active):hover) .nav-pill.active:not(:hover) .pill-label {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-4px);
  }

  .nav-capsule:has(.nav-pill:not(.active):hover) .nav-pill.active:not(:hover) {
    background-color: var(--color-glass-pill);
    font-weight: var(--font-weight-medium);
    padding: 0 12px;
  }
}

.nav-pill.active {
  height: 45px;
  min-width: 85px;
  padding: 0 16px;
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: var(--font-weight-semibold);
}

.nav-pill.active .pill-label {
  max-width: 100px;
  opacity: 1;
  margin-left: 8px;
  transform: translateX(0);
}

.nav-pill:active {
  transform: scale(0.97);
}

/* Accessible Focus */
.nav-pill:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 2px;
}

/* Responsive Nav */
@media (max-width: 1024px) {
  .nav-capsule-container {
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .nav-capsule-container.visible {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 480px) {
  .nav-capsule {
    gap: 4px;
    padding: 4px;
  }

  .nav-pill {
    height: 40px;
    min-width: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  .nav-pill.active {
    height: 40px;
    min-width: 72px;
    padding: 0 12px;
  }

  .nav-pill.active .pill-label {
    max-width: 75px;
    margin-left: 4px;
    font-size: 12px;
  }
}

/* Hero */

.hero-section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 900px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  position: relative;
  box-sizing: border-box;
  padding: 32px 0 120px 0;
}

.hero-section .container {
  margin-top: auto;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1440px;
  padding: 0 70px;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  max-width: 1318px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.hero-avatar {
  width: 103px;
  height: 103px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-gray-100);
  flex-shrink: 0;
}

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

.hero-text-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.05px;
  color: #000000;
  margin: 0;
}

.hero-statement {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-gray-600);
  margin: 0;
  max-width: 440px;
}

.hero-br-desktop {
  display: inline;
}

.hero-cta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-buttons .btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.hero-buttons .btn-dark:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.hero-buttons .btn-light {
  background-color: var(--color-gray-100);
  color: var(--color-gray-800);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-buttons .btn-light:hover {
  background-color: var(--color-gray-200);
  color: var(--color-black);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    min-height: 600px;
    padding: 112px 0 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-section .container {
    padding: 0 32px;
  }

  .hero-statement {
    max-width: 480px;
    font-size: 17px;
    line-height: 25px;
  }

  .hero-buttons {
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 14px;
  }

  .hero-buttons .btn-dark,
  .hero-buttons .btn-light {
    flex: initial;
    min-width: 140px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    padding: max(96px, calc(env(safe-area-inset-top) + 48px)) 0 max(80px, calc(env(safe-area-inset-bottom) + 48px)) 0;
    box-sizing: border-box;
  }

  .hero-section .container {
    padding: 0 20px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-profile {
    gap: 16px;
  }

  .hero-avatar {
    width: 90px;
    height: 90px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-statement {
    font-size: 15px;
    line-height: 23px;
    max-width: 320px;
    text-wrap: balance;
  }

  .hero-br-desktop {
    display: none;
  }

  .hero-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    /* Strict single row layout */
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-buttons .btn-dark,
  .hero-buttons .btn-light {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Projects */

.project-section {
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: var(--bg-canvas);
}

.project-section .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 70px;
  box-sizing: border-box;
}

.project-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 40px;
  row-gap: 16px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.project-meta {
  display: contents;
}

.project-brand-row {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-logo-box {
  width: 40px;
  height: 39px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #ffffff;
}

.project-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.project-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: #09090b;
  margin: 0;
}

.project-tag {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-gray-500);
  letter-spacing: -0.01em;
  margin: 0;
}

.project-description {
  grid-column: 1 / 2;
  grid-row: 2 / 2;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-gray-500);
  margin: 0;
  max-width: 480px;
}

.project-action-wrap {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: end;
  margin-bottom: 2px;
  
  flex-shrink: 0;
}

.pill-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 16px;
  background-color: rgba(0, 102, 255, 0.08);
  color: #0066ff;
  border: 1px solid rgba(0, 102, 255, 0.16);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-open:not(.pill-secondary):hover {
  background-color: rgba(0, 102, 255, 0.14);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
}

.pill-open.pill-secondary {
  width: auto;
  padding: 0 16px;
  background-color: var(--color-gray-100);
  color: var(--color-gray-500);
  font-weight: 500;
  cursor: default;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
}

.pill-open .open-arrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-open:not(.pill-secondary):hover .open-arrow {
  transform: translate(2px, -2px);
}

/* Focus */
.btn-dark:focus-visible,
.btn-light:focus-visible,
.contact-submit-btn:focus-visible,
.pill-open:focus-visible,
.nav-pill:focus-visible,
.footer-link:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 2px;
}

.btn-dark,
.btn-light,
.back-to-top,
.pill-open {
  transition: transform 0.16s var(--ease-out), background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.btn-dark:active,
.btn-light:active,
.pill-open:not(.pill-secondary):active,
.back-to-top:active {
  transform: scale(0.975);
}

/* Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 645 / 574.5;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcalpine-video-card {
  background-color: #ffffff;
}

.mcalpine-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sandpeak-video-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card-dark);
}

.sandpeak-video-card .video-card-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background-image: url('../assets/images/projects/sandpeak/sandpeak-warm-bg.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(0.65) saturate(1.2);
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.sandpeak-video-card video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02),
      0 16px 36px -8px rgba(0, 0, 0, 0.08);
  }

  .project-card:hover img {
    transform: scale(1.018);
  }

  .project-card:hover video {
    transform: scale(1.02);
  }

  .sandpeak-video-card:hover video {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  }

  .sandpeak-video-card:hover .video-card-bg {
    transform: scale(1.16);
    filter: blur(32px) brightness(0.75) saturate(1.25);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .project-section .container {
    padding: 0 32px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .project-section .container {
    padding: 0 20px;
  }

  .project-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .project-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .project-action-wrap {
    align-self: flex-start;
    margin-bottom: 0;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    aspect-ratio: 645 / 574.5;
    border-radius: 14px;
  }

  .sandpeak-video-card .video-card-bg {
    filter: blur(14px) brightness(0.65) saturate(1.2);
  }
}

/* About */

.about-section {
  width: 100%;
  padding-top: 96px;
  padding-bottom: 64px;
  background-color: var(--bg-canvas);
  border-top: 1px solid #f0f0f0;
}

.about-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 70px;
  padding-right: 70px;
  box-sizing: border-box;
}

.about-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.about-story {
  width: 695px;
  max-width: 100%;
}

.about-eyebrow {
  display: inline-block;
  font-family: 'Geist', var(--font-sans);
  font-size: 14.36px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.05em;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-heading {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 16px;
}

.about-bio {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-gray-500);
  max-width: 440px;
}

.about-portrait {
  width: 490.8px;
  height: 485.86px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
}

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

.about-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 64px;
  padding-left: clamp(60px, 12vw, 160px);
}

.about-studio {
  width: 326px;
  height: 228px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .about-section {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .about-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .about-top-row {
    flex-direction: column;
    gap: 32px;
  }

  .about-story {
    width: 100%;
  }

  .about-portrait {
    width: 100%;
    max-width: 490px;
    height: auto;
    aspect-ratio: 491 / 486;
  }

  .about-bottom-row {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 48px;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .about-bottom-row {
    padding-left: 0;
  }

  .about-section {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .about-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-story {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .about-eyebrow {
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-bottom: 0;
  }

  .about-heading {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 4px;
  }

  .about-bio {
    font-size: 15px;
    line-height: 23px;
    color: var(--color-gray-600);
    max-width: 100%;
    text-wrap: pretty;
    margin: 0;
  }

  .about-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 491 / 486;
    margin-top: 8px;
  }

  
  .about-bottom-row {
    display: none !important;
  }
}

/* Services & Experience */

.services-section {
  width: 100%;
  background-color: var(--bg-canvas);
}

.skills-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.skills-band {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}

.services-band {
  padding: 80px 70px 32px;
}

.experience-band {
  padding: 32px 70px 80px;
  border-top: none;
}

.skills-band-inner {
  grid-column: 7 / 13;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.skills-heading-wrap {
  width: 140px;
  flex-shrink: 0;
}

.skills-heading {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0;
}

.services-band .skills-heading {
  font-size: 28px;
  line-height: 34px;
}

.experience-band .skills-heading {
  font-size: 22px;
  line-height: 28px;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  flex: 1;
}

.skills-col {
  width: 100%;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.skills-list li {
  font-family: 'Geist', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-gray-500);
  margin-bottom: 8px;
  transition: color 0.15s ease, transform 0.15s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .skills-list li:hover {
    color: #000000;
    transform: translateX(3px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .skills-band {
    padding: 64px 32px;
    column-gap: 24px;
  }

  .skills-band-inner {
    grid-column: 1 / 13;
    width: 100%;
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 32px;
    align-items: start;
  }

  .skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

@media (max-width: 640px) {
  .mobile-hidden {
    display: none !important;
  }

  .skills-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .skills-band {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  
  .services-band {
    padding: 32px 20px 20px;
  }

  .experience-band {
    padding: 20px 20px 32px;
    border-top: none;
    
  }

  .skills-band-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .skills-heading-wrap {
    width: 100%;
  }

  .skills-heading {
    font-size: 19px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  
  .skills-columns {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .skills-col {
    width: 100%;
    flex: 1 1 100%;
  }

  .skills-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .skills-list li {
    font-size: 15px;
    line-height: 18px;
    
    color: var(--color-gray-600);
    padding: 4px 0;
    
    border-bottom: none;
    /* No lines */
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .skills-col:last-child .skills-list li:last-child {
    border-bottom: none;
  }
}

/* Contact */

.contact-section {
  width: 100%;
  padding-top: 96px;
  padding-bottom: 112px;
  
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0 0 32px 0;
  text-align: center;
}

.contact-form-card {
  width: 359px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  box-sizing: border-box;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: var(--color-gray-500);
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 0 16px;
  background-color: var(--color-gray-100);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-gray-950);
  outline: none;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  will-change: box-shadow, transform, border-color;
}

.contact-form-input,
.contact-form-select {
  height: 40px;
}

.contact-form-textarea {
  min-height: 100px;
  height: auto;
  padding: 12px 16px;
  line-height: 20px;
  resize: vertical;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: var(--color-gray-400);
}

.contact-form-input:hover,
.contact-form-select:hover,
.contact-form-textarea:hover {
  background-color: #ededf0;
  border-color: rgba(0, 0, 0, 0.08);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  background-color: var(--color-white);
  border-color: var(--color-gray-950);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-form-input:active,
.contact-form-select:active {
  transform: scale(0.995);
}

.contact-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-family: 'Geist', var(--font-sans);
  font-size: 11px;
  line-height: 14px;
}

.contact-error-hint {
  color: #ef4444;
  font-size: 11px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

.contact-error-hint.is-visible {
  display: inline-flex;
}

.contact-char-counter {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  color: var(--color-gray-400);
  font-size: 11px;
  transition: color 0.16s ease;
}

.contact-char-counter.is-warning {
  color: #f59e0b;
}

.contact-char-counter.is-limit {
  color: #ef4444;
  font-weight: 600;
}

.contact-submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 40px;
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease,
    border-color 0.18s ease;
  will-change: transform, box-shadow;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.contact-submit-btn:hover::before {
  left: 150%;
}

.contact-submit-btn:hover {
  background-color: #18181b;
  transform: translateY(-1.5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25),
    0 4px 10px -2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-submit-btn:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition-duration: 0.08s;
}

.btn-text,
.btn-spinner,
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.btn-spinner,
.btn-success {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transform: translateY(6px) scale(0.96);
}

.spinner-svg {
  width: 16px;
  height: 16px;
  animation: contactSpin 0.7s linear infinite;
}

@keyframes contactSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Submitting State */
.contact-submit-btn.is-submitting {
  pointer-events: none;
  cursor: wait;
}

.contact-submit-btn.is-submitting .btn-text {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-6px);
}

.contact-submit-btn.is-submitting .btn-spinner {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Success State */
.contact-submit-btn.is-success {
  pointer-events: none;
  background-color: #18181b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-submit-btn.is-success .btn-text {
  opacity: 0;
  filter: blur(2px);
}

.contact-submit-btn.is-success .btn-spinner {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-6px);
}

.contact-submit-btn.is-success .btn-success {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.contact-signoff-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
  
}

.contact-heart {
  width: 37px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.contact-heart:hover {
  transform: scale(1.15) rotate(-3deg);
}

.contact-heart:active {
  transform: scale(0.92) rotate(2deg);
  transition-duration: 0.1s;
}

.contact-heart.heart-beat {
  animation: heartPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% {
    transform: scale(0.92);
  }

  40% {
    transform: scale(1.22) rotate(-5deg);
  }

  70% {
    transform: scale(0.96) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.contact-heart img {
  width: 37px;
  height: 67px;
  display: block;
  object-fit: contain;
}

.contact-signoff-text {
  font-family: 'Annie Use Your Telescope', cursive, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-blue-annie);
  margin-top: 16px;
}

/* Back to Top Link */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #3f3f46;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.back-to-top .top-arrow {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.back-to-top:hover .top-arrow {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-section {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .contact-container {
    padding: 0 32px;
  }

  .contact-form-card {
    width: 100%;
    max-width: 359px;
  }

  .contact-signoff-wrap {
    margin-top: 48px;
  }

}

@media (max-width: 640px) {
  .contact-section {
    padding-top: 64px;
    padding-bottom: 96px;
    
  }

  .contact-container {
    padding: 0 20px;
  }

  .contact-form-card {
    width: 100%;
    max-width: 380px;
  }

  
  .contact-form-input,
  .contact-form-select,
  .contact-form-textarea {
    font-size: 16px;
  }

  .contact-form-input,
  .contact-form-select {
    height: 44px;
  }

  .contact-submit-btn {
    height: 44px;
    font-size: 15px;
  }

  .contact-signoff-wrap {
    margin-top: 48px;
    
  }
}

/* Footer */

.footer-section {
  width: 100%;
  padding: 32px 0;
  background-color: var(--bg-canvas);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

.footer-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.footer-reserve {
  justify-self: start;
  font-family: 'Geist', var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.footer-copyright,
.footer-rights {
  color: inherit;
}

.footer-sep {
  opacity: 0.35;
}

.footer-socials {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-family: 'Geist', var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray-500);
  text-decoration: none;
  padding: 4px 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--color-gray-950);
  background: none;
  border: none;
  transform: none;
}

.footer-top {
  justify-self: end;
  display: flex;
  align-items: center;
}

.footer-top .back-to-top {
  font-family: 'Geist', var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: none;
  border: none;
  transition: color 0.16s ease;
}

.footer-top .back-to-top .top-arrow {
  font-size: 12px;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-top .back-to-top:hover {
  color: var(--color-gray-950);
}

.footer-top .back-to-top:hover .top-arrow {
  transform: translateY(-2px);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: rgba(9, 9, 11, 0.94);
  color: #ffffff;
  font-family: 'Geist', var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.35s;
}

.toast-notification.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-notification svg {
  color: #34d399; /* Subtle emerald checkmark */
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-section {
    padding: 30px 0;
  }

  .footer-inner {
    padding: 0 40px;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }

  .footer-reserve {
    font-size: 13px;
    white-space: normal;
  }

  .footer-socials {
    gap: 18px;
  }

  .footer-top .back-to-top {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 28px 0;
  }

  .footer-inner {
    padding: 0 28px;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
  }

  .footer-reserve {
    justify-self: start;
    font-size: 12.5px;
    white-space: normal;
  }

  .footer-socials {
    justify-self: center;
    gap: 14px;
  }

  .footer-top {
    justify-self: end;
  }

  .footer-top .back-to-top {
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .footer-section {
    padding: 24px 0 max(20px, env(safe-area-inset-bottom));
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "socials socials"
      "reserve top";
    row-gap: 18px;
    column-gap: 12px;
    padding: 0 20px;
    align-items: center;
  }

  .footer-socials {
    grid-area: socials;
    justify-self: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-reserve {
    grid-area: reserve;
    justify-self: start;
    font-size: 12px;
    white-space: normal;
    text-align: left;
  }

  .footer-top {
    grid-area: top;
    justify-self: end;
  }

  .footer-top .back-to-top {
    font-size: 12px;
    padding: 6px 0;
  }
}

/* Smooth Scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

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

  .nav-capsule-container {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}
