/* ============================================================
   Mei Oka — Portfolio LP
   ============================================================ */

:root {
  /* Light, clean palette (default). Variable names kept for compatibility:
     --ink = page background, --cream = foreground. */
  --ink: #f4f1ea;        /* page background — warm off-white */
  --ink-soft: #ffffff;   /* card / panel surfaces */
  --cream: #17171b;      /* primary text / foreground (dark) */
  --cream-dim: #746f66;  /* muted text */
  --line: rgba(23, 23, 27, 0.13);
  --fade: #ffffff;       /* gradient/edge fade toward the background */
  --surface: rgba(255, 255, 255, 0.82); /* glass mock surfaces */
  --surface-line: rgba(255, 255, 255, 0.7);
  --nav-scrim: rgba(244, 241, 234, 0.72);
  --ring: rgba(23, 23, 27, 0.45);
  --ring-soft: rgba(23, 23, 27, 0.06);
  --track: rgba(23, 23, 27, 0.1);
  --accent: #ff5b35;
  --accent-2: #e07a32;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
  --pad: clamp(20px, 5vw, 80px);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
}

/* Dark mode — flips the palette while keeping the same variable names */
:root[data-theme="dark"] {
  --ink: #0c0c0e;
  --ink-soft: #16161b;
  --cream: #ece6db;
  --cream-dim: #8a847a;
  --line: rgba(236, 230, 219, 0.14);
  --fade: #0c0c0e;
  --surface: rgba(28, 28, 34, 0.7);
  --surface-line: rgba(236, 230, 219, 0.12);
  --nav-scrim: rgba(12, 12, 14, 0.72);
  --ring: rgba(236, 230, 219, 0.5);
  --ring-soft: rgba(236, 230, 219, 0.08);
  --track: rgba(236, 230, 219, 0.12);
}

html { transition: background-color .5s var(--ease); }
body { transition: background-color .5s var(--ease), color .5s var(--ease); }

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

/* ---------- Bilingual Display ---------- */
html:not([lang="pt"]) [lang="pt"] { display: none !important; }
html[lang="pt"] [lang="en"] { display: none !important; }

a { color: inherit; text-decoration: none; }
li { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

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

/* ---------- WebGL canvas ---------- */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 2; }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 2%); }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor__dot {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  background: var(--cream); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 42px; height: 42px;
  border: 1px solid var(--ring); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), background .4s var(--ease), opacity .3s;
}
.cursor__label {
  position: fixed; top: 0; left: 0; transform: translate(-50%,-50%);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); opacity: 0; font-weight: 600;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; background: var(--ring-soft); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--cream); border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9995;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader__inner { overflow: hidden; }
.loader__row { display: flex; gap: 0.3em; font-family: var(--font-serif); font-size: clamp(28px, 6vw, 64px); font-weight: 300; }
.loader__word { display: inline-block; transform: translateY(110%); opacity: 0; }
.loader__word:nth-child(2) { font-style: italic; color: var(--accent); }
.loader__count {
  position: absolute; bottom: clamp(20px,5vw,60px); right: var(--pad);
  font-family: var(--font-serif); font-size: clamp(48px, 14vw, 150px); font-weight: 300; line-height: 1;
}
.loader__count sup { font-size: 0.25em; vertical-align: super; }
.loader__bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--track); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px,2.4vw,28px) var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-scrim);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 17px; }
.nav__mark { color: var(--accent); display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 40px); }
.nav__links a { font-size: 14px; position: relative; overflow: hidden; }
.nav__links a span { display: inline-block; transition: transform .5s var(--ease); }
.nav__links a::after {
  content: attr(data-x); position: absolute; left: 0; top: 100%;
}
.nav__links a span::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover span::after { transform: scaleX(1); transform-origin: left; }

/* Controls cluster (lang + theme) */
.nav__controls { display: flex; align-items: center; gap: 12px; }

/* Language segmented toggle */
.lang {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; user-select: none;
}
.lang__opt {
  position: relative; z-index: 2; background: none; border: none; cursor: pointer;
  color: var(--cream-dim); font: inherit; padding: 0.42em 0.82em; border-radius: 100px;
  transition: color .4s var(--ease);
}
.lang__opt.is-active { color: var(--ink); }
.lang__ind {
  position: absolute; top: 3px; left: 3px; z-index: 1;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: var(--cream); border-radius: 100px;
  transition: transform .45s var(--ease);
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%; background: none;
  color: var(--cream); cursor: pointer;
  transition: border-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--ring); transform: rotate(18deg); }
.theme-toggle__icon { position: absolute; width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.nav__cta {
  font-size: 14px; padding: 0.6em 1.3em; border: 1px solid var(--line);
  border-radius: 100px; position: relative; overflow: hidden;
}
.nav__cta span { position: relative; z-index: 2; transition: color .4s var(--ease); }
.nav__cta::before {
  content: ""; position: absolute; inset: 0; background: var(--cream);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 1;
}
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover span { color: var(--ink); }
.nav__burger { display: none; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 890; background: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0% 0); }
.menu__list li { overflow: hidden; }
.menu__list a {
  font-family: var(--font-serif); font-size: clamp(40px, 13vw, 88px); font-weight: 300;
  display: flex; align-items: baseline; gap: 0.4em; padding: 0.05em 0;
  transform: translateY(110%); transition: transform .7s var(--ease);
}
.menu.is-open .menu__list a { transform: translateY(0); }
.menu__list a span { font-family: var(--font-sans); font-size: 14px; color: var(--accent); }
.menu__foot {
  margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 6px;
  color: var(--cream-dim); font-size: 14px; border-top: 1px solid var(--line);
}
.menu__foot a { color: var(--cream); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding: 0 var(--pad);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; padding-bottom: clamp(30px, 5vh, 60px);
}
.hero__meta {
  position: absolute; top: clamp(90px,12vh,130px);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--cream-dim); letter-spacing: 0.02em;
}
.hero__meta--tl { left: var(--pad); }
.hero__meta--tr { right: var(--pad); text-align: right; }
.hero__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(56px, 15.5vw, 260px); line-height: 0.86; letter-spacing: -0.02em;
  margin-bottom: clamp(30px, 5vh, 70px);
}
.line { display: block; overflow: hidden; }
.line__inner { display: block; transform: translateY(105%); will-change: transform; }
.line--accent .line__inner { font-style: italic; color: var(--accent); }
.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  border-top: 1px solid var(--line); padding-top: clamp(20px,3vh,32px);
}
.hero__lede { max-width: 42ch; font-size: clamp(15px, 1.5vw, 20px); color: var(--cream-dim); line-height: 1.5; }
.hero__lede strong { color: var(--cream); font-weight: 500; }
.hero__scroll { flex-shrink: 0; }
.hero__scroll-circle { position: relative; display: grid; place-items: center; width: clamp(86px,9vw,116px); aspect-ratio: 1; }
.hero__scroll-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.hero__scroll-circle text { font-size: 8.2px; letter-spacing: 0.18em; fill: var(--cream-dim); font-family: var(--font-sans); }
.hero__scroll-arrow { font-size: 22px; animation: bob 1.8s var(--ease-io) infinite; }
@keyframes bob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(28px, 4vw, 50px) 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  font-family: var(--font-serif); font-size: clamp(30px, 5vw, 78px); font-weight: 300; font-style: italic;
  animation: marquee 28s linear infinite; white-space: nowrap;
}
.marquee__track .dot { color: var(--accent); font-style: normal; font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section tag ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim);
}
.section-tag i { color: var(--accent); font-style: normal; }

/* ---------- Statement ---------- */
.statement { padding: clamp(90px,14vw,200px) var(--pad); background: var(--ink); }
.statement .section-tag { margin-bottom: clamp(30px,4vw,56px); }
.statement__text {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(28px, 5.4vw, 88px); line-height: 1.12; letter-spacing: -0.015em; max-width: 17ch;
}
.word-wrap { display: inline-block; overflow: hidden; }
.word-wrap > * , .word-inner { display: inline-block; }
.word-accent { font-style: italic; color: var(--accent); }

/* ---------- Work ---------- */
.work { padding: clamp(40px,6vw,80px) var(--pad) clamp(60px,8vw,120px); background: var(--ink); position: relative; }
.work__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(30px,4vw,60px); }
.work__heading { font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px,8vw,120px); line-height: 0.92; letter-spacing: -0.02em; }
.projects { border-top: 1px solid var(--line); }
.project {
  position: relative; display: grid;
  grid-template-columns: 0.5fr 3fr 2fr 0.8fr;
  align-items: center; gap: 20px;
  padding: clamp(24px,3vw,44px) 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.project:hover { padding-left: clamp(12px,1.5vw,28px); padding-right: clamp(12px,1.5vw,28px); }
.project__link { position: absolute; inset: 0; z-index: 6; }
.project__index { font-size: 14px; color: var(--cream-dim); }
.project__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px,4.4vw,60px); letter-spacing: -0.02em; transition: color .4s; }
.project:hover .project__title { color: var(--accent); }
.project__cat { font-size: 14px; color: var(--cream-dim); }
.project__year { font-size: 14px; color: var(--cream-dim); text-align: right; }
.project__thumb {
  position: absolute; right: 14%; top: 50%; width: 280px; height: 200px;
  transform: translateY(-50%) scale(0.6); border-radius: 8px; overflow: hidden;
  opacity: 0; pointer-events: none; z-index: 5; transition: opacity .45s var(--ease), transform .45s var(--ease);
  rotate: -4deg;
}
.project__thumb { box-shadow: 0 24px 60px -20px rgba(23,23,27,0.35); }
.project__thumb span { position: absolute; inset: 0; background: radial-gradient(120% 120% at 30% 20%, var(--c), var(--fade) 85%); }
.project:hover .project__thumb { opacity: 1; transform: translateY(-50%) scale(1); rotate: -4deg; }
@media (hover: none) {
  .project__thumb {
    position: static; opacity: 1; transform: none; rotate: 0deg;
    width: 100%; height: 150px; margin-top: 16px; grid-column: 1 / -1;
  }
  .project { grid-template-columns: 0.4fr 1fr; }
}

/* ---------- Services ---------- */
.services { padding: clamp(80px,12vw,160px) var(--pad); background: var(--ink-soft); }
.services__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(40px,5vw,70px); }
.services__heading { font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px,8vw,120px); line-height: 0.92; letter-spacing: -0.02em; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.service { background: var(--ink-soft); padding: clamp(28px,3.5vw,52px); display: flex; flex-direction: column; gap: 16px; transition: background .5s var(--ease); position: relative; }
.service:hover { background: var(--ink); }
.service__num { font-size: 14px; color: var(--accent); }
.service h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px,3vw,40px); letter-spacing: -0.01em; }
.service p { color: var(--cream-dim); font-size: clamp(14px,1.1vw,16px); max-width: 38ch; line-height: 1.55; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.service li { font-size: 12px; padding: 0.4em 0.9em; border: 1px solid var(--line); border-radius: 100px; color: var(--cream-dim); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(40px,6vw,90px) var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stat:last-child { border-right: none; }
.stat__num, .stat__suffix { font-family: var(--font-serif); font-weight: 300; font-size: clamp(44px,7vw,110px); line-height: 1; letter-spacing: -0.02em; }
.stat__suffix { color: var(--accent); margin-left: -0.1em; }
.stat { position: relative; }
.stat p { color: var(--cream-dim); font-size: 14px; }
.stat > div, .stat__line { display: flex; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px,12vw,180px) var(--pad); background: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-tag { margin-bottom: clamp(30px,4vw,50px); }
.contact__big { font-family: var(--font-serif); font-weight: 300; font-size: clamp(48px,12vw,190px); line-height: 0.9; letter-spacing: -0.02em; display: inline-block; }
.contact__big em { font-style: italic; color: var(--accent); }
.contact__big:hover em { color: var(--accent-2); }
.contact__row { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 24px; margin-top: clamp(50px,7vw,90px); border-top: 1px solid var(--line); padding-top: clamp(24px,3vw,40px); }
.contact__mail { font-size: clamp(16px,2vw,22px); }
.contact__mail:hover { color: var(--accent); }
.contact__socials { display: flex; gap: clamp(14px,2vw,30px); flex-wrap: wrap; }
.contact__socials a { font-size: 14px; color: var(--cream-dim); transition: color .3s; }
.contact__socials a:hover { color: var(--cream); }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: clamp(24px,3vw,40px) var(--pad); font-size: 13px; color: var(--cream-dim); border-top: 1px solid var(--line); background: var(--ink); }
.footer b { color: var(--cream); font-weight: 500; }

/* ---------- Reveal helpers ---------- */
.reveal-fade { opacity: 0; transform: translateY(20px); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 901;
  }
  .nav__burger i { width: 26px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s; }
  .nav__burger.is-active i:nth-child(1) { transform: translateY(3.7px) rotate(45deg); }
  .nav__burger.is-active i:nth-child(2) { transform: translateY(-3.7px) rotate(-45deg); }
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project { grid-template-columns: 0.4fr 1fr; }
  .project__cat, .project__year { display: none; }
  .hero__meta { font-size: 11px; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer { flex-direction: column; }
}

/* ============================================================
   PROJECT CASE PAGES
   ============================================================ */
.pcase { padding-top: clamp(110px, 15vh, 180px); }

.pcase-hero { padding: 0 var(--pad); }
.pcase-back {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 14px; color: var(--cream-dim); margin-bottom: clamp(30px, 5vw, 64px);
  transition: gap .4s var(--ease), color .3s;
}
.pcase-back:hover { color: var(--accent); gap: 0.9em; }
.pcase-hero .section-tag { display: block; margin-bottom: clamp(16px, 2vw, 24px); }
.pcase-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(50px, 11vw, 180px); line-height: 0.88; letter-spacing: -0.025em;
}
.pcase-title em { font-style: italic; color: var(--accent); }
.pcase-lede {
  max-width: 34ch; margin-top: clamp(24px, 3vw, 44px);
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.6vw, 36px); line-height: 1.3; color: var(--cream);
}
.pcase-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 36px);
}
.pcase-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cream-dim); margin-bottom: 8px; }
.pcase-meta dd { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.4; }

/* Cover + UI mock */
.pcase-cover {
  margin: clamp(40px, 6vw, 96px) var(--pad) 0;
  height: clamp(280px, 50vw, 620px); border-radius: 20px; overflow: hidden;
  position: relative; display: grid; place-items: center;
  box-shadow: 0 50px 100px -40px rgba(23,23,27,0.4);
}
.pcase-cover__bg { position: absolute; inset: 0; background: radial-gradient(130% 130% at 28% 18%, var(--c), var(--fade) 92%); }

.mock {
  position: relative; z-index: 2; width: min(70%, 760px); aspect-ratio: 16 / 10;
  background: var(--surface); backdrop-filter: blur(6px);
  border: 1px solid var(--surface-line); border-radius: 14px;
  box-shadow: 0 30px 60px -25px rgba(23,23,27,0.45); overflow: hidden;
}
.mock--phone { width: min(38%, 280px); aspect-ratio: 9 / 18; border-radius: 28px; }
.mock__bar { height: 14%; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ring); }
.mock__body { display: grid; gap: 10px; padding: 16px; grid-template-columns: 1fr 1fr 1fr; }
.mock__body span { height: 100%; border-radius: 7px; background: var(--c); opacity: 0.85; min-height: 26px; }
.mock__body span:nth-child(1) { grid-column: 1 / -1; opacity: 0.25; min-height: 34px; }
.mock__body span:nth-child(2) { grid-row: span 2; opacity: 0.55; }
.mock__body span:nth-child(4) { opacity: 0.35; }
.mock__body span:nth-child(5) { opacity: 0.7; }

/* Text sections */
.pcase-section {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(28px, 5vw, 90px);
  padding: clamp(56px, 9vw, 140px) var(--pad); border-top: 1px solid var(--line);
}
.pcase-section:first-of-type { border-top: none; }
.pcase-section__head h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.pcase-section__head .section-tag { margin-bottom: 18px; display: block; }
.pcase-section__body p { font-size: clamp(16px, 1.45vw, 21px); color: var(--cream-dim); line-height: 1.65; max-width: 58ch; }
.pcase-section__body p + p { margin-top: 1.1em; }
.pcase-section__body p strong, .pcase-section__body em { color: var(--cream); font-weight: 500; font-style: normal; }
.pcase-section__list { margin-top: 28px; display: flex; flex-direction: column; }
.pcase-section__list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(15px,1.2vw,18px); }
.pcase-section__list li b { color: var(--accent); font-weight: 500; font-family: var(--font-serif); }

/* Gallery */
.pcase-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 26px); padding: 0 var(--pad) clamp(50px, 8vw, 110px); }
.pcase-gallery figure { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; }
.pcase-gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 6.5; }
.pcase-gallery__bg { position: absolute; inset: 0; }
.pcase-gallery__bg.tint { background: radial-gradient(120% 120% at 70% 30%, var(--c), var(--fade) 88%); }
.pcase-gallery__bg.soft { background: var(--ink-soft); }

/* Next project */
.next-project { padding: clamp(60px, 9vw, 140px) var(--pad); border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; }
.next-project .section-tag { margin-bottom: clamp(20px, 3vw, 36px); }
.next-project__link { font-family: var(--font-serif); font-weight: 300; font-size: clamp(44px, 10vw, 150px); line-height: 0.9; letter-spacing: -0.025em; transition: color .4s; }
.next-project__link:hover { color: var(--accent); }
.next-project__arrow { display: inline-block; transition: transform .4s var(--ease); }
.next-project__link:hover .next-project__arrow { transform: translateX(0.15em); }

/* Real project showcase (Behance images) */
.pcase-shots { padding: 0 var(--pad) clamp(40px, 6vw, 90px); display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.pcase-shots.grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
.pcase-shot { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-soft); overflow: hidden; }
.pcase-shot img { display: block; width: 100%; height: auto; }
.pcase-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--pad) clamp(30px, 5vw, 70px); }
.pcase-behance { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.7em; border: 1px solid var(--ring); border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--cream); transition: background .3s, color .3s, border-color .3s; }
.pcase-behance:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pcase-behance svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .pcase-shots.grid { grid-template-columns: 1fr; }
  .pcase-meta { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .pcase-section { grid-template-columns: 1fr; gap: 24px; }
  .pcase-gallery { grid-template-columns: 1fr; }
  .pcase-gallery figure, .pcase-gallery figure.wide { aspect-ratio: 4 / 3; }
  .mock { width: min(82%, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
