/* ─── Color palette: periwinkle blue & cream ─── */
:root {
  --blue: #6892c9;
  --blue-dark: #5278ad;
  --blue-darker: #3d5f8a;
  --blue-light: #a8c4e8;
  --blue-pale: #dce8f5;
  --cream: #f8f5ee;
  --cream-dark: #ede8dc;
  --text: #5278ad;
  --text-body: #3d5f6e;
  --text-muted: #6b8aab;
  --bg: var(--cream);
  --card: #fffcf7;
  --border: rgba(104, 146, 201, 0.28);
  --border-strong: var(--blue);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-icon: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --shadow: 0 2px 8px rgba(82, 120, 173, 0.08), 0 8px 24px rgba(82, 120, 173, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

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

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.text-muted {
  color: var(--text-muted);
}

/* ─── Split-screen hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-visual {
  background: var(--blue);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2rem;
  position: relative;
}

.portrait-arch {
  position: relative;
  width: min(20rem, 75vw);
  height: min(28rem, 72vh);
  border-radius: 50% 50% 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

.headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 32%;
}

.headshot-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.hero-content {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.hero-content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 22rem;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin-bottom: 2.5rem;
}

.hero-name span {
  display: block;
}

.hero-nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.hero-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.2s, opacity 0.2s;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--blue-dark);
}

/* ─── Social icons ─── */
.social-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-icon);
  color: var(--blue);
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.social-icon:not(.social-icon--email) svg {
  width: 1.35rem;
  height: 1.35rem;
}

.social-icon:hover,
.social-icon:focus-visible {
  transform: translateY(-2px);
  background: var(--blue-pale);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.social-icon--email:hover,
.social-icon--email:focus-visible {
  background: rgba(104, 146, 201, 0.12);
  border-color: var(--blue);
  color: var(--blue);
}

/* ─── Content / bento ─── */
.content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.bento-section {
  padding-top: 3rem;
}

.bento-section:first-child {
  padding-top: 2rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card-intro {
  grid-column: span 8;
  padding: 1.75rem;
}

.card-intro-top {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
}

.card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 32%;
  border-radius: var(--radius-sm);
}

.card-avatar-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
}

.card-intro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

.card-intro-title strong {
  font-weight: 600;
}

.card-intro-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
  padding-left: calc(3.5rem + 1.25rem);
}

.card-about {
  grid-column: span 4;
  min-height: 16rem;
  grid-row: span 2;
}

.card-experience {
  grid-column: span 8;
}

.card-about .about-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-about .about-content p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.card-label-icon {
  font-size: 0.625rem;
  color: var(--blue);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-left: 1px solid var(--blue-pale);
  margin-left: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-year {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
}

.timeline-body {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.65rem;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--blue-pale);
}

.timeline-body p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.45;
}

.bento-grid--projects {
  margin-top: 0;
}

.card-project {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 14rem;
}

.card-project--wide {
  grid-column: span 8;
}

.card-project--solo {
  grid-column: span 12;
}

.card-project-desc p {
  margin-bottom: 1rem;
}

.card-project-desc p:last-child {
  margin-bottom: 0;
}

.card-project-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.card-project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-dark);
  width: fit-content;
  border-bottom: 1px solid var(--blue-pale);
  transition: border-color 0.2s, color 0.2s;
}

.card-link:hover {
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

/* ─── Photography collage (reference layout) ─── */
.photography-section {
  background: var(--blue);
  padding: 4rem 1.5rem 5rem;
  margin-top: 2rem;
}

.photo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.photo-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
  margin-bottom: 0.75rem;
  padding-left: 0.2em;
  width: 100%;
}

.photo-subtitle {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  color: var(--blue-pale);
  max-width: 28rem;
  margin: 0 auto;
}

.photo-collage-wrap {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

/*
  Column masonry — natural aspect ratios, uneven column heights.
*/
.photo-collage {
  column-count: 6;
  column-gap: 0;
  width: 100%;
  max-width: min(1320px, 96vw);
  margin: 0 auto;
  line-height: 0;
}

.photo-frame {
  margin: 0;
  padding: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  line-height: 0;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.social-icons--footer {
  margin-top: 0.25rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 55vh;
    padding-top: 2rem;
  }

  .hero-content {
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
  }

  .card-intro {
    grid-column: span 12;
  }

  .card-intro-body {
    padding-left: 0;
  }

  .card-about,
  .card-experience {
    grid-column: span 6;
  }

  .card-project,
  .card-project--wide {
    grid-column: span 12;
  }

  .photo-collage {
    column-count: 4;
    max-width: min(960px, 94vw);
  }
}

@media (max-width: 600px) {
  .hero-nav {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .portrait-arch {
    width: min(16rem, 65vw);
    height: min(22rem, 50vh);
  }

  .card-intro-top {
    flex-direction: column;
  }

  .card-about,
  .card-experience {
    grid-column: span 12;
  }

  .photography-section {
    padding: 3rem 1rem 4rem;
  }

  .photo-collage {
    column-count: 2;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .social-icon:hover {
    transform: none;
  }
}
