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

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500;1,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --cream: #F5F0E6;
  --ink: #14120F;
  --blue: #2F6BFF;
  --blue-light: #5B9BFF;
  --green: #1E8E5A;
  --yellow: #F0C419;
  --red: #E8461E;
  --white: #FFFFFF;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Fraunces', serif;
}

html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  width: 100%;
  overflow-x: hidden;
  line-height: 1.4;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.italic { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px;
}
.logo {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(0.85rem, 3.6vw, 1.15rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 54vw;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; align-items: center; background: rgba(20,18,15,0.06);
  border-radius: 999px; padding: 4px; gap: 2px;
}
.lang-btn {
  font-family: var(--font-serif); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 15px; border-radius: 999px; color: var(--ink); opacity: .45;
  background: transparent; transition: background .25s ease, opacity .25s ease, color .25s ease;
}
.lang-btn.active { background: var(--ink); color: var(--cream); opacity: 1; }
@media (max-width: 480px) {
  .site-header { padding: 16px 18px; }
  .logo { max-width: 40vw; font-size: .78rem; }
  .menu-btn { width: 42px; height: 42px; border-radius: 9px; }
  .menu-btn span { width: 17px; }
  .nav-close { width: 42px; height: 42px; top: 20px; right: 20px; }
  .lang-toggle { padding: 3px; }
  .lang-btn { padding: 6px 11px; font-size: .68rem; }
}
.menu-btn {
  width: 48px; height: 48px; border-radius: 10px; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 20px; height: 2px; background: var(--cream); display: block; }

.nav-overlay {
  position: fixed; inset: 0; background: var(--ink); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a { font-family: var(--font-serif); font-size: 2.4rem; color: var(--cream); font-weight: 500; }
.nav-overlay a:hover { color: var(--blue-light); }
.nav-close {
  position: absolute; top: 28px; right: 32px; width: 48px; height: 48px;
  border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 1.5rem;
}

/* Hero */
.hero-visual { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-visual-wrap { width: 100%; max-width: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-illustration { display: flex; justify-content: center; position: relative; z-index: 1; overflow: visible; }
.hero-illustration svg { width: min(950px, 50vw); height: auto; max-height: 68vh; overflow: visible; }
@media (max-width: 900px) {
  .hero-illustration svg { width: min(560px, 64vw); max-height: 56vh; }
}
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 60px 0 80px; position: relative; }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(12px) rotate(3deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-8px); opacity: 0.7; } }
.float-1 { transform-origin: center; animation: floatA 4.5s ease-in-out infinite; }
.float-2 { transform-origin: center; animation: floatB 5.2s ease-in-out infinite; }
.float-3 { transform-origin: center; animation: floatC 3.6s ease-in-out infinite; }

.scatter-item { transform-origin: center; will-change: transform, opacity; }

/* Floating character graphics */
.hero-float-char {
  position: absolute; z-index: 2; pointer-events: none;
  width: clamp(190px, 17vw, 300px); height: auto;
  filter: drop-shadow(0 14px 26px rgba(20,18,15,0.18));
}
.hero-float-char--kick { top: 6%; right: 3%; }
.hero-float-char--wave { bottom: 8%; left: 4%; }
@keyframes heroBobA { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-26px) rotate(3deg); } }
@keyframes heroBobB { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(22px) rotate(-3deg); } }
.hero-float-char.float-1 { animation: heroBobA 4.2s ease-in-out infinite; }
.hero-float-char.float-2 { animation: heroBobB 4.8s ease-in-out infinite; }
.section--float { position: relative; overflow: hidden; }
.section-float-char {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(260px, 25vw, 440px); height: auto; opacity: 0.97;
  filter: drop-shadow(0 14px 24px rgba(20,18,15,0.15));
}
.section-float-char--left { top: 6%; left: 1.5%; }
.section-float-char--right { bottom: 4%; right: 1.5%; }
@media (max-width: 900px) {
  .hero-float-char { width: clamp(130px, 26vw, 200px); }
  .hero-float-char--kick { right: 3%; }
  .hero-float-char--wave { left: 3%; }
  .section-float-char { width: clamp(190px, 34vw, 300px); }
  .section-float-char--left { left: 1%; }
  .section-float-char--right { right: 1%; }
}
@media (max-width: 520px) {
  .hero-float-char { width: 170px; }
  .section-float-char { width: 150px; }
}
/* Flower garden footer strip */
@keyframes swayFlower { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.flower-garden {
  position: relative; width: 100%; height: clamp(130px, 20vw, 240px);
  overflow: hidden; margin-top: 20px;
}
.garden-flower {
  position: absolute; bottom: -6px; width: auto; z-index: 1;
  transform-origin: bottom center;
  animation-name: swayFlower; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.garden-flower--back { bottom: -10px; z-index: 0; opacity: 0.65; filter: saturate(0.9); }
@media (max-width: 720px) {
  .flower-garden { height: clamp(100px, 34vw, 170px); }
}

.mini-mascot { display: flex; justify-content: center; animation: floatC 3s ease-in-out infinite; }
.hero-bottom-mascot { display: flex; justify-content: center; margin-top: 34px; }
.hero-bottom-mascot svg { animation: floatB 4s ease-in-out infinite; }
.hero-caption { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-statement {
  font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.9rem, 5vw, 4.2rem);
  text-align: center; max-width: min(880px, 88vw); margin: 0 auto; line-height: 1.22;
  text-wrap: balance;
}
.underline-accent { position: relative; display: inline-block; }
.underline-accent::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -6px; height: 6px;
  background: var(--red); border-radius: 4px; transform: rotate(-1deg);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.25,.1,.25,1), transform .7s cubic-bezier(.25,.1,.25,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Selected projects */
.section { padding: 100px 0; position: relative; }
.section-label { font-family: var(--font-serif); font-style: italic; font-size: 1rem; opacity: .55; text-align: center; margin-bottom: 8px; }
.sketchbook-topper { display: block; margin: 0 auto; height: clamp(90px, 12vw, 150px); width: auto; }
.sketchbook-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; opacity: 1; color: var(--ink); margin-top: 10px; margin-bottom: 24px; }
.projects-title-wrap { text-align: center; margin-bottom: 56px; }
.projects-title {
  display: inline-block; position: relative;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); color: var(--ink); line-height: 1.1;
}
.projects-title::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: -16px; height: 5px;
  background: var(--red); border-radius: 6px; transform: rotate(-1.2deg);
}
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 900px; margin: 40px auto 0; }
.project-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 14px; border-bottom: 1px solid rgba(20,18,15,0.15);
  font-size: 1.15rem; font-weight: 500;
  position: relative; overflow: visible; z-index: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .25s;
}
.project-row::before {
  content: ''; position: absolute; inset: 4px -6px; z-index: -1;
  background: var(--blue-light); border-radius: 14px;
  opacity: 0; transform: scaleX(.25); transform-origin: left center;
  transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.project-row::after {
  content: '✦'; position: absolute; right: 46px; top: -10px;
  font-size: 1.5rem; line-height: 1; color: var(--red); pointer-events: none;
  text-shadow: 20px 14px 0 currentColor, -18px 10px 0 currentColor, 4px 26px 0 currentColor;
  filter: drop-shadow(0 0 5px currentColor);
  opacity: 0; transform: scale(0) rotate(-30deg);
  transition: opacity .2s ease, transform .45s cubic-bezier(.34,1.7,.64,1);
}
.project-row:hover { transform: translateX(8px); }
.project-row:hover::before { opacity: 1; transform: scaleX(1); }
.project-row:hover::after { opacity: 1; transform: scale(1) rotate(8deg); }
.project-row svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.project-row:hover svg { transform: translateX(4px) rotate(10deg); }

.project-row:nth-child(4n+1)::before { background: var(--blue-light); }
.project-row:nth-child(4n+1)::after { color: var(--white); }
.project-row:nth-child(4n+1):hover { color: var(--ink); }

.project-row:nth-child(4n+2)::before { background: var(--red); }
.project-row:nth-child(4n+2)::after { color: var(--yellow); }
.project-row:nth-child(4n+2):hover { color: var(--white); }

.project-row:nth-child(4n+3)::before { background: var(--green); }
.project-row:nth-child(4n+3)::after { color: var(--yellow); }
.project-row:nth-child(4n+3):hover { color: var(--white); }

.project-row:nth-child(4n)::before { background: var(--yellow); }
.project-row:nth-child(4n)::after { color: var(--ink); }
.project-row:nth-child(4n):hover { color: var(--ink); }

/* Sketchbook strip */
.gallery-clip { width: 100%; overflow: hidden; }
.gallery-track {
  display: flex; gap: 16px; padding: 40px 24px 10px; will-change: transform; width: max-content;
  animation: sketchbookScroll 32s linear infinite;
}
@keyframes sketchbookScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3334%); }
}
.gallery-card { width: 220px; height: 260px; border-radius: 22px; flex-shrink: 0; overflow: hidden; border: 2px dashed rgba(20,18,15,0.18); display: flex; align-items: center; justify-content: center; color: #14120F; }
.gallery-card svg { width: 66%; height: 66%; }
.gallery-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 16px; display: block; margin: auto; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
}

/* Services */
.services-card {
  background: var(--blue); border-radius: 40px; padding: 70px 32px; text-align: center; color: white;
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 1000px; margin: 0 auto;
  border: 2.5px dashed rgba(255,255,255,0.55);
}
.services-title {
  display: inline-block; position: relative; margin-bottom: 22px;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--white);
}
.services-title::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 4px;
  background: var(--red); border-radius: 6px; transform: rotate(-1deg);
}
.service-word-row {
  align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 6px 4px; cursor: default;
}
.service-star {
  flex: 0 0 30px; width: 30px; height: 30px;
  opacity: 0; transform: scale(0) rotate(-25deg);
  transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.service-word {
  flex: none; text-align: center; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.8rem, 5.5vw, 3.6rem); letter-spacing: -0.01em;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.service-sub {
  flex: 0 0 auto; min-width: 100px; text-align: left; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(.75rem, 1.3vw, .95rem); line-height: 1.55; color: rgba(255,255,255,.85);
  opacity: 0; transform: translateX(14px);
  transition: opacity .3s ease .05s, transform .35s cubic-bezier(.34,1.56,.64,1) .05s;
}
.service-sub span { display: block; }
.service-word-row:hover .service-star { opacity: 1; transform: scale(1) rotate(0deg); }
.service-word-row:hover .service-word { transform: translateX(8px); }
.service-word-row:hover .service-sub { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .service-sub { display: none; }
  .service-word { font-size: clamp(1.5rem, 8vw, 2.4rem); }
  .services-card { padding: 44px 22px; border-radius: 30px; }
}
@keyframes ringWobble { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }
.services-icon { margin-top: 28px; width: 64px; transform-origin: 50% 20%; animation: ringWobble 2.6s ease-in-out infinite; }

/* About stacked */
.about-lead { text-align: center; margin-bottom: 40px; }
.about-mascot { width: 92px; height: 92px; display: block; margin: 0 auto 18px; animation: floatC 3.2s ease-in-out infinite; }
.about-lead .script { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 5vw, 3rem); }
.about-lead .bold-line {
  display: inline-block; position: relative; font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem);
}
.about-lead .bold-line::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -12px; height: 5px;
  background: var(--red); border-radius: 6px; transform: rotate(-1deg);
}
.stack-wrap { max-width: 760px; margin: 0 auto; position: relative; }
.stack-card {
  position: sticky; top: 90px; border-radius: 32px; padding: 46px 40px; margin-bottom: 24px;
  color: white; min-height: 340px; display: flex; flex-direction: column;
}
.stack-card .inner-card { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 30px 34px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.stack-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; text-align: center; }
.stack-card h3 .italic { font-size: 1.7rem; }
.stack-icon { width: 40px; margin: 0 auto; }
.stack-list-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(20,18,15,0.25); font-size: .95rem; }
.stack-list-row b { font-weight: 700; }
.stack-list-row .spacer { flex: 1; border-bottom: 1px dotted rgba(20,18,15,0.3); margin: 0 2px; }
.stack-para { font-size: .95rem; line-height: 1.6; text-align: center; }
.nowrap { white-space: nowrap; }
.sc-blue { background: var(--blue); }
.sc-red { background: var(--red); }
.sc-green { background: var(--green); }

/* About-me signature card */
.stack-card--about { position: relative; overflow: visible; }
.stack-card--about::before {
  content: ''; position: absolute; top: 18px; left: 18px; width: 34px; height: 34px;
  background: var(--yellow); border-radius: 8px; transform: rotate(18deg); opacity: .9;
}
.stack-card--about .inner-card { max-width: 58%; position: relative; z-index: 2; }
.stack-blob-wrap {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden; z-index: 0; pointer-events: none;
}
.stack-blob { width: 100%; height: 100%; display: block; }
.stack-character {
  position: absolute; right: 4%; bottom: -22px; width: clamp(150px, 26vw, 250px); height: auto;
  filter: drop-shadow(0 16px 24px rgba(20,18,15,0.28)); z-index: 1;
}
.signature {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 2px;
  font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--red);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.signature-icon { width: 32px; height: auto; }
@media (max-width: 720px) {
  .stack-card--about .inner-card { max-width: 100%; }
  .stack-character { position: static; display: block; margin: 14px auto 0; width: 150px; }
}

/* Design approach / currently exploring */
.approach-lead { text-align: center; margin-bottom: 56px; }
.approach-illustration { width: clamp(220px, 30vw, 340px); height: auto; display: block; margin: 0 auto 18px; }
.approach-title-wrap { text-align: center; }
.approach-title {
  display: inline-block; position: relative;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); color: var(--ink); line-height: 1.1;
}
.approach-title::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: -16px; height: 5px;
  background: var(--red); border-radius: 6px; transform: rotate(-1.2deg);
}
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1000px; margin: 24px auto 0; }
.approach-card { background: var(--cream); border: 2px dashed rgba(20,18,15,0.18); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.approach-icon { width: 44px; height: 44px; }
.approach-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; }
.approach-card p { font-size: .98rem; line-height: 1.65; opacity: .85; }
.approach-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.approach-tags span { font-size: .8rem; padding: 6px 14px; border-radius: 999px; background: rgba(20,18,15,0.06); font-weight: 600; }
@media (max-width: 720px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-card { padding: 28px 22px; }
}

/* Contact */
.contact-card-wrap { position: relative; max-width: 1000px; margin: 0 auto; }
.hello-flowers { position: absolute; left: 20px; right: 20px; bottom: 100%; height: 0; z-index: 2; pointer-events: none; }
.hello-flower {
  position: absolute; bottom: -6px; width: auto; transform-origin: bottom center;
  scale: 1 0; translate: 0 12px; opacity: 0;
  transition: scale 1.1s cubic-bezier(.3,1.6,.4,1), translate 1.1s cubic-bezier(.3,1.6,.4,1), opacity .5s ease;
  animation: helloFlowerSway 3.6s ease-in-out infinite;
  animation-play-state: paused;
}
.hello-flower--flip { scale: -1 0; }
.contact-card-wrap.in .hello-flower {
  scale: 1 1; translate: 0 0; opacity: 1; animation-play-state: running;
}
.contact-card-wrap.in .hello-flower--flip { scale: -1 1; }
@keyframes helloFlowerSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.contact-card { background: var(--yellow); border-radius: 40px; padding: 90px 40px; text-align: center; max-width: 1000px; margin: 0 auto; position: relative; overflow: hidden; }
.contact-card h2, .contact-card .contact-note, .contact-card .email { position: relative; z-index: 1; }
.contact-card h2 { font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 3.2rem); line-height: 1.15; }
.contact-card .contact-note { margin-top: 14px; font-size: 1.05rem; opacity: .8; }
.contact-card .email { display: inline-block; margin-top: 20px; font-size: 1.1rem; color: var(--blue); font-weight: 600; }
.hello-doodles {
  position: absolute; top: 50%; left: 50%; z-index: 0; pointer-events: none;
  width: min(1050px, 145%); max-width: none; height: auto; opacity: 0;
  transform: translate(-50%, -50%); clip-path: inset(0 100% 0 0);
}

/* Footer */
.site-footer { padding: 40px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; opacity: .8; }
.site-footer .socials { display: flex; gap: 18px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .stack-card { padding: 32px 22px; }
  .contact-card { padding: 56px 24px; border-radius: 28px; }
  .hello-flowers { left: 8px; right: 8px; }
  .hello-doodles { width: min(1050px, 175%); }
}
@media (max-width: 600px) {
  .hello-flower:nth-child(3n) { display: none; }
}

/* ---------- Project detail pages ---------- */
.project-page-header-spacer { height: 96px; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  opacity: .75; transition: opacity .2s ease, transform .2s ease;
}
.back-link:hover { opacity: 1; transform: translateX(-4px); }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

.project-hero { padding: 56px 0 0; }
.project-label {
  display: inline-block; font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: .9rem; padding: 7px 18px; border-radius: 999px; margin: 24px 0 22px;
  background: rgba(20,18,15,0.06);
}
.project-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.3rem, 6.6vw, 4.6rem); line-height: 1.08; position: relative; display: inline-block;
}
.project-title::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: -16px; height: 5px;
  border-radius: 6px; transform: rotate(-1deg); background: var(--red);
}
.project-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid rgba(20,18,15,0.12);
}
.meta-cell .meta-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .5; margin-bottom: 6px; }
.meta-cell .meta-value { font-weight: 600; font-size: 1.02rem; }

.project-cover { margin-top: 52px; }
.cover-placeholder {
  aspect-ratio: 16 / 9; border-radius: 32px; border: 2.5px dashed rgba(20,18,15,0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--cream);
}
.cover-placeholder svg { width: 60px; height: 60px; opacity: .7; }
.cover-placeholder span { font-family: var(--font-serif); font-style: italic; opacity: .55; font-size: 1.05rem; }

.project-overview { max-width: 700px; margin: 64px auto 0; text-align: center; }
.project-overview p { font-size: 1.1rem; line-height: 1.75; opacity: .85; margin-top: 14px; }

.project-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.gallery-placeholder {
  aspect-ratio: 4 / 5; border-radius: 22px; border: 2px dashed rgba(20,18,15,0.18);
  display: flex; align-items: center; justify-content: center; background: rgba(20,18,15,0.03);
}
.gallery-placeholder svg { width: 34px; height: 34px; opacity: .35; }

.project-nav-links {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 90px;
  padding-top: 34px; border-top: 1px solid rgba(20,18,15,0.12);
}
.project-nav-link {
  display: flex; flex-direction: column; gap: 6px; max-width: 45%;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.project-nav-link.next { text-align: right; align-items: flex-end; }
.project-nav-link:hover { transform: translateY(-3px); }
.project-nav-link .nav-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .5; }
.project-nav-link .nav-title { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; }

.accent-blue .project-label { background: rgba(47,107,255,.12); color: var(--blue); }
.accent-blue .project-title::after { background: var(--blue); }
.accent-red .project-label { background: rgba(232,70,30,.12); color: var(--red); }
.accent-red .project-title::after { background: var(--red); }
.accent-green .project-label { background: rgba(30,142,90,.14); color: var(--green); }
.accent-green .project-title::after { background: var(--green); }
.accent-yellow .project-label { background: rgba(240,196,25,.2); color: #8a6b0a; }
.accent-yellow .project-title::after { background: var(--yellow); }

/* Real cover photo variant (once a project has actual artwork) */
.project-cover-image {
  width: 100%; border-radius: 32px; display: block;
  box-shadow: 0 20px 40px rgba(20,18,15,0.12);
}

/* Masonry-style gallery for real project images of mixed aspect ratios
   (CSS Grid, not column-count: multi-column's height-balancing can shove every
   item into one column and leave the other empty when there are only 2-3 tall
   images — grid guarantees a deterministic left/right/left/right placement) */
.project-gallery-masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; align-items: start; }
.project-gallery-masonry img {
  width: 100%; display: block; border-radius: 20px;
  box-shadow: 0 10px 24px rgba(20,18,15,0.08);
}

/* Bento grid for asset sets with wildly mixed aspect ratios (e.g. a tall
   portrait poster, a wide banner, and an ultra-wide banner strip). No
   card background -- these are complete banner/poster designs meant to
   be seen directly, not framed. A single 1fr:4fr column split (used by
   both blocks, so the two blocks read as one consistent system) plus
   row heights solved from each image's real ratio mean object-fit:contain
   shows the full, uncropped artwork with close to zero letterboxing --
   the mail row is intentionally the tallest of the two right-column
   rows so the Mailchimp design reads clearly at a glance. */
.project-gallery-bento {
  display: grid; grid-template-columns: 1fr 4fr;
  grid-template-rows: clamp(230px, 30vw, 337px) clamp(65px, 8.7vw, 98px) clamp(200px, 26vw, 297px);
  grid-template-areas: "tall wide" "tall strip" "sq mail";
  gap: 20px; margin-top: 56px;
}
.project-gallery-bento img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 16px; }
.project-gallery-bento .bento-tall { grid-area: tall; }
.project-gallery-bento .bento-wide { grid-area: wide; }
.project-gallery-bento .bento-strip { grid-area: strip; }
.project-gallery-bento .bento-sq { grid-area: sq; }
.project-gallery-bento .bento-mail { grid-area: mail; }
@media (max-width: 700px) {
  .project-gallery-bento {
    grid-template-columns: 1fr; grid-template-rows: none;
    grid-template-areas: "tall" "wide" "strip" "sq" "mail";
  }
  .project-gallery-bento .bento-tall { aspect-ratio: 0.5; }
  .project-gallery-bento .bento-wide { aspect-ratio: 2.64; }
  .project-gallery-bento .bento-strip { aspect-ratio: 9.09; }
  .project-gallery-bento .bento-sq { aspect-ratio: 1; }
  .project-gallery-bento .bento-mail { aspect-ratio: 3; }
}

/* Multi-brand project layout (e.g. Commercial Poster page) */
.brand-block { margin-top: 90px; padding-top: 46px; border-top: 1px solid rgba(20,18,15,0.12); }
.brand-block:first-of-type { margin-top: 70px; }
.brand-header { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.brand-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .5; margin-bottom: 10px; }
.brand-name { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.brand-desc { font-size: 1.02rem; line-height: 1.75; opacity: .82; }

.brand-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; align-items: start; }
.brand-gallery img {
  width: 100%; display: block; border-radius: 20px;
  box-shadow: 0 10px 24px rgba(20,18,15,0.08);
}
.brand-gallery--tight { grid-template-columns: repeat(3, 1fr); }

/* Grouped logo cluster (e.g. Logo Design page) — uniform cards, no per-item text */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.logo-grid-item {
  aspect-ratio: 1 / 1; border-radius: 22px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  box-shadow: 0 10px 24px rgba(20,18,15,0.08);
}
.logo-grid-item img { width: 100%; height: 100%; object-fit: contain; }

/* Grouped video cluster (e.g. Logo Animation page) — one per row, short client caption */
.video-list { display: flex; flex-direction: column; gap: 52px; margin-top: 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.video-list video { width: 100%; border-radius: 22px; box-shadow: 0 10px 24px rgba(20,18,15,0.08); display: block; background: #14120F; }
.video-list-caption { margin-top: 16px; text-align: center; }
.video-list-caption .client-name { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 1.15rem; }
.video-list-caption .client-desc { opacity: .65; font-size: .92rem; margin-top: 4px; }

@media (max-width: 900px) {
  .project-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-gallery--tight { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-meta-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-gallery-masonry { grid-template-columns: 1fr; }
  .project-nav-links { flex-direction: column; }
  .project-nav-link.next { text-align: left; align-items: flex-start; }
  .project-nav-link { max-width: 100%; }
  .brand-block { margin-top: 64px; padding-top: 34px; }
  .brand-gallery, .brand-gallery--tight { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr; }
}
