/* Rebecca Armando — portfolio
   Palette: paper, ink, oxblood. Type: Instrument Serif / Instrument Sans / Reenie Beanie (hand notes). */


:root {
  --paper: #f3ede3;
  --paper-2: #e9e1d4;
  --ink: #1d1a17;
  --muted: #6e655c;
  --rule: #d6ccbd;
  --red: #8b2e22;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hand: "Reenie Beanie", "Bradley Hand", cursive;
  --pad: clamp(1rem, 3vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--paper); }

/* ---------- small caps labels (nav, meta) ---------- */
.label, .nav a, .corner {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; padding-bottom: 1px; }
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }

/* ---------- fixed nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  color: var(--red);
  background: rgba(243,237,227,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
  padding-bottom: 26px;
}
.nav a[aria-current="page"] { background-size: 100% 1px; }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav .right { display: flex; gap: 28px; }

/* ---------- hero (opening screen) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad);
}
.hero .hi {
  font-family: var(--hand); color: var(--red);
  font-size: clamp(2.5rem, 4.6vw, 3.875rem); line-height: 1;
  transform: rotate(-4deg); transform-origin: left bottom;
  margin: 0 0 -0.1em 0.2em;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4rem, 14vw, 13.75rem);
  line-height: 0.88; letter-spacing: -0.025em;
}
.hero .squiggle { width: min(520px, 62vw); height: auto; margin: 6px 0 0 0.04em; color: var(--red); }
.hero .what {
  margin-top: 26px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  max-width: 30ch;
}
.hero .corner { position: absolute; bottom: 22px; color: var(--muted); }
.hero .corner.l { left: var(--pad); }
.hero .corner.r { right: var(--pad); color: var(--red); }
.squiggle path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .squiggle path { animation: none; stroke-dashoffset: 0; } }

/* ---------- work list ---------- */
.work { padding: 40px var(--pad) 40px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 56px;
}
.project {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--pad);
  align-items: end; margin-bottom: clamp(4.5rem, 10vw, 8.75rem);
}
.project .media { grid-column: 1 / span 8; overflow: hidden; }
.project .media img, .project .media .ph { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover .media img, .project:hover .media .ph { transform: scale(1.02); }
.project .text { grid-column: 9 / span 4; padding-bottom: 4px; }
.project .num { font-family: var(--hand); color: var(--red); font-size: 2.5rem; line-height: 1; }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; margin: 8px 0 10px; }
.project .meta { color: var(--muted); margin-bottom: 16px; }
.project p { max-width: 42ch; }
.project .more { display: inline-block; margin-top: 18px; color: var(--red); }
@media (max-width: 820px) {
  .project .media, .project .text { grid-column: 1 / -1; }
  .project .text { margin-top: 18px; }
}

/* ---------- image placeholders (swap for real images) ---------- */
.ph {
  aspect-ratio: 16 / 10; width: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(139,46,34,.06) 14px 15px),
    var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px dashed var(--rule);
}
.ph.tall { aspect-ratio: 4 / 5; }

/* ---------- unfinished copy marker (remove when filled) ---------- */
.todo { background: rgba(139,46,34,.1); color: var(--red); padding: 0 .2em; border-radius: 2px; }

/* ---------- case study page ---------- */
.case { padding: 110px var(--pad) 40px; }
.case .back { color: var(--red); }
.case h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.25rem, 9vw, 8.75rem); line-height: .9; letter-spacing: -0.02em;
  margin: 40px 0 10px;
}
.case .lede { font-size: clamp(1.125rem, 1.8vw, 1.375rem); max-width: 46ch; margin-bottom: 48px; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px var(--pad);
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 48px;
}
.facts dt { color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 0.9375rem; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
.case .hero-img { margin-bottom: clamp(3.5rem, 8vw, 6.875rem); }
.block {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--pad);
  border-top: 1px solid var(--rule); padding: 18px 0 clamp(3rem, 6vw, 5rem);
}
.block h2 { grid-column: 1 / span 3; font-family: var(--hand); color: var(--red); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.block .body { grid-column: 5 / span 7; font-size: 1.125rem; }
.block .body p + p { margin-top: 1em; }
@media (max-width: 820px) { .block h2, .block .body { grid-column: 1 / -1; } .block h2 { margin-bottom: 14px; } }
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad);
  margin-bottom: clamp(3.5rem, 8vw, 6.875rem);
}
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; box-shadow: 0 18px 40px -22px rgba(40,25,15,.45); }
.gallery figcaption { color: var(--muted); font-size: 0.8125rem; margin-top: 10px; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }
.next {
  display: block; border-top: 1px solid var(--ink); padding: 14px 0 0;
}
.next .label { color: var(--muted); }
.next .t { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; margin-top: 6px; transition: color .3s; }
.next:hover .t { color: var(--red); }

/* ---------- about ---------- */
.about { padding: 110px var(--pad) 40px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--pad); }
.about .portrait { grid-column: 1 / span 4; position: relative; align-self: start; margin-top: 44px; }
.about .note { position: absolute; font-family: var(--hand); color: var(--red); font-size: 2.125rem; line-height: 1; }
.about .note.a { left: 8px; top: -42px; transform: rotate(-4deg); }
.about .note.b { left: 10px; bottom: -40px; transform: rotate(3deg); }
.about .copy { grid-column: 6 / span 7; }
.about h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 28px; }
.about .copy > p { font-size: 1.125rem; max-width: 54ch; }
.about .copy > p + p { margin-top: 1em; }
.cv { margin-top: 48px; }
.cv h2 { border-top: 1px solid var(--ink); padding-top: 10px; margin: 36px 0 14px; color: var(--muted); }
.cv li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cv li span:last-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) {
  .about .portrait, .about .copy { grid-column: 1 / -1; }
  .about .portrait { max-width: 360px; margin-bottom: 72px; }
}

/* ---------- footer / contact ---------- */
.contact { padding: 100px var(--pad) 28px; }
.contact .big { font-family: var(--serif); font-size: clamp(3.5rem, 11vw, 10.625rem); line-height: .9; letter-spacing: -0.02em; }
.contact .big em { color: var(--red); }
.contact .links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 34px 0 90px; font-size: 1.125rem; }
.contact .links a { color: var(--red); }
.contact .fine { display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 620px) {
  .hero .corner.r { display: none; }
  .nav .right { gap: 18px; }
  .contact .fine { flex-direction: column; gap: 6px; }
}

.project .credit { color: var(--muted); font-size: 0.875rem; margin-top: 12px; }
.about .closer { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem) !important; line-height: 1.2; margin-top: 1.6em !important; max-width: 30ch !important; }

/* ---------- floating words (hero, right side) ---------- */
.floaters { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.floaters li { position: absolute; pointer-events: auto; white-space: nowrap; will-change: transform; cursor: default; }
.floaters li { font-family: var(--hand); color: var(--red); line-height: 1; }
.floaters .f1 { right: 13%; top: 26%; font-size: clamp(2.75rem, 4.6vw, 4.25rem); }
.floaters .f2 { right: 24%; top: 45%; font-size: clamp(3rem, 5.2vw, 4.75rem); }
.floaters .f3 { right: 9%; top: 64%; font-size: clamp(2.5rem, 4.2vw, 3.75rem); }
.floaters li > span { display: inline-block; }
@media (max-width: 900px) {
  .floaters { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 28px; }
  .floaters li { position: static; }
  .floaters li { font-size: 2.5rem !important; }
}

.project .media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery { align-items: start; }

/* press feedback: respond on pointer-down */
.project .media { display: block; transition: transform .12s ease-out; }
.project .media:active { transform: scale(.985); }
.more:active, .next:active .t, .nav a:active { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .project .media img, .project .media .ph { transition: none; } .project:hover .media img { transform: none; } }

/* ---------- case page: hero (2/3) + side text (1/3), then a one-screen collage ---------- */
.case-top {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--pad);
  min-height: calc(100svh - 150px); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 7rem);
}
.case-hero img, .case-hero .ph { width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.case-side h1 { font-size: clamp(2.75rem, 4.6vw, 4.75rem); margin: 22px 0 18px; letter-spacing: -0.02em; }
.case-side .lede { font-size: 1.0625rem; max-width: none; margin-bottom: 28px; }
.case-side .facts { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.case-side .credits { border-top: 1px solid var(--rule); padding-top: 12px; }
.case-side .credits .label { color: var(--muted); display: block; margin-bottom: 6px; }
.case-side .credits p { font-size: 0.9375rem; color: var(--muted); }

.collage {
  display: grid; gap: 12px; height: calc(100svh - 120px); min-height: 520px;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
}
.collage figure { position: relative; overflow: hidden; min-height: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  background: rgba(243,237,227,.88); color: var(--ink); font-size: 0.8125rem; padding: 4px 10px; border-radius: 2px;
}
.collage.n1 { grid-template-columns: 1fr; }
.collage.n2 { grid-template-columns: 3fr 2fr; }
.collage.n3 { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; }
.collage.n3 figure:first-child { grid-row: 1 / span 2; }
.collage.n4 { grid-template-columns: 2fr 3fr 2fr; grid-template-rows: 1fr 1fr; }
.collage.n4 figure:first-child { grid-row: 1 / span 2; }
.collage.n4 figure:nth-child(2) { grid-column: 2 / span 2; }

@media (max-width: 900px) {
  .case-top { grid-template-columns: 1fr; min-height: 0; }
  .case-hero img { max-height: none; }
  .collage { height: auto; min-height: 0; grid-template-columns: 1fr !important; grid-template-rows: none !important; }
  .collage figure { grid-row: auto !important; grid-column: auto !important; aspect-ratio: 4 / 3; }
}

/* long descriptor wraps onto two lines */
.floaters .f2 { white-space: normal; font-size: clamp(2.5rem, 3.8vw, 3.75rem) !important; line-height: .95; right: 6%; top: 43%; text-align: right; }
@media (max-width: 900px) { .floaters .f2 { text-align: left; } }
.hero .corner.l { max-width: calc(100% - 2 * var(--pad) - 160px); }

.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.015em; }
.section-head .label { color: var(--muted); }

/* landing name a touch smaller; descriptors back to single lines */
.hero h1 { font-size: clamp(3.5rem, 11.5vw, 11.25rem); }
.floaters .f2 { white-space: nowrap; font-size: clamp(3rem, 5.2vw, 4.75rem) !important; right: 24%; top: 45%; text-align: left; }
/* contact sign-off: small, handwritten, red */
.contact .big { font-family: var(--hand); color: var(--red); font-size: clamp(2.75rem, 4.5vw, 4rem); letter-spacing: 0; line-height: 1; }
.contact .links { margin-top: 18px; }
.collage.n1 img { object-fit: contain; }

/* landing portrait with hand-drawn red frame; words float around it */
.hero-photo-wrap { position: absolute; right: 13vw; top: 50%; margin-top: calc(clamp(220px, 22vw, 340px) * -0.625); width: clamp(220px, 22vw, 340px); will-change: transform; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-frame { position: absolute; top: -44px; left: -44px; width: calc(100% + 88px); height: calc(100% + 44px); color: var(--red); pointer-events: none; overflow: visible; }
.floaters { z-index: 1; }
.floaters .f1 { right: 27vw; top: 15%; }
.floaters .f2 { right: 4vw; top: 78%; }
.floaters .f3 { right: 37vw; top: 50%; }
@media (max-width: 900px) {
  .hero-photo-wrap { position: relative; right: auto; top: auto; margin: 44px 0 0 28px; width: min(64vw, 280px); }
}

.project .hook, .case-side .hook { font-family: var(--serif); font-size: clamp(1.375rem, 1.8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; max-width: 30ch; }
.case-side .hook { max-width: none; margin-bottom: 16px; }

/* project tiles: image and text near-equal, compact enough to see the next project */
.project { grid-template-columns: 1.15fr 1fr; gap: 0 clamp(2rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.project .media, .project .text { grid-column: auto; }
.project .media img { aspect-ratio: 16 / 10; max-height: 62vh; }
.project h3 { margin-top: 4px; }
.project .hook { max-width: 34ch; }
.section-head { margin-bottom: 40px; }
@media (max-width: 820px) { .project { grid-template-columns: 1fr; } .project .text { margin-top: 18px; } }

/* ===== type system v2: one basic font + one handwriting, no small grey caps ===== */
@font-face { font-family: "Nothing You Could Do"; src: url(/assets/fonts/nothing-you-could-do-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --hand: "Nothing You Could Do", "Bradley Hand", cursive;
}
body { font-family: var(--sans); }
.label, .nav a, .corner { font-size: 0.9375rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.nav a { font-size: 1rem; }
.project .meta, .section-head .label, .facts dt, .next .label, .case-side .credits .label, .contact .fine, .gallery figcaption { color: var(--ink); }
.facts dt { font-weight: 500; }
.project .meta { margin-bottom: 18px; }
.more, .case .back { font-size: 1rem; }

.hero h1 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.92; font-size: clamp(3.25rem, 10vw, 9.5rem); }
.project h3, .case h1, .case-side h1, .section-head h2, .next .t, .about h1 { font-weight: 500; letter-spacing: -0.035em; }
.project .hook, .case-side .hook, .about .closer { font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }

/* handwriting: thin marker, like a note scribbled on the page */
.hero .hi { font-size: clamp(2.25rem, 3.6vw, 3.25rem); transform: rotate(-3deg); margin-bottom: 0.15em; }
.floaters li { font-size: clamp(2.25rem, 3.6vw, 3.4rem) !important; }
.hero .corner.l { font-family: var(--hand); text-transform: uppercase; color: var(--ink); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; bottom: 26px; }
.project .num { font-size: 2.25rem; }
.contact .big { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.about .note { font-size: 1.75rem; }

/* v3 tweaks */
.hero .corner.l { font-family: var(--sans); text-transform: none; color: var(--red); font-size: 1rem; line-height: 1.4; bottom: 26px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--red); padding-right: 0.04em; }
.hero-photo { aspect-ratio: auto; }
.hero-photo-wrap { width: clamp(260px, 26vw, 400px); margin-top: calc(clamp(260px, 26vw, 400px) * -0.49); }
.hero-frame { left: 0; width: 100%; top: -44px; height: calc(100% + 44px); }
@media (max-width: 900px) { .hero-photo-wrap { width: min(70vw, 320px); margin-top: 60px; } }
.floaters .f1 { right: 8vw; top: 16%; }
.floaters .f3 { right: 40vw; top: 26%; }

/* v4: swash R, Newsreader for reading text, multilingual sign-off */
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root { --read: "Newsreader", Georgia, serif; }
.hero h1 em { font-style: normal; color: inherit; }
.hero h1 .swash-r { font-family: "Sail", var(--sans); font-weight: 400; color: var(--ink); font-size: 1.12em; line-height: 0; letter-spacing: 0; margin-right: -0.04em; -webkit-text-stroke: 0.018em currentColor; }
.project p, .project .hook, .case-side .hook, .case .lede, .case-side .credits p, .about .copy > p, .about .closer { font-family: var(--read); }
.project p { font-size: 1.125rem; line-height: 1.5; max-width: 46ch; }
.project .hook, .case-side .hook { font-weight: 500; font-size: clamp(1.5rem, 2vw, 1.875rem); letter-spacing: -0.01em; line-height: 1.15; }
.case .lede, .about .copy > p { font-size: 1.1875rem; line-height: 1.5; }
.contact .hello { display: inline-block; cursor: default; min-width: 6.6em; }

/* v5: everything in Newsreader; name in Playfair Display italic with the Sail swash R */
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-display-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
:root { --sans: "Newsreader", Georgia, serif; --serif: var(--sans); --name: "Playfair Display", Georgia, serif; }
.hero h1 { font-family: var(--name); font-style: italic; font-weight: 500; letter-spacing: -0.015em; line-height: 0.98; font-size: clamp(2.75rem, 7vw, 6.5rem); }
.hero h1 .swash-r { font-size: 1.15em; -webkit-text-stroke: 0.012em currentColor; margin-right: -0.03em; }
.project h3, .case h1, .case-side h1, .section-head h2, .next .t, .about h1 { letter-spacing: -0.015em; }
.nav a { font-size: 1.0625rem; }
.hero .corner.l { font-size: 1.0625rem; }
.hero .squiggle { width: clamp(220px, 29vw, 430px); }
.case-side .feedback { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--red); }
.case-side .feedback p { font-family: var(--read); font-style: italic; font-size: 1.0625rem; line-height: 1.45; }
.case-side .feedback cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.9375rem; color: var(--red); }
.case-nav { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--red); font-size: 1rem; }
/* hover swap: professional -> smiling */
.hero-photo-alt { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transition: opacity .35s ease; }
.hero-photo-wrap:hover .hero-photo-alt, .hero-photo-wrap.smile .hero-photo-alt { opacity: 1; }
.hero-photo-wrap .hero-photo:first-child { transition: opacity .35s ease; }
.hero-photo-wrap:hover .hero-photo:first-child, .hero-photo-wrap.smile .hero-photo:first-child { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-photo-alt, .hero-photo-wrap .hero-photo:first-child { transition: none; } }

/* ---------- about v2: short, centred, three photos ---------- */
.about2 { padding: 130px var(--pad) 20px; }
.about-copy { max-width: 40rem; margin: 0 auto; text-align: center; }
.about-copy h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 28px; }
.about-copy p { font-family: var(--read); font-size: 1.25rem; line-height: 1.55; }
.about-copy p + p { margin-top: 1em; }
.about-copy a { color: var(--red); }
.about-photos { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1.25rem, 3vw, 3rem); margin: 72px auto 0; max-width: 1100px; }
.about-photos figure { background: #fbf8f2; padding: 10px 10px 0; box-shadow: 0 18px 40px -22px rgba(40,25,15,.5); }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos figcaption { font-family: var(--hand); color: var(--red); font-size: 1.5rem; line-height: 1.1; padding: 10px 4px 12px; text-align: center; }
.about-photos .ph1 { width: 26%; transform: rotate(-3deg); margin-top: 30px; }
.about-photos .ph1 img { aspect-ratio: 1 / 1; }
.about-photos .ph2 { width: 38%; transform: rotate(1.5deg); }
.about-photos .ph2 img { aspect-ratio: 4 / 3; }
.about-photos .ph3 { width: 22%; transform: rotate(3deg); margin-top: 50px; }
.about-photos .ph3 img { aspect-ratio: 3 / 4; object-position: center 20%; }
.about-photos .reveal.in.ph1 { transform: rotate(-3deg); } .about-photos .reveal.in.ph2 { transform: rotate(1.5deg); } .about-photos .reveal.in.ph3 { transform: rotate(3deg); }
@media (max-width: 760px) {
  .about-photos { flex-direction: column; align-items: center; }
  .about-photos figure { width: min(86%, 380px) !important; margin-top: 0 !important; }
}

/* ---------- about photos v3: grainy B&W in red hand-drawn frames, hover swap ---------- */
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); max-width: 1180px; margin: 84px auto 0; align-items: start; }
.pcard { margin: 0; }
.pcard.c1 { grid-column: 2 / span 4; }
.pcard.c2 { grid-column: 7 / span 6; margin-top: 70px; }
.pcard.c3 { grid-column: 1 / span 6; }
.pcard.c4 { grid-column: 8 / span 4; margin-top: -40px; }
.pwrap { position: relative; aspect-ratio: var(--r); }
.pwrap img, .pwrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
.pwrap .pb { opacity: 0; }
.pcard:hover .pb, .pcard.on .pb { opacity: 1; }
.pcard:hover .pwrap:has(.pb) .pa, .pcard.on .pa { opacity: 0; }
.pframe { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); color: var(--red); pointer-events: none; overflow: visible; }
.pcard figcaption { font-family: var(--hand); color: var(--red); font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; margin-top: 22px; transform: rotate(-1.5deg); }
.pcard.c2 figcaption, .pcard.c4 figcaption { text-align: right; transform: rotate(1.5deg); }
@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr; gap: 56px; padding: 0 14px; }
  .pcard { grid-column: auto !important; margin-top: 0 !important; }
  .pcard.c1, .pcard.c4 { width: 80%; }
  .pcard.c2, .pcard.c4 { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .pwrap img, .pwrap video { transition: none; } }

/* about v4: text in the middle, two small photos each side */
.about2 { padding-top: 120px; }
.pgrid { display: grid; grid-template-columns: 1fr minmax(0, 36rem) 1fr; grid-template-areas: "c1 copy c2" "c3 copy c4"; gap: 48px clamp(2rem, 4vw, 4rem); max-width: 1320px; margin: 0 auto; align-items: start; }
.pgrid .about-copy { grid-area: copy; max-width: none; align-self: center; }
.about-copy h1 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.2; margin-bottom: 22px; }
.about-copy p { font-size: 1.125rem; }
.pcard.c1 { grid-area: c1; grid-column: auto; width: 74%; justify-self: end; margin-top: 0; }
.pcard.c2 { grid-area: c2; grid-column: auto; width: 100%; margin-top: 40px; }
.pcard.c3 { grid-area: c3; grid-column: auto; width: 100%; margin-top: 0; }
.pcard.c4 { grid-area: c4; grid-column: auto; width: 66%; margin-top: -10px; }
.pcard figcaption { font-size: clamp(1.15rem, 1.4vw, 1.4rem); margin-top: 16px; }
@media (max-width: 1000px) {
  .pgrid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "c1 c2" "c3 c4"; }
  .pgrid .about-copy { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; grid-template-areas: "copy" "c1" "c2" "c3" "c4"; }
  .pcard { width: 82% !important; justify-self: center !important; }
}
.pcard.c4 figcaption { display: flex; flex-direction: column; align-items: flex-end; }
.pcard.c4 figcaption span { white-space: nowrap; }
@media (max-width: 600px) { .pcard.c4 figcaption span { white-space: normal; } }

/* floaters v3: smaller, clickable roles */
.floaters li { font-size: clamp(1.6rem, 2.3vw, 2.15rem) !important; }
.floaters li a { color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
.floaters li a:hover, .floaters li a:focus-visible { background-size: 100% 1.5px; }
.floaters .f1 { right: 22vw; top: 17%; }
.floaters .f2 { right: 3vw; top: 80%; }
.floaters .f3 { right: 36vw; top: 46%; }
.floaters .f1, .floaters .f2, .floaters .f3 { font-size: clamp(1.6rem, 2.3vw, 2.15rem) !important; line-height: 1.1; }
.floaters .f3 { right: 41vw; top: 47%; }
.floaters .f2 { right: 5vw; top: 77%; }
@media (max-width: 900px) { .floaters .f1, .floaters .f2, .floaters .f3 { font-size: 1.6rem !important; white-space: normal; } .floaters { flex-direction: column; gap: 4px; } }
.collage figure.slide { background: #fff; }
.collage figure.slide img { object-fit: contain; }

/* project tile: number + company/year on one eyebrow line */
.project .eyebrow { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.project .eyebrow .num { font-size: 2rem; }
.project .eyebrow .meta { color: var(--muted); font-size: 1rem; margin: 0; }
.project h3 { margin: 2px 0 14px; }
.project .hook { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 10px; }
.collage figure.fit { background: var(--paper-2); }
.collage figure.fit img { object-fit: contain; }
.collage.c-la-casa { height: min(68vh, 640px); grid-template-columns: 1fr 1fr 1.4fr; grid-template-rows: 1fr; max-width: 1200px; margin-left: auto; margin-right: auto; }
.collage.c-la-casa figure:first-child { grid-row: auto; }
@media (max-width: 900px) { .collage.c-la-casa { height: auto; } }
/* arrows: consistent glyph on every device; cities never break mid-hop */
.arr, .more, .back, .case-nav a, .next .t, .contact .links a { font-variant-emoji: text; }
.arr { font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: .85em; }
.hero .corner.l .hop { white-space: nowrap; }
.collage.c-nab { grid-template-columns: 1fr 1.2fr 1.2fr; }
.collage.c-nab figure:nth-child(2) { grid-column: 2 / span 2; }

/* ---------- showcase: flat ad on the left, clickable deck in a laptop on the right ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.sc-side img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; box-shadow: 0 24px 50px -28px rgba(40,25,15,.55); }
.sc-side figcaption, .deck-cap { font-size: .95rem; color: var(--muted); margin-top: 12px; }
.laptop { width: 100%; }
.laptop .lid { background: #1c1c1e; border-radius: 18px 18px 6px 6px; padding: 2.2% 2.2% 3%; box-shadow: 0 30px 60px -30px rgba(40,25,15,.6); }
.laptop .screen { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-radius: 3px; }
.laptop .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
.laptop .slide.on { opacity: 1; }
.laptop .base { height: 14px; margin: 0 -6%; background: linear-gradient(#d7d3cc, #b9b4ab); border-radius: 0 0 14px 14px; position: relative; }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 5px; transform: translateX(-50%); background: #a9a39a; border-radius: 0 0 6px 6px; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.deck-nav button { background: none; border: 1px solid var(--ink); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; font: inherit; font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.deck-nav button:hover { background: var(--ink); color: var(--paper); }
.deck-nav button:active { transform: scale(.95); }
.deck-nav .dots { display: flex; gap: 8px; }
.deck-nav .dot { width: 8px !important; height: 8px !important; padding: 0; border-radius: 50%; border: 0 !important; background: var(--rule) !important; }
.deck-nav .dot.on { background: var(--red) !important; }
.deck-cap { text-align: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .sc-side { max-width: 320px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .laptop .slide { transition: none; } }

/* tile rhythm: number aligned to image top; title, small gap, hook, bigger gap, description + link */
.project { align-items: start; }
.project .text { padding-top: 0; }
.project .eyebrow { margin: 0 0 6px; line-height: 1; }
.project .eyebrow .meta { color: var(--red); }
.project h3 { margin: 0 0 14px; }
.project .hook { margin-bottom: 26px; }
.project .text > p:not(.hook) { margin-bottom: 0; }
.project .more { margin-top: 16px; }
.case-side .facts dt, .next .label { color: var(--red); }
.sc-side figcaption, .deck-cap { color: var(--red); }
.case-side .credits p, .case-side .credits .label { color: var(--ink); }
.case-side .credits .label { color: var(--red); }
/* one line weight everywhere on project pages */
.case-side .facts, .case-side .credits, .facts, .next, .section-head { border-top: 1px solid var(--ink) !important; }

/* ---------- illustration playground: layered, scroll sideways, drag pieces around ---------- */
.play { margin: 0 calc(-1 * var(--pad)) clamp(3.5rem, 8vw, 7rem); }
.play-hint { font-family: var(--hand); color: var(--red); font-size: 1.6rem; padding: 0 var(--pad); margin-bottom: 6px; }
.play-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.play-canvas { position: relative; width: 3080px; height: 640px; }
.pl-item { position: absolute; transform: rotate(var(--r)); user-select: none; -webkit-user-drag: none; transition: transform .25s ease, box-shadow .25s ease; }
.pl-item.card { background: #fbf8f2; padding: 10px; box-shadow: 0 18px 36px -20px rgba(40,25,15,.55); }
.pl-item:not(.card) { filter: drop-shadow(0 6px 10px rgba(40,25,15,.12)); }
@media (hover: hover) and (pointer: fine) {
  .pl-item { cursor: grab; }
  .pl-item:hover { transform: rotate(var(--r)) scale(1.02); }
  .pl-item.dragging { cursor: grabbing; transform: rotate(0deg) scale(1.05); transition: transform .15s ease; box-shadow: 0 30px 50px -22px rgba(40,25,15,.6); }
}
@media (prefers-reduced-motion: reduce) { .pl-item { transition: none; } }
.collage.c-la-casa { height: auto; grid-template-columns: 1fr 1.45fr; grid-template-rows: auto; align-items: center; }
.collage.c-la-casa figure.fit { background: none; }
.collage.c-la-casa figure.fit img { height: auto; }
@media (hover: none) { .play-hint { display: none; } }
