@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

@font-face {
  font-family: "Apercu";
  src: url("assets/fonts/Apercu.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f1efe9;
  --fg: #131311;
  --fg-soft: #5b5953;
  --fg-mute: #908d85;
  --rule: #e2ddd2;
  --accent: oklch(0.62 0.13 45);
  --ease: cubic-bezier(0.65, 0, 0.05, 1);
}

.theme-dark {
  --bg: #0f0f0d;
  --bg-2: #1a1a17;
  --fg: #f3f1ea;
  --fg-soft: #b5b1a6;
  --fg-mute: #7a766c;
  --rule: #2a2925;
}
.theme-dark body,
body.theme-dark {
  background: var(--bg);
  color: var(--fg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: padding 240ms var(--ease);
}
.site-header.is-scrolled {
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
  display: inline-block;
}
.brand b {
  font-weight: 400;
}
.brand > span {
  color: var(--fg-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.nav a:hover {
  color: var(--fg);
}
.nav a.active {
  color: var(--fg);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--fg);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: var(--fg-mute);
  margin-left: 4px;
}
.lang button {
  padding: 4px 6px;
  color: var(--fg-mute);
  transition: color 200ms var(--ease);
  letter-spacing: 0.02em;
}
.lang button.on {
  color: var(--fg);
}
.lang .sep {
  opacity: 0.5;
}

/* ---------- Page transitions ---------- */
.page {
  flex: 1;
  animation: pageIn 520ms var(--ease) both;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Home ---------- */
.home {
  padding: 120px 40px 40px;
}

.intro {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 60px 0 150px;
}
.intro-lede {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.intro-avatar {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  margin-top: 8px;
}
.intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 15%;
  filter: grayscale(100%);
}
.intro-text {
  flex: 1 1 auto;
  min-width: 0;
}
.intro-text h1 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--fg);
  max-width: 24ch;
  text-wrap: pretty;
  margin: 0;
  opacity: 1;
  animation: introRise 1000ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms both;
}
@keyframes introRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5CE8A4;
  flex: 0 0 auto;

}
@keyframes availPulse {
  0% { box-shadow: 0 0 0 0 #5CE8A472; }
  70% { box-shadow: 0 0 0 8px #5CE8A400; }
  100% { box-shadow: 0 0 0 0 oklch(0.72 0.18 145 / 0); }
}
.intro-taglines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin: 0;
  padding: 0 0 0 140px;
}
.intro-taglines li {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
}
.intro-taglines li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--rule);
}
@media (max-width: 720px) {
  .intro-lede {
    flex-direction: column;
    gap: 28px;
  }
  .intro-avatar {
    width: 140px;
    height: 140px;
    margin-top: 0;
  }
  .intro-taglines {
    padding-left: 0;
  }
}
.intro-support {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--fg-mute);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: -16px 0 0;
}
.intro .eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@keyframes introFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hand-drawn circle around "marcas e pessoas." / "brands and people." */
.intro h1 .hand-circle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.intro h1 .hand-circle svg {
  position: absolute;
  left: -0.32em;
  right: -0.32em;
  top: -0.18em;
  bottom: -0.18em;
  width: calc(100% + 0.64em);
  height: calc(100% + 0.36em);
  overflow: visible;
  pointer-events: none;
  color: #908d85;
}
.intro h1 .hand-circle svg path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: handDrawCircle 1400ms cubic-bezier(0.65, 0, 0.35, 1) 180ms forwards;
}

@keyframes handDrawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro h1 {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .intro h1 .hand-circle svg path {
    stroke-dashoffset: 0;
    animation: none;
  }
}
.intro h1 em {
  font-style: normal;
  color: var(--fg-mute);
}
.intro h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.intro .meta {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--fg-soft);
  margin-top: 8px;
}
.intro .meta div small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}

.work {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.7fr;
  column-gap: 36px;
  row-gap: 4px;
  min-height: 76vh;
  align-items: start;
}
@media (max-width: 900px) {
  .work {
    grid-template-columns: 1fr;
  }
}

.work-left {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 94px;
  align-self: start;
}

.work-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-bottom: 0;
}

.work-desktop {
  grid-column: 1;
  grid-row: 2;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.project-list {
  list-style: none;
}
.project-list li {
  border-top: none;
}
.project-list li:last-child {
  border-bottom: none;
}
.project-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  position: relative;
  transition: padding 360ms var(--ease), color 280ms var(--ease);
}
.project-list a:hover {
  padding-left: 16px;
}
.project-list .idx {
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 0.55em;
  letter-spacing: 0.08em;
}
.project-list .title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-list .title {
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 400;
  text-wrap: pretty;
  transition: color 280ms var(--ease), transform 360ms var(--ease);
}
.project-list .subtitle {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--fg-mute);
  letter-spacing: 0;
  line-height: 1.3;
}
.project-list a:hover .title {
  color: var(--fg);
}
.project-list a:not(:hover) .title {
  color: var(--fg);
}
.project-list a .tag {
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.project-list a .arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translate(-12px, -50%);
  opacity: 0;
  transition: opacity 280ms var(--ease), transform 360ms var(--ease);
  font-size: 18px;
  color: var(--fg);
}
.project-list a:hover .arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.project-list.is-hovering a:not(:hover) .title {
  color: var(--fg-mute);
}

/* ---------- Preview pane ---------- */
.preview {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: clamp(550px, 38vw, 750px);
  background: var(--bg-2);
}
.preview-stack {
  position: absolute;
  inset: 0;
}
.preview-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms var(--ease), transform 1400ms var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-card.is-active {
  opacity: 1;
  transform: scale(1);
}
.preview-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--bg);
  z-index: 3;
  pointer-events: none;
}
.preview-meta .left small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
}
.preview-meta .left strong {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.preview-meta .right {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.preview-card::after {
  content: none;
}

/* preview pane + caption */
.preview-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 0;
  font-size: 14px;
  color: var(--fg-soft);
  min-height: 22px;
}
.preview-caption .cap-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.preview-caption .cap-left strong {
  font-weight: 400;
  color: var(--fg);
  font-size: 16px;
  letter-spacing: -0.005em;
}
.preview-caption .cap-left span {
  color: var(--fg-mute);
}
.preview-caption .cap-center {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.preview-caption .cap-center span {
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
  text-align: left;
}
.preview-caption .cap-right {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.preview-caption strong,
.preview-caption span {
  transition: opacity 260ms var(--ease);
}
.home-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px 0 8px;
  border-top: 1px solid var(--rule);
  margin-top: 72px;
  font-size: 14px;
  color: var(--fg-soft);
}
.home-bottom .tagline {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--fg);
  letter-spacing: -0.015em;
  max-width: 18ch;
  line-height: 1.15;
}

/* ---------- Project page ---------- */
.project-page {
  padding: 90px 0 0;
}
.hero {
  position: relative;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .project-page {
    padding-top: 76px;
  }
  .hero {
    position: relative;
    top: unset;
    height: 56.25vw;
    aspect-ratio: unset;
    z-index: 1;
    background-color: var(--hero-bg-color, var(--bg-2));
  }
  .hero .art {
    display: block;
    /* On mobile the hero box is 16:9 (same as the hero images), so always
       fill it — overrides per-project heroImageFit like Foodster's "85%".
       A project can opt into extra zoom via --hero-mobile-size (e.g. Programa
       Menu, whose source PNG has wide black margins around the content). */
    background-size: var(--hero-mobile-size, cover) !important;
    background-position: center !important;
  }
  .project-lead,
  .project-page .gallery,
  .project-context,
  .related-projects {
    position: relative;
    z-index: 10;
    background: var(--bg);
  }

}
.hero-meta {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--bg);
  z-index: 3;
  pointer-events: none;
}
.hero-meta small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero::after {
  content: none;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding: 96px 40px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 24px 32px;
  }
}
.project-intro h2 {
  font-size: clamp(40px, 5.4vw, 84px);
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}
.project-intro .lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--fg-soft);
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}
.project-intro .lede p + p {
  margin-top: 1em;
}
.project-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  font-size: 14px;
  color: var(--fg-soft);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.project-meta small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .project-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery {
  padding: 24px 24px 80px;
  display: grid;
  gap: 16px;
}
.gallery .row {
  display: grid;
  gap: 16px;
}
.gallery .row.col-1 {
  grid-template-columns: 1fr;
}
.gallery .row.col-2 {
  grid-template-columns: 1fr 1fr;
}
.gallery .row.col-3 {
  grid-template-columns: repeat(3, 1fr);
}
.gallery .row.text-block {
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding: 48px 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.gallery .row.text-block h4 {
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.gallery .row.text-block .body {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--fg-soft);
  line-height: 1.55;
  text-wrap: pretty;
}
.gallery .row.text-block .body p + p {
  margin-top: 1em;
}
@media (max-width: 720px) {
  .gallery {
    padding-bottom: 16px;
  }
  .project-context {
    padding-top: 16px;
  }
  .gallery .row.col-2,
  .gallery .row.col-3 {
    grid-template-columns: 1fr;
  }
  .gallery .row.text-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 4px 8px;
  }
}

.frame {
  position: relative;
  background: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.frame.tall {
  aspect-ratio: 4 / 5;
}
.frame.wide {
  aspect-ratio: 16 / 9;
}
.frame.square {
  aspect-ratio: 1 / 1;
}
.frame .label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  padding: 6px 10px;
  border-radius: 100px;
}

.role-results {
  padding: 80px 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .role-results {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 24px;
  }
}
.role-results h3 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
  font-weight: 400;
}
.role-results .body {
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--fg);
  text-wrap: pretty;
}
.role-results ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.role-results ul li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--fg);
}
.role-results ul li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.metric {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.metric .num {
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-soft);
  max-width: 24ch;
}

.project-lead {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 72px 40px 120px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.project-lead .lead-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.project-lead .lead-year {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1;
  margin-top: 0;
  flex-shrink: 0;
  font-weight: 400;
}
.project-lead h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 400;
}
.project-lead .lead-phrase {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg-soft);
  font-weight: 400;
  text-wrap: pretty;
}
@media (max-width: 900px) {
  .project-lead {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 56px 24px 64px;
  }
}

.project-context,
.project-role {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.project-context {
  padding-top: 40px;
  padding-bottom: 96px;
}
.project-role {
  padding-top: 0;
}
.project-context h2 {
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: 0;
  line-height: 1.4;
  font-weight: 400;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.project-context .ctx-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 12px;
}
.project-context .ctx-category {
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-soft);
  line-height: 1.4;
  margin: 12px 0 0;
}
.project-context .ctx-body {
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--fg-soft);
  line-height: 1.6;
  text-wrap: pretty;
}
.project-context .ctx-body p {
  margin: 0;
}
.project-context .ctx-body p + p {
  margin-top: 1em;
}
.project-context .ctx-role .role-label {
  color: var(--fg);
}

.project-role h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
  margin: 0;
}
.project-role .role-body {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--fg-soft);
  line-height: 1.55;
  text-wrap: pretty;
}
.project-role .role-body p {
  margin: 0;
}
@media (max-width: 900px) {
  .project-context,
  .project-role {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 24px;
  }
}

.related-projects {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 40px 120px;
}
.related-projects .related-title {
  font-size: clamp(15px, 1.05vw, 17px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-mute);
  font-weight: 400;
  margin: 0 0 32px;
}
.related-projects .related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.related-projects .related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.related-projects .related-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  transition: transform 320ms var(--ease);
}
.related-projects .related-card:hover .related-thumb {
  transform: translateY(-4px);
}
.related-projects .related-meta {
  padding: 16px 4px 0;
}
.related-projects .related-meta h3 {
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 400;
  color: var(--fg);
  margin: 0 0 6px;
}
.related-projects .related-meta p {
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--fg-mute);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 720px) {
  .related-projects {
    padding: 24px 24px 80px;
  }
  .related-projects .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  display: none;
}
.project-nav a {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 320ms var(--ease);
}
.project-nav a:hover {
  background: var(--bg-2);
}
.project-nav a + a {
  border-left: 1px solid var(--rule);
}
.project-nav a.next {
  text-align: right;
  align-items: flex-end;
}
.project-nav small {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.project-nav strong {
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
}
@media (max-width: 720px) {
  .project-nav {
    grid-template-columns: 1fr;
  }
  .project-nav a + a {
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .project-nav a.next {
    text-align: left;
    align-items: flex-start;
  }
}


/* ---------- About ---------- */
.about {
  padding: 120px 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0 96px;
}
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}
.about-intro h1 {
  font-size: clamp(40px, 5.6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-weight: 400;
  text-wrap: balance;
}
.about-intro h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.about-intro .copy {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}
.about-intro .copy p + p {
  margin-top: 1.1em;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
  max-width: 520px;
}

.expertise {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.2fr auto;
  gap: 80px;
  padding: 64px 0 96px;
}
.ex-stamp {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.stamp-img {
  width: 120px;
  height: 120px;
  filter: invert(1);
  opacity: 0.7;
  display: block;
}
@media (max-width: 720px) {
  .expertise {
    grid-template-columns: 1fr auto;
    row-gap: 40px;
    column-gap: 16px;
  }
  .ex-col:first-child {
    order: 1;
  }
  .ex-stamp {
    display: flex;
    order: 2;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .ex-col:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
  }
    padding: 16px 0 64px;
  }
}
.expertise .ex-col small {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 40px !important;
  display: block;
}
.expertise .ex-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  padding-top: 8px;
}
.expertise .ex-col li {
  font-size: 17px;
  line-height: 1.4;
  color: var(--fg-soft);
}
.expertise .ex-list-desc {
  gap: 18px;
}
@media (max-width: 720px) {
  .expertise .ex-col ul {
    gap: 12px;
  }
  .expertise .ex-list-desc {
    gap: 28px;
  }
  .expertise .ex-list-desc li {
    gap: 6px;
  }
}
.expertise .ex-list-desc li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.expertise .ex-list-desc li strong {
  font-weight: 400;
  font-size: 17px;
  color: #b5b1a6;
  letter-spacing: -0.005em;
}
.expertise .ex-list-desc li span {
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-mute);
  max-width: 64ch;
}

@media (max-width: 720px) {
  .site-footer {
    flex-direction: column;
    gap: 0;
    padding: 32px 20px;
    align-items: flex-start;
    text-align: left;
    font-size: 15px;
  }
  .footer-col {
    width: 100%;
    text-align: left;
    align-items: flex-start !important;
  }
  .footer-col.footer-rights {
    order: -1;
    margin-bottom: 16px;
  }
  .footer-col:not(.footer-rights) {
    margin-bottom: 10px;
  }
  .footer-col a {
    font-size: 15px;
  }
}
.about .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.about .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .about .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scroll reveal (project list + gallery) ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- About full-bleed photo ---------- */
.about-photo {
  margin-top: 32px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ---------- Methodology ---------- */
.methodology {
  padding: 96px 0 64px;
}
.methodology-title {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 22ch;
}
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .methodology-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .methodology {
    padding: 64px 0 40px;
  }
}
.method-card {
  position: relative;
  padding: 30px;
  background: oklch(from var(--bg) calc(l + 0.04) c h);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.method-card .num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.method-card strong {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.method-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .method-card {
    padding: 24px 20px 24px;
    min-height: 0;
    gap: 10px;
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .values {
    grid-template-columns: 1fr;
  }
}
.values .val small {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
  display: block;
}
.values .val p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg);
  text-wrap: pretty;
}

.contact {
  border-top: 1px solid var(--rule);
  padding: 96px 0 120px;
}
.contact h2 {
  font-size: clamp(36px, 5vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 400;
  max-width: 40ch;
  text-wrap: pretty;
}
.contact h2 .link {
  position: relative;
  display: inline-block;
  color: var(--fg);
  cursor: pointer;
  transition: color 240ms var(--ease);
}
.contact h2 .link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: currentColor;
  transition: background 240ms var(--ease);
}
.contact h2 .link:hover {
  color: var(--accent);
}
.contact .channels {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
@media (max-width: 720px) {
  .contact .channels {
    grid-template-columns: 1fr;
  }
}
.contact .ch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  transition: padding 360ms var(--ease);
}
.contact .ch:hover {
  padding-left: 12px;
}
.contact .ch small {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.contact .ch strong {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
}

hr.about-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}
@media (max-width: 720px) {
  hr.about-rule {
    margin: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 2px;
}
.footer-col a {
  color: var(--fg-mute);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 180ms;
}
.footer-col a:hover {
  color: var(--fg);
}
.footer-rights {
  align-items: flex-end;
  justify-content: flex-end;
  align-self: center;
}
.footer-contacts {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-contacts a {
  color: var(--fg-mute);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 180ms;
}
.footer-contacts a:hover {
  color: var(--fg);
}
.footer-email {
  display: flex;
  align-items: center;
}

/* ---------- Placeholder visual ---------- */
.placeholder-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

/* hide mobile list on desktop */
.project-list-mobile {
  display: none;
}

.site-header.menu-open {
  background: #ffffff !important;
  --fg: #131311;
  --fg-soft: #5b5953;
  --fg-mute: #908d85;
}
.site-header.menu-open .brand span {
  color: #131311;
}
.site-header.menu-open .hamburger span {
  background: #131311;
}


.nav-mobile-right {
  display: none;
  align-items: center;
  gap: 16px;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
  transform-origin: center;
}
.hamburger span.open:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger span.open:nth-child(2) { opacity: 0; }
.hamburger span.open:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #ffffff;
  --fg: #131311;
  --fg-soft: #5b5953;
  --fg-mute: #b0aca6;
  --rule: #e2ddd2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 100px 28px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.menu-close {
  position: absolute;
  top: 90px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #131311;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease 40ms;
}
.mobile-menu.is-open .menu-close {
  opacity: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}
.mobile-menu nav a {
  font-size: clamp(26px, 7.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #b0aca6;
  text-decoration: none;
  text-align: right;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: color 180ms, opacity 300ms ease, transform 300ms ease;
}
.mobile-menu.is-open nav a:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 80ms;
}
.mobile-menu.is-open nav a:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 150ms;
}
.mobile-menu nav a.active { color: #131311; }
.mobile-menu nav a:not(.active):hover { color: #5b5953; }

@media (max-width: 720px) {
  .site-header,
  .home,
  .about,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav {
    display: none;
  }
  .nav-mobile-right {
    display: flex;
  }
  .home {
    padding-top: 96px;
  }
  .about {
    padding-top: 42px;
  }
  .intro {
    padding: 24px 0 56px;
  }
  .intro h1 {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    max-width: 100% !important;
    line-height: 1.25;
  }
  .intro h1 br:nth-of-type(2) {
    display: none;
  }
  .about-intro h1 {
    font-size: clamp(26px, 7.6vw, 36px) !important;
    line-height: 1.1;
  }
  .contact h2 {
    font-size: clamp(26px, 7.6vw, 36px) !important;
    line-height: 1.1;
  }
  /* mobile: hide desktop list + preview, show thumb cards */
  .work .work-desktop,
  .work .preview-wrap {
    display: none;
  }
  .project-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 24px;
  }
  .project-list-mobile a {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .project-list-mobile .thumb {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-2);
  }
  .project-list-mobile .meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 0 2px;
  }
  .project-list-mobile .meta strong {
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--fg);
    line-height: 1.15;
  }
  .project-list-mobile .meta span {
    font-size: 13px;
    color: var(--fg-mute);
    letter-spacing: 0.01em;
  }
}
