/* Shared by every concept: reset, reveal, placeholders, the concept switcher.
   Anything visual belongs in each concept's own style.css. */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
/* clip, not hidden: "hidden" turns the body into a scroll box and breaks sticky elements (like L's side panel) */
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
i { font-style: normal; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 8px; }

/* placeholders you still need to replace */
.edit { text-decoration: underline dotted 1px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }

/* reveal on scroll */
.js [data-rv] { opacity: 0; translate: 0 18px; transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.1, 1), translate 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-rv].in { opacity: 1; translate: 0 0; }
[data-view] { animation: view-in 0.5s ease; }
@keyframes view-in { from { opacity: 0; } }

/* project covers: each concept paints these its own way */
.cover { position: relative; overflow: hidden; background: var(--c1); color: var(--c2); display: flex; flex-direction: column; justify-content: flex-end; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv { position: absolute; pointer-events: none; }   /* decorative cover layers, used by concepts F–L */
.card-tags { display: none; }                        /* opt-in per concept */
.ph--photo { position: relative; overflow: hidden; background: none !important; }
.ph--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; aspect-ratio: 4 / 3; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }

/* Instagram-style feed (The Hospitality Edit). Posts enlarge on hover; the highlight sits larger below. */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(4px, 0.6vw, 8px); max-width: 720px; }
.ig-post { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, currentColor 8%, transparent); border-radius: 4px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.35s; }
.ig-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-post span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; text-align: center; padding: 6px; }
.ig-grid .ig-post:hover, .ig-grid .ig-post:focus-within { transform: scale(1.14); z-index: 2; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.5); }
.ig-highlight { margin-top: clamp(28px, 4vw, 52px); max-width: 860px; }
.ig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
.ig-post--big { border-radius: 6px; box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.45); }
.ig-post--big:hover { transform: scale(1.03); z-index: 2; }
@media (max-width: 560px) { .ig-pair { grid-template-columns: 1fr; } }
.ig-highlight figcaption { margin-top: 10px; font-size: 13px; opacity: 0.75; }
.ig-note { font-size: 13px; opacity: 0.8; }

/* ---------- media blocks in "The work" (shared look; concepts can restyle) ---------- */
/* keep wide or sideways-scrolling media inside their column, and let "The work" use the full width */
.case-sec > *, .case-copy > *, .mb { min-width: 0; }
.case-copy { grid-template-columns: minmax(0, 1fr); }
.case-copy:has(> .mb) { max-width: none; }
.mb + .mb { margin-top: clamp(36px, 5vw, 64px); }
.mb-head { margin-bottom: 16px; }
.mb-head h3 { font-size: 1.15rem; margin-bottom: 4px; }
.mb-head p, .mb-cap, .mb figcaption { font-size: 13.5px; opacity: 0.8; }
.mb figcaption, .mb-cap { margin-top: 8px; display: block; }
.mb img { width: 100%; height: auto; }
.mb-video video { display: block; width: 100%; max-height: 78vh; background: #000; border-radius: 8px; }
.mb-video--portrait { max-width: 420px; }
.phone-screen img.fit-contain { object-fit: contain; object-position: top; background: #fff; }
.mb-gallery, .mb-scroll { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.mb-gallery img { border-radius: 6px; }
/* frames you scroll inside: long emails, product profiles */
.scroll-frame { height: clamp(360px, 52vh, 560px); overflow-y: auto; overscroll-behavior: contain; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 40px -26px rgba(0, 0, 0, 0.5); background: #fff; scrollbar-width: thin; }
.scroll-frame img { display: block; }
.mb-profiles { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.profile { flex: 0 0 clamp(220px, 24vw, 280px); scroll-snap-align: start; }
.profile .scroll-frame { height: clamp(360px, 46vh, 480px); }
/* phone mockups */
.mb-phones { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); }
.mb-phones figure { width: clamp(200px, 22vw, 260px); }
.phone { position: relative; padding: 10px; border-radius: 42px; background: #111; box-shadow: inset 0 0 0 2px #3a3a3a, 0 26px 50px -24px rgba(0, 0, 0, 0.6); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; translate: -50% 0; border-radius: 99px; background: #111; z-index: 2; }
.phone-screen { aspect-ratio: 9 / 19.5; border-radius: 32px; overflow: hidden; background: #000; display: flex; }
.phone-screen img { flex: 0 0 100%; height: 100%; object-fit: cover; }
.phone-swipe { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.phone-swipe::-webkit-scrollbar { display: none; }
.phone-swipe img { scroll-snap-align: center; }
.phone-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.phone-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.phone-dots i.on { background: #fff; }
/* PDFs and quoted copy */
.mb-pdfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mb-pdfs object { width: 100%; height: clamp(380px, 56vh, 620px); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); background: #fff; }
.mb-quotes { display: grid; gap: 14px; }
.mb-quotes li { padding: 16px 18px; border-left: 3px solid currentColor; background: color-mix(in srgb, currentColor 5%, transparent); }
.mb-quotes blockquote { font-size: 15.5px; line-height: 1.5; }
.mb-quotes cite { display: block; margin-top: 8px; font-size: 12.5px; font-style: normal; opacity: 0.7; }
.mb-link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* story-style case studies: bullets, label/value facts, a logo row */
.mb-list { display: grid; gap: 8px; padding-left: 1.1em; list-style: disc; }
.mb-list li { padding-left: 4px; }
.case-facts { display: grid; gap: 18px; margin-top: 8px; }
.case-facts > div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 6px 24px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.case-facts dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; padding-top: 3px; }
.case-facts ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; }
.case-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.case-logos img { height: var(--lh, 28px); width: auto; }
.case-logos span { opacity: 0.5; }

/* live game embed */
.mb-embed { max-width: 520px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent), 0 26px 50px -30px rgba(0, 0, 0, 0.5); background: #fff; }
.mb-embed iframe { display: block; width: 100%; height: var(--h, 640px); border: 0; }

/* several portrait videos in a row */
.mb-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); max-width: 860px; }
.mb-videos .mb-video--portrait { max-width: none; }
.mb-videos video { aspect-ratio: 3 / 4; object-fit: cover; }
.mb-video figcaption { margin-top: 8px; font-size: 13px; opacity: 0.75; }

/* tap-through stories: progress bars at the top, like Instagram */
.phone--tap .phone-screen { cursor: pointer; }
.phone-dots--bars { top: 30px; bottom: auto; padding: 0 22px; gap: 4px; }
.phone-dots--bars i { flex: 1; height: 3px; width: auto; border-radius: 2px; }
.phone--tap .phone-screen:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* one Instagram post, drawn as it appears in the app */
.igp { position: relative; max-width: 470px; background: #fff; color: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 26px 50px -30px rgba(0, 0, 0, 0.5); font: 400 14px/1.4 -apple-system, "Segoe UI", system-ui, sans-serif; }
.igp-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.igp-top b { font-weight: 600; }
.igp-top small { display: block; font-size: 12px; color: #555; }
.igp-top b + small { margin-left: -6px; }
.igp-top i { margin-left: auto; font-style: normal; letter-spacing: 1px; }
.igp-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; padding: 2px; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.igp-avatar::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #e9e4d8; border: 2px solid #fff; box-sizing: border-box; }
.igp-media { display: flex; aspect-ratio: 4 / 5; background: #000; }
.igp-media img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.igp .phone-dots { position: static; padding: 10px 0 0; margin-bottom: -22px; }
.igp .phone-dots i { background: #c7c7c7; }
.igp .phone-dots i.on { background: #0095f6; }
.igp-frame { position: relative; }
.igp-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); color: #111; font-size: 22px; line-height: 1; cursor: pointer; }
.igp-arrow--prev { left: 10px; }
.igp-arrow--next { right: 10px; }
.igp-actions { display: flex; gap: 14px; padding: 12px 12px 6px; }
.igp-actions svg { width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; }
.igp-actions .igp-save { margin-left: auto; }
.igp figcaption { padding: 0 12px 14px; }
.igp figcaption b { font-weight: 600; }

/* fun facts as speech bubbles around the About photo */
.about-photo[data-bubbles] { position: relative; overflow: visible; }
.fact-bubbles { list-style: none; padding: 0; margin: 0; }
.fact-bubble { position: absolute; z-index: 2; width: max-content; max-width: 220px; padding: 10px 14px; border-radius: 18px; background: #fff; color: #1b1b1b; font: 400 13px/1.4 ui-sans-serif, system-ui, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.fact-bubble::after { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; rotate: 45deg; }
.fact-bubble--1 { top: 4%; right: 72%; rotate: -3deg; }
.fact-bubble--1::after { right: 18px; bottom: -6px; }
.fact-bubble--2 { top: 40%; left: 78%; rotate: 2deg; }
.fact-bubble--2::after { left: 18px; bottom: -6px; }
.fact-bubble--3 { bottom: 4%; right: 70%; rotate: -1.5deg; }
.fact-bubble--3::after { right: 24px; top: -6px; }

.about-hello { font-size: 1.35em; margin-bottom: 0.6em; }
.about-cta { margin-top: 1.2em; }
.about-cta a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* the rest of the CV */
.lang-list { display: grid; gap: 10px; }
.lang-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.lang-list span { opacity: 0.7; }

@media (max-width: 760px) {
  .mb-gallery, .mb-scroll { grid-template-columns: 1fr; }
  .mb-phones { justify-content: center; }
  .case-facts > div { grid-template-columns: 1fr; }
  .mb-videos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  /* bubbles stack under the photo on narrow screens */
  .fact-bubbles { display: grid; gap: 10px; margin-top: 16px; }
  .fact-bubble { position: relative; inset: auto; width: auto; max-width: none; rotate: none; }
  .fact-bubble::after { display: none; }
}

/* concept switcher */
.switcher { position: fixed; right: 14px; bottom: 14px; z-index: 900; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(20, 20, 20, 0.88); backdrop-filter: blur(8px); font: 500 11px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.06em; }
.switcher a { color: #c9c9c9; padding: 7px 9px; border-radius: 99px; }
.switcher a:hover { color: #fff; }
.switcher a[aria-current] { background: #fff; color: #111; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rv] { opacity: 1; translate: 0 0; }
}
