:root {
  --paper: #fbfbf8;
  --ink: #1f2933;
  --muted: #60717b;
  --line: #d9e0df;
  --teal: #1f766f;
  --coral: #c85f4d;
  --gold: #b58845;
  --blue: #4d72a8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(31, 118, 111, 0.45);
  text-underline-offset: 0.2em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 620px;
  max-height: 760px;
  padding: 7rem 0 4rem;
  overflow: hidden;
  color: var(--white);
  background: #1f2933;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 30, 39, 0.84), rgba(20, 30, 39, 0.34)),
    url("../images/art-gallery.jpg") center / cover;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #d9e7e4;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  font-size: 4rem;
}

.hero p {
  max-width: 640px;
  margin: 1.2rem 0 1.75rem;
  color: #eef5f3;
  font-size: 1.15rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.section {
  padding: 4.75rem 0;
}

.section.alt {
  background: var(--white);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card-content {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.tag {
  width: fit-content;
  border-bottom: 3px solid var(--coral);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card:nth-child(2) .tag {
  border-color: var(--blue);
}

.project-card:nth-child(3) .tag {
  border-color: var(--gold);
}

.project-card h3 {
  font-size: 1.45rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.portrait-panel {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 118, 111, 0.2), rgba(200, 95, 77, 0.08)),
    var(--white);
  padding: 2rem;
}

.resume-list,
.meta-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.resume-list li,
.meta-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-hero {
  padding: 4.5rem 0 3rem;
  background: var(--white);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: center;
}

.case-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.case-hero h1 {
  color: var(--ink);
  font-size: 3.25rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.case-meta span {
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.case-section {
  padding-bottom: 3rem;
}

.case-section h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.case-section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.insight {
  border-top: 4px solid var(--teal);
  background: var(--white);
  padding: 1rem;
}

.insight:nth-child(2) {
  border-color: var(--coral);
}

.insight:nth-child(3) {
  border-color: var(--blue);
}

.insight:nth-child(4) {
  border-color: var(--gold);
}

.insight strong {
  display: block;
  margin-bottom: 0.25rem;
}

.mock-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mock {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
}

.mock-screen {
  display: grid;
  gap: 0.6rem;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f6;
  padding: 0.8rem;
}

.bar,
.pill,
.tile {
  display: block;
  border-radius: 999px;
  background: #cfdcda;
}

.bar {
  width: 72%;
  height: 12px;
}

.pill {
  width: 46%;
  height: 24px;
  background: var(--teal);
}

.tile {
  width: 100%;
  height: 56px;
  border-radius: 6px;
  background: #e7eceb;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--white);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
  }

  h1,
  .case-hero h1 {
    font-size: 2.6rem;
  }

  .section-head,
  .project-grid,
  .split,
  .case-hero-grid,
  .content-grid,
  .insight-grid,
  .mock-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: 520px;
    padding: 5rem 0 3rem;
  }

  h1,
  .case-hero h1 {
    font-size: 2.2rem;
  }

  .button {
    width: 100%;
  }
}
