/* =========================================================
   ANA TODOROVIC — PORTFOLIO  (Responsive Refinement)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   TOKENS
   ========================================================= */

:root {
  --bg-a: #E8E8E4;
  --bg-b: #FBFAF7;

--text: #181818;
--text-soft: #181818;
--text-muted: #181818;

  --accent: #234E52;
  --accent-hover: #FC70FC;

  --border: rgba(26,26,26,0.09);
  --border-mid: rgba(26,26,26,0.15);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10), 0 6px 20px rgba(0,0,0,0.05);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.16,1,0.3,1);

 --font-serif: Georgia, 'Times New Roman', serif;
--font-body: 'DM Sans', sans-serif;

  /* ── Type scale — Desktop 1280px+ ── */
  --fs-h1:    66px;
  --fs-h2:    42px;
  --fs-h3:    28px;
  --fs-h4:    22px;
  --fs-h5:    18px;
  --fs-h6:    16px;
  --fs-title: 18px;
  --fs-body:  16px;
  --fs-label: 12px;
  --fs-btn:   14px;
  --btn-h:    48px;

  /* ── Spacing scale — fluid with clamp() ── */
  --space-section:    clamp(48px, 8vw,  96px);
  --space-section-sm: clamp(40px, 6vw,  80px);
  --space-block:      clamp(46px, 5vw,  64px);
  --space-card-gap:   clamp(12px, 2vw,  24px);
  --space-element:    clamp(10px, 1.5vw, 16px);
  --space-tight:      clamp(6px,  1vw,   8px);

   --gutter-lg: clamp(40px, 5.5vw, 80px);
  --gutter-sm: clamp(32px, 4vw,   48px);
    --mobile-menu-pad: calc(var(--gutter-lg) / 2);
}

/* ── Laptop 1024–1280px ── */
@media (max-width: 1280px) {
  :root {
    --fs-h1:    60px;
    --fs-h2:    42px;
    --fs-h3:    26px;
    --fs-h4:    20px;
    --fs-h5:    18px;
    --fs-h6:    16px;
    --fs-title: 18px;
    --fs-body:  16px;
    --fs-label: 12px;
    --fs-btn:   14px;
    --btn-h:    48px;
  }
}

/* ── Tablet 768–1024px ── */
@media (max-width: 1024px) {
  :root {
    --fs-h1:    46px;
    --fs-h2:    34px;
    --fs-h3:    24px;
    --fs-h4:    20px;
    --fs-h5:    16px;
    --fs-h6:    14px;
    --fs-title: 16px;
    --fs-body:  14px;
    --fs-label: 12px;
    --fs-btn:   16px;
    --btn-h:    46px;
  }
}

/* ── Mobile Large 480–768px ── */
@media (max-width: 768px) {
  :root {
    --fs-h1:    38px;
    --fs-h2:    28px;
    --fs-h3:    21px;
    --fs-h4:    18px;
    --fs-h5:    16px;
    --fs-h6:    14px;
    --fs-title: 16px;
    --fs-body:  14px;
    --fs-label: 10px;
    --fs-btn:   15px;
    --btn-h:    44px;
  }
}

/* ── Mobile Small <480px ── */
@media (max-width: 480px) {
  :root {
    --fs-h1:    32px;
    --fs-h2:    26px;
    --fs-h3:    19px;
    --fs-h4:    16px;
    --fs-h5:    14px;
    --fs-h6:    14px;
    --fs-title: 14px;
    --fs-body:  14px;
    --fs-label: 10px;
   --fs-btn:   15px;
    --btn-h:    44px;
  }
}

/* =========================================================
   RESET
   ========================================================= */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
a, button, .nav-link, .hamburger, .mobile-menu-close {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html {
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg-a);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  overflow-x: hidden;
}

img { width:100%; display:block; object-fit:cover; }
a { text-decoration:none; color:inherit; }

/* Global uppercase OFF except .cs-label (and explicit label classes) */
h1, h2, h3, h4, h5, h6, p, a, button, span, div { text-transform: none; }

/* =========================================================
   GRAIN
   ========================================================= */

body::before {
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
  opacity:0.02;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px;
}

/* =========================================================
   CONTAINER UTILITY
   ========================================================= */

.container,
.hero-modern-inner,
.about-snap-inner,
.projects-inner,
.about-hero-inner,
.journey-inner,
.tools-inner,
.projects-page-hero-inner,
.projects-page-grid-inner {
  width: min(1200px, calc(100% - var(--gutter-lg)));
  margin-inline: auto;
}

.cs-body,
.next-project {
  width: min(1200px, calc(100% - var(--gutter-sm)));
  margin-inline: auto;
}

.cs-hero {
  width: min(1280px, calc(100% - var(--gutter-lg)));
  margin-inline: auto;
}

/* =========================================================
   NAVBAR — Transparent over hero, glass on scroll
   ========================================================= */
.container,
.hero-modern-inner,
.about-snap-inner,
.projects-inner,
.about-hero-inner,
.journey-inner,
.tools-inner,
.projects-page-hero-inner,
.projects-page-grid-inner,
.navbar-inner {
  width: min(1200px, calc(100% - var(--gutter-lg)));
  margin-inline: auto;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;              /* was: 22px clamp(20px, 5vw, 56px) */
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  width: 100%;
  transition: background 0.45s var(--ease),
              box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease),
              padding 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease);
}

.navbar-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-width: 0;
}
.navbar-inner { min-width: 0; }
.navbar.scrolled {
  padding: 6px 0;
  background: rgba(250,248,245,0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
}
/* ── Logo — pinned to a fixed-height box, vertically centered ── */
.logo {
  display: flex;
  align-items: center;
  height: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo-link .link-default,
.logo-link .link-hover {
  display: block;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              opacity 0.5s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.logo-link .link-hover {
  position: absolute;
  left: 0;
  transform: translateY(100%);
  opacity: 0;
  white-space: nowrap;
  color: var(--text);
}

.logo-link:hover .link-default {
  transform: translateY(-100%);
  opacity: 0;
}

.logo-link:hover .link-hover {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 480px) {
  .logo-link { font-size: 16px; }
}
.nav-center {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  grid-column: 2;
  min-width: 0;
  margin-right: -16px;
}
.logo a {
  display: flex;
}

/* ── Nav links ── */
.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: color 0.3s;
}

.nav-link::after { display: none; }

.nav-link .link-default,
.nav-link .link-hover {
  display: block;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              opacity 0.5s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.nav-link .link-hover {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  white-space: nowrap;
  color: var(--text);
}

.nav-link:hover .link-default {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-link:hover .link-hover {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: transparent;
}

/* =========================================================
   WORK TOGETHER CTA — premium closing card
   ========================================================= */

.work-cta {
  background: var(--bg-b);
  padding: var(--space-section) clamp(20px, 3vw, 24px);
}

.work-cta-inner {
  width: min(1200px, calc(100% - var(--gutter-lg)));
  margin: auto;
  text-align: center;               /* was: left */
  display: flex;
  flex-direction: column;           /* was: row */
  align-items: center;              /* was: stretch/space-between */
  justify-content: center;
  gap: 20px;
  background: var(--bg-a);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.work-cta-text { max-width: 640px; text-align: center; }

.work-cta-headline { text-align: center; }

.work-cta-sub { margin: 0 auto; text-align: center; }

.work-cta-actions {
  flex-direction: row;
  justify-content: center;
}
.work-cta-highlight {
  color: var(--accent);   /* or var(--accent-hover) if you want pink */
}

.work-cta-text {
  max-width: 640px;
}

/* soft glow accent top */
.work-cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 320px;
  height: 280px;
  background: radial-gradient(circle, rgba(35,78,82,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.work-cta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(35,78,82,0.06);
  border: 1px solid rgba(35,78,82,0.18);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.work-cta-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: hero-pulse 2s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

.work-cta-headline {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.work-cta-sub {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 46ch;
  margin: -24px 0 0;
  position: relative;
  z-index: 1;
}

.work-cta-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 24px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.work-cta-actions .btn-primary,
.work-cta-actions .btn-secondary {
  min-width: 220px;
  padding: 0 clamp(32px, 3.5vw, 48px);
}
.work-cta-actions .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}



.work-cta-actions .btn-secondary:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}



.work-cta-email {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.work-cta-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
  .work-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .work-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .work-cta-actions .btn-primary,
  .work-cta-actions .btn-secondary {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .work-cta-sub { margin-bottom: 24px; }
  .work-cta-actions {
     gap: 16px; 
     margin-top: 16px;
    }
  
}

/* =========================================================
   HAMBURGER
   ========================================================= */


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: -9px;   /* pulls the visible bars flush to the container edge */
  z-index: 10001;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   MOBILE MENU — fullscreen, slides from top
   ========================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-a);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1),
              opacity 0.35s ease;
  padding: 0;
}

.mobile-menu.open {
  max-height: 100vh;
  opacity: 1;
}

/* ── Header row: logo + close (X) ── */
.mobile-menu-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--mobile-menu-pad);
  flex-shrink: 0;
}

.mobile-menu-logo .logo-link { font-size: 18px; }

.mobile-menu-close {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin-right: -8px;   /* pulls the X flush to the same edge as the hamburger */
}
.mobile-menu-close span {
  position: absolute;
  width: 24px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }

/* ── Numbered nav list ── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 6vw, 48px) var(--mobile-menu-pad) 0;
}

.mobile-nav .nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: left;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 36px 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}
@media (max-width: 480px) {
  .mobile-nav .nav-link { font-size: 26px; }
}
.mobile-nav .nav-link::before {
  content: attr(data-index);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.mobile-nav .nav-link:hover { color: var(--accent); }

.mobile-nav .nav-link::after { display: none; }

.mobile-nav .nav-link .link-default,
.mobile-nav .nav-link .link-hover {
  display: inline;
  position: static;
  transform: none;
  opacity: 1;
  transition: none;
}
.mobile-nav .nav-link .link-hover { display: none; }
.mobile-nav .nav-link:hover .link-default { transform: none; opacity: 1; }

.mobile-menu.open .mobile-nav .nav-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav .nav-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav .nav-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav .nav-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

/* ── Footer: LinkedIn + email ── */
.mobile-menu-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(40px, 10vh, 30px);  
  padding: 8px var(--mobile-menu-pad) 8px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.mobile-menu.open .mobile-menu-contacts {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-contacts a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-decoration: none;
}

.mobile-menu-contacts a:hover { color: var(--accent); }

.contact-page .mobile-menu {
  background: #FBFAF7;
}

/* =========================================================
   SHARED UTILITIES
   ========================================================= */

.cs-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase !important;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: none;
}

/* =========================================================
   BUTTONS — global pill style, always green, pink on hover
   ========================================================= */

.btn-primary,
.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 clamp(20px, 2.5vw, 32px);
  color: #FBFAF7;
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: none;
  cursor: pointer;
  border: none;
  background: var(--accent);
  overflow: hidden;
  isolation: isolate;
    transition: box-shadow 0.35s var(--ease);
}

.btn-primary::before,
.hero-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-hover);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.btn-primary:hover::before,
.hero-button:hover::before {
  transform: translateY(0);
}

.btn-primary .btn-text,
.hero-button .btn-text {
  position: relative;
  display: block;
  z-index: 1;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.btn-primary .btn-text-default,
.hero-button .btn-text-default {
  transform: translateY(0);
  opacity: 1;
}

.btn-primary:hover .btn-text-default,
.hero-button:hover .btn-text-default {
  transform: translateY(-130%);
  opacity: 0;
}

.btn-primary .btn-text-hover,
.hero-button .btn-text-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(130%);
  opacity: 0;
}

.btn-primary:hover .btn-text-hover,
.hero-button:hover .btn-text-hover {
  transform: translateY(0);
  opacity: 1;
}

.btn-primary:hover,
.hero-button:hover {
  color: #FBFAF7;

}



.btn-ghost,
.hero-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 clamp(20px, 2.5vw, 32px);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: none;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: pointer;
}

.btn-ghost:hover,
.hero-button-ghost:hover {
  border-color: var(--accent-hover);
  color: #FBFAF7;
  background: var(--accent-hover);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 clamp(28px, 3.5vw, 44px);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}
/* ── Make "See my work" (hero primary button) match secondary button width ── */
.hero-modern-actions .hero-button {
  padding: 0 clamp(28px, 3.5vw, 44px);
}
/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   HERO
   ========================================================= */

.hero-modern {
  padding-top: clamp(98px, 12vw, 120px);
  padding-bottom: clamp(48px, 7vw, 96px);
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-modern-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.hero-modern-content { text-align: left; }

.hero-modern-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.hero-modern-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: none;
}

.hero-modern-text {
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero-modern-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-modern-image-wrapper { display: flex; justify-content: center; }

.hero-modern-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* =========================================================
   ABOUT SNAPSHOT  (bg-b) — centered intro text, stats right
   ========================================================= */

.about-snap {
  background: var(--bg-b);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.about-snap-inner {
  display: flex;
  justify-content: center;
}

.about-snap-left .section-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.2px;
  text-align: center;
  max-width: none;
  margin-inline: auto;
}
.about-snap-left {
  text-align: center;
}
.about-snap-left .cs-label { text-align: center; }

.about-snap-left .section-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.2px;
  text-align: center;
  max-width: none;
  margin-inline: auto;
}
/* ── Desktop/laptop: constrain width to recreate the 3-line break ── */
@media (max-width: 900px) {
  .heading-break {
    display: none;
  }
}
.about-snap-left p {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.about-snap-left p+p { margin-top: 14px; }

.snapshot-container {
  background: var(--bg-a);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snapshot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #FBFAF7;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}

.snapshot-row:hover { transform: translateX(4px); }

.snapshot-badge {
  width: 30px; height: 30px;
  background: var(--text);
  color: #FBFAF7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.snapshot-title {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text);
  display: block;
}

.snapshot-desc {
  font-size: var(--fs-label);
  color: var(--text-soft);
  margin-top: 2px;
}

/* =========================================================
   PROJECTS — INDEX  (shared with /projects.html via .projects-scroll-section)
   ========================================================= */

.projects {
  background: var(--bg-a);
  padding: var(--space-section) 0;
}
.projects-section {
  background: var(--bg-a);
  padding: 12px 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
  position: relative;
}

.project-card-item {
  position: relative;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column-reverse;
  text-decoration: none;
  color: inherit;
 
}

/* =========================================================
   PROJECT IMAGE — bigger, 4px border, label above image
   FIX: Added margin-top for spacing between content (label)
        and image, since layout is column-reverse (content
        renders visually above the image).
   ========================================================= */

.project-image {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 720 / 460;
  /* top margin creates the gap between the text/label above and the image */
  margin: clamp(20px, 3vw, 32px) auto 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e0cce0;
  box-shadow: var(--shadow-md);
  cursor: none;
}

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

/* GSAP controls opacity + transform on all breakpoints.
   No CSS override here — animation values are tuned per
   breakpoint inside script.js (getAnimParams). */

.project-content {
  text-align: left;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
   margin-top: 18px;
}

.tags span {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.8px;
  padding: 4px 12px;
  background: rgba(26,26,26,0.06);
  border: 1px solid rgba(26,26,26,0.14);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 400;
  text-transform: uppercase;
}

.project-content h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

.project-card:hover .project-content h3 { color: var(--text); }

.project-content p {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-soft);
}



/* =========================================================
   CUSTOM CURSOR — dot + follower ring (site-wide)
   ========================================================= */

@media (min-width: 901px) and (hover: hover) {
  html, body, label, select, input {
    cursor: none !important;
  }
}

/* Clickable elements only: use the browser's normal pointer cursor
   instead of a custom-drawn icon. The dot + ring still show and
   enlarge on top of it (see body.cursor-hover rules below).
   Decorative hover-only blocks (timeline items, tool cards,
   snapshot rows) are NOT links, so they keep cursor:none like
   the rest of the page — only the ring/dot enlarge over them. */
@media (min-width: 901px) and (hover: hover) {
  a, button, [role="button"],
  .nav-link, .btn-primary, .hero-button, .btn-ghost,
  .email-cta-btn, .footer-contact-link,
  .project-card-grid, .footer-project-item,
  .nav-cta-wrap, .hamburger {
    cursor: pointer !important;
  }
}

@media (min-width: 901px) and (hover: hover) {
  .project-image,
  .project-image img,
  .project-image a,
  .final-scroll,
  .final-scroll img,
  .final-scroll a {
    cursor: pointer !important;
  }
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid #181818;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s,
              opacity 0.3s, background 0.3s, border-color 0.3s;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cursor-hover .cursor-dot {
  width: 6px; height: 6px;
  background: #181818;
}

body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  opacity: 0.35;
  background: rgba(24,24,24,0.04);
}

@media (max-width: 900px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
/* =========================================================
   JOURNEY — heading column stays put, timeline centers
   in its own column next to it (desktop only)
   ========================================================= */

@media (min-width: 901px) {

  .journey-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }

  .journey-heading {
    position: sticky;
    top: clamp(110px, 12vw, 140px);
  }

  .journey-heading .cs-label {
    margin-bottom: 12px;
  }

  .journey-heading .section-heading {
    font-size: var(--fs-h2);
    margin-bottom: 0;
  }

  .timeline {
    max-width: 620px;
    margin-inline: auto;
  }

}
/* =========================================================
   FEATURED PROJECTS — DESKTOP LAYOUT (>900px)
   Clean vertical stack, no 3D, no tilt, no perspective.
   ========================================================= */

@media (min-width: 901px) {

  .projects-scroll-section .project-list {
    gap: clamp(56px, 8vw, 104px);
  }

  .projects-scroll-section .project-card-item {
    width: 100%;
  }

  /* Centered, fixed-width cards */
  .projects-scroll-section .project-card-item .project-card {
    max-width: 860px;
    margin: 0 auto;
  }

  /* Remove divider line — cards are spaced */
  .projects-scroll-section .project-card + .project-card {
    padding-top: 0;
    border-top: none;
  }
}

/* =========================================================
   PROJECTS SCROLL UI — dots & counter
   ========================================================= */

.projects-progress {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.projects-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: background 0.3s, transform 0.3s;
}

.projects-progress-dot.active {
  background: var(--text);
  transform: scale(1.4);
}

.projects-card-counter {
  position: absolute;
  left: clamp(16px, 3vw, 48px);
  bottom: clamp(16px, 3vw, 40px);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 2px;
  color: var(--text-muted);
  z-index: 10;
}

/* =========================================================
   EMAIL CTA — modern glass effect
   ========================================================= */

.email-cta {
  background: var(--bg-b);
  padding: var(--space-section) clamp(20px, 3vw, 24px) calc(var(--space-section) - 20px);
  text-align: center;
  width: 100%;
}

.email-cta-inner {
  width: min(580px, calc(100% - var(--gutter-sm)));
  margin: auto;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.45);
  border-right-color: rgba(255, 255, 255, 0.45);
  border-radius: var(--r-xl);
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 20px 60px rgba(0, 0, 0, 0.07),
    0 6px 20px rgba(0, 0, 0, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.04);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

/* Subtle light orb top-right */
.email-cta-inner::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.30) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle shimmer line across the top */
.email-cta-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}

.email-cta-eyebrow {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: block;
}

.email-cta-headline {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.05;
  margin: 0 0 12px;
  text-transform: none;
}

.email-cta-sub {
   font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 clamp(24px, 3.5vw, 40px);
}

.email-cta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}

.email-cta-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.35);
  border-right-color: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.28) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(0, 0, 0, 0.04);
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: default;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--ease);
}

.email-cta-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 1) inset,
    0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

a.email-cta-item { cursor: pointer; }

.email-cta-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.email-cta-label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

.email-cta-value {
  display: block;
  font-size: var(--fs-btn);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: white-space 0s, overflow 0s;
}

.email-cta-item:hover .email-cta-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.email-cta-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  flex-shrink: 0;
  opacity: 1;
  transform: translateX(6px);
  transition: opacity .18s, transform .18s;
  pointer-events: all;
}

.email-cta-item:hover .email-cta-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.email-cta-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-btn);
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}

.email-cta-btn:hover {
  border-color: rgba(26, 26, 26, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 2px 8px rgba(0,0,0,0.06);
}

.email-cta-btn.copied {
  color: #16a34a;
  border-color: #bbf7d0;
  background: rgba(240, 253, 244, 0.85);
}

.email-cta-btn--icon {
  width: 26px;
  padding: 0;
  justify-content: center;
}

.tooltip { position: relative; }

.tooltip-text {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 20, 20, .95);
  color: #FBFAF7;
  font-size: var(--fs-label);
  font-family: var(--font-body);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: all;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  z-index: 10;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  width: 8px; height: 8px;
  background: rgba(20, 20, 20, .95);
  transform: translateX(-50%) rotate(45deg);
}

.tooltip:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip.copied .tooltip-text {
  background: #16a34a;
  box-shadow: 0 8px 20px rgba(22,163,74,.25);
}

.tooltip.copied .tooltip-text::after { background: #16a34a; }

.email-cta-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  color: var(--text-muted);
  margin: 2px 0;
}

.email-cta-divider::before,
.email-cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26, 26, 26, 0.08);
}

.email-cta-footer {
  font-size: var(--fs-label);
  color: var(--text-muted);
}

/* =========================================================
   ABOUT CTA (bg-a)
   ========================================================= */

.about-cta {
  background: var(--bg-a);
  padding: calc(var(--space-section) * 0.6) 0 var(--space-section);
}

.about-cta-inner {
  width: min(1100px, calc(100% - var(--gutter-lg)));
  margin: auto;
  background: var(--bg-b);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.about-cta-inner p {
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.about-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER — #234E52, more compact
   ========================================================= */
 
.footer {
  background: #234E52;
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(20px, 3vw, 32px);
}
.footer-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: clamp(32px, 5vw, 56px);
  width: min(1200px, calc(100% - var(--gutter-lg)));
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
}
 
.footer-project-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
 
.footer-project-title {
  font-family: var(--font-body);
    font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246,245,244,0.5);
  transition: color 0.3s;
}
 
.footer-project-item:hover .footer-project-title {
  color: rgba(246,245,244,0.9);
}
 
.footer-project-image {
  width: 100%;
  aspect-ratio: 7 / 4;             /* CHANGE — matches the screenshot's real proportions */
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.footer-project-item:hover .footer-project-image {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}
 
.footer-project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: brightness(0.9) saturate(0.85);
}
 
.footer-project-item:hover .footer-project-image img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
 
.footer-contact {
  text-align: center;
  padding: clamp(12px, 2vw, 20px) 0 clamp(20px, 3vw, 36px);
  border-top: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: clamp(18px, 3vw, 28px);
   padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
}
 
.footer-contact-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246,245,244,0.4);
  display: block;
  margin-bottom: 22px;
}
 @media (max-width: 900px) {
  .footer-contact-label {
    text-align: center;
  }
}
.footer-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (max-width: 900px) {
  .footer-contact-links {
    margin-inline: auto;
    align-items: center;
  }

  .footer-contact-label,
  .footer-contact-link {
    text-align: center;
  }

  .footer-copy-btn,
  .footer-linkedin-row .footer-copy-btn {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
  }

  .footer-contact-link,
  .footer-contact-link:hover,
  .footer-email-row:hover .footer-contact-link,
  .footer-linkedin-row:hover .footer-contact-link {
    color: #FBFAF7 !important;
  }

  .footer-contact-link::after,
  .footer-contact-link:hover::after,
  .footer-email-row:hover .footer-contact-link::after,
  .footer-linkedin-row:hover .footer-contact-link::after {
    transform: scaleX(0) !important;
  }
}
 
.footer-contact-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #FBFAF7;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.2;
  padding-bottom: 4px;
}

@media (max-width: 1024px) {
  .footer-contact-link { font-size: 28px; }
}
@media (max-width: 900px) {
  .footer-contact-link { font-size: 26px; }
}
@media (max-width: 480px) {
  .footer-contact-link { font-size: 22px; }
}

 
.footer-contact-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
 
.footer-contact-link:hover {
  color: var(--accent-hover);
}
 
.footer-contact-link:hover::after {
  transform: scaleX(1);
}
 
.footer-email-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
 
.footer-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(246,245,244,0.25);
  background: rgba(246,245,244,0.06);
  color: rgba(246,245,244,0.6);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}
 
.footer-email-row:hover .footer-copy-btn {
  opacity: 1;
  transform: translateX(0);
}
 
.footer-copy-btn:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  background: rgba(252,112,252,0.1);
}
 
.footer-copy-btn.copied {
  color: #4ade80;
  border-color: #4ade80;
  background: rgba(74,222,128,0.1);
}
 
.footer-copy-btn svg { width: 14px; height: 14px; }
 
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
    padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
}
 
.footer-bottom p {
 font-size: var(--fs-label);
  font-weight: 300;
  color: rgba(246,245,244,0.3);
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0;
}
 /* Wrap LinkedIn the same way the email is wrapped */
.footer-linkedin-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Keep link pink + underlined while hovering the icon too, not just the text */
.footer-email-row:hover .footer-contact-link,
.footer-linkedin-row:hover .footer-contact-link {
  color: var(--accent-hover);
}

.footer-email-row:hover .footer-contact-link::after,
.footer-linkedin-row:hover .footer-contact-link::after {
  transform: scaleX(1);
}

/* Reveal LinkedIn's visit icon on row hover, same as the email copy icon */
.footer-linkedin-row .footer-copy-btn {
  opacity: 0;
  transform: translateX(-4px);
}

.footer-linkedin-row:hover .footer-copy-btn {
  opacity: 1;
  transform: translateX(0);
}
/* =========================================================
   ABOUT PAGE — HERO (bg-a)
   ========================================================= */

.inner-page { background: var(--bg-a); }

.about-hero {
  background: var(--bg-a);
  min-height: 100svh;
  padding-top: clamp(98px, 12vw, 120px);
  padding-bottom: clamp(48px, 7vw, 80px);
  display: flex;
  align-items: center;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: none;
}

.about-hero-desc {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 50ch;
  margin-bottom: 16px;
}

.portrait-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.portrait-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(246,245,244,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

/* =========================================================
   TIMELINE (bg-b)
   ========================================================= */

.journey {
  background: var(--bg-b);
  padding: var(--space-section) 0;
}

.timeline {
  margin-top: clamp(32px, 5vw, 56px);
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border-mid);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: clamp(32px, 4vw, 56px);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 6px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-b);
  border: 2px solid var(--border-mid);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--text);
  background: var(--text);
}

.timeline-dot.active {
  background: var(--text);
  border-color: var(--text);
}

.timeline-year {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.timeline-content h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  max-width: 44ch;
}

.timeline-content p {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 55ch;
  margin-bottom: 12px;
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(246,245,244,0.6);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

.timeline-tag.available {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.12);
  font-weight: 500;
}
/* =========================================================
   TOOLS (bg-a)
   ========================================================= */

.tools-section {
  background: var(--bg-a);
  padding: var(--space-section-sm) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(90px, 12vw, 160px), 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  margin-top: clamp(24px, 4vw, 48px);
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(16px, 2vw, 28px) clamp(10px, 1.5vw, 16px);
  background: var(--bg-b);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease);
  cursor: default;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
 
  
  transition: transform 0.3s;
}

.tool-card:hover .tool-icon { transform: translateY(-2px); }

.tool-card span {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.5px;
  color: var(--text-soft);
  text-align: center;
}

/* =========================================================
   CASE STUDY PAGE
   ========================================================= */

.cs-hero {
  background: var(--bg-a);
  box-shadow: 0 0 0 100vmax var(--bg-a);
  clip-path: inset(0 -100vmax);
}

.cs-body {
  background: var(--bg-b);
  box-shadow: 0 0 0 100vmax var(--bg-b);
  clip-path: inset(0 -100vmax);
}
.cs-body { padding-bottom: var(--space-block); }

.cs-section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cs-section:last-child { border-bottom: none; }

.cs-section h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  text-transform: none;
}

.cs-section p {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(0,0,0,0.62);
}

.cs-section p + p { margin-top: 16px; }

/* CS HERO */
.cs-hero {
  min-height: 100svh;
  padding-top: clamp(88px, 12vw, 150px);
  padding-bottom: clamp(48px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;      /* CHANGE from: stretch */
  position: relative;
}

.cs-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--text);
  margin-top: 12px;
  text-transform: none;
}

.cs-hero-desc {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: min(520px, 100%);
  margin-bottom: 0;
}

/* META ROW */
.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 64px);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  list-style: none;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-item dd {
  word-break: break-word;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.cs-meta-item dt {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
}
.cs-hero-cta {
  margin-top: clamp(24px, 3vw, 32px);
}

/* MOCKUP */
.hero-mockup {
  position: relative;
  display: flex;
  width: 100%;
}
.hero-browser {
  background: #FBFAF7;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  width: 100%;
  aspect-ratio: 7 / 4;
}

.mockup-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* TWO-COL */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.two-col-text h2 { margin-top: 10px; }

/* GOALS CARD */
.goals-card {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.3s, transform 0.3s;
}

.goal-item:last-child { border-bottom: none; }

.goal-item:hover {
  color: var(--text);
  transform: translateX(4px);
}

.goal-check {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #234E52;
  background: rgba(35,78,82,0.08);
  border-radius: 2px;
  color: #234E52;
  font-size: var(--fs-label);
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}

.goal-item:hover .goal-check {
  background: #234E52;
  color: #FBFAF7;
}

/* RESEARCH */
.research-section { padding-top: var(--space-section); }

.research-intro { max-width: 620px; margin-top: 14px; }

.research-intro h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  margin-bottom: 14px;
}

.research-list {
  margin-top: var(--space-block);
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
}

.research-row {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  justify-content: flex-start;
}

.research-image {
  border-radius: 20px;
  overflow: hidden;
  background: #181818;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.research-image img {
  width: 100%;
  aspect-ratio: 520 / 320;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 1.2s var(--ease), filter 1.2s;
}

.research-row:hover .research-image {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}

.research-row:hover .research-image img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.05);
}

.research-content { max-width: 400px; }

.research-content span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(35,78,82,0.07);
  border: 1px solid rgba(35,78,82,0.18);
  border-radius: 999px;
  padding: 5px 12px;
  text-transform: uppercase;
}

.research-content h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--text);
}
.research-content p {
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text-soft);
}

/* WIREFRAMES */
.wireframes-section { padding-top: var(--space-section); }

.wireframe-wrap {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-card-gap);
}

.wireframe-box {
  background: var(--bg-a);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s;
}

.wireframe-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wireframe-box-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wireframe-scroll {
  position: relative;
  height: clamp(300px, 40vw, 500px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.wireframe-scroll::-webkit-scrollbar { width: 5px; }
.wireframe-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }
.wireframe-scroll img { width: 100%; display: block; }
.wireframe-scroll.mobile { max-width: 375px; margin: 0 auto; }

/* DESIGN SYSTEM */
.design-stack {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
  max-width: 700px;
}

.design-block h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 2px;
  color: rgba(27,27,27,0.55);
  font-weight: 400;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

.swatch {
  height: 60px;
  border-radius: var(--r-sm);
  position: relative;
  border: 1px solid rgba(27,27,27,0.15);
}

.swatch span {
  position: absolute;
  bottom: 6px; left: 8px;
  font-size: var(--fs-label);
  font-family: var(--font-body);
  color: rgba(255,255,255,0.75);
}

/* =========================================================
   FINAL DESIGN
   ========================================================= */

.final-design { padding-top: var(--space-section); }

.final-wrap {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-card-gap);
}

.final-box {
  background: var(--bg-a);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.final-label {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.final-scroll {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
  cursor: none;
}

.final-scroll::-webkit-scrollbar { width: 5px; }
.final-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }
.final-scroll img { width: 100%; display: block; }
.final-scroll.mobile { max-width: 375px; margin: 0 auto; }

/* =========================================================
   MARQUEE CURSOR — rectangular badge, infinite scrolling text
   ========================================================= */

.marquee-cursor {
  position: fixed;
  top: 0; left: 0;
  height: 28px;
  width: 180px;
  pointer-events: none;
  z-index: 9998;
  background: var(--accent);
  color: #FBFAF7;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.marquee-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.marquee-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 8s linear infinite;
}

.marquee-cursor.active .marquee-track {
  animation-play-state: running;
}

.marquee-track span {
  display: inline-block;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FBFAF7;
  
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* LEARN GRID */
.learn {
  padding-top: var(--space-section-sm);
  padding-bottom: var(--space-section-sm);
}

.learn-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-card-gap);
}

.learn-card {
  background: var(--bg-a);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.learn-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.learn-top {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

.learn-card h3 {
  font-size: var(--fs-title);
  line-height: 1.25;
  font-weight: 400;
  color: var(--text);
}

.learn-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 60ch;
}

/* =========================================================
   "NEXT PROJECT" — Desktop: centered, untouched
   ========================================================= */

.next-up {
  background: var(--bg-a);
  box-shadow: 0 0 0 100vmax var(--bg-a);
  clip-path: inset(0 -100vmax);
  padding: var(--space-section) clamp(20px, 3vw, 24px);
  text-align: center;
}

.next-up-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.next-up-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: min(1100px, calc(100% - var(--gutter-lg)));
  margin: 0 auto;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.next-up-image {
  position: relative;
  aspect-ratio: 7 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.next-up-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.next-up-content h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  margin-bottom: 14px;
}

.next-up-content p {
  font-size: var(--fs-body);
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 40ch;
}

.next-up-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 clamp(20px, 2.5vw, 32px);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.next-up-arrow:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* =========================================================
   "NEXT PROJECT" — Mobile & Tablet only (≤900px)
   Left-aligned, image/content matched to the same grid
   used by the case-study body above it.
   ========================================================= */

@media (max-width: 900px) {

  .next-up-card { grid-template-columns: 1fr; }

  .next-up {
    text-align: left;
      padding-left: 0;     
    padding-right: 0;
  }

  .next-up-label {
    width: min(1200px, calc(100% - var(--gutter-sm)));
    margin-inline: auto;
    text-align: left;
  }

  .next-up-card {
    width: min(1200px, calc(100% - var(--gutter-sm)));
  }

  .next-up-content {
    text-align: left;
  }

  .next-up-content h3 {
    text-align: left;
  }

  .next-up-content p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .next-up-arrow {
    align-self: flex-start;
     width: 100%;           
    justify-content: center;
  }



}
/* =========================================================
   PROJECTS PAGE
   ========================================================= */

.projects-page-hero {
  background: var(--bg-a);
  padding-top: clamp(98px, 12vw, 120px);
  padding-bottom: clamp(6px, 1vw, 12px);
}

.projects-page-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 16px;
  margin-bottom: 20px;
  text-transform: none;
}

.projects-page-grid {
  background: var(--bg-a);
  padding: calc(var(--space-section) * 0.5) 0 var(--space-section);
}

.projects-page-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-card-gap);
}

.project-card-grid {
  display: flex;
  flex-direction: column;
  background: var(--bg-b);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease);
}

.project-card-grid:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.project-card-grid .project-image {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.project-card-grid .project-content {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 26px) clamp(20px, 2.5vw, 26px);
  flex: 1;
  width: 100%;
  max-width: 100%;
  background: var(--bg-a);
}

/* ── Tighten gap between hero text and first project card ──
   Scoped with "+" so this ONLY applies on projects.html
   (where .projects directly follows .projects-page-hero).
   index.html's featured-projects section is untouched. ── */

.projects-page-hero + .projects {
  padding-top: clamp(28px, 4.5vw, 64px);
}

.projects-page-hero + .projects .project-card-item:first-child .project-image {
  margin-top: clamp(28px, 4.5vw, 56px);
}

/* =========================================================
   HERO SCROLL CURSOR — replaces the dot with a "Scroll" pill
   once the pointer passes the lower half of the hero section.
   Desktop only (>900px) — matches existing .click-cursor scope.
   ========================================================= */

.scroll-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.scroll-cursor span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #181818;
  white-space: nowrap;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.scroll-cursor.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.scroll-cursor.is-active span {
  animation: scroll-cursor-bob 1.4s ease-in-out infinite;
}

@keyframes scroll-cursor-bob {
  0%, 100% { transform: translateY(0); letter-spacing: 3px; }
  50%      { transform: translateY(4px); letter-spacing: 3.5px; }
}

/* =========================================================
   404.css — Error Page
   Link after style.css. Only .error-* rules live here.
   ========================================================= */

/* Push footer to bottom of viewport without stretching
   the error section itself */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.error-page {
  flex: 1;
  position: relative;
  background: var(--bg-a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 80px);
}

.footer {
  flex-shrink: 0;
}

.error-wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.error-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.error-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  flex-shrink: 0;
  animation: error-pulse 2.4s ease-in-out infinite;
}

@keyframes error-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.error-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  text-transform: none;
}

.error-title em {
  font-style: italic;
  color: var(--text-soft);
}

.error-desc {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 38ch;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.error-btn {
  align-self: flex-start;
}

.error-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.error-numeral {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 172px;
  line-height: 0.85;
  letter-spacing: -4px;
  color: var(--border-mid);
  user-select: none;
  text-align: right;
}

/* ── ≤1024px ── */
@media (max-width: 1024px) {
  .error-numeral { font-size: 106px; }
}

/* ── ≤900px: stack ── */
@media (max-width: 900px) {
  .error-page {
    align-items: flex-start;
    padding-top: clamp(100px, 14vw, 130px);
    padding-bottom: clamp(40px, 6vw, 56px);
  }

  .error-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .error-visual {
    order: -1;
    justify-content: flex-start;
    margin-bottom: clamp(16px, 3vw, 24px);
  }

  .error-numeral {
    font-size: 92px;
    text-align: left;
  }

  .error-desc { max-width: 48ch; }
}

/* ── ≤768px ── */
@media (max-width: 768px) {
  .error-page { padding-bottom: clamp(32px, 5vw, 40px); }
  .error-numeral { font-size: 72px; }
}

/* ── ≤600px ── */
@media (max-width: 600px) {
  .error-page {
    padding-inline: 20px;
    padding-bottom: 32px;
  }
  .error-title { letter-spacing: -0.5px; }
  .error-numeral { font-size: 56px; }

  .error-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-eyebrow-dot { animation: none; }
}
/* =========================================================
   CASE STUDY BODY — CENTERED CONTENT BLOCK (DESKTOP ONLY)
   Rows stay side-by-side and left-aligned internally,
   just the whole row is centered on the page like a
   narrower container. Tablet/phone (<=900px) untouched.
   ========================================================= */

@media (min-width: 901px) {

  .cs-body .cs-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* was: center */
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;        /* centers the section itself as one block */
  }

  .cs-body .cs-section > .cs-label,
  .cs-body .cs-section > h2,
  .cs-body .cs-section > p {
    width: 100%;
    max-width: 100%;            /* was: 1000px — now just fills the section */
  }

  .cs-body .two-col,
  .cs-body .research-row,
  .cs-body .wireframe-wrap,
  .cs-body .final-wrap,
  .cs-body .learn-grid,
  .cs-body .design-stack,
  .cs-body .research-intro {
    width: 100%;
    max-width: 100%;            /* was: 1000px + margin-inline: auto */
  }

}
/* =========================================================
   RESPONSIVE — 900px
   ========================================================= */

@media (max-width: 900px) {

.navbar {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  padding: 16px 0;
  background: var(--bg-a);;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(250,248,245,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0;
  }

  .nav-center,
  .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }

  

  .hero-modern { min-height: auto; }
  .hero-modern-inner {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    text-align: center;
  }
  .hero-modern-content { text-align: center; }
  .hero-modern-text { margin-inline: auto; }
  .hero-modern-actions { justify-content: center; margin-bottom: 40px; }
  .hero-modern-image-wrapper { max-width: 440px; margin-inline: auto; }
  .hero-modern-image { max-width: 100%; }

  .about-snap-inner { grid-template-columns: 1fr; gap: 40px; }

  .project-card-item {
    width: 100%;
  }

  .project-list {
    height: auto !important;
    gap: var(--space-block);
  }

  /* On tablet/mobile: reset image margin to just top spacing */
  .project-image {
    max-width: 100%;
    margin-top: clamp(16px, 3vw, 24px);
  }

  .project-content { max-width: 100%; padding: 16px 0 20px; }

  .about-cta-actions { flex-direction: column; align-items: stretch; }
  .about-cta-actions .btn-primary,
  .about-cta-actions .btn-ghost { width: 100%; justify-content: center; }

  .about-hero { min-height: auto; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-hero-desc { max-width: 100%; }
  .portrait-frame { order: -1; }

.cs-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-top: clamp(98px, 12vw, 120px);
    padding-bottom: clamp(48px, 7vw, 96px);
  }
  .cs-hero-content { display: contents; }

  .cs-hero-content .cs-label { order: 1; }
  .cs-hero-content h1 { order: 2; }
  .cs-hero-content .cs-hero-desc { order: 3; max-width: 100%; }

.cs-meta-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: clamp(12px, 4vw, 40px);
    order: 4;
  }

  .hero-mockup {
    order: 5;
    margin-top: clamp(24px, 5vw, 40px);
  }

  .cs-hero-content .cs-hero-cta { order: 6; margin-top: clamp(32px, 5vw, 40px); }
  .research-row,
  .research-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  .research-content { max-width: 100%; }

  .wireframe-wrap,
  .final-wrap { grid-template-columns: 1fr; }

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

  .two-col { grid-template-columns: 1fr; }

  .next-project {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .next-project-text { max-width: 100%; }
  .next-project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .another-project-card,
  .another-project-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .projects-page-grid-inner { grid-template-columns: 1fr; }

  .footer-projects { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: center; }

  .projects-progress,
  .projects-card-counter { display: none; }
}
@media (max-width: 900px) {
  .contact-page .navbar,
  .contact-page .navbar.scrolled {
    background: #FBFAF7;
  }
}
body.contact-page {
  background: #FBFAF7;
}
/* =========================================================
   RESPONSIVE — 600px
   ========================================================= */

@media (max-width: 600px) {

  .hero-modern-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-button,
  .hero-button-ghost { width: 100%; justify-content: center; }

  /* Small mobile: tighter gap between text and image */
  .project-image {
    margin-top: clamp(12px, 3vw, 20px);
  }

  .email-cta-sub { margin-bottom: 28px; }
  .email-cta-value { font-size: 13px; }
  .email-cta-body { flex-direction: column; align-items: flex-start; gap: 2px; }
  .email-cta-label { width: auto; }

  .timeline::before { left: 10px; }
  .timeline-item { padding-left: 36px; }
  .timeline-dot { left: 2px; width: 16px; height: 16px; }

  .cs-meta-row {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 1rem;
  }

  .footer-projects { grid-template-columns: 1fr; gap: 24px; }
}
/* =========================================================
   MOBILE TEXT ALIGNMENT — left-align centered text blocks
   from tablet down to small phone (≤900px). Desktop/laptop
   stays untouched.
   ========================================================= */

@media (max-width: 900px) {

  .hero-modern-content,
  .hero-modern-text,
  .about-snap-left,
  .about-snap-left .section-heading,
  .about-snap-left .cs-label,
  .about-snap-left p,
  .section-header,
  .email-cta,
  .email-cta-inner,
  .email-cta-sub,
  .about-cta-inner,
  .about-cta-inner p,
  .footer-contact {
    text-align: left;
  }
  .hero-modern-text,
  .about-snap-left p,
  .email-cta-sub,
  .about-cta-inner p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-modern-actions {
    justify-content: flex-start;
  }

  .about-cta-actions {
    align-items: flex-start;
  }

  
}
@media (max-width: 900px) {
  .email-cta-headline {
    text-align: center;
  }

  .badge-available {
    display: flex !important;
    width: fit-content !important;
    margin: 0 auto 16px !important;
  }
}
/* =========================================================
   HEADER RESPONSIVE POLISH — desktop → laptop → tablet → mobile
   ========================================================= */

/* Laptop 1024–1280px: tighten nav so 4 links + button fit nicely */
@media (max-width: 1280px) {
  .nav-link { padding: 0 12px; font-size: 16px; }
}

/* Tablet 901–1024px: snugger still, before hamburger takes over */
@media (max-width: 1024px) {
  .nav-link { padding: 0 10px; font-size: 14px; }
}

/* ≤900px: logo stays left, hamburger sits right */
@media (max-width: 900px) {
  .navbar-inner { grid-template-columns: 1fr auto; }
  .hamburger { margin-left: auto; }
}
@media (min-width: 901px) {
  .project-content p {
    max-width: 65ch;
    text-wrap: balance;
  }
  .cs-hero-desc {
    max-width: 50ch;
    text-wrap: balance;
  }
  .research-intro p {
    max-width: 70ch;
    text-wrap: pretty;
  }
  .final-design > p {
    max-width: 70ch;
    text-wrap: pretty;
  }
  .learn > p {
    max-width: 70ch;
    text-wrap: pretty;
  }
  /* NEW — same fix for text blocks that had no desktop-only rule before */
  .work-cta-sub,
  .email-cta-sub,
  .next-up-content p {
    text-wrap: balance;
  }
  .about-snap-left p,
  .cs-section p,
  .research-content p,
  .timeline-content p,
  .learn-card p {
    text-wrap: pretty;
  }
}
/* =========================================================
   BUTTON ANIMATIONS OFF — tablet & mobile (≤900px)
   Prevents "stuck hover" flicker on touch devices.
   Image/scroll animations (.reveal, GSAP lift, marquee
   cursor, etc.) are untouched.
   ========================================================= */

@media (max-width: 900px) {

  .btn-primary,
  .hero-button,
  .btn-primary::before,
  .hero-button::before,
  .btn-primary .btn-text,
  .hero-button .btn-text,
  .btn-ghost,
  .hero-button-ghost,
  .btn-secondary,
  .work-cta-actions .btn-secondary,
  .next-up-arrow,
  .nav-link,
  .nav-link .link-default,
  .nav-link .link-hover {
    transition: none !important;
  }

  .btn-secondary {
    display: flex;
    width: 100%;
  }

}
/* =========================================================
   KILL STUCK HOVER STATE — touch devices only
   Forces buttons back to their resting (non-hover) look,
   since :hover can "stick" after a tap on touchscreens.
   ========================================================= */

@media (hover: none) {

  .btn-primary:hover::before,
  .hero-button:hover::before {
    transform: translateY(100%) !important;
  }

  .btn-primary:hover .btn-text-default,
  .hero-button:hover .btn-text-default {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .btn-primary:hover .btn-text-hover,
  .hero-button:hover .btn-text-hover {
    transform: translateY(130%) !important;
    opacity: 0 !important;
  }

  .btn-ghost:hover,
  .hero-button-ghost:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: transparent !important;
  }

.btn-secondary:hover,
  .work-cta-actions .btn-secondary:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
  }

  .next-up-arrow:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
  }

  .nav-link:hover .link-default {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .nav-link:hover .link-hover {
    transform: translateX(-50%) translateY(100%) !important;
    opacity: 0 !important;
  }

  .mobile-nav .nav-link:hover {
    color: #234E52 !important;
  }

  /* NEW — footer project cards: prevent stuck hover-lift/hover-color
     after a tap on touch devices (mobile & tablet) */
  .footer-project-item:hover .footer-project-image {
    transform: none !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
  }

  .footer-project-item:hover .footer-project-image img {
    transform: none !important;
    filter: brightness(0.9) saturate(0.85) !important;
  }

}
/* =========================================================
   UNIFIED CASE-STUDY BODY COPY (sections 02–06)
   Paragraph flush-left with label + heading, max-width 62ch,
   balanced line wraps. Applied consistently across
   Momento, Echoes, and Bloomora via .cs-body.
   ========================================================= */

.cs-body .cs-section p,
.cs-body .research-content p,
.cs-body .learn-card p {
  max-width: 62ch;
  width: 100%;
  text-wrap: balance;
  margin-inline: 0;
}
/* ===== HERO EYEBROW ROW + AVAILABLE BADGE ===== */

.hero-modern-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-modern-eyebrow-row .hero-modern-eyebrow {
  margin-bottom: 0;
}

.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(35, 78, 82, 0.07);
  border: 1px solid rgba(35, 78, 82, 0.2);
  border-radius: 999px;
  padding: 5px 13px 5px 10px;
  margin-bottom: 24px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}


.badge-available-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

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

@media (max-width: 600px) {
  .hero-modern-eyebrow-row { justify-content: center; }
}
/* =========================================================
   BLOOMORA ONLY — keep Role / Tools / Type in one row
   ========================================================= */

.bloomora-page .cs-meta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(24px, 5vw, 64px);
}

.bloomora-page .cs-meta-item {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .bloomora-page .cs-meta-row {
    display: flex;
    gap: clamp(16px, 4vw, 40px);
  }
}

@media (max-width: 600px) {
  .bloomora-page .cs-meta-row {
    display: flex;
    gap: 12px;
  }
}