/* ============================================================
   CSS Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  /* scroll-behavior left to Lenis */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  /* --- Colors (from gradient palette) --- */
  --color-bg:         #F6F6F6;  /* off-white */
  --color-fg:         #D040A8;  /* rose-purple — primary brand color */
  --color-accent:     #60C8F5;  /* cyan-blue */
  --color-purple:     #9070DC;  /* violet (mid-gradient) */
  --color-surface:    #EBEBEB;  /* slightly deeper off-white for cards/layers */
  --color-text:       #181818;  /* near-black */
  --color-text-muted: #888888;  /* muted/secondary text */
  --color-border:     #E0E0E0;  /* subtle border */

  /* --- Typography --- */
  --font-sans:  'Instrument Sans',  system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3.5rem;    /* 56px */
  --text-5xl:  5rem;      /* 80px */

  /* --- Font weights --- */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Spacing scale (4px base) --- */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* --- Transition timings --- */
  --ease-default: 0.3s ease;
  --ease-smooth:  0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:  0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:      0.4s cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     0.4s cubic-bezier(0, 0, 0.2, 1);

  /* --- Layout --- */
  --max-width: 1200px;
  --gutter:    var(--space-6);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* ============================================================
   Base Styles
   ============================================================ */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Shared layout elements */
.site-header,
.site-main,
.site-footer {
  width: 100%;
}

/* Centered content wrapper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  position: relative;
  width: calc(100% - 80px);   /* 40px margin left + right */
  height: calc(100dvh - 80px); /* 40px margin top + bottom */
  min-height: 520px;
  margin: 40px auto;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Background ─────────────────────────────────────────── */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Layered vignette: dark top, heavy dark bottom, soft side edges */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%,   rgba(0, 0, 0, 0.08) 26%, transparent 40%),
    linear-gradient(  0deg, rgba(0, 0, 0, 0.82) 0%,   rgba(0, 0, 0, 0.12) 36%, transparent 55%),
    linear-gradient( 90deg, rgba(0, 0, 0, 0.42) 0%,   transparent 32%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.42) 0%,   transparent 32%);
}

/* ── Navigation ─────────────────────────────────────────── */

.hero__nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 3.33vw, 4rem) clamp(2.5rem, 6.25vw, 7.5rem);
  /* 3.33vw = 64px at 1920px | 6.25vw = 120px at 1920px */
}

/* Logo */
.hero__logo {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hero__logo-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #fff;
  margin-right: 4px;
  border-radius: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 1.1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Logo image */
.hero__logo-img {
  height: clamp(1.5rem, 2vw, 2.5rem);
  width: auto;
  display: block;
}

/* Pills — centered absolutely within .hero__nav */
.hero__nav-pills {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__pill {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1.5rem; /* 12px 24px per Figma */
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hero__pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Contact button — right side of nav, pill with animated arrow */
.hero__contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__contact:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background-color: rgba(255, 255, 255, 0.06);
  gap: 0.4rem;
}

.hero__contact-arrow {
  display: block;
  opacity: 0;
  transform: translate(-6px, 6px);
  line-height: 1;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__contact:hover .hero__contact-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Hero Content ────────────────────────────────────────── */

.hero__content {
  position: absolute;
  bottom: clamp(2rem, 4.5vw, 4rem); /* 32px → 64px (8px rule: 4×8 → 8×8) */
  left: clamp(2.5rem, 6.25vw, 7.5rem);  /* 120px at 1920px, aligns with logo */
  z-index: 10;
}

/* "Creative Developer" label — Instrument Serif italic */
.hero__label-wrap {
  overflow: hidden;
  padding-bottom: 0.18em;
}

.hero__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 6rem); /* 96px at 1920px — same as heading */
  color: #fff;
  line-height: 1;
  margin-bottom: 0;
  display: block;
  letter-spacing: 0;
}

/* Heading wrapper */
.hero__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Each line lives inside an overflow-hidden wrapper for the reveal */
.hero__line-wrap {
  overflow: hidden;
  line-height: 1;
  padding-bottom: 0.18em; /* room for italic descenders (g, j, y, etc.) */
}

/* Large sans-serif headline lines — bold italic, matching Figma */
.hero__line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 6rem); /* 96px at 1920px */
  font-weight: 700;
  font-style: italic;
  color: #fff;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

/* "groeien" — switches back to Instrument Serif italic */
.hero__line-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet (≤ 1024px): tighten card margin, allow text to wrap */
@media (max-width: 1024px) {
  .hero {
    width: calc(100% - 48px);
    height: calc(100dvh - 48px);
    margin: 24px auto;
    border-radius: 18px;
  }

  .hero__line,
  .hero__label {
    white-space: normal; /* allow wrap on narrow viewports */
  }
}

/* ============================================================
   About Section
   ============================================================ */

.about {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-start; /* content starts from top, not vertically centered */
  /* top: 5rem = 80px → together with hero's 40px bottom margin = 120px from hero card */
  padding: 5rem clamp(3rem, 8.33vw, 10rem) clamp(3rem, 5vw, 5rem);
}

/* ── Floating decorative photos ────────────────────────────── */
.about__photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about__photo {
  position: absolute;
  border-radius: 20px;
  background: #D5D5D5; /* fallback while image loads */
  object-fit: cover;
}

/* Figma positions (relative to 1920×1080 frame):
   a → x=31%, y=15%, w=10.6vw  (upper center-left)
   b → x=8%,  y=54%, w=9.8vw   (lower left)
   c → right=7%, y=58%, w=13.6vw (lower right) */
.about__photo--a {
  width: clamp(90px, 8vw, 155px);
  aspect-ratio: 1;
  top: 24%;
  left: 31%;
  transform: rotate(2deg);
}

.about__photo--b {
  width: clamp(75px, 7.5vw, 145px);
  aspect-ratio: 1;
  top: 54%;
  left: 8%;
  transform: rotate(-2.5deg);
}

.about__photo--c {
  width: clamp(85px, 10vw, 200px);
  aspect-ratio: 1;
  top: 58%;
  right: 16%;
  transform: rotate(1.5deg);
}

/* ── Inner content — sits above photos ─────────────────────── */
.about__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* full height minus section padding so we can space-between */
  min-height: calc(100svh - 5rem - clamp(3rem, 5vw, 5rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* tag top, bio+cv centred, bottom */
}

/* Section tag: [01] [About] */
.about__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: flex-start; /* stays left while rest is centered */
}

.about__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 3.33vw, 4rem);
  height: clamp(2.5rem, 3.33vw, 4rem);
  border-radius: 50%;
  background: #181818;
  color: #F6F6F6;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.67vw, 2rem);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.about__label {
  display: inline-flex;
  align-items: center;
  height: clamp(2.5rem, 3.33vw, 4rem);
  padding-inline: clamp(0.75rem, 1.5vw, 1.5rem);
  background: #E8E8E8;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.67vw, 2rem);
  font-weight: 400;
  color: #181818;
  line-height: 1;
}

/* ── Bio text ────────────────────────────────────────────── */
.about__bio {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 3rem); /* 48px at 1920px */
  font-weight: 400;
  line-height: 1.25;
  color: #181818;
  text-align: center;
  max-width: 90%;
}

/* Highlighted words */
.about__hl {
  color: #0f0f0f;
}

/* Word wrapper for inline badge */
.about__tagged {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}

/* Rotating badge with icon */
.about__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18em 0.28em;
  background: #0f0f0f;
  border-radius: 0.15em;
  transform: rotate(-6deg);
  transform-origin: center;
  flex-shrink: 0;
}

.about__badge svg {
  width: 0.65em;
  height: 0.65em;
  display: block;
}

/* ── Footer row: dots + CV button ───────────────────────── */
.about__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem; /* ~24px between dot groups and button */
}

.about__dots {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px between dots */
}

.about__dot {
  display: block;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #0f0f0f;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out calc(var(--i, 0) * 0.13s) infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(0.65); opacity: 0.45; }
}

.about__cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.375rem, 0.5vw, 0.625rem) clamp(1rem, 1.5vw, 1.75rem);
  background: #0f0f0f;
  color: #F6F6F6;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.04vw, 1.25rem);
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.about__cv:hover {
  background: #2a2a2a;
  transform: scale(1.04);
}

/* ── About responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__photo--b,
  .about__photo--c {
    display: none;
  }
}

@media (max-width: 640px) {
  .about {
    padding-inline: 1.5rem;
  }

  .about__photo--a,
  .about__photo--b,
  .about__photo--c {
    display: none;
  }
}

/* ── Hamburger button ────────────────────────────────────── */
.hero__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.hero__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Mobile menu overlay ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0f0f0f;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  cursor: pointer;
}

.mobile-menu__close span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

.mobile-menu__close span:first-child {
  transform: translateY(0.5px) rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: translateY(-0.5px) rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu__link {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: rgba(255,255,255,0.5);
}

/* Mobile (≤ 640px): minimal card margin, stacked nav */
@media (max-width: 640px) {
  .hero {
    width: calc(100% - 24px);
    height: calc(100dvh - 24px);
    margin: 12px auto;
    border-radius: 14px;
  }

  .hero__nav {
    padding: 1.25rem 1.5rem;
    justify-content: space-between;
  }

  /* Hide pills and contact on mobile — replaced by hamburger */
  .hero__nav-pills,
  .hero__contact {
    display: none;
  }

  .hero__hamburger {
    display: flex;
  }

  .hero__content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2rem;
  }

  .hero__line,
  .hero__label {
    white-space: normal;
  }
}

/* ── Section divider ─────────────────────────────────────── */
.section-divider {
  height: 1px;
  margin-inline: clamp(3rem, 8.33vw, 10rem);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 15, 15, 0.15) 20%,
    rgba(15, 15, 15, 0.25) 50%,
    rgba(15, 15, 15, 0.15) 80%,
    transparent 100%
  );
}

/* ============================================================
   Work section
   ============================================================ */
.work {
  padding: 5rem clamp(3rem, 8.33vw, 10rem) clamp(3rem, 5vw, 5rem);
}

.work__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
}

/* ── Section tag: [02] [Work] — mirrors About ─────────────── */
.work__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.work__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 3.33vw, 4rem);
  height: clamp(2.5rem, 3.33vw, 4rem);
  border-radius: 50%;
  background: #181818;
  color: #F6F6F6;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.67vw, 2rem);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.work__label {
  display: inline-flex;
  align-items: center;
  height: clamp(2.5rem, 3.33vw, 4rem);
  padding-inline: clamp(0.75rem, 1.5vw, 1.5rem);
  background: #E8E8E8;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.67vw, 2rem);
  font-weight: 400;
  color: #181818;
  line-height: 1;
}

/* ── Main layout: image left, boxes right ────────────────── */
.work__layout {
  display: flex;
  gap: clamp(1rem, 4.17vw, 5rem); /* ~80px at 1920px */
  align-items: flex-start;
}

/* ── Featured image card (left, 800×600 at design size) ──── */
.work__featured {
  position: relative;
  flex: 0 0 clamp(200px, 41.67vw, 800px); /* 800/1920 = 41.67vw */
  height: clamp(200px, 31.25vw, 600px);   /* 600/1920 = 31.25vw */
  border-radius: 25px;
  overflow: hidden;
  background: #2a2a2a; /* fallback */
}

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

.work__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(1rem, 2.08vw, 2.5rem); /* ~40px at 1920px */
}

.work__featured-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 5vw, 6rem); /* ~96px at 1920px */
  font-weight: 400;
  line-height: 1;
  color: #F6F6F6;
}

.work__featured-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 3.125vw, 60px);   /* 60px at 1920px */
  height: clamp(36px, 3.125vw, 60px);
  border-radius: 50%;
  background: #F6F6F6;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.work__featured-btn:hover {
  transform: scale(1.12);
  background: #56A64F;
}

.work__featured-btn svg {
  width: 48%;
  height: 48%;
  stroke: #181818;
  transition: stroke 0.25s ease;
}

.work__featured-btn:hover svg {
  stroke: #F6F6F6;
}

/* ── Two small boxes (side by side, 360×300 each at design size) */
.work__boxes {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: clamp(1rem, 4.17vw, 5rem); /* ~80px at 1920px */
  min-width: 0;
}

.work__box {
  flex: 1;
  min-width: 0;
  height: clamp(120px, 15.625vw, 300px); /* 300/1920 = 15.625vw */
  background: #D9D9D9;
  border-radius: 25px;
  text-decoration: none;
  color: #181818;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__box:hover {
  transform: scale(0.97);
}

/* Box with image + overlay (Mirror project) */
.work__box--card {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
  cursor: default;
}

.work__box--card:hover {
  transform: scale(0.97);
}

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

.work__box-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(0.75rem, 1.25vw, 1.5rem);
}

.work__box-overlay .work__featured-btn {
  position: absolute;
  bottom: clamp(0.75rem, 1.25vw, 1.5rem);
  right: clamp(0.75rem, 1.25vw, 1.5rem);
}

.work__box-title {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.875vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  color: #F6F6F6;
}

/* ── Pills (shared, used in card + modal) ────────────────── */
.work__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work__pill {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: #F6F6F6;
  color: #181818;
  line-height: 1;
}

/* ── View project button ─────────────────────────────────── */
.work__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(246, 246, 246, 0.5);
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.work__view-btn svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s, color 0.2s;
}

.work__view-btn:hover {
  color: #F6F6F6;
}

.work__view-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ── Modal / overlay ─────────────────────────────────────── */
.work__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.work__modal.is-open {
  display: flex;
}

.work__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.work__modal-panel {
  position: relative;
  background: #181818;
  color: #F6F6F6;
  border-radius: 25px;
  padding: clamp(2rem, 3.33vw, 4rem);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work__modal-panel::-webkit-scrollbar {
  display: none;
}

/* ── Modal image ─────────────────────────────────────────── */
.work__modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #2a2a2a;
}

.work__modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(246, 246, 246, 0.25);
  cursor: pointer;
  transition: background 0.25s ease;
}

.work__modal-close:hover {
  background: rgba(246, 246, 246, 0.1);
}

.work__modal-close svg {
  width: 1rem;
  height: 1rem;
  stroke: #F6F6F6;
}

.work__modal-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.33vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #F6F6F6;
}

.work__modal-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(246, 246, 246, 0.75);
}

.work__modal-extra-img {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
}

/* ── Modal tech stack icons ──────────────────────────────── */
.work__modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work__stack-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(246, 246, 246, 0.07);
  border: 1px solid rgba(246, 246, 246, 0.1);
  border-radius: 999px;
  padding: 0.3125rem 0.625rem 0.3125rem 0.4375rem;
}

.work__stack-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.work__stack-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(246, 246, 246, 0.8);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .work__layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .work__featured {
    flex: none;
    width: 100%;
    height: clamp(200px, 50vw, 500px);
  }

  .work__box {
    height: clamp(100px, 25vw, 240px);
  }
}

@media (max-width: 640px) {
  .work {
    padding-inline: 1.5rem;
  }

  .section-divider {
    margin-inline: 1.5rem;
  }

  .work__modal {
    padding: 0;
    align-items: flex-end;
  }

  .work__modal-panel {
    border-radius: 20px 20px 0 0;
    max-height: 90dvh;
    width: 100%;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  width: calc(100% - 80px);
  min-height: 72vh;
  margin: 0 auto 40px;
  border-radius: 25px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: clamp(2rem, 3.33vw, 4rem) clamp(2.5rem, 6.25vw, 7.5rem) clamp(2rem, 3.33vw, 4rem);
}

/* Ambient glow */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(15, 15, 15, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%,  rgba(15, 15, 15, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Footer nav ──────────────────────────────────────────── */
.footer__nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
}

.footer__logo-img {
  height: clamp(1.5rem, 2vw, 2.5rem);
  width: auto;
  display: block;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s ease;
}

.footer__link:hover {
  color: #fff;
}

/* ── Footer body — large heading + email CTA ─────────────── */
.footer__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.footer__line-wrap {
  overflow: hidden;
  line-height: 1;
  padding-bottom: 0.18em;
}

.footer__line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  letter-spacing: 0;
  line-height: 1;
}

.footer__line--serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* Email CTA — mirrors hero contact button style */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.25vw, 1.375rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 0.3em;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background-color: rgba(255, 255, 255, 0.06);
  gap: 0.4rem;
}

.footer__cta-arrow {
  display: block;
  opacity: 0;
  transform: translate(-6px, 6px);
  line-height: 1;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__cta:hover .footer__cta-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Footer bottom bar ───────────────────────────────────── */
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 3vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Contact modal ───────────────────────────────────────── */
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 2rem));
  background: #141414;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: contactPanelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes contactPanelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.contact-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-modal__close svg { width: 16px; height: 16px; }

.contact-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-modal__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #F6F6F6;
  line-height: 1.1;
}

.contact-modal__sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form__input {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #F6F6F6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-form__input::placeholder { color: rgba(255, 255, 255, 0.2); }

.contact-form__input:focus {
  border-color: rgba(86, 166, 79, 0.6);
  background: rgba(86, 166, 79, 0.04);
}

.contact-form__input--textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0;
  align-self: flex-end;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #141414;
  background: #F6F6F6;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form__submit:hover {
  background: #56A64F;
  color: #fff;
  gap: 0.4rem;
}

.contact-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-form__submit-arrow {
  display: block;
  line-height: 1;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form__submit:hover .contact-form__submit-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.contact-modal__success[hidden] { display: none; }

.contact-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}

.contact-modal__success svg { width: 48px; height: 48px; }

.contact-modal__success p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-footer {
    width: calc(100% - 48px);
    margin-bottom: 24px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    width: calc(100% - 24px);
    margin-bottom: 12px;
    border-radius: 14px;
    padding-inline: 1.5rem;
    min-height: unset;
    padding-block: 2rem;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer__links {
    gap: 1rem;
  }

  .footer__line {
    white-space: normal;
  }

  .footer__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .footer__cta {
    align-self: flex-start;
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
    margin-bottom: 0;
  }

  .footer__bottom {
    margin-top: 2rem;
  }
}
