/* ============================================================
   ARIANA VIALE — RESUME WEBSITE STYLES
   ------------------------------------------------------------
   Fonts:    Cormorant Garamond (display) + DM Sans (body)
   Palette:  --dark #2F3440 / --cream #D5D2C0 / --accent #757151
   ============================================================ */


/* ============================================================
   SELF-HOSTED FONTS
   ============================================================ */
@font-face {
  font-family: 'Livory';
  src: url('../fonts/hvdtrial-livory-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Livory';
  src: url('../fonts/hvdtrial-livory-regularitalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Calluna Sans';
  src: url('../fonts/CallunaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Calluna Sans';
  src: url('../fonts/CallunaSans-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --dark:         #2F3440;
  --dark-deeper:  #252930;
  --cream:        #D5D2C0;
  --cream-light:  #EAE8DF;
  --accent:       #757151;
  --accent-hover: #8a8460;
  --accent-light: rgba(117, 113, 81, 0.08);
  --accent-mid:   rgba(117, 113, 81, 0.22);
  --text:         #1A1A1A;
  --text-muted:   #6A6A6A;
  --bg:           #FAFAF8;
  --bg-alt:       #F2F0EB;
  --border:       rgba(47, 52, 64, 0.1);
  --border-strong: rgba(47, 52, 64, 0.2);

  /* Typography */
  --font-display: 'Livory', Georgia, 'Times New Roman', serif;
  --font-body:    'Calluna Sans', Georgia, serif;

  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  6rem;

  /* Layout */
  --sidebar-width:  300px;
  --content-max:    1280px;
  --content-pad:    clamp(1.5rem, 5vw, 4rem);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 92vh;
  background-color: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Cream strip removed — hero is full dark navy */
.hero-strip {
  display: none;
}

/* Subtle grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Decorative circles removed */
.hero::after { display: none; }
.hero-bg-circle { display: none; }

.hero-content {
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 40%;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Desktop grid placement — photo spans name+body rows, quote in row 3 right col */
.hero-photo-wrapper { grid-column: 2; grid-row: 1 / 3; }
.hero-text          { grid-column: 1; grid-row: 1; }
.hero-body          { grid-column: 1; grid-row: 2; }
/* .hero-quote placement is set directly on .hero-quote (grid-column:2; grid-row:3) */

/* --- Hero Text (name/headline/location) --- */
.hero-text {
  padding: 3.5rem var(--content-pad) 1rem var(--content-pad);
}

/* --- Hero Body (bio/CTAs/quote) --- */
.hero-body {
  padding: 0 var(--content-pad) 3rem var(--content-pad);
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.1s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.2s forwards;
}

.hero-name em {
  font-style: italic;
  color: #ffffff;
  font-weight: 300;
}

.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(213, 210, 192, 0.6);
  line-height: 1.8;
  margin-bottom: 0.35rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.3s forwards;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(213, 210, 192, 0.45);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.35s forwards;
}

.hero-location svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-divider {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.4s forwards;
}


.hero-quote {
  font-family: 'Livory', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(213, 210, 192, 0.7);
  line-height: 1.55;
  /* Desktop: left column, below the CTAs */
  grid-column: 1;
  grid-row: 3;
  text-align: left;
  padding: 0 var(--content-pad) 2.5rem var(--content-pad);
  align-self: start;
}

/* Short left-aligned separator line — desktop only (replaced by border-top on mobile/tablet) */
.hero-quote::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(213, 210, 192, 0.25);
  margin: 0.4rem 0 0.75rem;
}

.hero-quote-label {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-quote-text {
  display: block;
}

.hero-quote-mark {
  color: var(--accent);
  font-size: 1.05rem;
}

.hero-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(213, 210, 192, 0.38);
  margin-top: 0.45rem;
}

.hero-bio {
  font-size: 0.95rem;
  color: rgba(213, 210, 192, 0.82);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 100%;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.5s forwards;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.6s forwards;
}

/* Full-width contact bar below hero content */
.hero-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(213, 210, 192, 0.1);
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: heroFadeIn 0.9s ease 0.75s forwards;
}

.hero-contact-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(213, 210, 192, 0.6);
  transition: color 0.2s ease;
}

.hero-contact-bar-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

a.hero-contact-bar-item:hover {
  color: rgba(213, 210, 192, 0.95);
}

.hero-contact-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(213, 210, 192, 0.2);
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 50px;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(117, 113, 81, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(213, 210, 192, 0.35);
}

.btn-secondary:hover {
  border-color: rgba(213, 210, 192, 0.7);
  background: rgba(213, 210, 192, 0.07);
}

/* --- Hero Photo --- */
.hero-photo-wrapper {
  position: relative;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: 0;
  opacity: 0;
  animation: heroFadeIn 0.9s ease 0.4s forwards;
}

.hero-photo-frame {
  width: clamp(280px, 30vw, 480px);
  height: clamp(520px, 92vh, 860px);
  overflow: hidden;
  /* Upside-down arch: flat top, rounded bottom */
  border-radius: 0 0 9999px 9999px;
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: filter 0.5s ease;
}

.hero-photo:hover {
  filter: brightness(1.06);
}



/* ============================================================
   HERO ANIMATIONS
   ============================================================ */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes photoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}


/* ============================================================
   MAIN LAYOUT: Sidebar + Content
   ============================================================ */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

/* Bleed sidebar beige to the left viewport edge without touching the hero */
.main-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-50vw + 50%);  /* reach left edge of viewport */
  right: calc(100% - var(--sidebar-width));
  bottom: 0;
  background: var(--bg-alt);
  z-index: 0;
  pointer-events: none;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: var(--space-lg) var(--space-md);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) transparent;
  z-index: 1;
}

.sidebar::-webkit-scrollbar       { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent-mid); border-radius: 2px; }

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section-title {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}


/* --- Contact --- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
  word-break: break-all;
}

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


/* --- Skills --- */
.skills-group {
  margin-bottom: 1.2rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skills-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.skills-list li:hover {
  color: var(--text);
}

.skills-list li:hover::before {
  transform: scale(1.6);
}


/* --- Languages --- */
.languages-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.language-name {
  color: var(--text);
  font-weight: 500;
}

.language-level {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--accent-mid);
}


/* --- Interests --- */
.interests-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.interests-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
  position: relative;
  transition: color 0.2s ease;
}

.interests-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.interests-list li:hover {
  color: var(--text);
}

.interests-list li:hover::before {
  transform: scale(1.6);
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding: var(--space-lg) var(--content-pad);
}


/* --- Section Header --- */
.content-section {
  margin-bottom: var(--space-xl);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1;
}


/* ============================================================
   TIMELINE (Experience + Education)
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Continuous vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
  z-index: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 0 var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

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

/* Dot marker on the timeline line */
.timeline-dot {
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 1;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 3px;
  padding-left: 1.5rem;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.timeline-company {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-body {
  padding-top: 0;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.8;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-deeper);
  color: var(--cream);
  padding: 2rem var(--content-pad);
  border-top: 1px solid rgba(117, 113, 81, 0.25);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-credit {
  font-size: 0.88rem;
  color: rgba(213, 210, 192, 0.6);
  line-height: 1.5;
}

.footer-copyright {
  font-size: 0.72rem;
  color: rgba(213, 210, 192, 0.35);
  line-height: 1.5;
}

.footer-link {
  color: var(--accent);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cream);
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }

  /* Tablet: name beside photo, body full-width below */
  .hero {
    padding: 0;
  }

  .hero-content {
    grid-template-columns: 1fr 32vw;
    grid-template-rows: auto auto;
  }

  .hero-photo-wrapper { grid-column: 2; grid-row: 1; }
  .hero-text          { grid-column: 1; grid-row: 1; }
  .hero-body          { grid-column: 1 / -1; grid-row: 2; text-align: center; max-width: 100%; padding: 0 2rem 1rem; }

  .hero-photo-frame {
    width: 100%;
    height: clamp(320px, 52vh, 560px);
    margin: 0;
  }

  .hero-divider { margin: 0 auto 1.75rem; }
  .hero-ctas    { justify-content: center; }

  .hero-quote {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    padding: 0.85rem 2rem 1.75rem;
    border-top: 1px solid rgba(213, 210, 192, 0.18);
  }
  .hero-quote::before { display: none; }

  .main-content {
    padding: var(--space-lg) 2rem;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Mobile: name + photo top row, body spans full width below */
  .hero {
    padding: 0;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr 40vw;
    grid-template-rows: auto auto;
    display: grid;
  }

  .hero-photo-wrapper { grid-column: 2; grid-row: 1; padding: 0; margin: 0; }
  .hero-text          { grid-column: 1; grid-row: 1; padding: 2rem 1rem 1.5rem 1.25rem; }
  .hero-body          { grid-column: 1 / -1; grid-row: 2; text-align: center; max-width: 100%; padding: 0 1.25rem 1rem; }

  .hero-photo-frame {
    width: 100%;
    height: clamp(260px, 58vw, 400px);
    border-radius: 0 0 9999px 9999px;
    margin: 0;
    padding: 0;
    animation: heroFadeIn 0.9s ease 0.4s forwards;
  }

  .hero-location { justify-content: flex-start; }
  .hero-divider  { margin: 0 auto 1.75rem; }
  .hero-ctas     { justify-content: center; }

  .hero-quote {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    padding: 0.85rem 1.25rem 1.75rem;
    border-top: 1px solid rgba(213, 210, 192, 0.18);
  }
  .hero-quote::before { display: none; }

  /* Disable the beige bleed pseudo-element on mobile */
  .main-layout::before {
    display: none;
  }

  /* Interests list: 2 columns on mobile */
  .interests-list {
    columns: 2;
    gap: 1rem;
  }

  /* Stack sidebar above main content */
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    padding: 2.5rem 1.5rem;
  }

  .sidebar-section {
    margin-bottom: 1.75rem;
  }

  /* Skills spans full width, groups laid out in 2 columns */
  #skills {
    grid-column: 1 / -1;
  }

  #skills .skills-group:first-of-type,
  #skills .skills-group:nth-of-type(2),
  #skills .skills-group:nth-of-type(3),
  #skills .skills-group:last-of-type {
    display: block;
  }

  .sidebar-section#skills > .sidebar-section-title {
    grid-column: 1 / -1;
  }

  #skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 0;
  }

  #skills .sidebar-section-title {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }

  /* Timeline: collapse meta column */
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    padding-left: 2rem;
  }

  .timeline-body {
    padding-left: 2rem;
  }

  .timeline-dot {
    left: -4px;
    top: 6px;
  }

  /* Footer: center-stack */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --space-lg: 2.25rem;
    --space-xl: 3.5rem;
  }

  .hero {
    padding: 0;
  }

  /* Small phones: keep 2-column hero (name | photo), body full-width below */
  .hero-content {
    grid-template-columns: 1fr 38vw;
    grid-template-rows: auto auto;
    text-align: left;
  }

  .hero-photo-wrapper { grid-column: 2; grid-row: 1; padding: 0; margin: 0; }
  .hero-text          { grid-column: 1; grid-row: 1; padding: 1.75rem 0.5rem 1rem 1rem; }
  .hero-body          { grid-column: 1 / -1; grid-row: 2; text-align: center; max-width: 100%; padding: 0 1rem 2rem; }

  .hero-photo-frame {
    width: 100%;
    height: clamp(200px, 58vw, 280px);
    margin: 0;
    padding: 0;
  }

  .hero-location {
    justify-content: flex-start;
  }

  /* Prevent hero name from overflowing narrow screens */
  .hero-name {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  /* Sidebar single column, but skills stay 2-column for less scrolling */
  .sidebar {
    grid-template-columns: 1fr;
    padding: var(--space-md) 1.25rem;
  }

  #skills {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .interests-list {
    columns: 1;
  }

  .main-content {
    padding: var(--space-lg) 1.25rem;
  }

  .footer {
    padding: 1.75rem 1.25rem;
  }

  .hero-quote {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    padding: 0.85rem 1rem 1.5rem;
    border-top: 1px solid rgba(213, 210, 192, 0.18);
  }
  .hero-quote::before { display: none; }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  /* Tighten timeline on small screens */
  .timeline-item {
    padding-bottom: 2rem;
  }

  .timeline-role {
    font-size: 1.1rem;
  }
}
