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

:root {
  --teal-crystal: #B8F0F0;
  --teal-pam: #55D8D6;
  --teal-lagoon: #1EC8C8;
  --teal-cyan: #0AADBE;
  --teal-pool: #0A8FA0;
  --bg-mist: #F2FCFC;
  --bg-lagoon-tint: #E0F8F8;
  --deep-lagoon: #0A5F72;
  --abyss: #084E60;
  --indigo: #5438DC;
  --gunmetal: #3C3C3C;
  --pad-x: clamp(1.25rem, 4vw, 60px);
  --footer-pad-x: clamp(2rem, 8vw, 120px);
}

html,
body {
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-mist);
  color: var(--gunmetal);
  overflow-x: clip;
}

.container {
  padding: 0 var(--pad-x);
  width: 100%;
}

/* ── Navigation ── */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 79, 96, 0.08);
  opacity: 0;
  animation: fadeIn 0.4s ease-out 0.8s forwards;
}

.nav-inner {
  padding: 0 var(--pad-x);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--abyss);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gunmetal);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal-lagoon);
  transition: width 0.22s ease;
}

.nav-links a:hover {
  color: var(--abyss);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(10, 79, 96, 0.06);
  border: 1px solid rgba(10, 79, 96, 0.12);
  border-radius: 40px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--abyss);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--abyss);
  color: #fff;
}

/* ── Hero ── */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#gradient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Hide NeatGradient attribution links */
a[href*="firecms"],
a[href*="neat.dev"],
#gradient-canvas~a,
#footer-canvas~a {
  display: none !important;
}

/* Fallback solid gradient shown before the canvas library loads */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F2FCFC 0%, #B8F0F0 40%, #55D8D6 70%, #0AADBE 100%);
  z-index: 0;
  transition: opacity 0.6s ease;
}

#hero.gradient-loaded::before {
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(2rem, 8vw, 120px);
}

.hero-text {
  max-width: 480px;
}

.eyebrow {
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-pool);
  margin-bottom: 1.1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease-out 0.1s forwards;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--abyss);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out 0.2s forwards;
}

.subhead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--gunmetal);
  max-width: 520px;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease-out 0.35s forwards;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.5s ease-out 0.5s forwards;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 40px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 2px 14px rgba(84, 56, 220, 0.3);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(84, 56, 220, 0.45);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--abyss);
  border: 1.5px solid var(--abyss);
}

.btn-ghost:hover {
  background: var(--abyss);
  color: #fff;
  transform: scale(1.04);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* ── Scroll hint ── */

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.1s forwards;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-pool);
}

.chevron {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--teal-pool);
  border-bottom: 1.5px solid var(--teal-pool);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}

/* ── Marquee ── */

#marquee-section {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: hidden;
  border-top: 1px solid rgba(10, 143, 160, 0.1);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 31s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
}

.marquee-item {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--abyss);
  padding-right: 1.5rem;
}

.marquee-item em {
  font-style: normal;
  color: var(--teal-lagoon);
}

.marquee-sep {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  color: var(--teal-pam);
  padding-right: 1.5rem;
  opacity: 0.5;
  font-weight: 300;
}

/* ── Work section (sticky split layout) ── */

#work {
  display: flex;
  align-items: flex-start;
  border-top: 1px solid rgba(10, 143, 160, 0.1);
  background: #fff;
}

.split-left {
  width: 40%;
  flex-shrink: 0;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  padding: 3rem clamp(1.5rem, 3vw, 3rem) 3rem clamp(1.25rem, 4vw, 60px);
  z-index: 10;
  background: #fff;
}

.split-right {
  flex: 1;
  position: relative;
  background: #fff;
}

.body-copy {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--gunmetal);
}

.body-copy em {
  font-style: normal;
  font-weight: 500;
  color: var(--deep-lagoon);
}

/* Stack panels scroll behind the sticky left column */
.stack-panel {
  position: sticky;
  top: 58px;
  z-index: 1;
  min-height: calc(100vh - 58px);
  padding: 12vh clamp(1.25rem, 4vw, 60px) 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* ── Work cards ── */

.stack-card {
  width: 100%;
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--teal-pam);
  border-radius: 20px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 4px 24px rgba(10, 79, 96, 0.1);
}

.wc-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-lagoon);
  margin-bottom: 1rem;
}

.wc-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--abyss);
  margin-bottom: 0.9rem;
}

.wc-quote {
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--gunmetal);
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.wc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.wc-block {
  display: flex;
  flex-direction: column;
}

.wc-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gunmetal);
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

.wc-text {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gunmetal);
}

.wc-highlight {
  grid-column: 1 / -1;
  background: var(--bg-lagoon-tint);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.wc-highlight .wc-label {
  color: var(--teal-pool);
  opacity: 1;
}

.wc-highlight .wc-text {
  color: var(--abyss);
}

.wc-tools {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 143, 160, 0.15);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.wc-tools-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gunmetal);
  opacity: 0.5;
  flex-shrink: 0;
}

.wc-tools-list {
  font-size: 0.85rem;
  color: var(--gunmetal);
  line-height: 1.5;
}

/* ── Experience timeline ── */

.expC {
  background: var(--bg-mist);
  padding: clamp(1.6rem, 3.2vw, 2.8rem)  var(--pad-x) clamp(2rem, 4vw, 3.5rem) clamp(2rem, 8vw, 120px);
}

.expC__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #5438DC;
  margin: 0 0 0.75rem;
}

.expC__subhead {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--gunmetal);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.expC__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Vertical connector line running through all timeline events */
.expC__timeline::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(10, 143, 160, 0.18);
}

.expC__event {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0 24px;
  padding-bottom: 16px;
}

.expC__date {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  padding-top: 18px;
  padding-right: 28px;
  color: #3C3C3C;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.expC__date .sep {
  color: #5438DC;
}

/* Timeline dot */
.expC__event::after {
  content: "";
  position: absolute;
  left: 184px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-pam);
  box-shadow: 0 0 0 5px rgba(85, 216, 214, 0.15);
  z-index: 1;
}

/* Mask the connector line below the last event */
.expC__event:last-child::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: #fff;
  z-index: 2;
}

.expC__card {
  grid-column: 2;
  grid-row: 1;
  background: #fff;
  border: 1px solid rgba(10, 143, 160, 0.18);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(10, 79, 96, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.expC__card:hover {
  box-shadow: 0 6px 24px rgba(10, 79, 96, 0.1);
  border-color: rgba(85, 216, 214, 0.5);
}

.expC__cardHead {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.expC__cardText {
  flex: 1;
  min-width: 0;
}

.expC__kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-pool);
  font-weight: 600;
  margin-bottom: 5px;
}

.expC__role {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--abyss);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.expC__impact {
  display: block;
  font-size: 0.85rem;
  color: var(--gunmetal);
  line-height: 1.55;
}

/* +/− toggle button on each experience card */
.expC__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-pool);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.expC__toggle::before,
.expC__toggle::after {
  content: '';
  position: absolute;
  background: var(--teal-pool);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.expC__toggle::before {
  width: 10px;
  height: 1.5px;
}

.expC__toggle::after {
  width: 1.5px;
  height: 10px;
}

.expC__event.is-open .expC__toggle {
  background: var(--teal-pool);
  border-color: var(--teal-pool);
}

.expC__event.is-open .expC__toggle::before,
.expC__event.is-open .expC__toggle::after {
  background: #fff;
}

/* Rotate vertical bar to 90° and fade out → shows only horizontal bar (−) */
.expC__event.is-open .expC__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.expC__panel {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid rgba(10, 143, 160, 0.1);
}

.expC__event.is-open .expC__panel {
  display: block;
}

.expC__bullets {
  margin: 14px 0 0;
  padding-left: 16px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gunmetal);
}

.expC__bullets li::marker {
  color: var(--teal-pam);
}

.expC__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.expC__tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-lagoon-tint);
  border: 1px solid rgba(10, 143, 160, 0.2);
  color: var(--deep-lagoon);
  font-size: 11px;
  font-weight: 600;
}

/* ── Footer ── */

footer {
  position: relative;
  overflow: hidden;
}

#footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: 3rem var(--footer-pad-x) 1.75rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-avail {
  max-width: 420px;
}

.footer-avail p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  color: var(--abyss);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.footer-avail a {
  font-size: 0.9rem;
  color: var(--teal-pool);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.18s ease;
}

.footer-avail a:hover {
  color: var(--abyss);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--abyss);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
  color: var(--teal-pool);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-x svg,
.icon-tiktok svg {
  stroke: none;
  fill: currentColor;
}

.footer-divider {
  height: 1px;
  background: rgba(10, 79, 96, 0.12);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(8, 78, 96, 0.5);
  letter-spacing: 0.01em;
}

/* ── Keyframe animations ── */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 0.75;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(5px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Responsive breakpoints ── */

@media (max-width: 900px) {
  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 820px) {
  #work {
    flex-direction: column;
  }

  .split-left {
    width: 100%;
    position: relative;
    top: auto;
    height: auto;
    padding: 2.5rem var(--pad-x) 1rem;
  }

  .split-right {
    width: 100%;
  }

  .stack-panel {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 0 var(--pad-x) 1.25rem;
  }

  .stack-card {
    max-width: 100%;
  }

  .footer-top {
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .expC__timeline::before {
    display: none;
  }

  .expC__event {
    grid-template-columns: 1fr;
  }

  .expC__date {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    padding: 0 0 4px;
  }

  .expC__event::after {
    display: none;
  }

  .expC__card {
    grid-column: 1;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-body {
    grid-template-columns: 1fr;
  }

  .wc-highlight {
    grid-column: 1;
  }

  .footer-social {
    gap: 1.15rem;
  }
}
