:root {
  --blue: #46ebdd;
  --pink: #f28cff;
  --pink-soft: #f6b8ff;
  --black: #000000;
  --white: #ffffff;

  --line: 1.2px solid var(--black);
  --radius-small: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--black);
  font-family: "Futura", "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* top fade — content dissolves into the background as it scrolls
   under the fixed header instead of overlapping it */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 118px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--blue) 0%,
    var(--blue) 40%,
    rgba(70, 235, 221, 0) 100%
  );
}

/* -----------------------------
   top navigation
----------------------------- */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 22px 28px 0;
  background: transparent;
}

.top-nav nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.top-nav a {
  transition: opacity 0.25s ease;
}

.top-nav a:hover {
  opacity: 0.55;
}

.nav-line {
  margin-top: 14px;
  width: 100%;
  height: 1.2px;
  background: var(--black);
  opacity: 0.9;
  transform: rotate(-0.08deg);
}

/* -----------------------------
   back arrow
----------------------------- */

.back-arrow {
  position: fixed;
  top: 76px;
  left: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--pink);
  font-family: inherit;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.back-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.back-arrow:hover {
  opacity: 0.65;
}

/* -----------------------------
   map / globe page
----------------------------- */

.map-page {
  position: relative;
  min-height: 100vh;
  padding-top: 90px;
  overflow: hidden;
}

.identity {
  position: absolute;
  z-index: 5;
  top: 120px;
  right: 2.2vw;
  width: max-content;
  max-width: 46vw;
  text-align: right;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.identity h1 {
  margin: 0;
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  font-family: "tephra", sans-serif;
  font-size: clamp(30px, 3.4vw, 60px);
  font-weight: 100;
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-align: right;
  white-space: nowrap;
}

.identity p {
  margin: 10px 0 0;
  color: var(--pink);
  opacity: 1;
  -webkit-text-fill-color: var(--pink);
  font-family: "Futura", "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-align: right;
}

/* -----------------------------
   globe
----------------------------- */

.globe-stage {
  position: absolute;
  left: 0;
  top: 70px;
  width: 100vw;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sphere-fill {
  fill: var(--blue);
}

.sphere-outline {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.land-outline {
  fill: none;
  stroke: var(--black);
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
}

.city-marker {
  fill: var(--pink);
  stroke: none;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
}

/* -----------------------------
   home vehicles
----------------------------- */

.vehicle-layer {
  pointer-events: none;
}

.home-plane {
  opacity: 1;
}

.plane-trail {
  fill: none;
  stroke: var(--black);
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.34;
  vector-effect: non-scaling-stroke;
}

.plane-drawing {
  fill: none;
  stroke: var(--black);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.city-focus-group {
  pointer-events: none;
}

.city-focus-boundary {
  fill: var(--pink);
  stroke: var(--pink);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.city-focus-name {
  fill: var(--blue);
  font-size: clamp(14px, 1.5vw, 24px);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  pointer-events: none;
}

/* -----------------------------
   sprouting project nodes
----------------------------- */

.node-layer {
  pointer-events: none;
}

.node-cluster {
  pointer-events: none;
}

.node-branch {
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.sequence-node-branch {
  opacity: 0.56;
}

.node-anchor {
  fill: #f7b8ff;
  stroke: var(--blue);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.work-node-outer {
  cursor: pointer;
  pointer-events: auto;
}

.work-node-card {
  fill: var(--pink);
  stroke: var(--pink);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.work-node-header {
  fill: var(--pink);
  stroke: none;
}

.work-node-text {
  fill: var(--blue);
  font-size: 12px;
  letter-spacing: 0.045em;
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
}

.project-image-card {
  fill: var(--pink);
  stroke: var(--pink);
}

.project-image-card-header {
  fill: var(--pink);
}

.project-image-card-title,
.project-image-card-details {
  fill: var(--blue);
  font-family: "Futura", "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.035em;
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
}

.project-image-card-title {
  font-size: 13px;
  font-weight: 600;
}

.project-image-card-details {
  font-size: 11.5px;
  font-weight: 400;
}

.project-image-card-dot {
  fill: var(--blue);
  opacity: 0.9;
  pointer-events: none;
}

.project-image-card-image {
  cursor: zoom-in;
}

.project-image-card-placeholder {
  fill: var(--blue);
  opacity: 0.62;
}

.project-video-card-media {
  cursor: pointer;
}

.project-video-card-play {
  pointer-events: none;
}

.project-video-card-play-bg {
  fill: var(--black);
  opacity: 0.62;
  stroke: var(--pink);
  stroke-width: 1.4;
  transition: opacity 0.2s ease;
}

.project-video-card-play-icon {
  fill: var(--pink);
}

.project-video-card-media:hover .project-video-card-play-bg {
  opacity: 0.85;
}

.project-image-card-pdf-panel {
  fill: var(--blue);
  opacity: 0.9;
}

.project-image-card-pdf-label,
.project-image-card-pdf-name {
  fill: var(--pink);
  font-family: "Futura", "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
}

.project-image-card-pdf-label {
  font-size: 22px;
  font-weight: 600;
}

.project-image-card-pdf-name {
  font-size: 10px;
}

body.project-preview-open main,
body.project-preview-open .top-nav,
body.project-preview-open .back-arrow {
  filter: blur(8px);
}

.project-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 28px 34px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.project-preview-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.project-preview-close {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--pink);
  font-family: "Futura", "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.project-preview-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 96px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-preview-nav svg {
  width: 26px;
  height: 48px;
}

.project-preview-nav.is-visible {
  display: flex;
}

.project-preview-prev {
  left: 18px;
}

.project-preview-next {
  right: 18px;
}

.project-preview-prev:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(-3px);
}

.project-preview-next:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

.project-preview-image {
  display: none;
  max-width: 92vw;
  max-height: 88vh;
  aspect-ratio: auto;
  object-fit: fill;
  border: 1.2px solid var(--pink);
  background: transparent;
}

.project-preview-frame {
  display: none;
  width: min(92vw, 1180px);
  height: 86vh;
  border: 1.2px solid var(--pink);
  background: var(--blue);
}

.project-preview-image.is-visible,
.project-preview-frame.is-visible {
  display: block;
}

/* -----------------------------
   content pages
----------------------------- */

.content-page {
  min-height: 100vh;
  padding: 130px 28px 80px;
  border-top: var(--line);
}

.content-page h2 {
  margin: 0 0 48px;
  font-family: "tephra", sans-serif;
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 100;
  letter-spacing: 0.02em;
  color: var(--pink);
  text-transform: lowercase;
}

.bio,
.contact-intro {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.about-grid > div {
  border: var(--line);
  border-radius: var(--radius-small);
  padding: 22px 20px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.05);
}

.about-grid h3 {
  margin: 0 0 26px;
  font-family: "tephra", sans-serif;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 100;
  letter-spacing: 0.02em;
  color: var(--black);
  text-transform: lowercase;
}

.about-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.about-entry {
  margin: 0 0 20px;
}

.about-entry:last-child {
  margin-bottom: 0;
}

.about-entry p {
  margin: 0;
}

/* two-column entry: org/role on the left, date/location right-aligned */
.about-entry.two-col {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.e-main {
  flex: 1 1 auto;
  min-width: 0;
}

.e-meta {
  flex: 0 0 auto;
  max-width: 60%;
  text-align: right;
}

.e-meta .e-date {
  white-space: nowrap;
}

/* about hierarchy — Arial; weight/style/size + bullet marker */
.e-date {
  font-size: 13px;
  font-weight: 400;
}

.e-place {
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.6;
}

.e-org {
  margin-top: 0;
  padding-left: 18px;
  text-indent: -18px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

/* single-column entries (software / languages) keep a gap above the heading */
.about-entry:not(.two-col) .e-org {
  margin-top: 2px;
}

.e-bullet {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: middle;
}

.e-role {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.82;
}


.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  border-top: var(--line);
}

.contact-list li:last-child {
  border-bottom: var(--line);
}

.contact-list a {
  display: block;
  padding: 18px 0;
  font-size: clamp(18px, 2.5vw, 36px);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.contact-list a:hover {
  color: var(--pink);
  padding-left: 18px;
}

/* -----------------------------
   responsive
----------------------------- */

@media (max-width: 800px) {
  .top-nav {
    padding: 18px 18px 0;
  }

  .back-arrow {
    top: 68px;
    left: 18px;
    font-size: 36px;
  }

  .map-page {
    padding-top: 80px;
  }

  .identity {
    top: 105px;
    right: 18px;
    left: 18px;
    width: auto;
    max-width: none;
    text-align: right;
  }

  .identity h1 {
    white-space: normal;
    text-align: right;
  }

  .identity p {
    text-align: right;
  }

  .globe-stage {
    top: 65px;
    height: calc(100vh - 65px);
  }

  .work-node-text {
    font-size: 11px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 110px 18px 64px;
  }
}
