:root {
  --bg: #ffffff;
  --ink: #111111;
  --body: #5f5f5f;
  --muted: #8a8a8a;
  --card: #f2f2f2;
  --card-hover: #ebebeb;
  --line: #e4e4e4;
  --yellow: #f5c518;
  --glow: #ffd84d;
  --radius: 28px;
  --max: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 64px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.hand { font-family: var(--hand); font-weight: 500; color: var(--body); line-height: 1.1; }

/* ---------- pill nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; }
.nav ul { position: relative; display: flex; align-items: center; gap: 2px; margin: 0; padding: 4px; list-style: none; background: #111; border-radius: 999px; box-shadow: 0 8px 30px -10px rgba(0, 0, 0, .45); }
.nav a { position: relative; z-index: 1; display: block; padding: 6px 13px; border-radius: 999px; color: #bdbdbd; text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .3s var(--ease); white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a.on { color: #111; }
.nav .mark { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; margin-right: 2px; border-radius: 50%; background: #262626; color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.nav .mark:hover { background: var(--yellow); color: #111; }
.nav a:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.nav .pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: var(--yellow); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; pointer-events: none; }
.topblur { position: fixed; inset: 0 0 auto; height: 88px; z-index: 40; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }

/* ---------- hero ---------- */
.hero .wrap { width: 100%; max-width: none; padding: 0 3vw; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 28px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60vh; width: 150vw; height: 110vh; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), rgba(255, 216, 77, .55) 45%, rgba(255, 255, 255, 0) 100%); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .85; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--body); margin-bottom: 18px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.intro { max-width: 44ch; font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.35; color: var(--body); letter-spacing: -.01em; }
.intro b { color: var(--ink); font-weight: 500; }
.name { position: relative; margin-top: 14px; }
.name h1 { font-size: clamp(3rem, 13.4vw, 13.5rem); font-weight: 500; letter-spacing: -.065em; line-height: .86; white-space: nowrap; margin-left: -.04em; }
.name h1 .ch { display: inline-block; transform: translateY(105%); opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
.name h1 .sp { display: inline-block; width: .22em; }
@keyframes rise { to { transform: none; opacity: 1; } }
.doodle { position: absolute; z-index: 2; right: 2%; bottom: 58%; width: min(36%, 420px); height: auto; overflow: visible; pointer-events: none; }
.doodle path, .doodle circle { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
.doodle .d2 { animation-delay: 1.3s; animation-duration: .8s; }
.doodle .d3 { animation-delay: 1.9s; animation-duration: .7s; }
.doodle text { font-family: var(--hand); font-size: 30px; fill: var(--ink); opacity: 0; animation: fade .6s ease forwards 2.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- sections ---------- */
section { padding: 110px 0 40px; }
.sec-head { position: relative; text-align: center; margin: 0 auto 48px; width: fit-content; max-width: 100%; }
.sec-head h2 { font-size: clamp(2.6rem, 7.2vw, 5.8rem); letter-spacing: -.05em; }
.sec-head .hand { position: absolute; right: -10px; top: -34px; font-size: 1.55rem; transform: rotate(-5deg); white-space: nowrap; }
.sec-head .sub { position: static; display: block; margin-top: 12px; transform: rotate(-2deg); font-size: 1.6rem; white-space: normal; }

/* ---------- project cards ---------- */
.projects { display: grid; gap: 22px; }
.pcard { position: relative; overflow: hidden; isolation: isolate; background: var(--card); border-radius: var(--radius); padding: 30px 32px 0; text-decoration: none; display: block; transition: background .4s var(--ease), transform .4s var(--ease); }
.pcard::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(440px circle at 94% -6%, var(--tint), transparent 62%); opacity: .5; transition: opacity .5s var(--ease); }
.pcard:hover::before, .pcard:focus-visible::before { opacity: .95; }
.pcard:hover { transform: translateY(-3px); }
.pcard .top { display: flex; align-items: center; gap: 14px; }
.pcard .logo { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #111; color: #fff; }
.pcard .logo svg { width: 24px; height: 24px; }
.pcard h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.04em; }
.pcard .kick { font-size: .85rem; color: var(--body); margin-top: 4px; }
.pcard .arrow { margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px; transition: transform .4s var(--ease); }
.pcard:hover .arrow { transform: translateX(6px); }
.pcard .desc { margin-top: 16px; max-width: 52ch; color: var(--body); font-size: 1.12rem; }
.pcard .fact { margin-top: 10px; max-width: 60ch; color: var(--ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); color: var(--body); }
.shots { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; margin-top: 28px; height: clamp(220px, 32vw, 380px); }
.shots.one { grid-template-columns: 1fr; }
.shots figure { margin: 0; overflow: hidden; border: 5px solid #fff; border-bottom: 0; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -2px 24px -12px rgba(0, 0, 0, .25); transform: translateY(18px); transition: transform .5s var(--ease); }
.shots figure:first-child { transform: translateY(22px) rotate(-3deg); }
.shots figure:last-child { transform: translateY(18px) rotate(2deg); }
.shots.one figure, .shots.tiles figure { transform: translateY(18px); }
.pcard:hover .shots figure { transform: translateY(6px); }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shots.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
.shots.tiles figure { display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(150px, 20vw, 230px); padding: 18px; }
.shots.tiles .t-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--body); font-weight: 600; }
.shots.tiles .t-name { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }

/* ---------- story grid ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); padding: 30px; min-height: 280px; }
.tile.text { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; color: var(--body); font-size: 1.12rem; }
.tile.text p:first-child { color: var(--ink); }
.tile h2, .tile h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tile .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--body); margin-bottom: 14px; }
.reel { padding: 0; display: flex; align-items: center; }
.reel .track { display: flex; width: max-content; padding: 30px 0; animation: marquee 34s linear infinite; }
.reel .set { display: flex; gap: 26px; padding-right: 26px; }
.reel:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.polaroid { margin: 0; width: 250px; flex: 0 0 auto; background: #fff; padding: 12px 12px 14px; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35); transform: rotate(var(--r, -3deg)); }
.polaroid .ph { height: 210px; border-radius: 2px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #111; background: var(--bgc, #ffe58a); }
.polaroid .yr { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.polaroid .big { font-size: 1.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; }
.polaroid .cap { font-family: var(--hand); font-size: 1.25rem; text-align: center; margin-top: 10px; color: #222; line-height: 1.1; }
.stickers { display: flex; align-items: center; justify-content: center; }
.stickers .stack { position: relative; width: 300px; height: 220px; max-width: 100%; }
.sticker { position: absolute; padding: 9px 18px; border-radius: 14px; border: 2.5px solid #111; background: #fff; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; box-shadow: 4px 5px 0 #111; transform: rotate(var(--r)); transition: transform .4s var(--ease); white-space: nowrap; }
.tile:hover .sticker { transform: rotate(calc(var(--r) * -1)) translateY(-4px); }
.stickers .cursor { position: absolute; width: 34px; right: 46px; bottom: 34px; }
.stickers .sig { position: absolute; right: 6px; bottom: 0; font-family: var(--hand); font-size: 1.7rem; transform: rotate(-6deg); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tl .when { font-size: .85rem; color: var(--body); }
.tl .role { font-weight: 600; letter-spacing: -.02em; }
.tl .org { color: var(--body); font-size: .95rem; }
.tl ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--body); font-size: .95rem; }
.tl ul li { margin-bottom: 4px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--body); font-size: .97rem; }
.plain b { color: var(--ink); font-weight: 600; }

@media (min-width: 821px) {
  .bento { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bento > .tile:nth-child(4n+1), .bento > .tile:nth-child(4n) { grid-column: span 2; }
  .bento > .tile:nth-child(4n+2), .bento > .tile:nth-child(4n+3) { grid-column: span 3; }
}

/* ---------- collage ---------- */
.collage { position: relative; min-height: 960px; display: grid; place-items: center; overflow: hidden; padding: 60px 0; }
.collage .center { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.collage .center h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.05em; max-width: 20ch; margin: 0 auto; }
.collage .center { background: radial-gradient(closest-side, #fff 70%, rgba(255, 255, 255, 0)); padding: 40px 60px; }
.collage .sub { display: block; margin-top: 14px; font-size: 1.8rem; transform: rotate(-2deg); }
.ctile { margin: 0; position: absolute; z-index: 1; width: min(var(--w, 220px), 27vw); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); border: 1px solid var(--line); transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); will-change: transform; }
.ctile img { width: 100%; height: auto; }
.ctile.words { padding: 16px 18px; background: var(--card); }
.ctile.words b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--body); margin-bottom: 8px; font-weight: 600; }
.ctile.words span { font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.ctile.words:nth-child(4n+2) { background: #111; color: #fff; border-color: #111; }
.ctile.words:nth-child(4n+2) b { color: #bdbdbd; }

/* ---------- chat ---------- */
.chat { text-align: center; padding-top: 120px; }
.chat .hand { display: inline-block; font-size: 1.8rem; transform: rotate(-6deg); margin-bottom: 30px; }
.connect { display: inline-block; position: relative; padding: .12em .6em .16em; border: 8px solid transparent; border-radius: 999px; font-size: clamp(3.2rem, 10vw, 7.5rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; color: #ececec; text-decoration: none; background: linear-gradient(#2e2e2e, #141414) padding-box, linear-gradient(#e9e9e9, #9a9a9a) border-box; box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .5), 0 30px 50px -20px rgba(0, 0, 0, .55); transform: rotate(4deg); transition: transform .35s var(--ease), color .35s var(--ease); }
.connect:hover, .connect:focus-visible { color: var(--yellow); transform: rotate(4deg) translateY(-6px) scale(1.02); background: linear-gradient(#3b3512, #1d1a08) padding-box, linear-gradient(#ffe36b, #f5c518) border-box; animation: halo 2.8s ease-in-out infinite; }
.connect:active { transform: rotate(4deg) translateY(1px) scale(.98); }
@keyframes halo { 0%, 100% { box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .5), 0 30px 50px -20px rgba(0, 0, 0, .55), 0 0 70px 6px rgba(245, 197, 24, .45); } 50% { box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .5), 0 30px 50px -20px rgba(0, 0, 0, .55), 0 0 120px 26px rgba(245, 197, 24, .7); } }
.contactbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 90px auto 0; padding: 14px 16px 14px 22px; background: var(--card); border-radius: 22px; text-align: left; }
.contactbar .mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contactbar .mail svg { width: 20px; height: 20px; flex: 0 0 auto; }
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #111; color: #fff; transition: transform .3s var(--ease); }
.socials a:hover, .socials a:focus-visible { transform: translateY(-5px) rotate(-4deg); }
.socials svg { width: 22px; height: 22px; }
.socials .in { font: 700 1.15rem/1 var(--sans); letter-spacing: -.03em; }
.socials a::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); color: var(--ink); font-size: .75rem; font-weight: 500; padding: 2px 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.socials a:hover::after, .socials a:focus-visible::after { opacity: 1; }
footer { padding: 34px 20px 46px; text-align: center; color: var(--body); font-size: .85rem; }

/* ---------- project pages ---------- */
.phero { position: relative; padding: 130px 0 40px; isolation: isolate; overflow: hidden; }
.phero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -30vh; width: 130vw; height: 80vh; transform: translateX(-50%); background: radial-gradient(closest-side, var(--tint, var(--glow)), rgba(255, 255, 255, 0)); opacity: .35; }
.crumbs { font-size: .95rem; margin-bottom: 26px; }
.crumbs a { color: var(--body); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.phero .kicker { color: var(--body); font-size: .95rem; }
.phero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -.05em; margin: 10px 0 18px; max-width: 18ch; }
.phero .lede { max-width: 62ch; color: var(--body); font-size: 1.1rem; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; transition: transform .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); background: var(--card-hover); }
.btn.dark { background: #111; color: #fff; }
.btn.dark:hover { background: #000; color: var(--yellow); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pgrid .tile { min-height: 0; }
.pgrid ul.body { margin: 0; padding-left: 1.1em; color: var(--body); }
.pgrid ul.body li { margin-bottom: 8px; }
.files { margin: 0; padding-left: 1.1em; columns: 2; color: var(--body); font-size: .93rem; }
.files a { overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; background: var(--card); border-radius: 22px; padding: 10px 18px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--body); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.figs figure { margin: 0; background: var(--card); border-radius: 22px; padding: 14px; }
.figs img { border-radius: 12px; background: #fff; width: 100%; height: auto; }
.figs figcaption { font-size: .82rem; color: var(--body); margin-top: 8px; overflow-wrap: anywhere; }
.note { margin-top: 12px; color: var(--body); font-size: .9rem; }
h2.small { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; margin: 0 0 18px; }
.pbody { padding-top: 10px; }
.presults { margin-top: 48px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .bento, .pgrid, .figs { grid-template-columns: minmax(0, 1fr); }
  .files { columns: 1; }
  .doodle { width: 54%; bottom: calc(100% + 10.5rem); }
  .sec-head .hand { position: static; display: block; margin-bottom: 6px; transform: rotate(-3deg); }
  .collage { min-height: 0; display: block; padding: 40px 0; }
  .collage .center { margin-bottom: 30px; }
  .collage .field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 20px; }
  .collage .center { padding: 0 20px; background: none; }
  .ctile { position: static; width: auto; transform: rotate(var(--r, 0deg)); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav a { padding: 6px 10px; font-size: .85rem; }
  .pcard { padding: 22px 20px 0; }
  .tile { padding: 22px; }
  .shots { grid-template-columns: 1fr; height: 190px; }
  .shots figure + figure { display: none; }
  .polaroid { width: 180px; }
  .polaroid .ph { height: 150px; }
  .contactbar { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .name h1 .ch { transform: none; opacity: 1; }
  .doodle path, .doodle circle { stroke-dashoffset: 0; }
  .doodle text { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .reel .track { width: auto; }
  .reel .set { flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .reel .set[aria-hidden] { display: none; }
}
@media print { .nav, .topblur, .doodle, .collage, .connect { display: none; } .hero { min-height: 0; } }
