:root {
  --bg-1: #d8e7ff;      /* soft blue */
  --bg-2: #e2f4f2;      /* turquoise wash */
  --ink: #171717;       /* headline */
  --ink-soft: #3f4a54;  /* subtext */
  --yellow: #ffe08a;    /* pastel yellow circle */
  --pill-blue-bg: #cfe0ff;
  --pill-blue-ink: #1f3a72;
  --pill-teal-bg: #bfece4;
  --pill-teal-ink: #10554b;
}

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

html { scroll-behavior: smooth; }
html, body { height: 100%; }

/* anchored sections clear the fixed navbar */
#work, #approach, #about, #contact { scroll-margin-top: 92px; }

/* ---------- Sticky glass navbar ---------- */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  width: 800px;
  max-width: calc(100% - 24px);
  height: 64px;
  padding: 0 22px;
  border-radius: 32px;
  background: rgba(217, 217, 217, 0.18);        /* #D9D9D9 base */
  /* frost + slight refraction feel */
  -webkit-backdrop-filter: blur(6px) saturate(185%) brightness(1.05);
  backdrop-filter: blur(6px) saturate(185%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 26px rgba(30, 45, 90, 0.1),                 /* drop */
    inset 2px 0 3px rgba(130, 200, 255, 0.10),        /* dispersion (cool edge) */
    inset -2px 0 3px rgba(255, 175, 195, 0.08);       /* dispersion (warm edge) */
}

/* -45° light sheen across the glass */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.navbar__link {
  position: relative;
  z-index: 1;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b9199;
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.2s ease;
}

.navbar__link.is-active { color: #171717; font-weight: 700; }

/* G circle — back to top, colored like the hero gradient */
.navbar__home {
  position: relative;
  z-index: 1;                       /* stays above the pill as it morphs across */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  margin: 0 7px;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;                        /* same as unselected links */
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #8b9199;                          /* grey, like unselected links */
  text-decoration: none;
  background: transparent;                 /* fill only shows when selected */
  transition: transform 0.2s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.3s ease;
}
.navbar__home:hover { transform: scale(1.09); }

/* home / top state — mint fill + soft blue glow */
.navbar__home.is-active {
  color: #171717;                          /* dark when selected, like active links */
  font-weight: 700;
  background: linear-gradient(160deg, #dbeaff, #e9f4f1 55%, #e4f6f0);
  box-shadow:
    0 0 0 3px rgba(150, 190, 255, 0.1),
    0 0 16px 3px rgba(120, 170, 250, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* the morphing "glass" pill — raised white, sits BEHIND the text so labels stay sharp */
.navbar__pill {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);          /* frosted glass, not solid white */
  -webkit-backdrop-filter: blur(14px) saturate(165%);
  backdrop-filter: blur(14px) saturate(165%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(150, 170, 210, 0.12),
    0 4px 12px rgba(80, 110, 170, 0.08);
  opacity: 0;
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
              width 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
              opacity 0.3s ease;
  will-change: transform, width, opacity;
  pointer-events: none;
}

/* ---------- Mobile hamburger ---------- */
.navToggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 8px 24px rgba(30, 45, 90, 0.14);
  cursor: pointer;
}
.navToggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #1f1f1f;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.navToggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navToggle.is-open span:nth-child(2) { opacity: 0; }
.navToggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobileMenu {
  display: none;
  position: fixed;
  top: 74px;
  right: 18px;
  z-index: 101;
  flex-direction: column;
  min-width: 210px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 44px rgba(30, 45, 90, 0.2);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobileMenu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobileMenu a {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f1f1f;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mobileMenu a:hover { background: rgba(40, 60, 120, 0.07); }

@media (max-width: 768px) {
  .navbar { display: none; }
  .navToggle { display: flex; }
  .mobileMenu { display: flex; }
}

body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 78% 10%, var(--bg-2), transparent 60%),
    linear-gradient(160deg, var(--bg-1), #e9f1ff 55%, #e6f6f4);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* banner height +30% at 1280px: added ~74px top & bottom */
  padding: 156px 24px 138px;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  text-align: center;
  padding: 20px 20px;
}

.hero__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.4rem, 7.2vw, 5.6rem);
  color: var(--ink);
}

.line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
}

/* ---------- Avatar circle (clip mask) ---------- */
.avatar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: var(--yellow);
  overflow: hidden;
  vertical-align: middle;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(60, 80, 140, 0.18);
  transform: translateY(0.02em);
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

/* ---------- Subtext ---------- */
.hero__sub {
  margin: 28px auto 0;
  max-width: 800px;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__sub strong { color: var(--ink); font-weight: 700; }

/* ---------- Doodles (gentle floating) ---------- */
.doodle { position: absolute; height: auto; }
.doodle--idea {
  width: 74px; top: 74%; left: 1%;
  transform: rotate(-10deg);
  animation: floatIdea 5s ease-in-out infinite;
}
.doodle--ship {
  width: 72px; top: -12%; right: 1%;
  transform: rotate(9deg);
  animation: floatShip 5.6s ease-in-out infinite;
  animation-delay: -1.8s;
}

@keyframes floatIdea {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-10px) rotate(-4deg); }
}

@keyframes floatShip {
  0%, 100% { transform: translateY(0) rotate(9deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .doodle--idea { animation: none; transform: rotate(-10deg); }
  .doodle--ship { animation: none; transform: rotate(9deg); }
}

/* ---------- Responsive ---------- */
/* hide decorative doodles on mobile */
@media (max-width: 768px) {
  .doodle { display: none; }
}

/* ========== Selected works ========== */
.works {
  background: #fcfcfc;
  /* 72px top & bottom on desktop; reduced on smaller screens below */
  padding: 72px 24px;
}

.works__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.works__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.works__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3f6fd6;
}

.works__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--ink);
}

.works__tagline {
  margin-top: 14px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---- Projects stack: bounds the sticky cards so they release after stacking ---- */
.stack {
  position: relative;
}

/* ---- Project card (rounded rectangle, sticky-stacking) ---- */
.project {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 32px;
  border-radius: 32px;
  padding: 56px 56px 56px 64px;
  margin-bottom: 40px;
  overflow: hidden;
  background: #f9f9f9;
  border: 1px solid rgba(40, 60, 120, 0.06);
  box-shadow: 0 24px 60px rgba(40, 60, 120, 0.12);
  transform-origin: center top;
  will-change: transform;
}

/* card 2 sits a little lower so ~10% of card 1 peeks as it stacks */
.project:nth-of-type(2) { top: 150px; margin-bottom: 0; }

.project__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--ink);
}

.project__subtitle {
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
}

.project__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ---- View project button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }

.btn:hover {
  background: #274bff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(39, 75, 255, 0.28);
}

.btn:hover svg { transform: translateX(3px); }

/* ========== Testimonial (inside section 2, after project 2) ========== */
.testimonial {
  margin-top: 72px;           /* 72px gap after the projects stack */
  background: #fcfcfc;
  padding: 16px 24px;
  text-align: center;
}

.quote-icon {
  width: 74px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

.testimonial__quote {
  margin: 0 auto;
  /* 20% smaller than 1.4/2.6/2.1 */
  font-size: clamp(1.12rem, 2.08vw, 1.68rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.testimonial__author { margin-top: 34px; }

.testimonial__name {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.testimonial__role {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .testimonial { padding: 8px 20px; margin-top: 48px; }
}

/* ========== Section 3: Approach ========== */
.approach {
  background: linear-gradient(165deg, #e8f1ff 0%, #eaf6f3 100%);
  padding: 104px 24px;
}

.approach__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.approach__eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3f6fd6;
}

.approach__title {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--ink);
}

.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 60px;
}

.pointer {
  position: relative;
  border-radius: 28px;
  padding: 48px 44px;
  border: 1px solid rgba(40, 60, 120, 0.05);
}

.approach__grid .pointer:nth-child(1) { background: #e1f0ff; }
.approach__grid .pointer:nth-child(2) { background: #f0f9cd; }
.approach__grid .pointer:nth-child(3) { background: #f7e8bf; }
.approach__grid .pointer:nth-child(4) { background: #dff7f1; }

/* Card icon: pokes out of the top-right corner, gently floating */
.pointer__icon {
  position: absolute;
  top: -24px;
  right: -14px;
  height: 70px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(40, 60, 120, 0.16));
  animation: iconFloat 5s ease-in-out infinite;
}

.approach__grid .pointer:nth-child(2) .pointer__icon { animation-delay: -1.2s; }
.approach__grid .pointer:nth-child(3) .pointer__icon { animation-delay: -2.4s; }
.approach__grid .pointer:nth-child(4) .pointer__icon { animation-delay: -3.6s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pointer__icon { animation: none; }
}

.pointer__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.pointer__text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .approach { padding: 64px 20px; }
  .approach__grid { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .pointer { padding: 34px 28px; }
}

/* ========== Numbers (nested in Section 3) ========== */
.stats {
  margin-top: 96px;
  text-align: center;
}

.stats__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--ink);
}

.stats__sub {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: #ffffff;
  border-radius: 30px;
  padding: 20px 26px;
  box-shadow: 0 10px 26px rgba(40, 60, 120, 0.08);
}

.stat__num {
  flex: 0 0 auto;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  color: #daebff;                          /* light-blue fill */
  -webkit-text-stroke: 1.6px #1f1f1f;      /* dark outline */
  paint-order: stroke fill;                /* fill sits above stroke */
}

.stat__label {
  min-width: 0;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--ink);
}

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stats { margin-top: 56px; }
  .stats__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
}

/* ========== Section 4: About ========== */
.about {
  background: #ffffff;
  padding: 104px 24px;
}

.about__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  display: flex;
  align-items: center;      /* vertically centered */
  justify-content: center;
}

.about__media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.about__eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3f6fd6;
}

.about__title {
  margin: 14px 0 20px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ink);
}

.about__text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.skills__title {
  margin: 34px 0 20px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
}

.skills {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}

.skill { margin-bottom: 0; }

.skill__head {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 9px;
}

.skill__bar {
  height: 9px;
  background: #ffffff;
  border: 1px solid #edeff4;
  border-radius: 999px;
  overflow: hidden;
}

.skill__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.skills .skill:nth-child(1) .skill__bar span { background: #e1f0ff; }
.skills .skill:nth-child(2) .skill__bar span { background: #f0f9cd; }
.skills .skill:nth-child(3) .skill__bar span { background: #f7e8bf; }
.skills .skill:nth-child(4) .skill__bar span { background: #dff7f1; }

@media (max-width: 820px) {
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__media { min-height: 340px; }
  .about__media img { max-width: 300px; }
}

@media (max-width: 560px) {
  .about { padding: 64px 20px; }
  .skills { grid-template-columns: 1fr; }
}

/* ========== Section 5: Contact / CTA ========== */
.contact {
  background: #232323;
  padding: 110px 24px;
}

.contact__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact__icon {
  width: 108px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.contact__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb4ff;
}

.contact__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  color: #ffffff;
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 64px;
  margin-top: 48px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b8b8b;
}

.contact__value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f2f2f2;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact__value:hover { color: #f8e6ab; }

@media (max-width: 560px) {
  .contact { padding: 72px 20px; }
  .contact__details { flex-direction: column; gap: 24px; }
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Works section vertical padding — 72px desktop, tighter on smaller screens for clarity */
@media (max-width: 1024px) {
  .works { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 820px) {
  .project {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 28px;
    text-align: center;
  }
  .project__subtitle { max-width: none; margin-inline: auto; }
  .project__media img { max-height: 340px; }
}

@media (max-width: 640px) {
  .works { padding: 44px 20px; }
}
