@charset "UTF-8";

/*
  Alexandrea Procida Portfolio
  Clean editorial/gallery CSS
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
/* Primary Brand */
  --primary: #2E5378;      /* Muted Oxford Blue */
  --primary-dark: #1F3D5A;

  /* Accent */
  --accent: #7A2F3A;       /* Deep Burgundy */

  /* Backgrounds */
  --parchment: #FAF8F4;
  --paper: #FFFCF8;

  /* Text */
  --text: #1F1F1F;
  --text-light: #666666;

  /* Borders */
  --border: #DDD7CC;

  /* Optional */
  --white: #FFFFFF;

  /* Legacy aliases used by the existing stylesheet */
  --cream: var(--parchment);
  --black: var(--text);
  --gray: var(--text-light);
  --light-gray: var(--border);
  --max-width: 1180px;
  --section-space: clamp(4rem, 8vw, 8rem);
  --page-padding: clamp(1.25rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--light-gray);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

main {
  width: 100%;
}



/* Header / Navigation */


.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--page-padding);
  background: #fcfaf8;
  border-bottom: 1px solid var(--light-gray);
  backdrop-filter: blur(14px);
}

.site-logo {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  color: var(--primary);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--black);
  border-bottom-color: var(--primary);
}



/* Shared Typography */


h1,
h2,
h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

p {
  margin: 0;
}

.eyebrow {
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.intro-text,
.hero-text {
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #2b2b2b;
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 var(--page-padding);
}


/* Used for accessibility headings that should not be visible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* Buttons / Links */



/* Buttons / Links */


.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.button:hover,
.button:focus-visible {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--black);
  color: white;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-bottom: 2px solid currentColor;
}


/* Homepage */


.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--page-padding) 5rem;
  border-bottom:2px solid rgba(39,76,119,.12);

  background: linear-gradient(
    180deg,
    #FAF8F4 0%,
    #EEF3F8 100%
  );
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.featured-section,
.preview-grid,
.project-list,
.two-column-section,
.contact-list,
.project-details-grid,
.project-statement,
.image-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.featured-project,
.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.project-image-link img,
.work-feature img,
.large-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-summary {
  display: grid;
  gap: 1.5rem;
  font-size: 1.05rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-meta li {
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--gray);
  font-size: 0.85rem;
  white-space: nowrap;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--light-gray);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px rgba(232, 31, 100, 0.18),
    0 0 0 1px rgba(232, 31, 100, 0.15);
}

.project-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    background: white;
    padding: 1rem;
    display: block;
}
.project-card h3,
.project-card p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.project-card p {
  padding-bottom: 1.2rem;
  color: var(--gray);
}



/* Featured publication */

.featured-book {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.book-cover {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.book-cover a {
  display: block;
}

.book-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(25, 25, 25, 0.18);
}

.book-content {
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
}

.book-content h2 {
  color: var(--primary);
  max-width: none;
}

.book-content h3 {
  max-width: 30ch;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.book-content p {
  color: #2f2f2f;
  font-size: 1.05rem;
}

.book-content .button {
  width: fit-content;
}

/* ABOUT */


.page-hero {
  padding: 3rem 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--light-gray);
     background: linear-gradient(
    180deg,
    #FAF8F4 0%,
    #EEF3F8 100%
  );
}

.page-hero > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.project-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding) clamp(2.5rem, 6vw, 5rem);
}

.page-hero h1,
.project-hero h1 {
  color: var(--primary);
}

.page-hero.compact h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}

.page-hero.compact p:not(.eyebrow) {
  margin-top: 0.6rem;
  color: #2f2f2f;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: 0;
}

.portrait-image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.rich-text {
  max-width: 760px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.rich-text p + p,
.rich-text h2 + p,
.project-statement p + p {
  margin-top: 1.25rem;
}

.project-list {
  padding-top: 0;
}

.work-feature {
  padding: 1.5rem;
  gap: 2rem;
  background: var(--paper);
  border: 1px solid var(--light-gray);
  margin-bottom: 4rem;
}

.work-feature h2 {
  margin-bottom: 1rem;
}

.work-feature p:not(.eyebrow) {
  font-size: 1.1rem;
  color: #333;
}

.project-gallery + .project-gallery {
  margin-top: 2rem;
}

.large-image {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding) var(--section-space);
}

figcaption {
  margin-top: 0.6rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.project-details-grid h2,
.project-statement h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-details-grid ul {
  padding-left: 1.2rem;
  margin: 0;
}

.project-details-grid li + li {
  margin-top: 0.55rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* ==========================
   COMMUNICATE PAGE
========================== */


.project-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.work-category {
  margin-bottom: 6rem;
}

.category-header {
  border-top: 1px solid var(--light-gray);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.category-header h2 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.category-header p {
  margin: 0;
  max-width: 700px;
  color: var(--gray);
  line-height: 1.6;
}

.project-info {
  padding: 0.85rem 1rem 1rem;
}

.project-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.project-info span {
  color: var(--gray);
}




/* ==========================
   CONSULTING
========================== */

.consulting-section {
  padding: var(--section-space) 0;
}

.consulting-section .section-heading {
  margin-bottom: 3rem;
}

.consulting-intro {
  max-width: 760px;
  margin-top: 1.5rem;
  color: var(--gray);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.consulting-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--light-gray);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.consulting-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(39, 76, 119, 0.12);
}

.consulting-number {
  margin-bottom: auto;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.consulting-card h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.consulting-card p:last-child {
  color: var(--gray);
}

.consulting-topics,
.consulting-format {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max-width);
  margin: 5rem auto 0;
  padding: 3rem var(--page-padding);
  border-top: 1px solid var(--light-gray);
}

.consulting-topics h3,
.consulting-format h3 {
  color: var(--primary);
  line-height: 1.1;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-gray);
}

.topic-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--black);
}

.topic-list li:nth-child(odd) {
  padding-right: 1.5rem;
}

.topic-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--light-gray);
}

.consulting-format p {
  max-width: 680px;
  color: var(--gray);
  font-size: 1.1rem;
}

.consulting-cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 3rem var(--page-padding);
  background: var(--primary);
  color: var(--paper);
}

.consulting-cta .eyebrow {
  color: var(--paper);
}

.consulting-cta h2 {
  max-width: 14ch;
  color: var(--paper);
}

.consulting-cta .button {
  flex-shrink: 0;
  background: var(--paper);
  color: var(--primary);
  border-color: var(--paper);
}

.consulting-cta .button:hover,
.consulting-cta .button:focus-visible {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
/* ==========================
   CONSULTING HERO
========================== */

.consulting-hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.consulting-hero > .consulting-hero-content {
  display: grid;

  /* Gives the logo more room */
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);

  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);

  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;

  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.consulting-hero-text {
  min-width: 0;
}

.consulting-hero h1 {
  max-width: 10ch;
  color: var(--primary);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.88;
}

.consulting-tagline {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;

  color: var(--primary);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.consulting-hero .intro-text {
  max-width: 760px;
}

.consulting-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.consulting-logo img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;

  background: transparent;
}
/* ==========================
   WAYS TO CONNECT
========================== */

.work-together-section {
  width: 100%;
  padding: 3rem 0 5rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;

  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.contact-option {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 230px;
  padding: 2rem;

  background: var(--paper);
  border: 1px solid var(--light-gray);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-option:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(39, 76, 119, 0.12);
}


/* NUMBERS */

.work-number {
  margin: 0 0 auto;

  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}


/* CARD TITLES */

.contact-option h3 {
  margin: 2.5rem 0 0.8rem;

  color: var(--primary);
  line-height: 1.05;
}


/* CARD TEXT */

.contact-option p:last-child {
  margin: 0;
  color: var(--gray);
}


/* TABLET / MOBILE */

@media (max-width: 700px) {

  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-option {
    min-height: 0;
  }
}
/* ==========================
   CONTACT / EMAIL SECTION
========================== */

.contact-form-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;

  width: calc(100% - (2 * var(--page-padding)));
  max-width: var(--max-width);
  margin: 5rem auto;

  overflow: hidden;
  border: 1px solid var(--light-gray);
}


/* LEFT SIDE */

.contact-form-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(3rem, 6vw, 5rem);

  background: #faf8f4;
  color: var(--black);
}

.contact-form-intro .eyebrow {
  color: var(--primary);
}

.contact-form-intro h2 {
  max-width: 8ch;
  margin: 0 0 1.5rem;

  color: var(--primary);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
}

.contact-form-intro p:not(.eyebrow) {
  max-width: 34ch;
  color: var(--gray);
  font-size: 1.05rem;
}


/* RIGHT SIDE */

.contact-email-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: clamp(3rem, 6vw, 5rem);

  background: var(--primary);
  color: var(--paper);
}

.contact-email-panel .eyebrow {
  color: var(--paper);
}

.contact-email-panel h3 {
  max-width: 14ch;
  margin: 0 0 1.5rem;

  color: var(--paper);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.contact-email-text {
  max-width: 520px;
  margin: 0 0 2rem;

  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* EMAIL BUTTON */

.contact-email-button {
  background: var(--paper);
  color: var(--primary);
  border-color: var(--paper);
}

.contact-email-button:hover,
.contact-email-button:focus-visible {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}


/* MOBILE */

@media (max-width: 860px) {

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-form-intro,
  .contact-email-panel {
    padding: 3rem var(--page-padding);
  }

  .contact-form-intro h2,
  .contact-email-panel h3 {
    max-width: none;
  }
}


/* MOBILE */
@media (max-width: 700px) {

  .contact-options {
    grid-template-columns: 1fr;
  }

}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-form-intro h2 {
    max-width: none;
  }

  .featured-project,
  .featured-book,
  .work-feature,
  .two-column-section,
  .project-details-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .document-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
    /* CONSULTING */
  .consulting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consulting-topics,
  .consulting-format {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .consulting-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .consulting-hero > .consulting-hero-content {
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 2rem;
}

.consulting-logo img {
  max-width: 150px;
}
}

@media (max-width: 560px) {
  .page-hero.compact h1 {
    max-width: 9ch;

    white-space: normal;
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.78rem;
  }

  .contact-form-section {
    width: 100%;
    margin: 3rem 0;
    border-left: 0;
    border-right: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group,
  .form-group-full {
    grid-column: 1;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .featured-book {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .book-cover {
    max-width: 260px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .project-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }
  .consulting-hero > .consulting-hero-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.consulting-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 13vw, 4rem);
}

.consulting-logo {
  justify-content: flex-start;
  order: -1;
}

.consulting-logo img {
  max-width: 120px;
}

.consulting-tagline {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
    /* ==========================
     CONSULTING - PHONE
  ========================== */

  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .consulting-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .consulting-number {
    margin-bottom: 1.5rem;
  }

  .consulting-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .consulting-topics,
  .consulting-format {
    display: block;
    margin-top: 3rem;
    padding: 2.5rem var(--page-padding);
  }

  .consulting-topics > div {
    margin-bottom: 2rem;
  }

  .topic-list {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topic-list li,
  .topic-list li:nth-child(odd),
  .topic-list li:nth-child(even) {
    padding: 1rem 0;
    border-left: 0;
  }

  .consulting-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 2.5rem var(--page-padding);
  }

  .consulting-cta h2 {
    max-width: none;
  }

  .consulting-cta-text br {
    display: none;
  }

  .consulting-cta .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================
   FOOTER
========================== */

.site-footer {
  width: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  padding: 1.5rem 7%;

  background-color: #274C77;
  color: #FAF8F4;

  border: none;
  margin: 0;
}

/* COPYRIGHT */
.site-footer p {
  margin: 0;
  padding: 0;

  color: #FAF8F4;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
}

/* RIGHT SIDE */
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;

  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

/* ALL FOOTER LINKS */
.site-footer a {
  color: #FAF8F4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;

  margin: 0;
  padding: 0;

  transition: opacity 0.25s ease;
}

.site-footer a:hover {
  opacity: 0.7;
}


/* ==========================
   MOBILE
========================== */

@media (max-width: 600px) {

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1rem;
    padding: 1.5rem 6%;

    text-align: center;
  }

  .social-links {
    justify-content: center;
    gap: 1rem;
  }
}


/* ==========================
   VIDEO EMBED
========================== */

.video-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ==========================
   RESPONSIVE NAVIGATION FIX
========================== */

/* Desktop navigation */
.menu-toggle,
.menu-close,
.nav-overlay {
  display: none;
}

@media (min-width: 861px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    transform: none;
  }
}

/* Tablet and phone drawer */
@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem var(--page-padding);
  }

  .site-logo {
    max-width: calc(100% - 60px);
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    line-height: 1.05;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    padding: 5.5rem 1.5rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--parchment);
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 40px rgba(31, 31, 31, 0.14);
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: block;
    visibility: hidden;
    background: rgba(28, 28, 28, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav-overlay.is-visible {
    visibility: visible;
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-logo {
    white-space: nowrap;
  }

  .site-nav {
    width: min(88vw, 320px);
  }
}

/* ==========================================================
   FINAL PUBLICATIONS + FOOTER LAYOUT FIX
   Keep this block at the very END of the stylesheet.
========================================================== */

/* Publications */
.preview-grid {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding) var(--section-space);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}

.project-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--light-gray);
}

.project-card > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #FFFFFF;
  padding: 1rem;
}

.project-card h3 {
  margin: 1rem 1rem 0.4rem;
  padding: 0;
  color: var(--black);
  line-height: 1.05;
}

.project-card p {
  margin: 0;
  padding: 0 1rem 1.25rem;
  color: var(--gray);
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  width: 100%;
  margin: 0;
  padding: 1.5rem var(--page-padding);
  box-sizing: border-box;

  background: var(--primary);
  color: var(--paper);
}

.site-footer .footer-copyright {
  margin: 0;
  padding: 0;
  color: var(--paper);
  line-height: 1.2;
}

.site-footer .social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-footer a,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper);
  text-decoration: none;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.site-footer .social-link svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer .footer-email {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-footer .social-links {
    justify-content: center;
  }
}
