@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  font-family: "Manrope", sans-serif;
  color: #151515;
  background: #eeeae2;
  font-synthesis: none;
  --paper: #eeeae2;
  --ink: #151515;
  --red: #e73527;
  --line: rgba(21, 21, 21, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  overflow-x: hidden;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.section-grid {
  background-image: linear-gradient(to right, transparent calc(25% - .5px), var(--line) 25%, transparent calc(25% + .5px)),
    linear-gradient(to right, transparent calc(75% - .5px), var(--line) 75%, transparent calc(75% + .5px));
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  padding: 0 3vw;
  overflow: hidden;
}

.draw-line {
  position: absolute;
  z-index: 5;
  background: var(--ink);
  transform-origin: left;
}

.line-top {
  top: 78px;
  left: 3vw;
  right: 3vw;
  height: 1px;
  animation: draw-x 1.2s cubic-bezier(.65, 0, .2, 1) both;
}

.line-left, .line-right {
  top: 78px;
  bottom: 0;
  width: 1px;
  transform-origin: top;
  animation: draw-y 1.2s .25s cubic-bezier(.65, 0, .2, 1) both;
}

.line-left { left: 3vw; }
.line-right { right: 3vw; }

.nav-shell {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 20;
  animation: nav-jump .75s .45s cubic-bezier(.2, 1.55, .45, 1) both;
}

.nav-shell button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  letter-spacing: .08em;
}

.wordmark {
  justify-self: start;
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: -.06em !important;
}

.nav-status {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .1em;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
}

.nav-links {
  justify-self: end;
  display: flex;
  gap: 28px;
}

.hero-content {
  position: absolute;
  inset: 78px 3vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: dissolve-in 1.4s .8s ease-out forwards;
}

.eyebrow, .section-kicker {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
}

.hero-eyebrow {
  margin-bottom: 24px;
  animation: rise .8s 1.1s both;
}

.hero-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(68px, 12.8vw, 190px);
  font-weight: 600;
  line-height: .76;
  letter-spacing: -.09em;
}

.sole-word {
  animation: sole-match 1.05s 1.25s cubic-bezier(.22, 1, .36, 1) both;
}

.designer-frame {
  color: var(--paper);
  -webkit-text-stroke: 1.5px var(--ink);
  padding: .04em .12em .11em;
  border: 1px solid var(--ink);
  margin-top: .13em;
  opacity: 0;
  animation: dissolve-in 1.1s 1.9s forwards;
}

.hero-meta {
  width: min(760px, 74vw);
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
}

.scroll-cue {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  animation: dissolve-in .8s 2.7s both;
}

.scroll-cue svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  animation: nudge-down 1.6s infinite;
}

.floating-label {
  position: absolute;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  animation: label-dissolve 7s infinite;
}

.floating-label.left { left: 6vw; }
.floating-label.right { right: 6vw; }
.label-one { top: 18%; animation-delay: 1s; }
.label-two { top: 39%; left: 14vw !important; animation-delay: 4.3s; }
.label-three { top: 67%; animation-delay: 2.4s; }
.label-four { top: 82%; left: 17vw !important; animation-delay: 5.8s; }
.label-five { top: 22%; animation-delay: 3.2s; }
.label-six { top: 44%; right: 15vw !important; animation-delay: .4s; }
.label-seven { top: 69%; animation-delay: 5s; }
.label-eight { top: 84%; right: 17vw !important; animation-delay: 1.8s; }

.work-section {
  position: relative;
  padding: 120px 3vw 160px;
  background: #171717;
  color: #f1ede5;
  overflow: hidden;
}

.projection-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 86px;
  background: rgba(241, 237, 229, .5);
  transform: scaleY(0);
  transform-origin: top;
}

.is-visible .projection-line {
  animation: draw-y .9s .1s forwards;
}

.section-heading-wrap {
  display: grid;
  grid-template-columns: 25% 75%;
  margin-bottom: 80px;
}

.section-heading {
  font-size: clamp(54px, 9vw, 138px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .82;
}

.section-heading span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px #f1ede5;
}

.slide-title {
  opacity: 0;
  transform: translateX(-70px);
}

.is-visible .slide-title {
  animation: slide-right 1s .25s cubic-bezier(.2, .8, .2, 1) forwards;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px 2vw;
}

.project-card {
  opacity: 0;
  transform: translateY(120px);
}

.is-visible .project-card {
  animation: card-jump .9s calc(.5s + var(--card-index) * .16s) cubic-bezier(.2, 1.2, .35, 1) forwards;
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2a2a;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.project-card:nth-child(3), .project-card:nth-child(4) {
  margin-top: 40px;
}

.project-card:hover .project-image-wrap {
  transform: scale(.97);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) contrast(1.05);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s;
}

.project-card:hover .project-image {
  transform: scale(1.055);
  filter: saturate(1);
}

.project-number, .project-arrow {
  position: absolute;
  top: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.project-number { left: 18px; }
.project-arrow { right: 18px; font-size: 15px; }

.project-info {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: end;
  padding-top: 15px;
  border-top: 1px solid rgba(241, 237, 229, .45);
  margin-top: 12px;
}

.project-info span {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.project-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.contact-scroll {
  height: 190vh;
  position: relative;
  background: #171717;
}

.contact-frame {
  --contact-progress: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  padding: calc(4vh + var(--contact-progress) * 4vh) calc(3vw + var(--contact-progress) * 5vw);
  background: var(--red);
  color: #101010;
  clip-path: inset(calc(var(--contact-progress) * 6vh) calc(var(--contact-progress) * 5vw));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.contact-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16,16,16,.5);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.contact-copy {
  position: relative;
  align-self: center;
  text-align: center;
  margin: auto;
  transform: scale(calc(.84 + var(--contact-progress) * .16));
}

.contact-title {
  font-size: clamp(52px, 8vw, 126px);
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 600;
  animation: subtle-shake 5s 1.4s infinite;
}

.contact-copy p {
  max-width: 510px;
  margin: 30px auto;
  font-size: 14px;
  line-height: 1.6;
}

.shine-button, .cv-button {
  position: relative;
  overflow: hidden;
  border: 1px solid currentColor;
  background: transparent;
  padding: 16px 20px;
  min-width: 180px;
  display: inline-flex;
  justify-content: space-between;
  gap: 30px;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
}

.shine-button {
  animation: button-drop .8s 1s both;
}

.shine-button::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 30px;
  background: rgba(255,255,255,.75);
  filter: blur(8px);
  transform: skewX(-25deg);
  animation: shine 2.8s 2s infinite;
}

.hand-icon {
  position: absolute;
  right: -35px;
  top: -70px;
  width: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 100%;
  animation: wave 1.1s 2.1s infinite ease-in-out;
}

.about-section {
  position: relative;
  padding: 120px 3vw 24px;
  overflow: hidden;
}

.about-line {
  position: absolute;
  left: 3vw;
  right: 3vw;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.about-line-top { top: 88px; }
.about-line-mid { top: 48%; }
.is-visible .about-line { animation: draw-x 1.2s forwards; }
.is-visible .about-line-mid { animation-delay: .35s; }

.about-header {
  display: grid;
  grid-template-columns: 25% 75%;
  padding-bottom: 90px;
}

.about-title {
  font-size: clamp(50px, 8vw, 122px);
  font-weight: 600;
  line-height: .83;
  letter-spacing: -.07em;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  padding: 70px 0 130px 25%;
}

.portrait-wrap {
  opacity: 0;
  position: relative;
}

.is-visible .portrait-wrap {
  animation: dissolve-in 1.3s .45s forwards;
}

.portrait {
  display: block;
  width: 100%;
  height: min(62vw, 680px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.portrait-wrap span {
  display: block;
  margin-top: 10px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.about-copy {
  align-self: end;
  padding-bottom: 24px;
}

.typing-text {
  overflow: hidden;
  max-width: 540px;
  color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 0% 100% no-repeat;
  background-clip: text;
  font-size: clamp(18px, 2vw, 29px);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.is-visible .typing-text {
  animation: text-type 3.5s .8s steps(28, end) forwards;
}

.about-stats {
  display: flex;
  gap: 60px;
  margin-top: 70px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-size: 42px;
  letter-spacing: -.06em;
}

.about-stats span {
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.experience {
  padding: 100px 0 110px 25%;
}

.experience-heading {
  margin-bottom: 45px;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -.065em;
}

.job {
  display: grid;
  grid-template-columns: 24% 1fr 28%;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 1px solid var(--line);
}

.job span {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.job strong {
  font-size: 16px;
  font-weight: 500;
}

.cv-button {
  margin-top: 36px;
  color: inherit;
}

.download-tail svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  animation: tail-shake 1.2s infinite;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dissolve-in { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }
@keyframes nav-jump { from { opacity: 0; transform: translateY(-50px); } 70% { transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sole-match { from { opacity: 0; letter-spacing: .09em; transform: scaleX(.65); } to { opacity: 1; letter-spacing: -.09em; transform: scaleX(1); } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@keyframes nudge-down { 50% { transform: translateY(6px); } }
@keyframes label-dissolve {
  0%, 8%, 48%, 100% { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  16%, 38% { opacity: .7; filter: blur(0); transform: translateY(0); }
}
@keyframes slide-right { to { opacity: 1; transform: none; } }
@keyframes card-jump { 70% { opacity: 1; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes subtle-shake { 0%, 94%, 100% { transform: none; } 95% { transform: translateX(-3px) rotate(-.4deg); } 97% { transform: translateX(3px) rotate(.4deg); } }
@keyframes button-drop { from { opacity: 0; transform: translateY(-50px) scale(.75); } 70% { transform: translateY(7px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes shine { from { left: -30%; } 45%, 100% { left: 125%; } }
@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
@keyframes text-type { to { background-size: 100% 100%; } }
@keyframes tail-shake { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

@media (max-width: 760px) {
  .hero { min-height: 620px; }
  .nav-status { display: none; }
  .nav-shell { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 19vw; }
  .hero-meta { width: 84%; gap: 20px; }
  .floating-label:nth-of-type(even) { display: none; }
  .section-heading-wrap, .about-header { grid-template-columns: 1fr; gap: 24px; }
  .project-grid { grid-template-columns: 1fr; gap: 70px; }
  .project-card:nth-child(3), .project-card:nth-child(4) { margin-top: 0; }
  .contact-title { font-size: 14vw; }
  .contact-frame { clip-path: inset(calc(var(--contact-progress) * 3vh) calc(var(--contact-progress) * 3vw)); }
  .about-content { grid-template-columns: 1fr; padding-left: 0; }
  .portrait { height: 120vw; max-height: 680px; }
  .experience { padding-left: 0; }
  .job { grid-template-columns: 26% 1fr; gap: 14px; }
  .job span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .floating-label { opacity: .45; }
  .contact-frame { clip-path: none; }
}

/* Standalone HTML normalization */
h1, h2, h3 { margin: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
.nav-shell a { cursor: pointer; font-size: 12px; letter-spacing: .08em; }
.nav-links { align-items: center; }
.shine-button, .cv-button { box-sizing: border-box; }


/* Scroll choreography: progressive enhancement with reduced-motion support. */
.scroll-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; }
.scroll-ready .scroll-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay, 0ms); }
.scroll-ready .scroll-reveal.revealed { opacity: 1; transform: none; }
.project-image { translate: 0 var(--image-drift, 0px); scale: 1.08; }
.hero-content { translate: 0 var(--hero-drift, 0px); }
/* Keep existing entrance animations, driven by each card reaching the viewport. */
.scroll-ready .is-visible .project-card { animation: none; }
.scroll-ready .project-card { opacity: 0; transform: translateY(55px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.scroll-ready .project-card.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-ready .scroll-reveal, .scroll-ready .project-card { opacity: 1; transform: none; transition: none; }
  .project-image { translate: none; scale: 1; }
  .hero-content { translate: none; }
  .contact-copy { transform: none; }
}


/* Hero sequence: PRODUCT, frame, then individually traced letter outlines. */
.hero-title .designer-frame { padding: 0; border: 0; width: min(78vw, 1160px); margin-top: .13em; opacity: 1; animation: none; -webkit-text-stroke: 0; }
.designer-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.hero-drawn-frame, .designer-letter { fill: none; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-drawn-frame { animation: hero-trace 1s 2.3s cubic-bezier(.4,0,.2,1) forwards; }
.designer-letter { animation: hero-trace 1.35s calc(3.3s + var(--letter-index) * .1s) ease-in-out forwards; }
@keyframes hero-trace { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .hero-title .designer-frame { width: 88vw; } }
@media (prefers-reduced-motion: reduce) {
  .hero-drawn-frame, .designer-letter { animation: none !important; stroke-dashoffset: 0; }
}


/* Responsive hero type: fluid scale, readable spacing, and viewport gutters. */
.hero-title { font-size: clamp(48px, 12.8vw, 190px); max-width: 100%; }
.hero-title .designer-frame { width: min(6.1em, 88vw, 1160px); flex-shrink: 0; }
.hero-eyebrow { font-size: clamp(12px, .9vw, 14px); }
.hero-meta { font-size: clamp(12px, .8vw, 13px); line-height: 1.5; }
@media (max-width: 760px) {
  .hero-title { font-size: clamp(48px, 16vw, 120px); }
  .hero-title .designer-frame { width: min(6.1em, 88vw); }
  .hero-meta { width: 88%; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; }
}


/* Resume content and a 12px minimum across every viewport. */
:root { font-size: 16px; }
body { font-size: 16px; }
small, sub, sup { font-size: 12px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.contact-copy p { font-size: 16px; }
.contact-copy .shine-button { font-size: 15px; } /* 12.6px at the smallest retained 0.84 scale */
.contact-topline { gap: 24px; line-height: 1.5; }
.project-cover { display: flex; align-items: center; padding: 70px 8% 35px; }
.cover-1 { background: #c8d0c1; color: #172419; }
.cover-2 { background: #e3a58d; color: #40281f; }
.cover-3 { background: #b6c2d9; color: #202b45; }
.cover-4 { background: #d5c1a5; color: #352a20; }
.cover-content { max-width: 100%; }
.cover-label { font: 12px 'DM Mono', monospace; letter-spacing: .1em; }
.cover-content strong { display: block; margin-top: 24px; font-size: clamp(30px, 4vw, 68px); line-height: 1.05; letter-spacing: -.05em; }
.cover-content p { font-size: 16px; line-height: 1.5; max-width: 28ch; }
.project-description { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: #d3cfc7; max-width: 55ch; }
.project-info { grid-template-columns: 1fr auto; gap: 10px 20px; align-items: start; }
.project-title { grid-column: 1 / -1; }
.portrait { object-position: center; }
.about-stats { gap: 36px; flex-wrap: wrap; }
.about-stats span { line-height: 1.5; max-width: 19ch; }
.job { grid-template-columns: minmax(150px, 28%) 1fr; gap: 24px; padding: 28px 0; }
.job-date { line-height: 1.6; }
.job-detail strong { display: block; font-size: 20px; }
.job-detail span { display: block; margin-top: 8px; line-height: 1.6; }
.job-detail p, .resume-details p { font-size: 16px; line-height: 1.65; margin: 14px 0 0; }
.resume-details { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.resume-details h4 { font: 12px 'DM Mono', monospace; letter-spacing: .1em; margin: 0; }
footer { gap: 20px; flex-wrap: wrap; line-height: 1.6; }
.social-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job span:last-child { display: block; }
  .resume-details { grid-template-columns: 1fr; }
  .contact-topline { flex-wrap: wrap; }
  .project-cover { min-height: 260px; }
  .cover-content strong { font-size: clamp(30px, 8vw, 58px); }
  .hand-icon { right: 0; }
}

[hidden]{display:none!important}
.project-link { display:block; }
.project-link:hover .project-arrow { background:var(--red); }
.case-view { background:var(--paper); }
.cs-mono,.cs-facts dt,.cs-board figcaption,.cs-gallery figcaption { font:12px 'DM Mono',monospace;line-height:1.6;letter-spacing:.06em; }
.cs-nav { margin:0 3vw;min-height:78px;padding:20px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--ink); }
.cs-hero { padding:60px 3vw 50px;margin:0 3vw;border-left:1px solid var(--line);border-right:1px solid var(--line); }
.cs-hero h1 { font-size:clamp(64px,15vw,210px);font-weight:600;line-height:1;letter-spacing:-.07em;margin:40px 0;outline:none; }
.cs-hero h1 span { color:var(--red); }
.cs-hero-bottom { display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:start; }
.cs-hero h2 { font-size:clamp(28px,3.8vw,55px);line-height:1.1;letter-spacing:-.045em;font-weight:600; }
.case-view p { font-size:17px;line-height:1.75;max-width:70ch; }
.cs-hero-bottom p { margin:0; }
.cs-facts { display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:28px 0;border-top:1px solid var(--line);margin:40px 0 20px; }
.cs-facts dt { color:#615f59; }
.cs-facts dd { margin:10px 0 0;font-size:16px;line-height:1.6; }
.case-view .cs-note { font-size:14px;line-height:1.6;border-left:2px solid var(--red);padding-left:15px;color:#615f59; }
.cs-scroll { display:inline-block;margin-top:28px;border-bottom:1px solid;padding-bottom:8px; }
.cs-reading { position:sticky;top:0;z-index:40;background:var(--paper);display:flex;gap:32px;padding:18px 3vw;overflow-x:auto;border-block:1px solid var(--line); }
.cs-reading a { font:12px 'DM Mono',monospace;line-height:1.6;white-space:nowrap;border-bottom:2px solid transparent;padding:6px 0; }
.cs-reading a.active { border-color:var(--red);color:var(--red); }
.cs-chapter { display:grid;grid-template-columns:25% 75%;padding:85px 3vw;gap:0;border-bottom:1px solid var(--line);scroll-margin-top:90px; }
.cs-chapter h2 { font-size:clamp(36px,5.5vw,78px);font-weight:600;letter-spacing:-.06em;line-height:1.04;margin:0 0 32px; }
.cs-chapter h3 { font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.03em;margin:0 0 15px; }
.cs-subgrid { display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:40px; }
.cs-evidence { border:1px solid var(--line);padding:25px;margin-top:30px; }
.cs-decision { display:grid;grid-template-columns:35px 1fr 1.2fr;gap:24px;padding:28px 0;border-top:1px solid var(--line); }
.cs-decision p { margin:0;font-size:16px; }
.cs-decision .cs-mono { color:var(--red); }
.cs-board { margin:0;background:#171717;padding:24px; }
.cs-board img { display:block;width:100%;height:auto; }
.cs-board figcaption { color:var(--paper);margin-top:20px; }
.cs-gallery { display:grid;grid-template-columns:repeat(3,1fr);gap:20px; }
.cs-gallery figure { margin:0; }
.cs-screen-slot { min-height:340px;border:1px dashed var(--line);padding:25px;display:flex;flex-direction:column;justify-content:center;background:#e1ddd5; }
.cs-screen-slot strong { font-size:28px;line-height:1.2;letter-spacing:-.04em;margin:24px 0 0; }
.cs-screen-slot p { font-size:16px; }
.cs-gallery figcaption { margin-top:15px; }
.cs-next { background:var(--red);padding:55px 3vw; }
.cs-next a { display:flex;align-items:end;justify-content:space-between;gap:24px;margin-top:30px; }
.cs-next strong { font-size:clamp(50px,9vw,140px);line-height:1;letter-spacing:-.065em; }
.cs-next span { font:12px 'DM Mono',monospace;line-height:1.6; }
.cs-footer { margin:0 3vw;padding:25px 0; }
.cs-top { position:fixed;right:20px;bottom:20px;background:var(--ink);color:var(--paper);padding:15px;border:1px solid var(--paper);z-index:45; }
.case-motion .cs-reveal { opacity:0;translate:0 28px;transition:opacity .7s ease,translate .7s ease; }
.case-motion .cs-reveal.cs-visible { opacity:1;translate:none; }
@media(max-width:760px){
 .cs-nav { flex-wrap:wrap; }.cs-nav .wordmark { margin-right:auto; }
 .cs-hero { padding:35px 4vw; }.cs-hero-bottom,.cs-subgrid,.cs-facts,.cs-chapter,.cs-gallery,.cs-decision { grid-template-columns:1fr; }
 .cs-hero-bottom,.cs-chapter { gap:28px; }.cs-chapter { padding:55px 5vw;background-image:none; }
 .cs-facts { gap:20px; }.cs-decision { gap:12px; }
 .cs-reading { gap:24px; }.cs-screen-slot { min-height:240px; }
 .cs-next a { flex-direction:column;align-items:start; }.cs-board { padding:12px; }
}
@media(prefers-reduced-motion:reduce){.case-motion .cs-reveal{opacity:1;translate:none;transition:none}}

.cs-source-link { font:12px 'DM Mono',monospace;line-height:1.7;display:inline-block;border-bottom:1px solid;padding:8px 0; }
.cs-source-panel { background:#e1ddd5;border:1px solid var(--line);padding:35px; }
.cs-full-board { border:1px solid var(--line); }
.cs-full-board summary { cursor:pointer;padding:24px;background:#e1ddd5; }
.cs-full-board summary:focus-visible { outline:2px solid var(--red);outline-offset:3px; }
    
/* Approved mockups and original Figma screen galleries */
.project-mockup { padding:0;display:block;background:#ebe5dc; }
.project-mockup .project-image { display:block;object-fit:cover;filter:none;transform:none;translate:none;scale:1; }
.project-card:hover .project-mockup .project-image { transform:none;filter:none; }
.cs-actual-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:36px 0; }
.cs-screen-card { margin:0;min-width:0;background:#e6e1d8;border:1px solid var(--line);padding:24px; }
.cs-screen-open { display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;overflow:hidden; }
.cs-screen-open.phone { max-width:300px;max-height:650px;margin:auto; }
.cs-screen-open.desktop { max-height:650px; }
.cs-screen-open img { display:block;width:100%;height:auto; }
.cs-screen-open:focus-visible { outline:3px solid var(--red);outline-offset:5px; }
.cs-screen-card figcaption { margin-top:24px; }
.cs-screen-card figcaption strong { display:block;font-size:20px;line-height:1.3;letter-spacing:-.02em; }
.cs-screen-card figcaption span { display:block;margin-top:12px;font-size:14px;line-height:1.6; }
.cs-screen-card figcaption .cs-enlarge { font:12px 'DM Mono',monospace;line-height:1.6;color:var(--red); }
.screen-dialog { width:min(1200px,94vw);max-width:94vw;max-height:92vh;padding:0;border:1px solid var(--ink);background:var(--paper);color:var(--ink); }
.screen-dialog::backdrop { background:rgba(18,18,18,.85); }
.screen-dialog-bar { position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;background:var(--paper);border-bottom:1px solid var(--line); }
.screen-dialog-bar h2 { margin:0;font-size:18px;line-height:1.4; }
.screen-dialog-bar button { font:12px 'DM Mono',monospace;line-height:1.6;padding:10px 14px;cursor:pointer;background:var(--ink);color:var(--paper);border:0; }
.screen-dialog-image { display:block;width:100%;height:auto;margin:auto; }
.screen-dialog-image.phone { max-width:480px; }
@media(max-width:760px){ .cs-actual-gallery { grid-template-columns:1fr;gap:20px; }.cs-screen-card { padding:20px; }.screen-dialog-bar { padding:12px; }.screen-dialog-bar h2 { font-size:16px; } }

/* Case study motion: scroll-drawn rules and right-to-left screen entrances. */
.cs-chapter { position:relative; }
.cs-chapter::after { content:"";position:absolute;bottom:-1px;left:3vw;right:3vw;height:1px;background:var(--ink);pointer-events:none;transform-origin:left; }
.cs-actual-gallery { position:relative;padding-top:90px;overflow:clip; }
.cs-drawing-path { position:absolute;top:0;left:0;width:100%;height:90px;overflow:visible;pointer-events:none;color:var(--red); }
.cs-drawing-path path { fill:none;stroke:currentColor;stroke-width:1.5;vector-effect:non-scaling-stroke; }
.cs-drawing-path circle { fill:currentColor; }
.case-scroll-motion .cs-chapter::after { transform:scaleX(var(--line-progress,0)); }
.case-scroll-motion .cs-drawing-path path { stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--path-progress,0)); }
.case-scroll-motion .cs-drawing-path circle { opacity:var(--path-progress,0); }
.case-scroll-motion .cs-screen-card { opacity:0;transform:translate3d(90px,12px,0);transition:transform 1s cubic-bezier(.16,1,.3,1),opacity .75s ease; }
.case-scroll-motion .cs-screen-card:nth-of-type(2) { transition-delay:140ms; }
.case-scroll-motion .cs-screen-card.cs-screen-visible { opacity:1;transform:translate3d(0,0,0); }
.case-scroll-motion .cs-screen-card:focus-within { opacity:1;transform:none; }
@media(max-width:760px){
 .cs-actual-gallery { padding-top:52px; }
 .cs-drawing-path { height:52px; }
 .cs-drawing-path .cs-path-branch,.cs-drawing-path circle { display:none; }
 .case-scroll-motion .cs-screen-card { transform:translate3d(36px,8px,0); }
 .case-scroll-motion .cs-screen-card:nth-of-type(2) { transition-delay:0ms; }
}
@media(prefers-reduced-motion:reduce){
 .case-scroll-motion .cs-chapter::after { transform:none; }
 .case-scroll-motion .cs-drawing-path path { stroke-dashoffset:0; }
 .case-scroll-motion .cs-drawing-path circle { opacity:1; }
 .case-scroll-motion .cs-screen-card { opacity:1;transform:none;transition:none; }
}

/* Mobile repair: content stays visible even when animation APIs are unavailable. */
img,svg { max-width:100%; }
.project-grid>* , .cs-actual-gallery>* , .cs-hero-bottom>* , .cs-facts>* , .cs-chapter>* { min-width:0; }
.project-card,.scroll-ready .project-card,.scroll-ready .project-card.revealed,
.scroll-ready .scroll-reveal,.scroll-ready .scroll-reveal.revealed,
.portrait-wrap,.slide-title,.case-motion .cs-reveal,.case-motion .cs-reveal.cs-visible,
.case-scroll-motion .cs-screen-card,.case-scroll-motion .cs-screen-card.cs-screen-visible {
 opacity:1;transform:none;translate:none;transition:none;
}
.typing-text { color:var(--ink);background-size:100% 100%; }
.project-image-wrap { min-height:0; }
.project-mockup .project-image { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover; }
.mobile-safe-motion .project-card.revealed { animation:safe-card-enter .65s cubic-bezier(.16,1,.3,1) both; }
.mobile-safe-motion .cs-screen-card.cs-screen-visible { animation:safe-screen-enter .8s cubic-bezier(.16,1,.3,1) both; }
.mobile-safe-motion .cs-reveal.cs-visible { animation:safe-section-enter .55s ease both; }
.mobile-safe-motion .cs-screen-card:nth-of-type(2).cs-screen-visible { animation-delay:.12s; }
@keyframes safe-card-enter { from { opacity:.35;transform:translateY(24px); } to { opacity:1;transform:none; } }
@keyframes safe-section-enter { from { opacity:.5;transform:translateY(16px); } to { opacity:1;transform:none; } }
@keyframes safe-screen-enter { from { opacity:.3;transform:translateX(36px); } to { opacity:1;transform:none; } }
@media(max-width:900px){
 body { min-width:0;-webkit-text-size-adjust:100%; }
 .section-grid { background-image:none; }
 .hero { height:auto;min-height:600px;padding:0 20px; }
 .nav-shell { height:72px;grid-template-columns:auto 1fr;gap:20px; }
 .nav-status { display:none; }.nav-links { gap:18px; }
 .nav-links a { padding:12px 0; }
 .hero-content { position:relative;inset:auto;padding:90px 0 130px;translate:none!important; }
 .hero-title { font-size:clamp(48px,15vw,110px);line-height:.95; }
 .hero-title .designer-frame { width:100%;max-width:600px; }
 .hero-eyebrow { text-align:center;line-height:1.7;letter-spacing:.06em; }
 .hero-meta { width:100%;display:flex;flex-wrap:wrap;justify-content:center;text-align:center;gap:16px;line-height:1.7; }
 .floating-label { display:none; }
 .line-top { top:72px;left:20px;right:20px; }
 .line-left,.line-right { top:72px; }.line-left { left:20px; }.line-right { right:20px; }
 .work-section { padding:70px 20px 80px; }
 .section-heading-wrap,.about-header { grid-template-columns:1fr;gap:22px;margin-bottom:36px;padding-bottom:0; }
 .section-heading { font-size:clamp(38px,10vw,72px);line-height:1.03;letter-spacing:-.055em; }
 .section-heading span { margin-top:4px; }
 .project-grid { grid-template-columns:minmax(0,1fr);gap:40px; }
 .project-card:nth-child(3),.project-card:nth-child(4) { margin-top:0; }
 .project-info { grid-template-columns:1fr;gap:8px;margin-top:18px; }
 .project-title { font-size:28px;line-height:1.2; }
 .project-info span { line-height:1.6; }
 .project-description { font-size:16px;line-height:1.65;margin-top:12px; }
 .project-card:hover .project-image-wrap { transform:none; }
 .contact-scroll { height:auto; }
 .contact-frame { position:relative;min-height:520px;height:auto;padding:28px 20px 55px;clip-path:none;gap:65px; }
 .contact-topline { flex-wrap:wrap;gap:12px;line-height:1.6; }
 .contact-copy { transform:none;margin:0;width:100%; }
 .contact-title { font-size:clamp(36px,10vw,70px);line-height:1.04; }
 .contact-copy p { font-size:16px;line-height:1.7; }
 .about-section { padding:70px 20px 24px; }
 .about-title { font-size:clamp(40px,11vw,76px);line-height:1.05; }
 .about-content { grid-template-columns:1fr;padding:24px 0 50px;gap:32px; }
 .portrait { height:auto;max-height:560px;aspect-ratio:4/5;object-fit:cover; }
 .typing-text { font-size:20px;line-height:1.6; }
 .about-stats { margin-top:32px;gap:24px; }
 .experience { padding:28px 0 45px; }
 .experience-heading { font-size:36px;line-height:1.1;margin-bottom:28px; }
 .job { grid-template-columns:1fr;gap:12px; }
 .job span:last-child { display:block; }
 .resume-details { grid-template-columns:1fr;gap:28px;margin-top:32px; }
 footer { flex-direction:column;gap:16px; }
 .cs-nav { margin:0 20px;gap:14px;flex-wrap:wrap; }
 .cs-nav a { line-height:1.6; }.cs-nav .wordmark { margin-right:auto; }
 .cs-hero { margin:0 20px;padding:36px 16px;border:0; }
 .cs-hero h1 { font-size:clamp(48px,13vw,100px);line-height:1.08;margin:28px 0; }
 .cs-hero h2 { font-size:30px;line-height:1.15; }
 .cs-hero-bottom,.cs-facts,.cs-subgrid,.cs-chapter,.cs-decision,.cs-actual-gallery { grid-template-columns:minmax(0,1fr); }
 .cs-hero-bottom { gap:22px; }.cs-facts { gap:22px;margin-top:28px; }
 .case-view p { font-size:16px;line-height:1.75;overflow-wrap:break-word; }
 .cs-reading { gap:22px;padding:12px 20px;max-width:100%;-webkit-overflow-scrolling:touch; }
 .cs-reading a { padding:10px 0; }
 .cs-chapter { padding:45px 20px;gap:20px;scroll-margin-top:70px; }
 .cs-chapter h2 { font-size:clamp(32px,9vw,56px);line-height:1.12;margin-bottom:24px; }
 .cs-chapter h3 { font-size:22px;line-height:1.35; }
 .cs-subgrid { gap:24px;margin-top:28px; }.cs-decision { gap:12px;padding:24px 0; }
 .cs-evidence { padding:20px; }
 .cs-source-link { overflow-wrap:anywhere; }
 .cs-actual-gallery { gap:24px;padding-top:52px;overflow:hidden; }
 .cs-screen-card { padding:18px; }
 .cs-screen-open.phone { max-width:300px;max-height:600px; }
 .cs-screen-open.desktop { max-height:520px; }
 .cs-drawing-path { height:52px; }
 .cs-drawing-path .cs-path-branch,.cs-drawing-path circle { display:none; }
 .cs-next { padding:36px 20px; }.cs-next a { flex-direction:column;align-items:start;gap:20px; }
 .cs-next strong { font-size:clamp(42px,12vw,78px); }
 .cs-footer { margin:0 20px; }
 .cs-top { padding:12px;right:12px;bottom:12px; }
}
@media(prefers-reduced-motion:reduce){
 .mobile-safe-motion .project-card.revealed,.mobile-safe-motion .cs-screen-card.cs-screen-visible,.mobile-safe-motion .cs-reveal.cs-visible { animation:none; }
}

/* Native hash navigation: project links remain usable without JavaScript. */
.case-route-anchor { display:block;height:0;width:0;overflow:hidden;pointer-events:none;scroll-margin-top:80px; }
.cs-chapter > .case-route-anchor { position:absolute;top:0;left:0; }
@supports selector(:has(*)) {
 #portfolio-page { display:block!important; }
 .case-view { display:none!important; }
 body:has(.case-route-anchor:target) #portfolio-page { display:none!important; }
 .case-view:has(.case-route-anchor:target) { display:block!important; }
}
