/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 960px) {
  .project-main-wrap {
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .project-split-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 0 20px;
  }

  .project-info-col,
  .project-info-sticky {
    display: contents;
    position: static;
  }

  .project-title-wrap {
    order: 1;
    width: 100%;
  }

  .project-info-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.05;
  }

  .project-meta-wrap {
    order: 2;
    width: 100%;
    margin-top: 16px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }

  .project-stack-col {
    order: 3;
    gap: 24px;
    width: 100%;
    margin-top: 10px;
  }

  .project-stack-card {
    position: relative;
    top: 0;
    transform: none;
    filter: none;
  }

  .project-action-row {
    order: 5;
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .project-split-container {
    padding: 0 16px;
    gap: 28px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   SPLIT-SCREEN EDITORIAL PAGES (About & Privacy)
   Laptop/Desktop (>= 1024px): 35vw Fixed Left Cockpit, 65vw Right Stream
   Mobile (< 1024px): Responsive Flow
   ========================================================================== */

/* Page Bodies */
.about-page-body,
.privacy-page-body,
.projects-page-body,
.contact-page-body {
  background-color: #030303;
  color: #faf9fc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Right Scrollable Panes (Laptop / Desktop >= 1024px) */
@media (min-width: 1024px) {

  body .about-main-curtain,
  body .about-main-wrap,
  body .privacy-main-wrap,
  body .contact-main-wrap {
    margin-left: 35vw;
    width: 65vw;
    min-height: 100vh;
    background-color: #030303;
    color: #faf9fc;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    overflow: visible;
  }

  .about-container {
    width: 100%;
    max-width: 860px;
    margin: 0;
    padding: 120px 48px 80px 48px;
    box-sizing: border-box;
  }

  .privacy-container,
  .contact-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 120px 48px 80px 48px;
    box-sizing: border-box;
  }
}

/* Mobile Fallback (< 1024px) */
@media (max-width: 1023.98px) {

  .about-main-curtain,
  .about-main-wrap,
  .privacy-main-wrap,
  .contact-main-wrap {
    width: 100%;
    margin-left: 0;
    padding-top: 100px;
    box-sizing: border-box;
  }

  .about-container,
  .privacy-container,
  .contact-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 60px 20px;
    box-sizing: border-box;
  }
}

/* Blank Content Stage (100vh canvas before CTA/footer) */
.split-blank-stage {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* Common Split Page Header */
.split-page-header {
  margin-bottom: 50px;
}

.split-page-tag {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.split-page-title {
  margin: 0 0 16px 0;
  color: #faf9fc;
}

.split-page-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  line-height: 1.45;
  margin: 0;
}

.split-page-date {
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
}

/* Split Section Header */

/* ==========================================================================
   About Page Specific Layout
   ========================================================================== */

.about-portrait-stage {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  background-color: #faf9fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-portrait-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.about-portrait-img {
  display: block;
  width: clamp(214px, 18.4vw, 268px);
  max-height: 38vh;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.about-corner-square {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #030303;
  pointer-events: none;
  z-index: 2;
}

.about-corner-tl {
  top: -15px;
  left: -15px;
}

.about-corner-tr {
  top: -15px;
  right: -15px;
}

.about-corner-bl {
  bottom: -15px;
  left: -15px;
}

.about-corner-br {
  bottom: -15px;
  right: -15px;
}

.about-bio-stage {
  display: none;
}

@media (min-width: 1024px) {
  .about-portrait-stage {
    padding: 0;
  }

  .about-left-bio {
    margin: 0;
    width: 100%;
    max-width: 365px;
    font-family: var(--font-display, "AT Aero", "At Aero", "AtAero", sans-serif);
    font-size: var(--nav-dropdown-item-font-size, 16.5px);
    font-weight: var(--nav-dropdown-item-font-weight, 400);
    letter-spacing: calc(-0.02em - 0.3px);
    line-height: 1.45em;
    color: #faf9fc;
    white-space: normal;
    box-sizing: border-box;
  }
}

@media (max-width: 1023.98px) {
  .about-portrait-stage {
    min-height: 100svh;
    min-height: 100vh;
    padding: 0 20px;
  }

  .about-portrait-img {
    width: clamp(210px, 58vw, 260px);
    max-height: 38vh;
  }

  .about-bio-stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #030303;
    padding: 30px 20px 50px 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .about-bio-content {
    width: 100%;
    max-width: 500px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-bio-text {
    font-family: var(--type-aero-c-font, 'AT Aero', sans-serif);
    font-size: var(--type-aero-c-mobile-size, 16px);
    line-height: var(--type-aero-c-mobile-line, 22px);
    letter-spacing: var(--type-aero-c-mobile-spacing, -0.55px);
    font-weight: var(--type-aero-c-weight, 400);
    color: var(--f3-text, #faf9fc);
    text-align: left;
    margin: 0;
    white-space: normal;
  }
}

/* ==========================================================================
   Toolkit Section (About Page)
   ========================================================================== */
.about-toolkit-stage {
  min-height: auto;
  background-color: #030303;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 25px 0 25px;
  box-sizing: border-box;
  width: 100%;
}

.about-toolkit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-toolkit-title {
  font-family: var(--type-aero-a-font, var(--font-retina, 'AT Aero Retina', sans-serif));
  font-size: 25px;
  font-weight: var(--type-aero-a-weight, 350);
  line-height: 29px;
  letter-spacing: -1.17px;
  color: var(--f3-text, #faf9fc);
  margin: 0 0 24px 0;
  text-align: center;
  user-select: none;
}

.about-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 52px));
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 15px;
  width: 100%;
}

.about-toolkit-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-toolkit-logo {
  width: 100%;
  max-width: 52px;
  height: auto;
  max-height: 52px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.about-toolkit-logo.logo-framer,
.about-toolkit-logo.logo-figma,
.about-toolkit-logo.logo-google-antigravity,
.about-toolkit-logo.logo-claude,
.about-toolkit-logo.logo-chatgpt,
.about-toolkit-logo.logo-github {
  background-color: #faf9fc;
  border-radius: 8px;
}

.about-toolkit-logo.logo-framer {
  background-color: #0055FF;
}

.about-toolkit-logo.logo-claude {
  background-color: #D97757;
}

.about-toolkit-logo.logo-chatgpt {
  background-color: #10A37F;
}

.about-toolkit-logo:hover {
  transform: scale(1.06);
}

@media (max-width: 1023.98px) {
  .about-toolkit-stage {
    min-height: auto;
    padding: 80px 20px;
    align-items: center;
  }

  .about-toolkit-content {
    align-items: center;
  }

  .about-toolkit-title {
    margin-bottom: 40px;
    text-align: center;
  }

  .about-toolkit-grid {
    grid-template-columns: repeat(3, minmax(0, 56px));
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 17px;
    width: 100%;
  }

  .about-toolkit-logo {
    width: 100%;
    max-width: 56px;
    height: auto;
    max-height: 56px;
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================
   Outside of Work Section (About Page Bento Grid)
   ========================================================================== */
.about-outside-stage {
  min-height: auto;
  background-color: #030303;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 131px 25px 80px 25px;
  box-sizing: border-box;
  width: 100%;
}

.about-outside-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about-outside-title {
  font-family: var(--type-aero-a-font, var(--font-retina, 'AT Aero Retina', sans-serif));
  font-size: 25px;
  font-weight: var(--type-aero-a-weight, 350);
  line-height: 29px;
  letter-spacing: -1.17px;
  color: var(--f3-text, #faf9fc);
  margin: 0 0 24px 0;
  text-align: center;
  user-select: none;
}

.about-outside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.74fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  aspect-ratio: 560 / 298;
}

.outside-card {
  border-radius: var(--nav-box-radius, 2px);
  overflow: hidden;
  position: relative;
  background-color: #030303;
}

.outside-card-tl {
  grid-column: 1;
  grid-row: 1;
}

.outside-card-tm {
  grid-column: 2;
  grid-row: 1;
  background-color: #faf9fc;
}

.outside-card-bl {
  grid-column: 1 / 3;
  grid-row: 2;
}

.outside-card-right {
  grid-column: 3;
  grid-row: 1 / 3;
}

.outside-card-coming-soon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.outside-coming-soon-text {
  font-family: var(--type-aero-a-font, var(--font-retina, 'AT Aero Retina', sans-serif));
  font-size: 25px;
  font-weight: var(--type-aero-a-weight, 350);
  line-height: 29px;
  letter-spacing: -1.17px;
  color: #030303;
  text-align: center;
  user-select: none;
}

.outside-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #030303;
  color: #faf9fc;
  font-family: var(--type-mono-a-font, var(--font-mono, 'PP Supply Mono', monospace));
  font-size: var(--type-mono-a-size, 11px);
  font-weight: var(--type-mono-a-weight, 300);
  line-height: 1;
  letter-spacing: var(--type-mono-a-spacing, 0.5px);
  text-transform: uppercase;
  padding: 0 8px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 0;
  user-select: none;
}

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

.outside-carousel-card {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.outside-carousel-card.is-dragging {
  cursor: grabbing;
}

.outside-carousel-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.outside-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.outside-carousel-slide .outside-card-img {
  pointer-events: none;
}

.outside-carousel-stepper {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  pointer-events: auto;
}

.outside-stepper-bar {
  display: block;
  height: 3px;
  width: 20px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.outside-stepper-bar:hover {
  background-color: rgba(255, 255, 255, 0.65);
}

.outside-stepper-bar.is-active {
  background-color: #ffffff;
  width: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .outside-card:hover .outside-card-img {
    transform: scale(1.02);
  }
}

@media (max-width: 1023.98px) {
  .about-outside-stage {
    min-height: auto;
    padding: 60px 20px;
  }

  .about-outside-title {
    margin-bottom: 24px;
    font-size: var(--type-aero-a-size, 38px);
  }

  .about-outside-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    aspect-ratio: auto;
    gap: 12px;
  }

  .outside-card-tl {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
  }

  .outside-card-tm {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
  }

  .outside-card-tl .outside-card-badge,
  .outside-card-tm .outside-card-badge {
    top: 12px;
    left: 12px;
  }

  .outside-card-tm .outside-coming-soon-text {
    font-size: clamp(16px, 4.2vw, 19px);
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .outside-card-bl {
    grid-column: 1 / -1;
    grid-row: 2;
    aspect-ratio: 2 / 1;
    width: 100%;
  }

  .outside-card-right {
    grid-column: 1 / -1;
    grid-row: 3;
    aspect-ratio: 253 / 298;
    width: 100%;
  }

  .outside-carousel-stepper {
    bottom: 16px;
  }
}

/* ==========================================================================
   Privacy Policy Page Layout
   ========================================================================== */
.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
  margin-bottom: 60px;
}

.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-section-heading {
  margin: 0;
  color: #faf9fc;
}

.privacy-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.privacy-text strong {
  color: #faf9fc;
  font-weight: 500;
}

.privacy-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list-item {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.privacy-list-item strong {
  color: #faf9fc;
  font-weight: 500;
}

.privacy-contact-box {
  margin-top: 8px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-email-link {
  color: #faf9fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-email-link:hover {
  opacity: 0.75;
}