/* =========================================
   GOOGLE FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* =========================================
   DESIGN TOKENS — LIGHT MODE
   ========================================= */
:root {
  --bg:          #FFFFFF;
  --surface:     #F8F8F8;
  --primary:     #222222;
  --secondary:   #7B7B7B;
  --border:      #E8E8E8;
  --nav-bg:      rgba(255,255,255,0.88);
  --card-bg:     #F8F8F8;
  --input-bg:    #F8F8F8;
  --input-focus: #FFFFFF;

  --font: 'DM Sans', sans-serif;

  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 12px;
}

/* =========================================
   DARK MODE TOKENS
   ========================================= */
html.dark {
  --bg:          #111111;
  --surface:     #1A1A1A;
  --primary:     #F0F0F0;
  --secondary:   #888888;
  --border:      #2E2E2E;
  --nav-bg:      rgba(17,17,17,0.88);
  --card-bg:     #1A1A1A;
  --input-bg:    #222222;
  --input-focus: #2A2A2A;
}

/* System dark mode — used when no manual preference is stored */
@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) {
    --bg:          #111111;
    --surface:     #1A1A1A;
    --primary:     #F0F0F0;
    --secondary:   #888888;
    --border:      #2E2E2E;
    --nav-bg:      rgba(17,17,17,0.88);
    --card-bg:     #1A1A1A;
    --input-bg:    #222222;
    --input-focus: #2A2A2A;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: var(--sp-2);
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.scrolled { border-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Logo image wrapper — two images fade between modes */
.nav__logo-img-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s ease;
}

.nav__logo-img--light { opacity: 1; }
.nav__logo-img--dark  { opacity: 0; }
html.dark .nav__logo-img--light { opacity: 0; }
html.dark .nav__logo-img--dark  { opacity: 1; }

/* In dark mode, fade the dark logo's square edges into the nav background
   so the black tile doesn't read as a hard square against the dark bg */
.nav__logo-img--dark {
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 100%);
  mask-image: radial-gradient(circle, #000 58%, transparent 100%);
}

.nav__logo-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__links a {
  font-size: 14px;
  color: var(--secondary);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Language toggle (EN / SR) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--secondary);
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--primary);
  background: var(--surface);
}

.theme-toggle svg { width: 18px; height: 18px; }

.icon-sun  { display: none; }
.icon-moon { display: block; }

html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none; }

/* CTA */
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 9px 20px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--primary);
  color: var(--bg);
}

/* =========================================
   HERO — full-viewport, no container constraint
   ========================================= */
.hero {
  height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--sp-10);
  padding-right: var(--sp-6);
  padding-left: max(var(--sp-5), calc((100vw - var(--max-w)) / 2 + var(--sp-5)));
}

.hero__meta {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-5);
}

.hero__stat-number {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.hero__headline {
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: var(--sp-4);
}

.hero__subtitle {
  font-size: 15px;
  color: var(--secondary);
}

.hero__subtitle-note {
  font-size: 13.5px;
  color: var(--secondary);
  opacity: 0.85;
  margin-top: 10px;
}

.hero__subtitle em {
  font-style: normal;
  color: var(--primary);
}

/* Photo — right column fills full viewport height */
.hero__right {
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Left-edge gradient: blends photo into page background */
.hero__right::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 140px;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Bottom-edge gradient: blends into next section */
.hero__right::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 126px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Light mode — 50% weaker fade (the dark-bg photo doesn't apply here, so less blending needed) */
html.light .hero__right::before { width: 70px; }
html.light .hero__right::after  { height: 63px; }

.hero__photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.6s ease;
}

/* Top-edge fade — kills the hard line where the photo meets the page bg */
.hero__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.hero__photo-wrap.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Two photos stacked — swap on theme toggle */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.5s ease;
}

.hero__photo--light { opacity: 1; }
.hero__photo--dark  { opacity: 0; }
html.dark .hero__photo--light { opacity: 0; }
html.dark .hero__photo--dark  { opacity: 1; }

/* Subtitle action buttons (how-it-works + view-projects) */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}

.hero__btn:hover { opacity: 0.88; transform: translateY(-2px); }

.hero__btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.hero__btn--ghost:hover { opacity: 1; border-color: var(--primary); }

/* Project buttons sitting on top of the hero photo, flanking the hair.
   The photo's corners are WHITE in light mode and near-BLACK in dark mode,
   so the pill style flips per theme to stay readable on both. */
.hero__photo-btn {
  position: absolute;
  z-index: 10;
  top: 12%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, background 0.2s ease;
}

html.dark .hero__photo-btn {
  background: rgba(245, 245, 245, 0.9);
  color: #161616;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero__photo-btn--left  { left: 6%;  transform: rotate(-7deg); }
.hero__photo-btn--right { right: 6%; transform: rotate(7deg); }

.hero__photo-btn--left:hover  { transform: rotate(-7deg) translateY(-3px); }
.hero__photo-btn--right:hover { transform: rotate(7deg) translateY(-3px); }

.hero__photo-btn-arrow { font-size: 12px; opacity: 0.85; }

/* Side labels */
.hero__role-label {
  position: absolute;
  left: var(--sp-2);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__year {
  position: absolute;
  bottom: var(--sp-5);
  left: max(var(--sp-5), calc((100vw - var(--max-w)) / 2 + var(--sp-5)));
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

/* =========================================
   HOW IT WORKS — STEPS SECTION
   ========================================= */
.steps-section {
  /* Fixed dark section — intentional contrast in both light and dark mode */
  --wrap-h:    85vh;
  --top-base:  96px;
  --top-step:  28px;

  --steps-bg:  #111111;

  /* Monochromatic card palette */
  --card-1-bg:      #1C1A22;
  --card-1-text:    #F0EAE0;
  --card-1-panel:   rgba(28, 26, 34, 0.85);
  --card-1-mute:    rgba(240,234,224,0.55);
  --card-1-divider: rgba(240,234,224,0.15);

  --card-2-bg:      #2D2A31;
  --card-2-text:    #F0EAE0;
  --card-2-panel:   rgba(32, 29, 36, 0.78);
  --card-2-mute:    rgba(240,234,224,0.55);
  --card-2-divider: rgba(240,234,224,0.15);

  --card-3-bg:      #222222;
  --card-3-text:    #F8F8F8;
  --card-3-panel:   rgba(34, 34, 34, 0.55);
  --card-3-mute:    rgba(248,248,248,0.55);
  --card-3-divider: rgba(248,248,248,0.15);

  background: var(--steps-bg);
  padding: 80px 20px 100px;
  border-top-left-radius: 56px;
  border-top-right-radius: 56px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px)  { .steps-section { padding: 120px 32px 120px; } }
@media (min-width: 1024px) { .steps-section { padding: 160px 40px 140px; } }

.steps-title {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  margin-bottom: 64px;
  color: #F0EAE0;
  font-size: clamp(3rem, 10vw, 120px);
}

.steps-title-smile {
  color: rgba(240,234,224,0.45);
  font-style: normal;
}

@media (min-width: 768px) { .steps-title { margin-bottom: 120px; } }

/* Stack container */
.step-stack { position: relative; }

/* Outer wrap — sticky, provides scroll budget */
.step-wrap {
  height: var(--wrap-h);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: sticky;
  top: 0;
}

/* Last card (03) is the tallest (has the screenshot) — give it extra scroll
   budget so it fully clears before the About section, no overlap */
.step-wrap:last-child {
  height: 120vh;
}

/* Inner card — sticky with per-card top offset */
.step-card {
  width: 100%;
  max-width: 1120px;
  min-height: 520px;
  position: sticky;
  border: 1.5px solid var(--card-divider, rgba(0,0,0,0.1));
  border-radius: 36px;
  padding: 16px;
  background: var(--card-bg);
  color: var(--card-text);
  transform-origin: top center;
  will-change: transform;
  /* GPU layer for crisp text during scale */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 640px)  { .step-card { border-radius: 46px; padding: 24px; } }
@media (min-width: 1024px) { .step-card { border-radius: 56px; padding: 32px; } }

/* Card background images — clipped to rounded corners, all 3 cards */
.step-card.card-1,
.step-card.card-2,
.step-card.card-3 { overflow: hidden; }

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Default overlay — dark tint for readability */
.card-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
  pointer-events: none;
}

/* Per-card overlay tuning — yeah35 has bright highlights, needs more dampening */
.step-card.card-1 .card-bg-overlay { background: rgba(0, 0, 0, 0.30); }
.step-card.card-2 .card-bg-overlay { background: rgba(0, 0, 0, 0.28); }
.step-card.card-3 .card-bg-overlay { background: rgba(0, 0, 0, 0.42); }

/* Content sits above bg + overlay on every card */
.step-card.card-1 > .step-head,
.step-card.card-1 > .step-body,
.step-card.card-2 > .step-head,
.step-card.card-2 > .step-body,
.step-card.card-3 > .step-head,
.step-card.card-3 > .step-body {
  position: relative;
  z-index: 2;
}

/* Per-card color bindings */
.step-card.card-1 {
  --card-bg: var(--card-1-bg); --card-text: var(--card-1-text);
  --card-panel: var(--card-1-panel); --card-mute: var(--card-1-mute);
  --card-divider: var(--card-1-divider);
}
.step-card.card-2 {
  --card-bg: var(--card-2-bg); --card-text: var(--card-2-text);
  --card-panel: var(--card-2-panel); --card-mute: var(--card-2-mute);
  --card-divider: var(--card-2-divider);
}
.step-card.card-3 {
  --card-bg: var(--card-3-bg); --card-text: var(--card-3-text);
  --card-panel: var(--card-3-panel); --card-mute: var(--card-3-mute);
  --card-divider: var(--card-3-divider);
}

/* Card header */
.step-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 8px 20px;
}

@media (min-width: 768px) {
  .step-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 16px 14px;
  }
}

.step-head-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-num {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: -0.03em;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--card-text);
}

.step-label {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  color: var(--card-mute);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.step-name {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.1;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  color: var(--card-text);
  letter-spacing: -0.02em;
}

.step-cta {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--card-text);
  color: var(--card-text);
  background: transparent;
  border-radius: 100px;
  transition: background .2s, color .2s;
  align-self: flex-start;
  white-space: nowrap;
}

.step-cta:hover { background: var(--card-text); color: var(--card-bg); }

/* Card body — frosted glass over the card's bg image */
.step-body {
  background: var(--card-panel);
  border: 1px solid var(--card-divider);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 768px) { .step-body { border-radius: 38px; padding: 30px; } }

.step-body--with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .step-body--with-image {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }
}

/* Inside the side-by-side text+image layout, the bullet list stacks vertically
   instead of falling into the global 2-column grid (the text column is too narrow) */
.step-body--with-image .step-list {
  grid-template-columns: 1fr;
}

.step-body--with-image .step-list li:nth-child(2) {
  border-top: 1px solid var(--card-divider);
}

.step-summary {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--card-text);
  margin-bottom: 20px;
  max-width: 58ch;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px 28px;
}

@media (min-width: 640px) { .step-list { grid-template-columns: 1fr 1fr; } }

.step-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--card-divider);
}

.step-list li:first-child,
.step-list li:nth-child(2) { border-top: none; }

@media (max-width: 639px) {
  .step-list li:nth-child(2) { border-top: 1px solid var(--card-divider); }
}

.bullet-num {
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--card-text);
  opacity: 0.4;
  width: 22px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.bullet-text {
  font-family: var(--font);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--card-text);
}

/* VS Code preview image */
.step-preview-wrap {
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) { .step-preview-wrap { border-radius: 20px; } }

.step-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Info groups with Required / Optional badges — used in card 01 */
.step-info-group { margin-top: 28px; }

/* Side-by-side groups (must-haves | optional) on ALL sizes — keeps card 01
   short on mobile so every item stays visible while the card is pinned */
.step-info-groups-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .step-info-groups-wrap { gap: 40px; }
}

/* First group inside the wrap shouldn't have an extra top margin */
.step-info-groups-wrap .step-info-group { margin-top: 0; }

/* Inside the side-by-side groups, lists are always single-column */
.step-info-groups-wrap .step-list {
  grid-template-columns: 1fr;
}
.step-info-groups-wrap .step-list li:nth-child(2) {
  border-top: 1px solid var(--card-divider);
}

/* On narrow phones, tighten the bullets so the two columns fit comfortably */
@media (max-width: 520px) {
  .step-info-groups-wrap .bullet-num { width: 16px; }
  .step-info-groups-wrap .step-list li { gap: 8px; padding: 6px 0; }
  .step-info-groups-wrap .bullet-text { font-size: 0.82rem; line-height: 1.4; }
  .step-info-groups-wrap { gap: 14px; }
}

.step-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-info-title {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-mute);
}

.step-badge {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.step-badge--required {
  background: var(--card-text);
  color: var(--card-bg);
}

.step-badge--optional {
  border: 1px solid var(--card-divider);
  color: var(--card-mute);
}

/* Screenshot boxes — card 03 */
.step-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

/* Single full-width screenshot variant (GoDaddy cart) */
.step-screenshots--single {
  display: block;
  margin: 24px 0 0;
}

/* Cap height so the tall cart screenshot doesn't balloon card 03 — show the
   top of the cart (domain + order summary, the important part) */
.step-screenshots--single .step-screenshot-box {
  max-height: 320px;
}

.step-screenshots--single .step-screenshot-box img {
  object-position: top center;
}

.step-screenshot-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-divider);
  background: var(--card-panel);
}

.step-screenshot-box img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.step-screenshot-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--card-mute);
  text-align: center;
}

/* Reduced motion — cancel scale + fade-up animations */
@media (prefers-reduced-motion: reduce) {
  .step-card {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* =========================================
   INTAKE / INFO FORM — dark, frosted, follows the steps section
   ========================================= */
.intake {
  position: relative;
  overflow: hidden;
  background: #111111;
  color: #F0EAE0;
  padding: var(--sp-12) 0 var(--sp-16);
}

/* Same yeah35 pattern as card 03, blurred into a soft backdrop */
.intake__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.7);
  transform: scale(1.08); /* hide blurred edges */
  z-index: 0;
  pointer-events: none;
}

.intake__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.78);
  z-index: 1;
}

.intake__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.intake__label { color: rgba(240, 234, 224, 0.55); }

.intake__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--sp-2);
}

.intake__subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 234, 224, 0.7);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

/* Frosted form panel — same material as the card 03 body */
.intake-form {
  background: rgba(34, 34, 34, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(248, 248, 248, 0.12);
  border-radius: 24px;
  padding: var(--sp-6);
}

@media (max-width: 600px) {
  .intake-form { padding: var(--sp-4); border-radius: 18px; }
}

.intake-group + .intake-group {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(248, 248, 248, 0.1);
}

.intake-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}

/* Field grid */
.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

@media (max-width: 600px) {
  .intake-row { grid-template-columns: 1fr; }
}

.intake-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--sp-3);
}

.intake-row .intake-field { margin-bottom: 0; }
.intake-row + .intake-field,
.intake-row + .intake-row { margin-top: var(--sp-3); }

.intake-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 234, 224, 0.7);
}

.intake-hint {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(240, 234, 224, 0.4);
  font-weight: 400;
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid rgba(248, 248, 248, 0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: #F0EAE0;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  resize: none;
}

.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: rgba(240, 234, 224, 0.38);
}

.intake-field input:focus,
.intake-field textarea:focus {
  border-color: rgba(240, 234, 224, 0.6);
  background: rgba(17, 17, 17, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 234, 224, 0.07);
}

.intake-field textarea { min-height: 120px; }

/* File inputs */
.intake-field input[type="file"] {
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(240, 234, 224, 0.6);
  cursor: pointer;
}

.intake-field input[type="file"]::file-selector-button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  background: #F0EAE0;
  border: 0;
  border-radius: 100px;
  padding: 7px 16px;
  margin-right: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.intake-field input[type="file"]::file-selector-button:hover { opacity: 0.85; }

/* Submit */
.intake-submit {
  margin-top: var(--sp-5);
  background: #F0EAE0;
  color: #1C1A22;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.intake-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.intake-submit:active { transform: translateY(0); }

/* Success */
.intake-success {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: 15px;
  color: rgba(240, 234, 224, 0.85);
}

.intake-success.is-visible { display: flex; }

/* Submission error message (both forms) */
.form-error {
  margin-top: var(--sp-2);
  font-size: 14px;
  line-height: 1.5;
  color: #e06a6a;
}

.intake-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(240, 234, 224, 0.7);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Free-text inquiry field — separated from the field groups above */
.intake-field--inquiry {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(248, 248, 248, 0.1);
}

/* =========================================
   WHY ME / COMPARISON
   ========================================= */
.why {
  padding: var(--sp-16) 0;
  background: var(--bg);
}

.why__heading {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: var(--sp-1);
  max-width: 16ch;
}

.why__intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--secondary);
  max-width: 62ch;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Highlighted "me" card — inverted to stand out */
.compare-card--me {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-8px);
}

.compare-card__badge {
  position: absolute;
  top: -11px;
  left: var(--sp-4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
}

.compare-card__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.compare-card--me .compare-card__name { color: rgba(255, 255, 255, 0.55); }
html.dark .compare-card--me .compare-card__name { color: rgba(0, 0, 0, 0.5); }

.compare-card__fee {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
}

.compare-card__fee span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--secondary);
}

.compare-card--me .compare-card__fee { color: var(--bg); }
.compare-card--me .compare-card__fee span { color: rgba(255, 255, 255, 0.6); }
html.dark .compare-card--me .compare-card__fee span { color: rgba(0, 0, 0, 0.55); }

.compare-card__note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--secondary);
  margin-top: auto;
}

.compare-card--me .compare-card__note { color: rgba(255, 255, 255, 0.7); }
html.dark .compare-card--me .compare-card__note { color: rgba(0, 0, 0, 0.65); }

.why__footnote {
  font-size: 12px;
  color: var(--secondary);
  margin-top: var(--sp-5);
  opacity: 0.8;
}

@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .why__grid { grid-template-columns: 1fr; }
  .compare-card--me { transform: none; }
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  padding: var(--sp-16) 0;
  background: var(--bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-12);
  align-items: center;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.about__stat-item {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-3);
}

.about__stat-number {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}

.about__stat-label {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about__heading {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about__bio {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.75;
  max-width: 52ch;
}

.about__skills {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

.skill { display: flex; flex-direction: column; gap: 8px; }

.skill__header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.skill__pct { color: var(--secondary); font-weight: 400; }

.skill__bar {
  height: 1.5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  background: var(--primary);
  width: 0;
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* My capabilities list */
.about__caps { margin-top: var(--sp-1); }

.about__caps-title {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}

.about__caps-list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-4);
}

.about__caps-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--primary);
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.about__caps-list li:first-child { border-top: none; }

.about__caps-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.about__caps-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary);
}

/* =========================================
   WORKS
   ========================================= */
.works {
  padding: var(--sp-16) 0;
  background: var(--surface);
}

.works__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
}

.works__heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-top: var(--sp-1);
}

.works__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  margin-bottom: 4px;
}

.works__link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.work-card {
  display: block;
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.work-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--card-bg);
}

/* Project hero screenshot — fills the card, full image visible (matches 16:9 source) */
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card__img {
  transform: scale(1.03);
}

.work-card__body { padding: var(--sp-2) 0; }

.work-card__tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.work-card__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.work-card:hover .work-card__title { color: var(--secondary); }

.work-card__arrow {
  display: inline-block;
  font-size: 13px;
  margin-left: 6px;
  transition: transform 0.2s;
}

.work-card:hover .work-card__arrow { transform: translate(3px, -3px); }

/* =========================================
   PROJECTS MODAL — pops in over "View all projects ↗"
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--sp-3);
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

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

.modal__content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.modal[aria-hidden="false"] .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}

.modal__close:hover {
  color: var(--primary);
  background: var(--surface);
}

.modal__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: var(--sp-1);
}

.modal__subtitle {
  font-size: 14px;
  color: var(--secondary);
  margin-top: 10px;
  margin-bottom: var(--sp-5);
}

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

/* Featured full-stack project block */
.modal-featured {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  background: var(--surface);
}

.modal-featured__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--primary);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: var(--sp-2);
}

.modal-featured__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.modal-featured__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 60ch;
  margin-bottom: var(--sp-4);
}

.modal-featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

/* Divider between featured block and the standard grid */
.modal__divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal__divider::before,
.modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.modal-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.modal-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--card-bg);
}

.modal-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-card:hover .modal-card__img {
  transform: scale(1.04);
}

.modal-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-card__tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.modal-card__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.modal-card__arrow {
  font-size: 13px;
  color: var(--secondary);
  transition: transform 0.2s, color 0.2s;
}

.modal-card:hover .modal-card__arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* Lock body scroll while modal is open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal__content { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
  .modal__grid { grid-template-columns: 1fr; }
  .modal-featured__grid { grid-template-columns: 1fr; }
  .modal-featured { padding: var(--sp-3); }
}

/* =========================================
   CONTACT FORM SECTION
   ========================================= */
.contact-form-section {
  padding: var(--sp-16) 0;
  background: var(--bg);
}

.contact-form-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--primary);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(34,34,34,0.06);
}

html.dark .form-group input:focus,
html.dark .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(240,240,240,0.06);
}

.form-group textarea { min-height: 160px; }

.form-submit {
  align-self: flex-start;
  margin-top: var(--sp-1);
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 36px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.form-submit:hover { opacity: 0.82; transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

/* Success state */
.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: 15px;
  color: var(--secondary);
  padding: var(--sp-4) 0;
}

.form-success.is-visible { display: flex; }

.form-success__icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #111111;
  color: #F0F0F0;
  padding: var(--sp-12) 0 var(--sp-6);
}

html.dark .footer {
  background: #0A0A0A;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
}

.footer__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.4);
}

.footer__heading {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 680px;
}

/* Email row — text + icon side by side */
.footer__email-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__email-text {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  color: rgba(240,240,240,0.65);
  border-bottom: 1px solid rgba(240,240,240,0.25);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.footer__email-text:hover {
  color: #F0F0F0;
  border-color: #F0F0F0;
}

.footer__email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240,240,240,0.25);
  border-radius: 50%;
  color: rgba(240,240,240,0.65);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.footer__email-icon:hover {
  color: #F0F0F0;
  border-color: #F0F0F0;
  background: rgba(240,240,240,0.06);
}

.footer__email-icon svg { width: 18px; height: 18px; }

/* Socials */
.footer__socials {
  display: flex;
  gap: var(--sp-2);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(240,240,240,0.65);
  border: 1px solid rgba(240,240,240,0.2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social svg { width: 19px; height: 19px; }

.footer__social:hover {
  color: #F0F0F0;
  border-color: #F0F0F0;
  background: rgba(240,240,240,0.06);
}

/* Bottom rule */
.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(240,240,240,0.08);
  margin-top: var(--sp-3);
}

.footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(240,240,240,0.28);
  letter-spacing: 0.03em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .nav__links { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--nav-h));
  }

  /* Kill the side gradient on mobile — photo is full-width, no left edge to blend */
  .hero__right::before { width: 0; }
  /* Much smaller bottom fade — just a soft edge into the text */
  .hero__right::after  { height: 56px; }

  .hero__right {
    order: -1;
    height: 78vw;
    max-height: 520px;
  }

  .hero__left {
    padding-bottom: var(--sp-3);
    padding-right: var(--sp-3);
    padding-left: var(--sp-3);
  }

  /* Tighten the dead space between hero and the "Zašto ja" section */
  .why { padding-top: var(--sp-8); }

  .hero__role-label,
  .hero__year { display: none; }

  /* Smaller project buttons on the (shorter, full-width) mobile photo */
  .hero__photo-btn {
    font-size: 11px;
    padding: 6px 11px;
    top: 9%;
  }
  .hero__photo-btn--left  { left: 3%; }
  .hero__photo-btn--right { right: 3%; }

  .about__inner { grid-template-columns: 1fr; gap: var(--sp-8); }

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

@media (max-width: 768px) {
  /* All 3 cards sticky-stack on mobile (full animation). The wraps get a long
     scroll budget so every card has room, and the last card has extra so it
     fully clears before the form section below (no overlap). */
  .step-wrap { height: 135vh; }
  .step-wrap:last-child { height: 165vh; }

  /* Smaller top offsets on mobile so more of each card sits above the fold */
  .step-wrap:nth-child(1) .step-card { top: 76px !important; }
  .step-wrap:nth-child(2) .step-card { top: 98px !important; }
  .step-wrap:nth-child(3) .step-card { top: 120px !important; }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--sp-3); }

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

  .works__header { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  .form-row { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; gap: var(--sp-1); text-align: center; }

}
