/*
  ============================================================
  MONICA CORTES PORTFOLIO - SHARED STYLESHEET
  ============================================================
  This file contains the shared CSS for all pages:
  - index.html (home)
  - about.html
  - archive.html
  - project.html

  HOW TO USE:
  1. Put this file in the same folder as your HTML files.
  2. Make sure each HTML page includes:
     <link rel="stylesheet" href="styles.css" />
  3. Replace image paths and text in each page as needed.

  TIP:
  Start by editing the variables in :root to change colors,
  spacing, and font behavior across the whole site.
  ============================================================
*/

:root {
  --blue: #013fa7;
  --light-blue: #c7dced;
  --page-bg: #f2f2f2;
  --card-gray: #d9d9d9;
  --image-container-border: #cccccc;
  --image-container-fill: #f2f2f2;
  --white: #ffffff;
  --black: #1c1c1c;
  --border: rgba(28, 28, 28, 0.1);
  --border-strong: rgba(28, 28, 28, 0.12);
  --max-width: 1440px;
  --content-width: 90%;
  --radius: 8px;
  --folder-radius: 22px;
  --nav-gap: 36px;
  --nav-gap-large: 64px;
  --project-label-gap: 10px;
  --project-block-gap: 22px;
  --project-section-gap: 96px;
  --external-arrow-size: 16px;
  --external-arrow-scale-x: 1.2;
  --nav-menu-overlay-color: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: "Apercu Pro", "Apercu", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--page-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 999px;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

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

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

.container {
  width: min(var(--max-width), var(--content-width));
  max-width: 100%;
  margin: 0 auto;
}

.grid,
main,
section {
  max-width: 100%;
}

/*
  ============================================================
  TYPE SYSTEM
  ============================================================
*/
.hero-title {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 500;
}

.subtitle {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/*
  ============================================================
  SHARED HEADER + FOOTER
  Header and footer use the body font.
  Footer-note and copyright use subtitle styling.
  ============================================================
*/
.topbar,
.footer {
  background: var(--blue);
  color: var(--white);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.about-page > .topbar,
.archive-page > .topbar {
  position: static;
  width: 100%;
}

.topbar-inner,
.footer-inner {
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.topbar,
.footer,
.topbar .brand,
.topbar .nav a,
.footer .brand,
.footer .nav a,
.footer-note,
.copyright {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand {
  font-weight: 500;
}

.nav {
  display: flex;
  gap: var(--nav-gap);
  align-items: center;
}

.topbar .nav .external:first-of-type {
  margin-left: var(--nav-gap-large);
}

.nav a {
  opacity: 0.95;
}

.external {
  display: inline-flex;
  align-items: center;
}

.external-arrow {
  width: var(--external-arrow-size);
  height: var(--external-arrow-size);
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.external-arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

body.nav-menu-open {
  overflow: hidden;
}

.nav-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--nav-menu-overlay-color);
  cursor: pointer;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  visibility: hidden;
}

body.nav-menu-open .nav-menu-overlay {
  display: block;
  opacity: 1;
  visibility: visible;
}

.footer-inner {
  align-items: flex-end;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-right {
  align-items: flex-end;
}

.footer-note,
.copyright {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

/*
  ============================================================
  SHARED IMAGE / CARD HELPERS
  ============================================================
*/
.card,
.image-frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--image-container-fill);
}

.image-frame {
  border: 1px solid var(--image-container-border);
}

.card img,
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--image-container-fill);
}

.grid {
  display: grid;
  gap: 20px;
}

.hero {
  background: var(--blue);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.hero-content {
  max-width: 90%;
}

.hero h1 {
  margin: 0 0 36px;
}

.hero p {
  margin: 0 0 18px;
  max-width: 760px;
}

.featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 400px 400px 400px;
}

.recent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recent-image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--image-container-fill);
}

.recent-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  margin-top: 28px;
}

.contact h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 500;
}

.contact a {
  color: var(--blue);
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/*
  ============================================================
  ABOUT PAGE
  ============================================================
*/
.about-main {
  padding: 84px 0 96px;
}

.about-main section {
  margin-bottom: 120px;
}

.about-main h1 {
  margin: 0 0 48px;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 500;
}

.about-main h2 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

.about-main p {
  margin: 0 0 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr);
  gap: 56px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--image-container-fill);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-row {
  margin: 32px 0 72px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
}

.cta-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  flex: 0 0 auto;
}

.cta-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.stat-number {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  font-weight: 400;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  line-height: 1.4;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  min-height: 230px;
}

.process-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.card-rule {
  height: 1px;
  background: var(--border);
  margin: 0 0 24px;
}

.services-wrap {
  border: 1px solid var(--border);
  background: var(--white);
}

.service-item {
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 32px;
}

.service-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  flex: 0 0 auto;
}

.service-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: center;
  padding: 0 32px 32px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f7f7f7;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.learn-more-arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.learn-more-arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

.shape-box {
  width: 132px;
  height: 132px;
  margin-left: auto;
  position: relative;
}

.diamond,
.diamond::before,
.diamond::after {
  position: absolute;
  border: 2px solid rgba(28, 28, 28, 0.65);
  transform: rotate(45deg);
}

.diamond {
  inset: 24px;
}

.diamond::before,
.diamond::after {
  content: "";
  inset: 18px;
}

/*
  ============================================================
  ARCHIVE PAGE
  ============================================================
*/
.archive-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.archive-page > site-header,
.archive-page > site-footer {
  flex-shrink: 0;
}

.archive-page > .archive-main {
  flex: 1 0 auto;
}

.archive-page > site-footer {
  margin-top: auto;
}

.archive-main {
  padding: 136px 0 118px;
}

.archive-intro {
  margin-bottom: 68px;
}

.archive-main h1 {
  margin: 0;
  color: var(--blue);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500;
}

.archive-folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  width: 100%;
}

.archive-folder {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.archive-folder:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.archive-folder img {
  width: min(100%, 176px);
  aspect-ratio: 1;
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.archive-folder:hover img {
  transform: translateY(-8px);
  filter: drop-shadow(0 14px 18px rgba(1, 63, 167, 0.16));
}

.archive-folder span {
  min-height: 48px;
  color: var(--black);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  transition: color 180ms ease;
}

.archive-folder:hover span {
  color: var(--blue);
}

body.archive-modal-open {
  overflow: hidden;
}

.archive-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.archive-modal.is-open {
  display: flex;
}

.archive-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
}

.archive-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 96px));
  height: min(650px, calc(100dvh - 96px));
  max-width: 100%;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.archive-modal-close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.archive-modal-close img {
  width: 32px;
  height: 32px;
  max-width: none;
  display: block;
  filter: brightness(0) saturate(100%) invert(80%);
}

.archive-modal-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.archive-modal-body {
  height: 100%;
  overflow-y: auto;
  padding: 40px;
}

.archive-modal-folder-title {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.archive-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.archive-modal-section {
  position: relative;
  isolation: isolate;
}

.archive-modal-section h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.archive-modal-section p {
  margin: 0 0 24px;
  color: var(--black);
  font-size: 13px;
  line-height: 1.45;
}

.archive-modal-gallery-wrap {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
}

.archive-modal-gallery {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: none;
  user-select: none;
  cursor: default;
}

.archive-modal-thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--archive-thumb-min-h, 300px);
  border: 1px solid var(--image-container-border);
  border-radius: 6px;
  background: var(--image-container-fill);
}

.archive-modal-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

/*
  ============================================================
  PROJECT PAGE
  ============================================================
*/
.project-main {
  padding: 44px 0 60px;
  max-width: 100%;
  overflow-x: clip;
}

.project-main h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
}

.project-main .project-section .subtitle {
  margin-bottom: var(--project-label-gap);
  color: var(--blue);
}

.project-main .project-hero .project-summary .subtitle {
  color: var(--black);
}

.project-section .subtitle + h2 {
  margin-top: 0;
}

.project-main h2 {
  margin: 0 0 var(--project-block-gap);
  max-width: 920px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

.project-main h2 em {
  font-style: italic;
  color: var(--blue);
}

#journey h2 {
  max-width: 720px;
  font-style: italic;
}

.project-main p {
  margin: 0 0 var(--project-block-gap);
  max-width: 820px;
  font-size: 16px;
  line-height: 1.62;
}

.project-main .process-entry ul {
  margin: 0 0 var(--project-block-gap);
  max-width: 820px;
  padding-left: 1.25em;
  list-style: disc;
}

.project-main .process-entry li {
  font-size: 16px;
  line-height: 1.62;
}

.project-main .process-entry li + li {
  margin-top: 0.35em;
}

.project-main .hero-image {
  margin-bottom: var(--project-section-gap);
}

.project-main .process-entry > .image-frame,
.project-main .content-section:not(.process-group) > .image-frame {
  margin-bottom: var(--project-block-gap);
}

.project-main .custom-containers,
.project-main .process-entry > .custom-containers,
.project-main .process-entry > .custom-container,
.project-main .process-entry > .sticky-note-section,
.project-main .process-entry > .sticky-note-grid,
.project-main .process-entry > .portfolio-pages-section,
.project-main .process-entry > .three-up,
.project-main .process-entry > .user-goals-layout,
.project-main .process-entry > .platform-preview-container,
.project-main .content-section:not(.process-group) > .custom-containers {
  margin-bottom: var(--project-block-gap);
}

.custom-containers {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.custom-container:not(.platform-preview-container) {
  flex: 1 1 0;
  min-width: 0;
  height: 320px;
  border: 1px solid var(--image-container-border);
  background: var(--image-container-fill);
  border-radius: 2px;
  overflow: hidden;
}

.custom-container:not(.platform-preview-container) .custom-container-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.custom-container-copy {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding-left: 32px;
  padding-right: 20px;
  box-sizing: border-box;
}

.custom-container:not(.platform-preview-container) .custom-container-copy p {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  text-align: center;
}

#final-solution .custom-containers {
  flex-direction: row;
  flex-wrap: nowrap;
  height: 180px;
  gap: 20px;
}

#final-solution .custom-containers > .custom-container-inner,
#final-solution .custom-container:not(.platform-preview-container) {
  flex: 1 1 0;
  min-width: 0;
}

#final-solution .custom-container:not(.platform-preview-container) {
  display: flex;
  width: 100%;
  height: fit-content;
  min-height: 0;
  border: 1px solid #ccc;
  background: #f2f2f2;
  border-radius: 4px;
  overflow: hidden;
}

#final-solution .custom-containers > .custom-container-inner,
#final-solution .custom-container:not(.platform-preview-container) .custom-container-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: none;
  height: 180px;
  overflow: hidden;
  gap: 24px;
  padding-top: 0;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  background: #f2f2f2;
  box-sizing: border-box;
}

#final-solution .custom-container:not(.platform-preview-container) .custom-container-inner {
  border: none;
  border-radius: 0;
  background: transparent;
}

#final-solution .custom-container-image {
  width: fit-content;
  height: 260px;
  max-width: none;
  display: block;
  margin: 0;
  padding: 20px 0 0;
  object-fit: contain;
  object-position: top left;
  box-sizing: border-box;
}

#final-solution .custom-container:not(.platform-preview-container) .custom-container-copy,
#final-solution .custom-containers > .custom-container-inner .custom-container-copy {
  width: 100%;
  height: fit-content;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  text-align: left;
}

#final-solution .custom-container:not(.platform-preview-container) .custom-container-copy p,
#final-solution .custom-containers > .custom-container-inner .custom-container-copy p {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-wrap: wrap;
  text-align: left;
}

@media (max-width: 980px) {
  .custom-containers {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .custom-container:not(.platform-preview-container) {
    height: 280px;
  }

  #final-solution .custom-containers {
    flex-direction: column;
    height: auto;
  }

  #final-solution .custom-container:not(.platform-preview-container) {
    height: auto;
    min-height: 0;
  }

  #final-solution .custom-containers > .custom-container-inner,
  #final-solution .custom-container:not(.platform-preview-container) .custom-container-inner {
    flex-direction: column;
    height: auto;
    min-height: 180px;
    gap: 20px;
  }

  #final-solution .custom-container:not(.platform-preview-container) .custom-container-copy,
  #final-solution .custom-containers > .custom-container-inner .custom-container-copy {
    padding: 0 20px 20px;
  }

  #final-solution .custom-container-image {
    margin: 20px 20px 0;
    padding: 0;
  }
}

.platform-preview-container {
  display: flex;
  flex-direction: column;
  height: auto;
  border: 1px solid var(--image-container-border);
  background: var(--image-container-fill);
  border-radius: 2px;
  overflow: hidden;
}

.platform-preview-inner {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 24px 0;
}

.platform-preview-title {
  margin: 0;
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
}

.platform-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  height: auto;
}

.platform-preview-grid > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.platform-preview-item {
  margin: 0;
  min-width: 0;
}

.platform-preview-frame {
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
  width: 100%;
  height: 166px;
}

.platform-preview-frame img {
  width: 100%;
  height: 166px;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.project-main .meta-label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}

.meta-value {
  font-size: 16px;
  line-height: 1.5;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-bottom: var(--project-section-gap);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-self: end;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}

.hero-image {
  aspect-ratio: 16 / 8;
  margin-bottom: var(--project-section-gap);
}

.content-section {
  margin-bottom: var(--project-section-gap);
}

.process-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--project-section-gap) * 0.82);
}

.process-entry > :last-child,
.project-main .content-section:not(.process-group) > :last-child {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.three-up .image-frame {
  aspect-ratio: 4 / 3;
}

.three-up > div > .image-frame + p {
  font-weight: 600;
}

.user-goals-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.user-goals-image {
  aspect-ratio: auto;
}

.user-goals-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.user-goals-content p,
.user-goals-content ul {
  margin: 0 0 var(--project-block-gap);
  max-width: none;
}

.user-goals-content ul {
  padding-left: 1.25em;
  list-style: disc;
}

.user-goals-content li {
  font-size: 16px;
  line-height: 1.62;
}

.user-goals-content li + li {
  margin-top: 0.35em;
}

.user-goals-content > :last-child {
  margin-bottom: 0;
}

.reflection-panels {
  display: flex;
  flex-direction: column;
  gap: calc(var(--project-section-gap) * 0.72);
}

.reflection-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.16fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}

.reflection-row-label {
  margin: 0;
  color: rgba(28, 28, 28, 0.55);
}

.reflection-row-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.reflection-column h2,
.reflection-column p {
  max-width: none;
}

.reflection-column p {
  margin-bottom: 0;
}

.sticky-note-section {
  padding: 28px 24px;
  border: none;
  background: unset;
  border-radius: 0;
  width: 100%;
}

.sticky-note-title {
  margin: 0 0 24px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: rgba(28, 28, 28, 0.75);
}

.sticky-note-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sticky-note-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.sticky-note-row--top .note {
  flex: 0 1 360px;
  max-width: 360px;
}

.sticky-note-row--bottom .note {
  flex: 0 1 280px;
  max-width: 280px;
}

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  min-height: 100px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.note--blue {
  background: #e8f1fc;
  color: #4a7ab8;
  border-color: #4a7ab8;
}

.note--pink {
  background: #fceef1;
  color: #c96b7d;
  border-color: #c96b7d;
}

.note--green {
  background: #edf6ed;
  color: #5d9a5d;
  border-color: #5d9a5d;
}

.note--cyan {
  background: #e9f6f9;
  color: #3d96ad;
  border-color: #3d96ad;
}

.note--purple {
  background: #f2edf8;
  color: #7d6ba8;
  border-color: #7d6ba8;
}

.portfolio-pages-section {
  padding: 28px 24px;
  border: none;
  background: var(--image-container-fill);
  border-radius: 2px;
  text-align: center;
}

.portfolio-pages-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.portfolio-page-item {
  margin: 0;
  flex: 0 1 260px;
}

.portfolio-page-frame {
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
  aspect-ratio: 8.5 / 11;
}

.portfolio-page-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.portfolio-pages-caption {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
  height: fit-content;
  font-size: 16px;
  line-height: 1.62;
  font-style: italic;
  text-align: center;
}

.project-main .image-frame {
  border-radius: 2px;
}

.project-main .custom-container:not(.platform-preview-container) .custom-container-copy p,
.project-main .platform-preview-title,
.project-main .portfolio-pages-caption,
.project-main .sticky-note-title {
  font-style: italic;
  text-align: center;
}

#final-solution .custom-container:not(.platform-preview-container) .custom-container-copy p {
  text-align: left;
}

.process-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.process-step .image-frame {
  aspect-ratio: 16 / 10;
}

.arrow {
  font-size: 28px;
}

.side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 36px;
  align-items: start;
}

.side-by-side .image-frame {
  aspect-ratio: 16 / 10;
}

.full-width-image {
  aspect-ratio: 16 / 6;
}

.thanks-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.thanks-section .image-frame {
  aspect-ratio: 4 / 3;
}

.bottom-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bottom-gallery .image-frame {
  aspect-ratio: 16 / 10;
}

.project-main hr {
  border: 0;
  border-top: 1px solid var(--border-strong);
  margin: 48px 0;
}

/*
  ============================================================
  RESPONSIVE STYLES
  ============================================================
*/
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
  }

  .topbar-inner {
    flex-wrap: wrap;
    align-items: center;
    width: min(100%, calc(100% - 20px));
    max-width: 100%;
  }

  .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 16px 0 4px;
  }

  .topbar.is-menu-open .nav {
    display: flex;
  }

  .topbar .nav .external:first-of-type {
    margin-left: 0;
  }

  .topbar.is-menu-open .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-menu-open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-menu-open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding: 84px 0 110px;
  }

  .hero-title {
    font-size: 40px;
    max-width: none;
  }

  .featured-grid,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .stats-grid,
  .card-grid,
  .service-body,
  .project-hero,
  .project-meta,
  .two-column,
  .sticky-note-row {
    flex-direction: column;
    align-items: center;
  }

  .project-hero .project-meta {
    align-self: stretch;
    width: 100%;
  }

  .sticky-note-row--top .note,
  .sticky-note-row--bottom .note {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }

  .portfolio-page-item {
    flex: 0 1 200px;
  }

  .three-up,
  .side-by-side,
  .thanks-section,
  .bottom-gallery,
  .user-goals-layout,
  .reflection-row,
  .reflection-row-columns {
    grid-template-columns: 1fr;
  }

  .shape-box {
    margin-left: 0;
  }

  .archive-main h1 {
    font-size: 40px;
  }

  .archive-folder img {
    width: min(100%, 160px);
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact a {
    word-break: break-word;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: min(100%, calc(100% - 20px));
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-right {
    gap: 16px;
  }

  .footer-right .nav {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --project-label-gap: 8px;
    --project-block-gap: 18px;
    --project-section-gap: 64px;
  }

  .hero-title,
  .about-main h1,
  .archive-main h1,
  .project-main h1 {
    font-size: 32px;
  }

  .about-main h2,
  .project-main h2 {
    font-size: 28px;
  }

  .featured-grid,
  .recent-grid {
    grid-template-columns: 1fr;
  }

  .archive-main {
    padding: 92px 0 84px;
  }

  .archive-intro {
    margin-bottom: 44px;
  }

  .archive-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .archive-folder img {
    width: min(100%, 128px);
  }

  .archive-folder span {
    min-height: 42px;
    font-size: 16px;
  }

  .platform-preview-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .service-header {
    padding: 22px;
  }

  .service-body {
    padding: 0 22px 22px;
  }

  .contact a {
    word-break: break-word;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 0.03em;
  }
}
