/* =========================================================
   Thiago Parisotto — Portfolio
   Design system: Apple-like, minimal, light/dark, gradient accent
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, monospace;

  /* Accent — iOS blue → indigo/purple */
  --accent: #0A84FF;
  --accent-2: #6E5CFF;
  --accent-grad: linear-gradient(120deg, #0A84FF 0%, #6E5CFF 60%, #BF5AF2 100%);

  /* Light theme (default) */
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10), 0 32px 80px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(251, 251, 253, 0.72);
  --chip-bg: rgba(0, 0, 0, 0.045);

  --maxw: 1120px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #0c0c0e;
  --surface: #16161a;
  --surface-2: #1c1c1f;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 32px 80px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(8, 8, 10, 0.66);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --accent: #0A84FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(10, 132, 255, 0.22); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 140px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-2);
  max-width: 60ch;
  margin-top: 18px;
  text-wrap: pretty;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 132, 255, 0.45); }
.btn-secondary {
  background: var(--chip-bg);
  color: var(--text);
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--border-strong); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.4s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 8px rgba(110, 92, 255, 0.4);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 980px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--chip-bg); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--chip-bg); }
.icon-btn svg { width: 19px; height: 19px; }

/* theme toggle sun/moon swap */
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.hamburger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-socials { display: flex; gap: 10px; margin-bottom: 30px; }
.hero-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-socials a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }
.hero-socials svg { width: 19px; height: 19px; }

.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero .role {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.hero .sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  margin-top: 20px;
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* hero photo */
.hero-photo-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.hero-photo {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-glow {
  position: absolute;
  inset: -18%;
  background: var(--accent-grad);
  filter: blur(60px);
  opacity: 0.28;
  z-index: -1;
  border-radius: 50%;
}
.hero-badge {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 980px;
  padding: 11px 18px;
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-body p { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); margin-top: 18px; text-wrap: pretty; }
.about-body p strong { color: var(--text); font-weight: 600; }
.about-body p:first-child { margin-top: 0; }

.chips-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 32px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--chip-bg);
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.chip .lvl { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; }

.facts { display: flex; flex-direction: column; gap: 0; }
.fact {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.fact:last-child { border-bottom: 1px solid var(--border); }
.fact dt { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); min-width: 92px; flex-shrink: 0; }
.fact dd { font-size: 16px; font-weight: 500; }

/* ---------- SSC highlight ---------- */
.ssc {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
[data-theme="dark"] .ssc { background: #060608; }
.ssc-head { text-align: center; max-width: 760px; margin: 0 auto; }
.ssc .section-lead { margin-left: auto; margin-right: auto; }

.seal {
  width: 96px; height: 96px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 12px 40px rgba(110, 92, 255, 0.4);
  position: relative;
  animation: sealspin 24s linear infinite;
}
@keyframes sealspin { to { transform: rotate(360deg); } }
.seal svg { width: 48px; height: 48px; animation: sealspin 24s linear infinite reverse; }

.ssc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.ssc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ssc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ssc-card::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-grad);
  opacity: 0.05; pointer-events: none;
}
.ssc-card .year {
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ssc-card .award { font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 14px; }
.ssc-card h3 { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.ssc-card p { color: var(--text-2); margin-top: 12px; font-size: 16px; text-wrap: pretty; }
.ssc-card .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ssc-card .tlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--accent);
  white-space: nowrap;
}
.ssc-card .tlink svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.ssc-card .tlink:hover svg { transform: translate(2px, -2px); }
.ssc-card .winner-tag {
  position: absolute; top: 26px; right: 26px;
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px; border-radius: 980px;
}

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.project-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface-2);
}
.project-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 20px; }
.project-card .pdesc { color: var(--text-2); font-size: 15px; margin-top: 8px; flex-grow: 1; text-wrap: pretty; }
.platform-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 980px;
  background: var(--chip-bg);
  color: var(--text-2);
}
.pbadge svg { width: 13px; height: 13px; }
.highlight-pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px;
  border-radius: 980px;
  background: var(--accent-grad);
  color: #fff;
  margin-bottom: 4px;
}
.project-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.appstore-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.appstore-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.appstore-link:hover svg { transform: translate(2px, -2px); }
.dl-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 56px; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.tl-item { position: relative; padding: 0 0 44px 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.tl-item.current::before { background: #34c759; box-shadow: 0 0 0 1px #34c759, 0 0 0 5px rgba(52,199,89,0.2); }
.tl-date { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.tl-item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.tl-org { font-size: 16px; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.tl-desc { font-size: 15px; color: var(--text-2); margin-top: 10px; max-width: 60ch; text-wrap: pretty; }

/* ---------- Events / carousel ---------- */
.events { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .events { background: #060608; }
.carousel { position: relative; margin-top: 48px; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 0 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 clamp(280px, 56vw, 560px);
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px);
  color: var(--text-3);
}
.slide-ph .ph-inner { text-align: center; }
.slide-ph .ph-icon { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.5; }
.slide-ph code { font-family: var(--font-mono); font-size: 13px; }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.slide-caption .loc { font-family: var(--font-mono); font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.slide-caption .ttl { font-size: 18px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 16px; }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-arrows button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.carousel-arrows button:hover { transform: scale(1.06); background: var(--surface-2); }
.carousel-arrows button:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.carousel-arrows svg { width: 18px; height: 18px; }
.carousel-hint { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ---------- YouTube ---------- */
.yt-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.yt-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); background: var(--surface-2); flex-shrink: 0;
}
.yt-avatar-ph {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--border); flex-shrink: 0;
}
.yt-meta .yt-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.yt-meta .yt-handle { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.yt-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.yt-video {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  background: #000; aspect-ratio: 16 / 9;
}
.yt-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 9vw, 110px) 0 48px; text-align: center; }
.footer h2 { font-size: clamp(34px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.footer .lead { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); margin-top: 16px; }
.footer-mail {
  display: inline-block; margin-top: 28px;
  font-size: clamp(20px, 3vw, 30px); font-weight: 600;
  letter-spacing: -0.02em;
}
.footer-mail:hover { color: var(--accent); }
.footer-socials { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.footer-socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-socials a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }
.footer-socials svg { width: 20px; height: 20px; }
.footer-fine {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-3); font-size: 14px;
}
.footer-fine .heart { color: #ff453a; }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is visible by default. Only when JS adds `.js` to <html>
   do we hide-then-reveal, so the page is never blank if JS/IO fails. */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  .seal, .seal svg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { grid-row: 1; max-width: 320px; }
  .hero-text { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .ssc-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .yt-videos { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
