/* Layout: light page; split hero with tilted thumbnail stack; 2-column work grid; polaroid About; dark closing band. Deliberately single (light) theme. */
:root {
  --bg: #F6F3F5;        /* page ground, warm pink-grey */
  --surface: #FFFFFF;   /* work band, polaroid */
  --ink: #18141A;       /* text, closing band */
  --body: #3D3540;      /* body copy */
  --quiet: #5E5560;     /* labels */
  --pink: #E2456F;      /* hero highlight */
  --pink-deep: #C8325C; /* labels on light, links */
  --yellow: #FFD43B;    /* result sticker, tape */
  --blush: #F3D9E1;     /* image wells */
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gl: max(40px, env(safe-area-inset-left, 0px)); --gr: max(40px, env(safe-area-inset-right, 0px)); } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }

/* Header */
.top .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 28px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--pink-deep); }
.btn { background: var(--ink); color: var(--bg) !important; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--pink-deep); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 40px 88px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.hl { background: var(--pink); color: #FFFFFF; padding: 0 0.16em; border-radius: 10px; display: inline-block; transform: rotate(-2deg); }
.hero-copy p { margin: 0; max-width: 34em; font-size: 19px; color: var(--body); }
.brands { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brands span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; }
.brands .label { border: 0; padding: 0; font-weight: 500; }
.stack { flex: 1 1 420px; min-width: 0; position: relative; height: clamp(360px, 40vw, 470px); }
.stack img { position: absolute; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px rgba(24,20,26,0.18); }
.stack .s1 { left: 0; top: 10px; width: 78%; transform: rotate(-4deg); }
.stack .s2 { right: 0; top: 32%; width: 70%; transform: rotate(3deg); }
.stack .s3 { left: 6%; top: 60%; width: 60%; transform: rotate(-1.5deg); }
.sticker { position: absolute; right: 2%; bottom: -6px; background: var(--yellow); border-radius: 16px; padding: 16px 20px; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(24,20,26,0.16); max-width: 220px; }
.sticker strong { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.sticker span { font-size: 14px; font-weight: 600; line-height: 1.3; display: block; }

/* Work */
.work { background: var(--surface); padding-block: clamp(64px, 9vw, 96px); }
.work .wrap { display: flex; flex-direction: column; gap: 40px; }
.work-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.work-head p { margin: 0; color: var(--quiet); max-width: 28em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 32px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card .media { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--blush); display: flex; align-items: center; justify-content: center; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card .media.contain img { width: auto; height: 92%; object-fit: contain; }
.card:hover .media img { transform: scale(1.03); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink-deep); }
h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 28px); letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--body); }

/* About (polaroid, from C) */
.about .wrap { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 64px); align-items: center; padding-block: clamp(72px, 9vw, 104px); }
.polaroid { flex: 0 1 300px; width: min(300px, 80%); aspect-ratio: 4 / 5; background: var(--surface); padding: 12px 12px 52px; box-shadow: 0 14px 30px rgba(24,20,26,0.16); transform: rotate(-3deg); position: relative; margin-inline: auto 0; }
.polaroid .photo { width: 100%; height: 100%; background: var(--blush); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--body); }
.polaroid .cap { position: absolute; left: 16px; bottom: 10px; font-family: var(--hand); font-size: 26px; }
.polaroid .tape { position: absolute; left: 38%; top: -12px; width: 84px; height: 24px; background: rgba(255,212,59,0.85); transform: rotate(4deg); }
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text .hi { font-family: var(--hand); font-size: 34px; color: var(--pink-deep); transform: rotate(-3deg); width: fit-content; line-height: 1; }
.about-text p { margin: 0; max-width: 34em; color: var(--body); font-size: 19px; }
.about-text p.small { font-size: 17px; color: var(--quiet); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.skills li { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15px; }

/* Closing (from C) */
.close { background: var(--ink); color: var(--bg); }
.close .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-block: clamp(72px, 9vw, 96px); }
.close-head { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.so { font-family: var(--hand); font-size: 34px; color: var(--yellow); }
.close h2 { font-size: clamp(40px, 5.6vw, 60px); }
.links { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 18px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--yellow); }
.foot .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 14px; }

/* ===== Case study pages ===== */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 28px; }
.nav .nav-contact { background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.nav .nav-contact:hover { background: var(--pink-deep); color: var(--bg); }
.case-hero { padding-block: clamp(24px, 5vw, 48px) clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.back { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--quiet); width: fit-content; }
.back:hover { color: var(--pink-deep); }
.case-hero .label { color: var(--pink-deep); }
.case-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 16em; }
.credits { margin: 0; color: var(--body); font-size: 17px; }
.credits strong { color: var(--ink); font-weight: 600; }
.highlight { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; background: var(--yellow); border-radius: 18px; padding: 24px 28px; width: fit-content; max-width: 100%; transform: rotate(-1deg); }
.highlight strong { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 8vw, 84px); line-height: 0.9; }
.highlight span { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; max-width: 24em; }
.case-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.case-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 48px; padding-block: clamp(40px, 6vw, 64px); }
.case-body section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case-body h2 { font-size: 24px; letter-spacing: -0.02em; }
.case-body p { margin: 0; color: var(--body); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; padding-bottom: clamp(56px, 8vw, 88px); }
.gallery figure, .lookbook figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figure.wide, .lookbook figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figure.wide img { aspect-ratio: auto; }
.gallery figcaption, .lookbook figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.story-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.story-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.story-head p { margin: 0; color: var(--quiet); }
.lookbook { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; padding-block: 24px clamp(56px, 8vw, 88px); }
.lookbook img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.lookbook figure.wide img { aspect-ratio: 3 / 2; }
.next { background: var(--surface); }
.next .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.next a { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; text-decoration: none; }
.next a:hover { color: var(--pink-deep); }
.footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 14px; }
.case-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink); display: block; }
.card.featured { grid-column: 1 / -1; }
.card.featured .media { aspect-ratio: 21 / 9; }
.card.featured .media img { object-position: center 18%; }
.lookbook.pages { grid-template-columns: 1fr; gap: 28px; }
.lookbook.pages img, .case-cover.lookbook-page { aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: 0 10px 30px rgba(24,20,26,0.10); }
.lookbook.pages figure.wide img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface); }
.case-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); }
.case-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.story-note { margin: 12px 0 0; max-width: 46em; color: var(--body); }
.squares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 24px 16px; }
@media (max-width: 900px) { .squares { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.squares figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.squares img, .squares video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; background: var(--blush); }
.squares figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.squares.feature { grid-template-columns: minmax(0, 1fr); max-width: 520px; padding-bottom: clamp(48px, 7vw, 72px); }
.squares + .story-head { margin-top: clamp(40px, 6vw, 64px); }

/* Playground (craft & collage) */
.play { background: var(--ink); color: var(--bg); }
.play .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: clamp(72px, 9vw, 104px); }
.play-head { display: flex; flex-direction: column; gap: 14px; max-width: 40em; }
.play-head .label { color: var(--yellow); }
.play-head p { margin: 0; font-size: 19px; color: #D9D2DB; }
.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.play-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.play-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.play-grid figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #A99FAE; }
.play-sub { color: #A99FAE; border-top: 1px solid #3A3140; padding-top: 16px; margin-bottom: -16px; }
.artworks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px 32px; }
.artwork { display: flex; flex-direction: column; gap: 6px; }
.artwork-media { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.artwork-main { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; display: block; }
.artwork-details { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.artwork-details img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; min-height: 0; }
.artwork h3 { color: var(--bg); font-size: 24px; }
.artwork p { margin: 0; color: #A99FAE; font-size: 15px; }
.wall-pair { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; display: block; }
.artwork-main { aspect-ratio: 4 / 5; }
.artwork-main.square { aspect-ratio: 1 / 1; }
.artwork-details { height: 0; min-height: 100%; }


/* Click-to-zoom (digital collages only) */
.zoom { display: block; position: relative; min-height: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.zoom img { transition: transform .35s ease; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.04); }
.zoom::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(24,20,26,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; pointer-events: none; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoom::after { opacity: .9; transform: none; } }
.zoom:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.artwork-details .zoom img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.zoom-main .artwork-main { border-radius: 0; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14,11,15,.94); color: #F6F3F5; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 72px 32px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #A99FAE; text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; border: 0; background: rgba(246,243,245,.1); color: #F6F3F5; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--pink); }
.lb-close { top: 14px; right: 14px; font-size: 28px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) { .lightbox figure { padding: 64px 12px 24px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

.play-exhibit { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; max-width: 100%; align-self: flex-start; font-size: 15px; color: var(--bg); border: 1px solid #3A3140; border-radius: 999px; padding: 8px 18px 8px 8px; margin: 0 0 -12px; }
.play-exhibit span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 5px 10px; }
@media (max-width: 420px) { .play-exhibit { font-size: 13.5px; padding: 6px 14px 6px 6px; } .play-exhibit span { font-size: 10px; padding: 4px 8px; } }
.lookbook.pages.book figure.wide img { aspect-ratio: 3 / 2; object-fit: cover; }
