:root {
  --bg: #f4efe8;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: #fffaf5;
  --text: #1d1a18;
  --muted: #5f5650;
  --line: rgba(29, 26, 24, 0.12);
  --accent: #c95d3d;
  --accent-strong: #a94325;
  --accent-soft: #f0d7ca;
  --shadow: 0 24px 60px rgba(41, 22, 12, 0.08);
  --radius: 28px;
  --ink-dark: #202126;
  --ink-soft: #3d4048;
  --home-pink: #c23d67;
  --home-blue: #556c9f;
  --home-green: #57a07f;
  --home-outline: #f6f1ee;
  --home-link: #4f68a9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 93, 61, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(35, 118, 120, 0.1), transparent 24%),
    linear-gradient(180deg, #fcf8f1 0%, var(--bg) 100%);
}

body.home-page {
  background: #fcfbfa;
}

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

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

p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.45rem;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.site-header,
.site-footer,
.hero,
.page-hero,
.project-hero,
.detail-card,
.project-card,
.hero-panel,
.timeline-item {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  border-radius: 24px;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.site-nav a,
.nav-toggle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a:hover,
.text-link:hover,
.footer-link:hover {
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero,
.page-hero,
.project-hero {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  min-height: 72vh;
  align-items: end;
}

.page-hero,
.project-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
}

.page-hero.narrow {
  grid-template-columns: 1fr;
}

.hero-copy,
.section-heading,
.prose-block,
.meta-row,
.timeline {
  display: grid;
  gap: 1rem;
}

.eyebrow,
.project-meta {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fffaf7;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.button-outline,
.button-dark {
  border-radius: 999px;
}

.button-outline {
  min-height: 3.75rem;
  padding-inline: 1.8rem;
  border: 2px solid var(--home-link);
  color: var(--home-link);
  background: transparent;
}

.button-dark {
  min-width: 13rem;
  min-height: 5rem;
  padding-inline: 2rem;
  background: var(--ink-soft);
  border: 4px solid var(--home-outline);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.hero-panel,
.detail-card,
.timeline-item {
  border-radius: 22px;
}

.hero-panel {
  padding: 1.5rem;
  align-self: stretch;
}

.stat-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.stat-list li {
  display: grid;
  gap: 0.35rem;
}

.stat-list strong {
  font-size: 1rem;
}

.stat-list span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 4rem 0 0;
}

.card-grid,
.detail-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.project-card {
  overflow: hidden;
  border-radius: 26px;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(201, 93, 61, 0.12), rgba(35, 118, 120, 0.12));
}

.project-body,
.detail-card,
.timeline-item {
  padding: 1.35rem;
}

.project-body {
  display: grid;
  gap: 0.8rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.timeline {
  gap: 1rem;
}

.timeline-item {
  border-left: 4px solid var(--accent-soft);
}

.portrait,
.project-hero img {
  width: 100%;
  border-radius: 24px;
  background: var(--panel-strong);
}

.meta-row span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(29, 26, 24, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link,
.footer-link {
  font-weight: 800;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-footer > div {
  display: grid;
  gap: 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-header,
.home-footer {
  width: min(1680px, calc(100% - 4rem));
  margin-inline: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home-header {
  position: relative;
  top: 0;
  padding: 1rem 0 0;
  margin-bottom: 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.home-brand img {
  width: 3.75rem;
  height: auto;
  object-fit: contain;
}

.home-header .site-nav {
  gap: 2rem;
}

.home-header .site-nav a {
  color: #d9577b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-header .site-nav a.button-outline {
  color: var(--home-link);
  letter-spacing: 0;
  text-transform: none;
}

.home-hero {
  width: min(1680px, calc(100% - 4rem));
  min-height: 30rem;
  margin: 3.2rem auto 0;
  display: grid;
  align-items: center;
}

.home-hero-copy {
  max-width: 74rem;
  padding-left: clamp(2rem, 6vw, 6.5rem);
}

.home-intro,
.home-hero h1,
.home-project-title,
.home-project-link-row span,
.home-location-current,
.home-location-old,
.home-footer .eyebrow {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.01em;
  color: var(--ink-dark);
}

.home-intro {
  margin-bottom: 0.35rem;
  font-size: clamp(3rem, 5vw, 4.6rem);
  color: var(--ink-dark);
}

.home-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: 0.94;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-hero h1 .digital-designer {
  color: var(--home-pink);
}

.home-work {
  padding: 0;
}

.home-divider {
  margin-top: -1rem;
  line-height: 0;
}

.home-divider svg {
  display: block;
  width: 100%;
  height: clamp(9rem, 18vw, 14rem);
  fill: var(--ink-dark);
}

.home-work-inner {
  margin-top: -1px;
  padding: 0 0 5rem;
  background: var(--ink-dark);
}

.home-section-heading {
  width: min(1680px, calc(100% - 4rem));
  margin: 0 auto;
  padding-top: 2rem;
}

.home-section-heading .eyebrow {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.2rem, 5vw, 5rem);
  letter-spacing: 0.02em;
  color: #fff;
}

.home-project-list {
  width: min(1680px, calc(100% - 4rem));
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
}

.home-project-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
}

.home-project-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.48fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 8px solid var(--home-outline);
  border-radius: 3rem;
}

.home-project-sharesies .home-project-panel {
  background: var(--home-pink);
}

.home-project-customs .home-project-panel {
  background: var(--home-blue);
}

.home-project-stake .home-project-panel {
  background: #000;
}

.home-project-impact .home-project-panel {
  background: var(--home-green);
}

.home-project-panel-customs {
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.52fr);
}

.home-project-media {
  display: grid;
  place-items: center;
}

.home-project-media img {
  width: 100%;
  max-width: 22rem;
  max-height: 27rem;
  object-fit: contain;
}

.home-project-content {
  display: grid;
  gap: 2rem;
  align-content: center;
  width: 100%;
}

.home-project-content p {
  max-width: none;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.45;
  color: #fff;
  font-weight: 700;
}

.home-project-content .button-dark {
  justify-self: end;
}

.home-project-content-split {
  min-height: 100%;
}

.home-project-links {
  display: grid;
  gap: 4.5rem;
}

.home-project-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.home-project-link-row span {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}

.home-footer {
  margin-top: 0;
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  background: var(--ink-dark);
  border-radius: 0;
}

.home-footer-block {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.home-footer .eyebrow {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #fff;
}

.home-footer .footer-link,
.home-linkedin {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2.1rem);
  color: #f1f0ef;
}

.home-linkedin {
  display: grid;
  place-items: center;
  width: 4.4rem;
  aspect-ratio: 1;
  font-size: 2.4rem;
  font-weight: 800;
  border-radius: 1rem;
  background: #3f88cc;
  text-transform: lowercase;
}

.home-location-old,
.home-location-current {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.home-location-old {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.home-location-current {
  color: #fff;
  border: 3px solid rgba(217, 87, 123, 0.9);
  border-radius: 999px;
  padding: 0.35rem 1rem;
}

@media (max-width: 900px) {
  .hero,
  .page-hero,
  .project-hero,
  .split-layout,
  .card-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 220px;
  }

  .home-project-panel,
  .home-project-panel-customs,
  .home-footer {
    grid-template-columns: 1fr;
  }

  .home-project-content .button-dark {
    justify-self: start;
  }

  .home-project-link-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-footer-block {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    align-items: start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .site-footer {
    flex-direction: column;
  }

  .home-header,
  .home-hero,
  .home-section-heading,
  .home-project-list,
  .home-footer {
    width: min(100% - 1.5rem, 1680px);
  }

  .home-header {
    padding-top: 0.8rem;
  }

  .home-header .nav-toggle {
    color: var(--ink-dark);
  }

  .home-header .site-nav {
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .home-hero {
    min-height: 22rem;
    margin-top: 1.5rem;
  }

  .home-hero-copy {
    padding-left: 0;
  }

  .home-intro {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .home-hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
    white-space: normal;
  }

  .home-divider {
    margin-top: 2rem;
  }

  .home-project-panel {
    padding: 1.25rem;
    border-width: 6px;
    border-radius: 2rem;
  }

  .home-project-title,
  .home-section-heading .eyebrow {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .button-dark {
    width: 100%;
    min-width: 0;
    min-height: 4.2rem;
  }

  .home-project-content p {
    max-width: none;
    font-size: 1.2rem;
  }

  .home-project-link-row span,
  .home-location-old,
  .home-location-current,
  .home-footer .footer-link,
  .home-linkedin {
    font-size: 1.5rem;
  }

  .home-linkedin {
    width: 3.6rem;
  }

  .home-footer {
    padding: 3rem 0 2.5rem;
  }
}
