/* =========================================================
   Helena Santos — Portfolio v2
   Light glassmorphism · blue + mint accent gradient
   ========================================================= */

:root {
  --bg: #d7e3ec;
  --bg-soft: #e3ebf1;

  --text: #1c2a3a;
  --text-dim: rgba(28, 42, 58, 0.68);
  --text-faint: rgba(28, 42, 58, 0.46);

  --border: rgba(28, 42, 58, 0.12);
  --border-soft: rgba(28, 42, 58, 0.07);

  --surface: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.32));
  --surface-strong: linear-gradient(160deg, rgba(255,255,255,0.88), rgba(255,255,255,0.55));

  --blue: #4f8bff;
  --blue-soft: #8fb8ff;
  --blue-text: #2f5fd6;
  --mint: #4fd1a5;
  --mint-soft: #a8e6cf;
  --mint-text: #17875f;

  --grad-primary: linear-gradient(120deg, #4f8bff 0%, #4fd1a5 100%);
  --grad-hero: linear-gradient(120deg, #1d3045, #2f5fd6);
  --grad-cta: linear-gradient(120deg, #2f5fd6 0%, #4fd1a5 100%);
  --cta-text: #123a2c;
  --grad-mesh: radial-gradient(55% 55% at 14% 8%, rgba(79,139,255,0.14), transparent 60%),
               radial-gradient(55% 55% at 50% 100%, rgba(85,217,224,0.10), transparent 60%);

  --shadow-glass: 0 20px 50px rgba(28, 42, 58, 0.10), inset 0 1px 0 rgba(255,255,255,0.6);
  --shadow-soft: 0 10px 24px rgba(28, 42, 58, 0.08);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --nav-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: rgba(79, 139, 255, 0.22); color: var(--text); }

/* ---------- Background decor (ambient gradient mesh) ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
.bg-decor .mesh { position: absolute; inset: 0; background: var(--grad-mesh); }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
}
.glow-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--blue); }
.glow-2 { width: 460px; height: 460px; top: 55%; left: -160px; background: #8fc4e0; opacity: 0.16; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- Gradient text / utilities ---------- */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-warm {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--grad-primary);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.02rem;
  margin-bottom: 52px;
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-glass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, background 0.35s ease, border-color .35s ease;
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.btn-primary {
  background: var(--grad-cta);
  color: var(--cta-text);
  box-shadow: 0 10px 30px rgba(47, 209, 165, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47, 209, 165, 0.42); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  background: rgba(28, 42, 58, 0.045);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: rgba(28, 42, 58, 0.08); transform: translateY(-2px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow .4s ease;
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(28, 42, 58, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo .dot { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-hero);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--grad-cta); color: var(--cta-text); border-color: transparent; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(245, 248, 251, 0.94);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), visibility 0.5s, transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 12px 0;
}
.mobile-menu a.active, .mobile-menu a:hover { color: var(--text); }
.mobile-menu .nav-cta { margin-top: 18px; background: var(--text); color: #fff; border-color: transparent; }
.mobile-menu .nav-cta:hover { background: var(--grad-cta); color: var(--cta-text); }

@media (max-width: 900px) {
  .nav-links, .desktop-only { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   CINEMATIC SCROLL-SCRUBBED HERO
   ========================================================= */
.cine-track {
  position: relative;
  height: 195vh;
}
.cine-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #e9f0f7;
}
.cine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cine-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,30,45,0.05) 0%, rgba(20,30,45,0) 22%, rgba(20,30,45,0) 68%, rgba(20,30,45,0.10) 100%),
    linear-gradient(90deg, rgba(20,30,45,0.08) 0%, rgba(20,30,45,0) 25%, rgba(20,30,45,0) 75%, rgba(20,30,45,0.08) 100%);
  pointer-events: none;
}
.cine-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(34vh, 320px);
  background: linear-gradient(180deg, rgba(238,243,248,0) 0%, var(--bg) 92%);
  pointer-events: none;
}
.cine-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cine-section {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}
.cine-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.cine-stagger.visible { opacity: 1; transform: translateY(0); }

/* Hero copy (section 1) */
.cine-hero {
  padding: 0 28px 0 clamp(28px, 6vw, 96px);
  max-width: 760px;
}
.cine-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1d3045;
  margin-bottom: 22px;
}
.cine-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #16233a;
  margin-bottom: 24px;
}
.cine-title .accent {
  background: linear-gradient(120deg, #2f5fd6, #4fd1a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cine-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(22, 35, 58, 0.72);
  max-width: 540px;
  margin-bottom: 36px;
}
.cine-actions { display: flex; align-items: center; gap: 16px; pointer-events: auto; }
.cine-actions .btn-primary { background: var(--grad-hero); color: #fff; box-shadow: 0 14px 34px rgba(29,48,69,0.28); }
.cine-actions .btn-secondary { border-color: rgba(22,35,58,0.22); color: #16233a; background: rgba(255,255,255,0.4); }
.cine-actions .btn-secondary:hover { background: rgba(255,255,255,0.6); }

.cine-scrollcue {
  position: absolute;
  left: clamp(28px, 6vw, 96px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(22,35,58,0.55);
}
.cine-scrollcue .ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(22,35,58,0.28);
  display: flex; align-items: center; justify-content: center;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Mission statement (section 2) — floating glass card, like the reference stat cards */
.cine-mission {
  align-items: center;
  text-align: center;
  padding: 0 28px;
}
.cine-mission-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 30px 70px rgba(28,42,58,0.14), inset 0 1px 0 rgba(255,255,255,0.7);
  pointer-events: auto;
}
.cine-mission h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #16233a;
}
.cine-mission .dim { color: rgba(22, 35, 58, 0.45); }
.cine-mission .bright { color: rgba(22, 35, 58, 0.88); }
.cine-mission .accent {
  background: linear-gradient(120deg, #2f5fd6, #4fd1a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 640px) {
  .cine-hero { padding-left: 22px; padding-right: 22px; }
  .cine-scrollcue { display: none; }
}

/* =========================================================
   SKILLS MARQUEE — animated tag strip between hero and About
   ========================================================= */
.skills-marquee {
  position: relative;
  padding: 36px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.skills-marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.skills-marquee:hover .skills-marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-tag {
  flex: 0 0 auto;
  padding: 11px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
}

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

/* =========================================================
   ABOUT
   ========================================================= */
#about { padding: 140px 0 120px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-photo-wrap { position: relative; max-width: 420px; }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
}
.about-photo-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,30,45,0.4) 100%);
}
.about-glow-ring {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: var(--blue);
  filter: blur(70px);
  opacity: 0.18;
  border-radius: 50%;
}
.about-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.about-badge svg { width: 15px; height: 15px; color: var(--blue-text); }
.badge-1 { top: 8%; right: -14%; }
.badge-2 { bottom: 20%; left: -16%; }
.badge-3 { bottom: -4%; right: 4%; }

.about-copy p { color: var(--text-dim); margin-bottom: 18px; }
.about-copy strong { color: var(--text); font-weight: 600; }

.trait-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.trait-card {
  padding: 22px;
  border-radius: var(--radius-md);
}
.icon-badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--blue-text);
  margin-bottom: 14px;
}
.icon-badge svg { width: 19px; height: 19px; }
.trait-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.trait-card p { font-size: 13.5px; color: var(--text-faint); line-height: 1.55; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo-wrap { margin: 0 auto; }
  .about-badge { display: none; }
}

/* =========================================================
   EXPERIENCE — Timeline
   ========================================================= */
#experience { padding: 100px 0 120px; }
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 23px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(28,42,58,0.18), rgba(28,42,58,0.03));
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--blue-text);
  box-shadow: 0 0 0 6px var(--bg), 0 8px 20px rgba(28,42,58,0.08);
}
.timeline-dot svg { width: 20px; height: 20px; }
.timeline-card { padding: 30px 32px; border-radius: var(--radius-md); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.timeline-role { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.timeline-date { font-size: 13px; color: var(--text-faint); font-family: var(--font-display); white-space: nowrap; }
.timeline-company { font-size: 14px; color: var(--blue-text); margin-bottom: 18px; }
.timeline-company a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47,95,214,0.35); }
.timeline-company a:hover { color: var(--text); }
.timeline-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
}
.timeline-list li:last-child { margin-bottom: 0; }
.timeline-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-text);
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

@media (max-width: 640px) {
  .timeline::before { left: 17px; }
  .timeline-item { padding-left: 50px; }
  .timeline-dot { width: 36px; height: 36px; }
  .timeline-dot svg { width: 16px; height: 16px; }
  .timeline-card { padding: 22px; }
}

/* =========================================================
   WORK / PORTFOLIO
   ========================================================= */
#work { padding: 100px 0 120px; background: #fff; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Flip cards ---- */
.sector-card {
  display: block;
  width: 100%;
  height: 260px;
  perspective: 1800px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.sector-card:hover { transform: translateY(-6px); }
.sector-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  transform-style: preserve-3d;
}
.sector-card.flipped .sector-card-inner { transform: rotateY(180deg); }
.sector-card.flipped:hover { transform: translateY(-6px) scale(1.01); }

.sector-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.sector-front {
  color: #fff;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}
.sector-top { display: flex; align-items: flex-start; justify-content: space-between; }
.sector-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.22);
}
.sector-icon svg { width: 22px; height: 22px; }
.sector-flip-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  animation: hint-pulse 2.6s ease-in-out infinite;
}
.sector-flip-icon svg { width: 13px; height: 13px; }
.sector-flip-icon--back {
  position: absolute;
  top: 22px; right: 22px;
  background: rgba(28,42,58,0.06);
  color: var(--blue-text);
}
@keyframes hint-pulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }

.sector-front h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.sector-stat { font-size: 13px; color: rgba(255,255,255,0.85); }
.sector-stat span { font-weight: 700; color: #fff; }

.sector-back {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-glass);
  transform: rotateY(180deg);
  justify-content: flex-start;
}
.sector-back h4 {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text);
  margin-bottom: 10px; padding-right: 30px;
}
.sector-back p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sector-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(28,42,58,0.055);
  border: 1px solid var(--border-soft);
  color: var(--text-faint);
}

/* ---- "Something different?" CTA card ---- */
.sector-more {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 32px;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, background 0.3s ease;
}
.sector-more:hover { transform: translateY(-6px); background: rgba(255,255,255,0.55); }
.sector-more h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 14px 0 8px; }
.sector-more p { font-size: 13.5px; color: var(--text-faint); line-height: 1.6; margin-bottom: 16px; }
.sector-more-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue-text);
}
.sector-more-cta svg { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.sector-more:hover .sector-more-cta svg { transform: translateX(3px); }

@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sector-grid { grid-template-columns: 1fr; } .sector-card { height: 300px; } }

@media (prefers-reduced-motion: reduce) {
  .sector-card-inner { transition: none; }
  .sector-flip-icon { animation: none; }
}

/* =========================================================
   SOCIAL — scroll-linked horizontal gallery
   ========================================================= */
#social { padding: 100px 0 110px; }

.social-track { position: relative; margin-top: 52px; }
.social-sticky {
  position: sticky;
  top: 110px;
  height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.social-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: max(28px, calc((100vw - 1180px) / 2 + 28px));
  padding-right: max(28px, calc((100vw - 1180px) / 2 + 28px));
  will-change: transform;
}
.social-card {
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-soft);
}
.social-card.featured { height: 480px; }
.social-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .social-track { height: auto !important; }
  .social-sticky {
    position: relative; top: 0; height: auto; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .social-sticky::-webkit-scrollbar { display: none; }
  .social-strip { transform: none !important; padding-right: 28px; }
  .social-card { scroll-snap-align: start; height: 340px; }
  .social-card.featured { height: 380px; }
}

/* =========================================================
   DESIGN WORK
   ========================================================= */
#design { padding: 100px 0 120px; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.design-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.design-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(28,42,58,0.18); }
.design-card.video-card {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.design-card img,
.design-card video {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
  background: #0c1220;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.design-card video { object-position: center; }
.design-card:hover img,
.design-card:hover video { transform: scale(1.04); }
.design-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(10,16,26,0.72));
  color: #fff;
  transition: opacity 0.3s ease;
}
.design-caption-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* ---- Video cards ---- */
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(8,16,35,0.4);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, opacity 0.3s ease;
}
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.design-card:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.design-card.playing .video-play,
.design-card.playing .design-caption { opacity: 0; pointer-events: none; }
.design-card video::-webkit-media-controls-start-playback-button { display: none; }

@media (max-width: 980px) { .design-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .design-grid { grid-template-columns: 1fr; }
  .design-card { height: 380px; }
}

/* =========================================================
   SKILLS
   ========================================================= */
#skills { padding: 100px 0 120px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-category { padding: 28px; border-radius: var(--radius-md); }
.skill-category h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  margin-bottom: 18px;
}
.skill-category .icon-badge { width: 34px; height: 34px; margin-bottom: 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(28,42,58,0.045);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: background 0.3s ease, color .3s ease, border-color .3s ease;
}
.skill-tag:hover { background: rgba(28,42,58,0.09); color: var(--text); border-color: var(--border); }

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

/* =========================================================
   CONTACT
   ========================================================= */
#contact {
  padding: 120px 0 140px;
  color: var(--text);
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(79,209,165,0.22), transparent 60%),
    linear-gradient(160deg, #1d3045 0%, #2f5fd6 65%, #4f8bff 100%);
  --text: #f2f5fa;
  --text-dim: rgba(242,245,250,0.72);
  --text-faint: rgba(242,245,250,0.5);
  --border: rgba(255,255,255,0.16);
  --border-soft: rgba(255,255,255,0.09);
  --surface: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  --surface-strong: linear-gradient(160deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  --blue-text: #8fb8ff;
  --shadow-glass: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
#contact .contact-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.97), rgba(255,255,255,0.88));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 20px 45px rgba(8,16,35,0.35), inset 0 1px 0 rgba(255,255,255,0.9);
  --text: #1c2a3a;
  --text-faint: rgba(28,42,58,0.55);
}
#contact .contact-card .icon-badge {
  background: rgba(47,95,214,0.1);
  border-color: rgba(47,95,214,0.18);
  color: #2f5fd6;
}
#contact a.contact-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, #ffffff, rgba(255,255,255,0.95));
  box-shadow: 0 26px 55px rgba(8,16,35,0.4), inset 0 1px 0 rgba(255,255,255,0.9);
}
.contact-heading {
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  max-width: 640px;
  margin-bottom: 28px;
}
.contact-heading-mega {
  display: block;
  margin-top: 6px;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff, #d4f5e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin-top: 52px;
}
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, background .3s ease;
}
a.contact-card:hover { transform: translateY(-4px); background: rgba(28,42,58,0.05); }
.contact-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-card .label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.contact-card .value { font-size: 14.5px; font-weight: 500; color: var(--text); word-break: break-word; }

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

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 40px 0;
  color: var(--text);
  background: #1d3045;
  --text: #f2f5fa;
  --text-faint: rgba(242,245,250,0.5);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-note { font-size: 12.5px; color: var(--text-faint); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--grad-cta); color: var(--cta-text); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal (for normal-flow sections) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cine-stagger, .cine-section { transition: none !important; opacity: 1 !important; transform: none !important; }
}
