/* ============================================================
   KaidenKissack.ca — site styles
   Built on the Kaiden Kissack design tokens (tokens.css).
   Pure CSS, no build step. Component classes are translated
   1:1 from the design-system UI kit.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- shared type helpers ---- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.serif { font-family: var(--font-display); }

.container { max-width: var(--max-w); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.section { padding: var(--section-y) 28px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
/* On dark pages (contact) the nav sits on near-black until scrolled */
.nav--on-dark .nav-logo,
.nav--on-dark .nav-link { color: #fff; }
.nav--on-dark.is-scrolled .nav-logo,
.nav--on-dark.is-scrolled .nav-link { color: var(--fg1); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 24px; font-weight: var(--w-bold);
  letter-spacing: -0.01em; color: var(--fg1); text-decoration: none;
}
.nav-logo .dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-ui); font-weight: var(--w-medium); font-size: 16px;
  color: var(--fg1); text-decoration: none; transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--primary); }
.nav-link.is-active { color: var(--primary); }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--fg1); padding: 4px;
}
.nav--on-dark .nav-burger { color: #fff; }
.nav--on-dark.is-scrolled .nav-burger { color: var(--fg1); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 49;
  background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-card);
  padding: 16px 28px; flex-direction: column; gap: 14px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-ui); font-weight: var(--w-medium); font-size: 16px;
  color: var(--fg1); text-decoration: none;
}
.mobile-menu a.accent { color: var(--primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: var(--w-medium); font-size: 16px; line-height: 1;
  border-radius: var(--r-pill); cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn svg { transition: transform var(--dur) var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:hover svg.down { transform: translateY(3px); }

.btn--primary { padding: 14px 30px; background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--brand-blue-hover); }

.btn--outline { padding: 12px 28px; background: transparent; color: var(--fg1); border: 2px solid var(--border-strong); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--outline-blue { padding: 12px 28px; background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline-blue:hover { background: var(--primary); color: #fff; }

.btn--full { width: 100%; }

/* on-dark outline (used over the contact hero) */
.btn--outline-light { padding: 12px 28px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.30); }
.btn--outline-light:hover { border-color: #fff; }

/* white button used on blue CTA strips */
.btn--white { padding: 14px 30px; background: #fff; color: var(--primary); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn--white:hover { background: #f3f6fc; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__dots {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: radial-gradient(circle, #004aad 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero__wash {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%; opacity: 0.07; pointer-events: none;
  background: linear-gradient(135deg, transparent 0%, #004aad 100%);
}
.hero__grid {
  position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero--home { padding: 128px 28px 96px; min-height: 100vh; display: flex; align-items: center; }
.hero--home .hero__grid { width: 100%; }
.hero--page { padding: 136px 28px 64px; }

.hero__col { display: flex; flex-direction: column; gap: 22px; }
.hero__name {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); font-weight: var(--w-bold);
  line-height: 0.98; letter-spacing: -0.02em; color: var(--fg1); margin: 0;
}
.hero__name .dot { color: var(--primary); }
.hero__lead {
  font-family: var(--font-ui); font-size: 20px; color: var(--fg2); line-height: 1.6;
  max-width: 460px; margin: 0;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

/* portrait frame */
.portrait-wrap { position: relative; }
.portrait {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-2xl); overflow: hidden;
  box-shadow: var(--shadow-portrait); background: var(--brand-blue-tint);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transition: transform var(--dur-slow) var(--ease); }
.portrait:hover img { transform: scale(1.05); }
/* silhouette fallback shown when the photo is missing */
.portrait__fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(160deg, var(--brand-blue-tint), #d6e4fb);
}
.portrait__fallback svg { width: 70%; height: 90%; color: rgba(0,74,173,0.30); }
.portrait img { position: relative; z-index: 1; }

.stats-card {
  position: absolute; bottom: 24px; left: -24px; background: #fff; z-index: 2;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lift); padding: 24px; width: 232px;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat__n { font-family: var(--font-display); font-size: 36px; font-weight: var(--w-bold); color: var(--primary); line-height: 1; }
.stat__l { font-size: 13px; color: var(--fg3); margin-top: 4px; }

.badge-available {
  position: absolute; top: 24px; right: -14px; z-index: 2; background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: var(--w-medium);
  box-shadow: var(--shadow-cta); display: flex; align-items: center; gap: 8px;
}
.ping-dot { position: relative; display: flex; height: 8px; width: 8px; }
.ping-dot .ping {
  position: absolute; inset: 0; border-radius: var(--r-pill); background: #fff; opacity: 0.75;
  animation: kk-ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
.ping-dot .core { position: relative; display: inline-flex; border-radius: var(--r-pill); height: 8px; width: 8px; background: #fff; }
@keyframes kk-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ping-dot .ping { animation: none; } }

/* page-hero (projects / about) headings */
.page-hero__title {
  font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 64px); font-weight: var(--w-bold);
  letter-spacing: -0.02em; line-height: 1.02; margin: 12px 0 0; color: var(--fg1);
}
.page-hero__sub { font-family: var(--font-ui); font-size: 19px; color: var(--fg2); line-height: 1.6; max-width: 560px; margin: 20px 0 0; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-head__title {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 60px); font-weight: var(--w-bold);
  letter-spacing: -0.02em; margin: 12px 0 0; color: var(--fg1);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  display: flex; flex-direction: column; cursor: pointer; text-decoration: none;
  border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-card);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.project-card__thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,74,173,0.18), rgba(0,74,173,0.04));
}
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.project-card:hover .project-card__thumb img { transform: scale(1.05); }
.project-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tag {
  align-self: flex-start; padding: 5px 12px; background: var(--brand-blue-tint); color: var(--primary);
  font-size: 12px; font-weight: var(--w-medium); border-radius: var(--r-pill);
}
/* badges become interactive filters on the projects page */
.projects-grid .tag { cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.projects-grid .tag:hover { background: var(--primary); color: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; }
.project-card__title { font-family: var(--font-display); font-size: 24px; font-weight: var(--w-bold); margin: 0; color: var(--fg1); }
.project-card__desc { font-family: var(--font-ui); font-size: 15px; color: var(--fg2); line-height: 1.55; margin: 0; }
.project-card__link {
  margin-top: auto; color: var(--primary); font-weight: var(--w-medium); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap var(--dur) var(--ease);
}
.project-card:hover .project-card__link { gap: 9px; }

.view-all { display: flex; justify-content: center; margin-top: 56px; }
.text-link {
  color: var(--primary); font-weight: var(--w-semibold); font-size: 16px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; transition: gap var(--dur) var(--ease);
}
.text-link:hover { gap: 11px; }

/* ============================================================
   FILTER BAR (projects page)
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.filter-pill {
  padding: 10px 22px; border-radius: var(--r-pill); border: 2px solid var(--border-strong);
  background: transparent; color: var(--fg1); font-family: var(--font-ui); font-size: 15px;
  font-weight: var(--w-medium); cursor: pointer; transition: all var(--dur) var(--ease);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   ABOUT / TIMELINE / SKILLS
   ============================================================ */
.about-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-col { display: flex; flex-direction: column; gap: 32px; }
.about-bio { display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--fg2); line-height: 1.65; }
.about-bio p { margin: 0; }
.about__sub-title { font-family: var(--font-display); font-size: 24px; font-weight: var(--w-bold); margin: 0 0 16px; color: var(--fg1); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip {
  padding: 8px 18px; border: 2px solid var(--border); border-radius: var(--r-pill);
  font-size: 14px; font-weight: var(--w-medium); cursor: pointer; user-select: none;
  color: var(--fg1); background: transparent; transition: all var(--dur) var(--ease);
}
.skill-chip:hover { border-color: var(--primary); color: var(--primary); }
.skill-chip.is-on { border-color: var(--primary); color: var(--primary); background: var(--brand-blue-tint); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 32px; }
.timeline-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.timeline-cols .about__sub-title { margin-bottom: 28px; }
.timeline__rule { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding-left: 32px; }
.timeline__node {
  position: absolute; left: -5px; top: 6px; width: 12px; height: 12px; border-radius: var(--r-pill);
  background: var(--primary); box-shadow: 0 0 0 4px var(--bg);
}
.timeline__date { font-size: 14px; font-weight: var(--w-medium); color: var(--primary); margin-bottom: 4px; }
.timeline__role { font-family: var(--font-display); font-size: 20px; font-weight: var(--w-bold); margin: 0 0 4px; color: var(--fg1); }
.timeline__org { color: var(--fg3); font-weight: var(--w-medium); margin-bottom: 8px; font-size: 15px; }
.timeline__desc { color: var(--fg2); line-height: 1.6; margin: 0; font-size: 15px; }

/* skills deep-dive cards */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.skill-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.skill-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--brand-blue-tint);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.skill-card__title { font-family: var(--font-display); font-size: 22px; font-weight: var(--w-bold); margin: 0; color: var(--fg1); }
.skill-card .chip-cloud { gap: 8px; }
.skill-card .skill-chip { font-size: 13px; padding: 6px 14px; cursor: default; }
.skill-card .skill-chip:hover { border-color: var(--border); color: var(--fg1); }

/* ============================================================
   CTA STRIP (blue) + RESUME BANNER
   ============================================================ */
.cta-strip { background: var(--primary); color: #fff; text-align: center; }
.cta-strip__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-strip__title { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 54px); font-weight: var(--w-bold); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.cta-strip__text { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0; max-width: 520px; }

/* ============================================================
   CONTACT (dark)
   ============================================================ */
.page-dark { background: var(--ink); color: #fff; }
.contact-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-col { display: flex; flex-direction: column; gap: 32px; }
.contact-title { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 68px); font-weight: var(--w-bold); letter-spacing: -0.02em; margin: 12px 0 0; color: #fff; line-height: 1.02; }
.contact-intro { font-size: 18px; color: rgba(255,255,255,0.70); line-height: 1.65; margin: 20px 0 0; max-width: 480px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-row {
  display: flex; align-items: center; gap: 16px; padding: 16px; text-decoration: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md); transition: all var(--dur) var(--ease);
}
.contact-row:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); }
.contact-row__well {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(0,74,173,0.22);
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex: none;
  transition: background var(--dur) var(--ease);
}
.contact-row:hover .contact-row__well { background: rgba(0,74,173,0.35); }
.contact-row__label { font-size: 13px; color: rgba(255,255,255,0.55); }
.contact-row__value { font-size: 15px; font-weight: var(--w-medium); color: #fff; }

.contact-form {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl); padding: 32px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.contact-form__title { font-family: var(--font-display); font-size: 24px; font-weight: var(--w-bold); margin: 0 0 24px; color: #fff; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: var(--w-medium); color: #fff; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm); color: #fff; font-size: 14px; font-family: var(--font-ui);
  outline: none; transition: all var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.40); }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,74,173,0.45); }
.field textarea { resize: none; }
.form-success {
  display: none; flex-direction: column; align-items: center; gap: 14px; padding: 32px 0; text-align: center;
}
.form-success.is-shown { display: flex; }
.form-success__icon { width: 56px; height: 56px; border-radius: var(--r-pill); background: rgba(0,74,173,0.25); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.form-success__title { font-family: var(--font-display); font-size: 22px; font-weight: var(--w-bold); color: #fff; }
.form-success__text { color: rgba(255,255,255,0.70); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 32px 28px; background: var(--ink-deep); color: rgba(255,255,255,0.60); font-size: 14px; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__logo { font-family: var(--font-display); font-weight: var(--w-bold); color: #fff; font-size: 18px; }
.footer__logo .dot { color: var(--primary); }

/* ============================================================
   TECHNICAL SOCIETIES — collage of 3D flip cards
   ============================================================ */
.tsoc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 460px 320px;
  gap: 22px;
}
.tsoc-card {
  position: relative;
  border-radius: var(--r-lg);
  background: transparent;
  perspective: 1400px;
  cursor: pointer;
}
.tsoc-card--mcam    { grid-column: 1 / span 7;  grid-row: 1; transform: rotate(-1deg); }
.tsoc-card--umes    { grid-column: 8 / span 5;  grid-row: 1; transform: rotate(1deg); }
.tsoc-card--csme    { grid-column: 1 / span 5;  grid-row: 2; transform: rotate(0.8deg); }
.tsoc-card--tbog    { grid-column: 6 / span 4;  grid-row: 2; transform: rotate(-1.2deg); }
.tsoc-card--umearth { grid-column: 10 / span 3; grid-row: 2; transform: rotate(1.4deg); }
.tsoc-card:hover { z-index: 5; }

.tsoc-inner {
  position: absolute; inset: 0;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}
.tsoc-card:hover .tsoc-inner,
.tsoc-card.is-flipped .tsoc-inner { transform: rotateY(180deg); }

.tsoc-face {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-card);
}
.tsoc-back { transform: rotateY(180deg); }

/* photo layer — set --photo on the card to a url() to fill both faces */
.tsoc-photo {
  position: absolute; inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
}
.tsoc-photo--blur { filter: blur(8px) brightness(0.5); transform: scale(1.1); }

/* placeholder hint (remove once a real --photo is set) */
.tsoc-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.5);
}
.tsoc-ph span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--w-medium); }

/* front overlay + text */
.tsoc-front-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,20,0.78) 0%, rgba(10,12,20,0.25) 38%, transparent 62%);
}
.tsoc-front-text { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.tsoc-acr { font-family: var(--font-display); font-weight: var(--w-black); color: #fff; line-height: 1; letter-spacing: -0.01em; }
.tsoc-card--mcam .tsoc-acr { font-size: 56px; }
.tsoc-acr { font-size: 40px; }
.tsoc-name { font-family: var(--font-ui); font-weight: var(--w-regular); color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 8px; line-height: 1.4; max-width: 92%; }

/* back face */
.tsoc-back-overlay { position: absolute; inset: 0; background: rgba(10,12,20,0.72); }
.tsoc-back-text { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; overflow: auto; }
.tsoc-acr-back { font-family: var(--font-display); font-weight: var(--w-bold); color: #fff; font-size: 26px; line-height: 1; }
.tsoc-rule { width: 44px; height: 3px; background: var(--primary); border-radius: 2px; margin: 12px 0 16px; }
.tsoc-desc { font-family: var(--font-ui); color: rgba(255,255,255,0.88); font-size: 14px; line-height: 1.6; margin: 0; }
.tsoc-card--umearth .tsoc-desc, .tsoc-card--tbog .tsoc-desc { font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .tsoc-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
  .tsoc-grid > .tsoc-card { grid-column: 1 / -1 !important; grid-row: auto !important; height: 340px; transform: none !important; }
  .tsoc-card--mcam .tsoc-acr { font-size: 48px; }
}

/* ============================================================
   SCROLL-TRIGGERED FADE-UP
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero--home { min-height: auto; padding-top: 120px; }
  .portrait-wrap { max-width: 420px; margin: 24px auto 0; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .timeline-cols { grid-template-columns: 1fr; gap: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .stats-card { left: 0; }
  .badge-available { right: 0; }
  .footer__inner { justify-content: flex-start; }
}
