/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors — warm light palette */
  --color-bg:             #FAFAF5;
  --color-card:           rgba(120, 100, 80, 0.08);
  --color-card-inner:     #FFFFFF;
  --color-accent:         #C4956A;
  --color-accent-hover:   #b3845c;
  --color-accent-dim:     rgba(196, 149, 106, 0.08);
  --color-accent-glow:    rgba(196, 118, 78, 0.12);
  --color-accent-line:    rgba(196, 118, 78, 0.15);
  --color-accent-border:  rgba(196, 149, 106, 0.30);
  --color-card-border:    rgba(0, 0, 0, 0.06);
  --color-nav-bg:         #FAFAF5;
  --color-nav-border:     rgba(0, 0, 0, 0.06);
  --color-text:           #28281F;
  --color-text-muted:     #44403B;
  --color-text-dim:       #7E7D7A;
  --color-btn:            #28281F;
  --color-btn-nav:        #44403B;
  --color-surface-warm:   #F3EDE4;
  --color-shadow:         rgba(120, 100, 80, 0.08);

  /* Typography */
  --font:         'DM Sans', sans-serif;
  --font-heading: 'Noto Serif', serif;
  --text-h2:      60px;
  --text-h3:      48px;
  --text-h6:      20px;
  --text-body:    16px;
  --text-small:   14px;
  --text-caption: 12px;
  --text-tag:     11px;
  --text-btn-lg:  15px;
  --text-btn-sm:  13px;

  /* Spacing (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  /* Layout */
  --nav-h:    65px;
  --max-w:    1440px;
  --pad-x:    48px;

  /* Border radius */
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--space-3) 0;
}


/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-h6);
  font-weight: 500;
  letter-spacing: 0.15px;
  line-height: 1.6;
}

.logo__first { color: var(--color-text); }
.logo__last  { color: var(--color-accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.25s ease-out;
  white-space: nowrap;
}

.btn:hover { opacity: 0.8; }

.btn--lg {
  font-size: var(--text-btn-lg);
  line-height: 26px;
  padding: 8px 22px;
}

.btn--sm {
  font-size: var(--text-btn-sm);
  line-height: 22px;
  padding: 4px 10px;
}

.btn--nav {
  background: var(--color-btn-nav);
  color: #FFFFFF;
  font-size: 14px;
  padding: 8px 12px;
  gap: 8px;
}

.btn--solid {
  background: var(--color-btn);
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: var(--color-btn);
  border: 1px solid var(--color-btn);
}

.btn--text {
  background: transparent;
  color: var(--color-accent);
  font-size: var(--text-btn-sm);
  line-height: 22px;
  padding: 4px 5px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   SECTION LABELS & HEADERS
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 20px;
}

.section-label__line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-label__text {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1px;
  line-height: 1.57;
}

.section-header {
  padding-top: 17px;
  padding-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-header--blue,
.section-header--purple { border-top: 1px solid var(--color-card-border); }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.167;
  color: var(--color-text);
}

.section-title--sm {
  font-size: 28px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-nav-border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__actions {
  display: flex;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 5px;
  border-radius: var(--radius-sm);
  transition: color 0.25s ease-out;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: url('images/hero-texture.png') center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243, 237, 228, 0) 26%, #FAFAF5 94%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.hero__content {
  flex: 0 0 610px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.hero__bio {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.15px;
  color: var(--color-text);
  max-width: 518px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__image {
  max-width: 660px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 2px rgba(120, 100, 80, 0.03);
}

/* ============================================================
   PORTFOLIO GRID & CARDS
   ============================================================ */
.portfolio-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.portfolio-grid--2 { grid-template-columns: 1fr 1fr; }
.portfolio-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
}

.card__media {
  height: 334px;
  overflow: hidden;
  display: flex;
  border-radius: 4px;
}

.card__media--white  { background: #ffffff; }
.card__media--mint   { background: #e5f8ed; }
.card__media--top    { align-items: flex-start; padding-top: 0; }
.card__media--center { align-items: center; justify-content: center; }

.card__img { display: block; }

.card__img--cover {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  object-position: top center;
}

.card__img--logo {
  max-width: 100%;
  /*max-height: 95%;*/
  object-fit: contain;
  width: auto;
  height: auto;
}

.portfolio-grid--3 .card {
  box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08);
}

.portfolio-footer {
  display: flex;
  justify-content: center;
  padding-top: var(--space-3);
}

.portfolio-footer .btn {
  border-radius: 12px;
}

/* Finance card: two stacked images */
.card__logo-stack {
  position: relative;
  /*width: 220px;
  height: 130px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__img--logo-main {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
}

.card__img--logo-accent {
  position: absolute;
  left: -16px;
  bottom: -12px;
  max-width: 40%;
  max-height: 55%;
  z-index: 2;
}

/* ============================================================
   EXPERIENCE — LAYOUT
   ============================================================ */
.experience-inner {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

/* ============================================================
   SKILLS SIDEBAR
   ============================================================ */
.skills {
  flex: 0 0 260px;
}

.skills__heading {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.4px;
  line-height: 1.66;
  margin-bottom: var(--space-1);
}

.skills__group {
  margin-bottom: var(--space-3);
}

.skills__group:last-child {
  margin-bottom: 0;
}

.skills__tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-tag);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  white-space: nowrap;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: flex;
  gap: 20px;
  padding-bottom: var(--space-3);
}

.timeline__marker {
  flex: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__dot {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline__dot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.timeline__dot--pink { background: rgba(244, 143, 177, 0.15); }
.timeline__dot--pink::after { background: var(--color-accent); }

.timeline__connector {
  flex: 1;
  width: 1.5px;
  min-height: 16px;
  background: var(--color-accent-line);
}

.timeline__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-1);
}

.timeline__date {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.4px;
  line-height: 1.66;
}

.timeline__date--pink { color: var(--color-accent); }

.timeline__role {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--color-text);
}

.timeline__dot::after {
  display: none;
}

.timeline__company {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.17px;
  line-height: 1.43;
}

.timeline__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.65;
}

.timeline__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline__bullets li {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.timeline__bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-text-muted);
}

.timeline__highlights {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline__highlights li {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.timeline__highlights li::before {
  content: "•";
  position: absolute;
  left: 4px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-dim);
  font-size: var(--text-tag);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.5;
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-card-border);
  height: 72px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   LIVE EXAMPLES TABLE
   ============================================================ */
.live-examples__disclaimer {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-text-dim);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-3);
}

.live-examples {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.live-examples__th {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-accent);
  text-align: left;
  padding: 12px 16px;
  background: var(--color-accent-dim);
  border-bottom: 1px solid var(--color-card-border);
}

.live-examples__row {
  transition: background 0.25s ease-out;
  cursor: pointer;
}

.live-examples__row:hover {
  background: rgba(196, 118, 78, 0.04);
}

.live-examples__row:not(:last-child) .live-examples__td {
  border-bottom: 1px solid var(--color-card-border);
}

.live-examples__td {
  padding: 14px 16px;
  vertical-align: middle;
}

.live-examples__num {
  width: 40px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

.live-examples__thumb {
  width: 140px;
  padding: 10px 0 10px 16px;
}

.live-examples__thumb img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-card-border);
  display: block;
}

.live-examples__name {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.live-examples__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.live-examples__link {
  white-space: nowrap;
  text-align: right;
  padding-right: 24px;
}

.live-examples__link a {
  font-size: var(--text-btn-sm);
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity 0.25s ease-out;
}

.live-examples__link a:hover {
  opacity: 0.75;
}

/* ============================================================
   PORTFOLIO LIBRARY — PROJECT CARDS (with title/description)
   ============================================================ */
.pcard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.pcard {
  width: 430px;
  max-width: 100%;
  flex: none;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.pcard--link {
  text-decoration: none;
  color: inherit;
}

.pcard:hover {
  border-color: var(--color-accent-border);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08), 0 2px 6px rgba(120, 100, 80, 0.04);
}

/* Portfolio tab bar */
.portfolio-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.portfolio-tab {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #404040;
  transition: background 0.2s ease, color 0.2s ease;
}

.portfolio-tab:hover {
  background: rgba(120, 100, 80, 0.08);
}

.portfolio-tab--active {
  background: #171717;
  color: #fafafa;
}

.portfolio-tab--active:hover {
  background: #171717;
}

.pcard__media {
  height: 320px;
  background: var(--color-surface-warm);
  flex-shrink: 0;
  overflow: hidden;
  margin: 8px 8px 0;
  border-radius: 4px;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pcard__media--contain {
  background: #fff;
  height: 320px;
}

.pcard__media--contain img {
  object-fit: cover;
}

.pcard__media--contain img,
.img-contain {
  object-fit: contain;
  object-position: center center;
}

.img-left {
  object-position: left center;
}


.pcard__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pcard__category {
  align-self: flex-start;
}

.pcard__title {
  font-size: var(--text-h6);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: 0.15px;
}

.pcard__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font);
  font-size: var(--text-btn-sm);
  font-weight: 500;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease-out;
}

.pcard__cta:hover { opacity: 0.75; }

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 40, 35, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: #F5F2ED;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 824px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 118, 78, 0.3) transparent;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: #FAFAF5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  transition: background 0.25s ease-out;
}

.modal__close:hover { background: rgba(0, 0, 0, 0.08); }

.modal__hero {
  height: 480px;
  background: var(--color-surface-warm);
  overflow: hidden;
}

.modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.modal__content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal__meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.25px;
  color: var(--color-text);
}

.modal__divider {
  border: none;
  border-top: 1px solid var(--color-card-border);
  margin: 0;
}

.modal__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal__section-label {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.4px;
  margin-bottom: var(--space-1);
}

.modal__section-text {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-text-dim);
  line-height: 1.7;
}

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

.modal__gallery-placeholder,
.modal__gallery-img {
  height: auto;
  width: 100%;
  min-width: 0;
  background: var(--color-surface-warm);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.modal__hero--contain,
.modal__gallery-img--contain {
  background: #fff;
}

.modal__hero--contain img,
.modal__gallery-img--contain img {
  object-fit: contain;
  object-position: center center;
}

/* ============================================================
   PAGE HERO (portfolio.html top section)
   ============================================================ */
.page-hero {
  padding: var(--space-8) 0 var(--space-4);
}

.page-hero__inner {
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-hero__tagline {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text-dim);
  line-height: 1.5;
  max-width: 540px;
}

/* ============================================================
   RESPONSIVE — HERO STACK (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-3);
  }

  .hero__content {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero__heading {
    font-size: 34px;
  }

  .hero__bio {
    max-width: 100%;
  }

  .hero__card {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero__image {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  :root {
    --text-h2:  36px;
    --text-h3:  28px;
    --pad-x:    20px;
    --space-8:  32px;
  }

  /* Nav: hide text links, keep logo + LinkedIn */
  .nav__links {
    gap: 16px;
  }

  .nav__link {
    display: none;
  }

  /* Portfolio: single column */
  .portfolio-grid--2,
  .portfolio-grid--3 {
    grid-template-columns: 1fr;
  }

  .card__media {
    height: 150px;
  }

  .pcard__media--contain {
    height: 288px;
  }

  /* Experience: stack vertically */
  .experience-inner {
    flex-direction: column;
    gap: var(--space-4);
  }

  .skills {
    flex: none;
    width: 100%;
  }

  .skills__group {
    margin-bottom: var(--space-2);
  }

  /* Timeline: tighten gap */
  .timeline__item {
    gap: 12px;
  }


  /* Live examples: hide # column and thumbnails */
  .live-examples__num,
  .live-examples__thumb,
  .live-examples__th:first-child,
  .live-examples__th:nth-child(2) {
    display: none;
  }

  .live-examples__desc {
    display: none;
  }

  .live-examples__name {
    white-space: normal;
  }

  /* Modal: full-width, reduced padding */
  .modal-overlay {
    padding: var(--space-2);
  }

  .modal__hero {
    height: 220px;
  }

  .modal__content {
    padding: var(--space-3);
  }

  .modal__title {
    font-size: 26px;
  }

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

  .page-hero {
    padding: var(--space-4) 0 var(--space-3);
  }
}

/* ============================================================
   RESPONSIVE — TABLET (769px – 1100px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {

  :root {
    --text-h2: 44px;
    --text-h3: 36px;
    --pad-x:   32px;
    --space-8: 48px;
  }

  /* Portfolio: 2-col for 3-grid */
  .portfolio-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid--3 .card:last-child {
    grid-column: 1 / -1;
  }

  /* Experience: stack on tablet */
  .experience-inner {
    flex-direction: column;
    gap: var(--space-4);
  }

  .skills {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 9999;
}
