/* ================================================================
   RYAN DSOUZA — portfolio in the landonorris.com design language
   chartreuse / cream / near-black · condensed display type · topo lines
   ================================================================ */

:root {
  --lime: #d6fa32;
  --cream: #f2f2ec;
  --ink: #1a1c14;
  --dark: #23261c;
  --line: rgba(26, 28, 20, 0.16);
  --line-light: rgba(242, 242, 236, 0.16);
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--lime); }

/* topographic contour texture, used on hero / cards / cta */
.hero-topo, .cta-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%231a1c14' stroke-opacity='0.10' stroke-width='1.4'%3E%3Cpath d='M-40 90c90-50 190-60 280-20s190 30 320-30'/%3E%3Cpath d='M-40 150c100-55 200-60 290-15s200 25 310-40'/%3E%3Cpath d='M-40 215c110-60 205-55 295-10s205 20 305-50'/%3E%3Cpath d='M-40 285c120-65 210-50 300-5s210 15 300-60'/%3E%3Cpath d='M-40 360c115-55 215-45 305 0s215 10 295-65'/%3E%3Cpath d='M-40 435c105-45 220-40 310 5s220 5 290-70'/%3E%3Cpath d='M-40 510c95-35 225-35 315 10s225 0 285-75'/%3E%3Ccircle cx='140' cy='330' r='46'/%3E%3Ccircle cx='140' cy='330' r='78'/%3E%3Ccircle cx='420' cy='140' r='38'/%3E%3Ccircle cx='420' cy='140' r='70'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 560px 560px;
}

@keyframes pulse { from { opacity: 1; } to { opacity: 0.25; } }

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px;
  mix-blend-mode: normal;
  transition: padding 0.35s ease;
}
.site-header.scrolled { padding: 12px 28px; }

.logo {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: currentColor;
  text-decoration: none;
}
.header-right { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--ink); color: var(--lime); }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { transform: translateY(-3px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.menu-toggle {
  width: 44px;
  height: 41px;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease;
}
.menu-toggle span:last-child { width: 12px; align-self: flex-end; margin-right: 13px; }
body.nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .menu-toggle span:last-child { width: 18px; align-self: center; margin: 0; transform: translateY(-4px) rotate(-45deg); }

/* ================= NAV OVERLAY ================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
body.nav-open .nav-overlay { clip-path: inset(0 0 0% 0); }
.nav-links { display: flex; flex-direction: column; }
.nav-links a {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.04;
  color: var(--cream);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease, transform 0.3s ease;
}
.nav-links a::before {
  content: attr(data-index);
  font-family: var(--mono);
  font-size: 0.75rem;
  vertical-align: super;
  margin-right: 14px;
  color: var(--lime);
}
.nav-links a:hover { color: var(--lime); transform: translateX(12px); }
.nav-foot {
  position: absolute;
  bottom: 26px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(242, 242, 236, 0.5);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 130px 8vw 90px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.hero-title {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(3.6rem, 10.5vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.15s;
}
.hero-title .line-2 > span { animation-delay: 0.3s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-title .line-2 { -webkit-text-stroke: 2px var(--ink); }
.hero-title .line-2 > span { color: transparent; }
.hero-intro {
  margin-top: 28px;
  max-width: 430px;
  font-size: 0.98rem;
  line-height: 1.75;
  opacity: 0.75;
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 0.82rem; padding: 15px 26px; }

.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 10px 0 var(--ink);
  background: #e4e4dc;
}

.hero-scroll {
  position: absolute;
  right: 30px;
  bottom: 36px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  animation: bob 1.6s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(6px); } }

/* ================= MARQUEE ================= */
.marquee {
  background: var(--lime);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 22s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ================= SECTION TAG ================= */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 8px 16px;
}
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--ink);
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.tag-dot.dark { background: var(--ink); box-shadow: none; }

/* ================= MESSAGE ================= */
.message {
  background: var(--dark);
  color: var(--cream);
  padding: 110px 8vw 120px;
}
.message-title {
  margin-top: 48px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7.2vw, 6.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}
.message-title em { font-style: normal; color: var(--lime); }
.mline { display: block; overflow: hidden; }
.mline { opacity: 0; transform: translateY(60%); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.mline.on { opacity: 1; transform: translateY(0); }

.message-cols {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
}
.message-cols p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(242, 242, 236, 0.78);
}

/* ================= WORK ================= */
.work { padding: 110px 8vw 90px; }
.work-head { max-width: 1080px; }
.work-title {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}
.outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.work-blurb {
  margin-top: 26px;
  max-width: 460px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.72;
}

.work-grid .work-card { cursor: pointer; }
.work-grid .work-card h3 { padding-right: 10px; }
.work-grid .work-card p { font-size: 0.8rem; }

/* ================= TOOLS ================= */
.tools {
  background: var(--dark);
  color: var(--cream);
  padding: 110px 8vw 120px;
}
.tools-title {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.88;
}
.tools-title .outline { -webkit-text-stroke: 2px var(--lime); color: transparent; }
.tools-blurb { margin-top: 24px; max-width: 440px; font-size: 0.95rem; line-height: 1.7; color: rgba(242, 242, 236, 0.65); }

.tools-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tool-card {
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.tool-card:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: translateY(-6px) rotate(-1deg);
}
.tool-glyph {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--lime);
  transform: skewX(-8deg);
}
.tool-card:hover .tool-glyph { color: var(--ink); }
.tool-name { font-family: var(--body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em; }
.tool-sub { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; opacity: 0.55; }

/* ================= VIBE CODED ================= */
.vibes {
  background: var(--cream);
  border-top: 1.5px solid var(--ink);
  padding: 110px 8vw 110px;
}
.vibes-title {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.88;
}
.vibes-blurb { margin-top: 24px; max-width: 470px; font-size: 0.95rem; line-height: 1.7; opacity: 0.72; }

.vibes-grid, .work-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.vibe-card {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  padding: 24px 24px 60px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: rotate 0.25s ease, translate 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.vibe-card:nth-child(3n + 1) { rotate: -1.2deg; }
.vibe-card:nth-child(3n + 2) { rotate: 0.8deg; }
.vibe-card:nth-child(3n)     { rotate: -0.5deg; }
.vibe-card:hover {
  rotate: 0deg;
  translate: 0 -6px;
  background: var(--lime);
  box-shadow: 7px 9px 0 var(--ink);
}
.vibe-kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  opacity: 0.6;
}
.vibe-glyph {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  margin: 26px 0 18px;
  transform: skewX(-8deg);
}
.vibe-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.vibe-card p { font-size: 0.85rem; line-height: 1.65; opacity: 0.75; }
.vibe-stamp {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 11px;
  transform: rotate(-3deg);
}
.vibe-card:hover .vibe-stamp { transform: rotate(0deg); }

/* ================= HAND TRACED ================= */
.traced {
  background: var(--dark);
  color: var(--cream);
  padding: 110px 8vw 120px;
}
.traced-title {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.88;
}
.traced-title .outline { -webkit-text-stroke: 2px var(--lime); color: transparent; }
.traced-blurb { margin-top: 24px; max-width: 440px; font-size: 0.95rem; line-height: 1.7; color: rgba(242, 242, 236, 0.65); }
.traced-note {
  margin-top: 18px;
  max-width: 520px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.9;
  color: var(--lime);
  opacity: 0.85;
}

.traced-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px;
}
.trace-frame {
  margin: 0;
  background: var(--cream);
  border-radius: 6px;
  padding: 14px 14px 48px;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.45);
  position: relative;
  transition: rotate 0.25s ease, translate 0.25s ease;
}
.trace-frame:nth-child(3n + 1) { rotate: -1.6deg; }
.trace-frame:nth-child(3n + 2) { rotate: 1.1deg; }
.trace-frame:nth-child(3n)     { rotate: -0.6deg; }
.trace-frame:hover { rotate: 0deg; translate: 0 -8px; }
.trace-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4e4dc;
}
.trace-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  opacity: 0.7;
}
.nav-links a[hidden], .footer a[hidden] { display: none; }
.trace-frame { cursor: zoom-in; }

/* trace lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.lightbox.open { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 20, 0.9);
  cursor: zoom-out;
}
.lightbox-fig {
  position: relative;
  margin: 0;
  background: var(--cream);
  border-radius: 6px;
  padding: 12px 12px 40px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: min(92vw, 900px);
}
.lightbox.open .lightbox-fig { transform: scale(1); }
.lightbox-fig img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  background: #fff;
}
.lightbox-fig figcaption {
  position: absolute;
  left: 12px;
  bottom: 13px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  opacity: 0.7;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 1;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid rgba(242, 242, 236, 0.4);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, translate 0.2s ease;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-nav:hover { background: var(--lime); }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 620px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ================= PROCESS ================= */
.process { padding: 110px 8vw 100px; }
.process-title {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 5.6rem);
  line-height: 0.95;
}
.process-blurb { margin-top: 22px; max-width: 500px; font-size: 0.95rem; line-height: 1.7; opacity: 0.72; }

.process-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
.step {
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 26px 24px 60px;
  transition: background 0.25s ease;
}
.step:hover { background: var(--lime); }
.step-no {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 46px;
}
.step h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.step p { font-size: 0.85rem; line-height: 1.65; opacity: 0.75; }

/* ================= CTA ================= */
.cta {
  position: relative;
  background: var(--lime);
  border-top: 1.5px solid var(--ink);
  padding: 110px 8vw 120px;
  text-align: center;
  overflow: hidden;
}
.cta .section-tag { position: relative; }
.cta-title {
  position: relative;
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.9;
}
.cta-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cta-actions {
  position: relative;
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn { font-size: 0.85rem; padding: 16px 30px; }

/* ================= FOOTER ================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 90px 8vw 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 880px;
}
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-head {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--lime);
  margin-bottom: 8px;
}
.f-col a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.f-col a:hover { color: var(--lime); transform: translateX(6px); }

.footer-statement {
  margin-top: 100px;
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.footer-statement span { color: var(--lime); }

.footer-bar {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(242, 242, 236, 0.5);
}
.footer-bar a { color: var(--lime); text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ================= PROJECT MODAL ================= */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.pmodal.open { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
.pmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 20, 0.72);
  cursor: pointer;
}
.pmodal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 10px 0 var(--ink);
  transform: translateY(26px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pmodal.open .pmodal-panel { transform: translateY(0) scale(1); }
.pmodal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 20px;
}
.pmodal-no { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--lime); }
.pmodal-close {
  background: none;
  border: 1.5px solid rgba(242, 242, 236, 0.35);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.85rem;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pmodal-close:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pmodal-body { padding: 30px 34px 40px; }
.pmodal-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pmodal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
}
.pmodal-status {
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 500;
}
.pmodal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pmodal-links a {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pmodal-links a:hover { transform: translateY(-2px); box-shadow: 3px 4px 0 var(--ink); }
.pmodal-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin: 30px 0 0;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line);
}
.pmodal-text { margin-top: 14px; font-size: 0.92rem; line-height: 1.75; opacity: 0.85; }
.pmodal-list { margin-top: 14px; padding-left: 0; list-style: none; }
.pmodal-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}
.pmodal-list li::before { content: "→"; position: absolute; left: 0; font-family: var(--mono); }
.vibe-card.clickable { cursor: pointer; }

/* ================= PROJECT PAGES ================= */
.work-grid .work-card { text-decoration: none; color: inherit; display: block; }
.ppage {
  position: relative;
  min-height: 100svh;
  padding: 150px 8vw 80px;
  overflow: hidden;
}
.ppage-inner { position: relative; max-width: 900px; }
.ppage-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 46px;
}
.ppage-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.ppage-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
}
.ppage-title {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.ppage .pmodal-text { max-width: 720px; }
.ppage-sub {
  margin: -14px 0 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  opacity: 0.65;
}
.ppage-quote {
  margin: 40px 0 10px;
  max-width: 780px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.ppage-quote em { font-style: normal; background: var(--lime); padding: 0 8px; }
.ppage-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 780px;
}
.stat {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 18px 16px 14px;
  background: var(--cream);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  opacity: 0.65;
}
.pmodal-list strong { font-weight: 700; }
.ppage-wfpreview {
  position: relative;
  display: block;
  max-width: 780px;
  margin-top: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 6px 0 var(--ink);
  transition: translate 0.25s ease, box-shadow 0.25s ease;
}
.ppage-wfpreview:hover { translate: 0 -5px; box-shadow: 8px 10px 0 var(--ink); }
.ppage-wfpreview img { display: block; width: 100%; }
.wf-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 9px 14px;
  border-radius: 999px;
}
@media (max-width: 620px) {
  .ppage-stats { grid-template-columns: repeat(2, 1fr); }
}
.ppage-next {
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ppage-next span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.25em; opacity: 0.6; }
.ppage-next a {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.ppage-next a:hover { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.ppage-foot {
  margin-top: 60px;
  padding: 20px 8vw;
  background: var(--ink);
  color: rgba(242, 242, 236, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}
.ppage-foot a { color: var(--lime); text-decoration: none; }
body.project-body { display: flex; flex-direction: column; }
body.project-body .ppage { flex: 1; }
body.project-body .ppage-foot { margin-top: 0; }

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.on { opacity: 1; transform: translateY(0); }

html.noanim .reveal, html.noanim .mline { opacity: 1; transform: none; transition: none; }
html.noanim .hero-title .line > span { transform: none; animation: none; }
html.noanim { scroll-behavior: auto; }
html.noanim .hero { min-height: 880px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .mline { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 420px; margin-top: 20px; }
  .tools-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .vibes-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .message-cols { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 16px 18px; }
  .hero { padding: 110px 24px 110px; }
  .hero-scroll { right: 20px; bottom: 30px; }
  .message, .work, .tools, .process, .cta, .vibes, .traced { padding-left: 24px; padding-right: 24px; }
  .vibes-grid, .work-grid { grid-template-columns: 1fr; }
  .footer { padding: 70px 24px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
