:root {
  /* Site colors. Change these variables to adjust the whole visual style quickly. */
  --ink: #151515;
  --muted: #62615d;
  --paper: #f4f0e8;
  --panel: #fffaf0;
  --line: #24231f;
  --steel: #d7dee0;
  --blue: #2457a6;
  --green: #4f7d54;
  --gold: #c89234;
  --pink-pop: #F790CC;
  --violet-pop: #AF90F7;
  --shadow: 0 24px 70px rgba(24, 24, 20, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  line-height: 1.45;
}

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

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

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(244, 240, 232, 0.88);
  border-bottom: 1px solid rgba(21, 21, 21, 0.14);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--pink-pop) 0 50%, var(--violet-pop) 50% 100%);
  border: 2px solid var(--ink);
}

nav {
  gap: clamp(12px, 3vw, 28px);
  color: #34332f;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-action {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-action:hover,
.nav-action:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--violet-pop);
}

/* Hero section */
.hero {
  min-height: calc(100vh - 65px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 56px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--violet-pop);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--pink-pop);
  border: 1px solid var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-family: "Jersey 10", "Archivo", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 7.9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: "Jersey 10", "Archivo", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-family: "Jersey 10", "Archivo", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  color: #3d3c37;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  background: var(--pink-pop);
}

.button.secondary {
  background: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.icon-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Portrait image: border only. No background, caption, or decorative text. */
.portrait-stage {
  margin: 0;
  display: grid;
  align-items: end;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.portrait {
  width: min(100%, 620px);
  justify-self: center;
  filter: saturate(0.95) contrast(1.08);
}

/* Shared section spacing */
.section,
.profile-section {
  padding: clamp(54px, 8vw, 118px) clamp(18px, 4vw, 56px);
}

.profile-section {
  max-width: 1320px;
  margin: 0 auto;
}

/* Work/project grid. Uses auto-fit so adding/removing cards does not require CSS changes. */
.work-section {
  background: #f8f5ed;
}

.work-heading {
  max-width: 1320px;
  margin: 0 auto 24px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-rows: 260px auto;
  min-height: 470px;
  border: 1px solid var(--ink);
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--ink);
}

.project-content {
  padding: clamp(20px, 3vw, 34px);
}

.project-content p {
  color: #3e3d38;
  font-size: 1.03rem;
}

/* Profile cards */
.profile-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.16);
}

.profile-group {
  min-height: 260px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--ink);
  background: var(--panel);
}

.entry-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--violet-pop);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-label::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--violet-pop);
  border: 1px solid var(--ink);
}

.entry-list {
  display: grid;
  gap: 18px;
}

.resume-entry {
  padding-top: 16px;
  border-top: 1px solid rgba(21, 21, 21, 0.16);
}

.resume-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.resume-entry h3 {
  margin-bottom: 10px;
}

.resume-entry p {
  color: #45443f;
}

.resume-entry p:last-child {
  margin-bottom: 0;
}

.skill-groups {
  display: grid;
  gap: 18px;
}

.skill-group {
  padding-top: 16px;
  border-top: 1px solid rgba(21, 21, 21, 0.16);
}

.skill-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.skill-group h3 {
  margin-bottom: 10px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.skills span {
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--panel);
  font-weight: 800;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

/* Individual project pages */
.project-page {
  padding: clamp(34px, 6vw, 84px) clamp(18px, 4vw, 56px);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  max-width: 1320px;
  margin: 0 auto;
}

.project-hero h1 {
  margin-bottom: 18px;
}

.project-hero p {
  color: #45443f;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.project-hero img {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-summary {
  max-width: 1320px;
  margin: 30px auto 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--ink);
  background: var(--panel);
}

.project-summary p {
  max-width: 980px;
  margin-bottom: 0;
  color: #45443f;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.case-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1320px;
  margin: 54px auto 0;
}

.case-template article {
  min-height: 260px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--ink);
  background: var(--panel);
}

.case-template p {
  color: #45443f;
}

.case-template p:last-child {
  margin-bottom: 0;
}

.case-template.wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Case-study images inside article cards.
   Use .case-media for one image, .two-up for two columns, and .three-up for denser galleries. */
.case-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.case-media.two-up,
.case-media.three-up {
  grid-template-columns: repeat(2, 1fr);
}

.case-media figure {
  margin: 0;
}

.case-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.case-media figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

/* Image-led case study layout for project pages where visuals should dominate. */
.case-story {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  max-width: 1320px;
  margin: clamp(44px, 7vw, 92px) auto 0;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.case-section.media-stack {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
}

.case-section.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
}

.case-section.reverse .case-copy {
  order: 2;
}

.case-copy {
  position: sticky;
  top: 96px;
  padding-top: 4px;
}

.case-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.6vw, 5rem);
}

.case-copy p:not(.eyebrow) {
  color: #45443f;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.case-copy-stack {
  display: grid;
  gap: 22px;
}

.case-note {
  padding-top: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.16);
}

.case-note:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.case-gallery.stacked {
  gap: clamp(18px, 3vw, 30px);
}

.case-gallery.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.case-gallery.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.case-gallery figure {
  margin: 0;
}

.case-gallery img {
  width: 100%;
  min-height: clamp(420px, 52vw, 720px);
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.case-gallery.two-up img {
  min-height: clamp(340px, 38vw, 560px);
}

.case-gallery.three-up img {
  min-height: clamp(260px, 28vw, 430px);
}

.case-gallery figure.natural img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.case-gallery figure.wide-shot img {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.case-gallery figure.tall-shot img {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.case-gallery figcaption {
  max-width: 42rem;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-wide-section {
  display: grid;
  gap: 18px;
}

.case-wide-copy {
  width: 100%;
}

.case-wide-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 4.6vw, 5rem);
}

.case-wide-copy p:not(.eyebrow) {
  color: #45443f;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.case-wide-section figure {
  margin: 0;
}

.case-wide-section img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.case-wide-section figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  font-weight: 800;
}

/* Tablet layout */
@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .profile-section {
    grid-template-columns: 1fr;
  }

  .project-hero,
  .case-template {
    grid-template-columns: 1fr;
  }

  .case-section,
  .case-section.media-stack,
  .case-section.reverse {
    grid-template-columns: 1fr;
  }

  .case-section.reverse .case-copy {
    order: 0;
  }

  .case-copy {
    position: static;
  }

  .case-gallery.three-up {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile layout */
@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  nav {
    gap: 10px;
    font-size: 0.84rem;
  }

  .nav-action {
    padding: 7px 10px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .project-card {
    min-height: auto;
  }

  .case-media.two-up,
  .case-media.three-up {
    grid-template-columns: 1fr;
  }

  .case-gallery.two-up,
  .case-gallery.three-up {
    grid-template-columns: 1fr;
  }

  .case-gallery img,
  .case-gallery.two-up img,
  .case-gallery.three-up img {
    min-height: 280px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
