/* =========================================================
   Sneha Shree — Portfolio (dark premium, 3D)
   Every element is "designed" on screen as it appears:
   selection box → content → final style.
   ========================================================= */
:root {
  --bg: #08080A;
  --bg-2: #0E0E12;
  --card: #131318;
  --card-2: #1A1A21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #F4F4F6;
  --muted: #A6A6B0;
  --dim: #7A7A86;
  --blue: #4F7DFF;
  --coral: #FF6B3D;
  --gold: #F5C04A;
  --m1: #1C1736; --m2: #0F2721; --m3: #2A2213; --m4: #111F3A; --m5: #2D1812;
  /* light tokens (polaroid, admin page) */
  --canvas: #E6E7EB; --paper: #FFFFFF; --ink: #1B2340; --ink-2: #474E68; --ink-3: #686E86; --rule: rgba(27, 35, 64, .14);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.prebuild .nav, .prebuild .hero-inner, .prebuild .hero-meta { visibility: hidden; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.h2 { font-size: clamp(42px, 6.4vw, 92px); line-height: .96; letter-spacing: -0.045em; font-weight: 800; font-stretch: 112%; margin: 0 0 24px; }
.h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; margin: 64px 0 22px; }
.lede { font-size: 19px; color: var(--muted); max-width: 44ch; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .25s, color .25s, box-shadow .25s, transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: var(--blue); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-text { padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 5px; color: var(--muted); }
.btn-text:hover { color: var(--text); }
.roll { display: inline-block; position: relative; overflow: hidden; line-height: 1.3; vertical-align: top; }
.roll > span { display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.btn:hover .roll > span { transform: translateY(-100%); }

/* ================= NAV ================= */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(18, 18, 23, .62); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.swatches { display: flex; }
.swatches i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #121217; margin-left: -5px; }
.swatches i:nth-child(1) { background: var(--blue); margin-left: 0; } .swatches i:nth-child(2) { background: var(--coral); } .swatches i:nth-child(3) { background: var(--gold); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-nav { padding: 10px 18px; font-size: 14px; }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 120px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(79, 125, 255, .16), transparent 70%),
    radial-gradient(40% 50% at 90% 90%, rgba(255, 107, 61, .08), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--bg); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero-inner { position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); flex: none; }
.name { margin: 28px 0 26px; font-size: clamp(66px, 11.6vw, 186px); font-weight: 850; font-stretch: 112%; line-height: .84; letter-spacing: -0.06em; }
.name .wd { display: block; white-space: nowrap; }
.name .wd + .wd { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 244, 246, .9); }
.role { margin: 0 0 12px; font-size: clamp(20px, 2.1vw, 27px); font-weight: 600; letter-spacing: -0.015em; }
.tagline { margin: 0 0 36px; max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--text), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ================= BUILD LAYER (the "being designed" UI) ================= */
#buildLayer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 95; pointer-events: none; }
.bbox { position: absolute; border: 1px solid var(--blue); background: rgba(79, 125, 255, .04); }
.bbox .hd { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--blue); }
.bbox .tl { left: -4px; top: -4px; } .bbox .tr { right: -4px; top: -4px; } .bbox .bl { left: -4px; bottom: -4px; } .bbox .br { right: -4px; bottom: -4px; }
.bsize { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; font-stretch: 100%; letter-spacing: 0; line-height: 1.5; }
.dcur { position: absolute; left: 0; top: 0; color: var(--coral); display: flex; align-items: flex-start; will-change: transform; }
.dcur span { margin: 16px 0 0 -2px; padding: 3px 9px; border-radius: 4px 10px 10px 10px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ch { display: inline-block; position: relative; }
.ch.cur::after { content: ""; position: absolute; right: -.05em; top: .08em; bottom: .08em; width: max(2px, .045em); background: var(--blue); animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.wd { display: inline-block; white-space: nowrap; }
.skel { background-image: linear-gradient(to bottom, transparent 24%, rgba(255, 255, 255, .1) 24%, rgba(255, 255, 255, .1) 72%, transparent 72%); background-size: 100% 1.6em; background-size: 100% 1lh; background-repeat: repeat-y; border-radius: 3px; transition: background-size .8s var(--ease); }
.skel.skel-out { background-size: 0% 1.6em; background-size: 0% 1lh; }

/* ================= WORK ================= */
.work { background: var(--bg-2); border-radius: 44px 44px 0 0; padding-top: 0; z-index: 2; }
.band { overflow: hidden; padding: 38px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: clamp(64px, 9vw, 110px); }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-track span { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(44px, 6.6vw, 98px); font-weight: 850; font-stretch: 115%; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.band-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .45); }
.band-track span::after { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--coral); flex: none; }
.band-track span:nth-child(3n+2)::after { background: var(--blue); border-radius: 20%; transform: rotate(45deg); }
.band-track span:nth-child(3n)::after { background: var(--gold); }
.no-gsap .band-track { animation: bandMove 40s linear infinite; }
@keyframes bandMove { to { transform: translateX(-50%); } }

.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 44px; }
.work-head .h2 { margin: 0; }
.switch { display: inline-flex; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.switch::-webkit-scrollbar { display: none; }
.switch button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: background .25s, color .25s; }
.switch button:hover { color: var(--text); }
.switch button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.switch .count { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .1); }
.switch button[aria-selected="true"] .count { background: rgba(8, 8, 10, .1); }
.cat-desc { color: var(--muted); margin: 20px 0 22px; max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filters:empty { display: none; }
.filters button { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: all .2s; }
.filters button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.filters button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.filters sup { font-size: 11px; margin-left: 3px; }

.grid { columns: 3 300px; column-gap: 28px; }
.grid.cases { columns: auto; display: grid; gap: 40px; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 20px; column-span: all; }

.item { position: relative; break-inside: avoid; margin-bottom: 44px; }
.item-hit { display: block; width: 100%; text-align: left; border-radius: 24px; text-decoration: none; color: inherit; perspective: 1000px; }
.mat { position: relative; background: var(--mat, var(--m1)); border-radius: 24px; padding: 12% 11% 11%; border: 1px solid var(--line); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); overflow: hidden; }
.mat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.item-hit:hover .mat::after { opacity: 1; }
.frame-name { position: absolute; left: 18px; top: 14px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.art { position: relative; overflow: hidden; background: #fff; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); transform: translateZ(30px); transition: transform .6s var(--ease), box-shadow .6s var(--ease); container-type: inline-size; }
.art > img, .art > .ph { width: 100%; height: 100%; object-fit: cover; }
.item-hit:hover .art { transform: translateZ(60px) translateY(-6px); box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .95); }
.item--square .art { aspect-ratio: 1; border-radius: 8px; }
.item--portrait .mat { padding: 13% 15% 12%; overflow: visible; }
.item--portrait .art { aspect-ratio: 3 / 4; border-radius: 2px; overflow: visible; }
.item--portrait .art > img, .item--portrait .art > .ph { position: absolute; inset: 0; }
.cm { position: absolute; width: 16px; height: 16px; background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 0 100% / 11px 1px no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 100% 0 / 1px 11px no-repeat; }
.cm.tl { left: -17px; top: -17px; } .cm.tr { right: -17px; top: -17px; transform: scaleX(-1); }
.cm.bl { left: -17px; bottom: -17px; transform: scaleY(-1); } .cm.br { right: -17px; bottom: -17px; transform: scale(-1); }
.item--video .mat { padding: 11% 8% 9%; }
.item--video .art { aspect-ratio: 16 / 10; border-radius: 10px; background: #0B0E22; }
.item--screen .mat { padding: 13% 8% 0; }
.item--screen .browser { border-radius: 12px 12px 0 0; transform: translateZ(30px); }
.play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--bg); display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); z-index: 2; }
.play svg { margin-left: 4px; }
.item-hit:hover .play { transform: scale(1.12); }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 6px 0; }
.item-meta h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.item-meta span { font-size: 14px; color: var(--dim); white-space: nowrap; }

/* UI/UX cases — stack while scrolling */
.case { position: sticky; top: 100px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 2.4vw, 28px); background: linear-gradient(160deg, var(--mat, var(--m4)), var(--card) 70%); border: 1px solid var(--line); border-radius: 32px; transform-origin: 50% 0; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .8); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { display: block; width: 100%; border-radius: 18px; text-decoration: none; color: inherit; perspective: 1000px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F2F3F6; border-bottom: 1px solid rgba(27, 35, 64, .08); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D8E0; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 220px; height: 14px; border-radius: 5px; background: #E4E6EC; }
.browser-view { aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.browser-view > img, .browser-view > .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-body { padding: 8px clamp(4px, 2vw, 24px) 8px 0; }
.case:nth-child(even) .case-body { padding-left: clamp(4px, 2vw, 24px); }
.case-client { font-size: 15px; font-weight: 500; color: var(--muted); }
.case-body h3 { margin: 8px 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; font-stretch: 110%; }
.case-body p { margin: 0 0 22px; color: var(--muted); max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li { padding: 5px 13px; border-radius: 999px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

/* designed placeholders (replaced by real images) */
.ph { position: relative; display: block; overflow: hidden; container-type: inline-size; }
.ph-post { background: var(--c1); color: var(--c2); padding: 9cqw; display: flex; flex-direction: column; justify-content: space-between; }
.ph-post .ph-shape { position: absolute; right: -14cqw; top: -14cqw; width: 66cqw; aspect-ratio: 1; border-radius: var(--r, 50%); background: var(--c3); }
.ph-post b { position: relative; font-size: 12.5cqw; line-height: .92; letter-spacing: -0.05em; font-weight: 850; font-stretch: 110%; max-width: 88%; }
.ph-post small { position: relative; font-size: 4.2cqw; font-weight: 600; opacity: .85; }
.ph-poster { background: #F4F1EA; color: var(--ink); padding: 8cqw 8cqw 7cqw; display: flex; flex-direction: column; }
.ph-poster .bar { height: 34cqw; margin: -8cqw -8cqw 7cqw; background: var(--c1); position: relative; overflow: hidden; }
.ph-poster .bar::after { content: ""; position: absolute; width: 46cqw; aspect-ratio: 1; border-radius: var(--r, 50%); background: var(--c3); right: 8cqw; top: 10cqw; }
.ph-poster b { font-size: 13.5cqw; line-height: .88; letter-spacing: -0.055em; font-weight: 900; font-stretch: 105%; }
.ph-poster small { margin-top: auto; display: flex; justify-content: space-between; font-size: 3.8cqw; font-weight: 600; border-top: 2px solid var(--ink); padding-top: 3cqw; }
.ph-video { background: radial-gradient(120% 90% at 30% 20%, var(--c1), #0B0E22 70%); color: #fff; padding: 6cqw; display: flex; flex-direction: column; justify-content: space-between; }
.ph-video b { font-size: 7.5cqw; font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 70%; }
.ph-video small { display: flex; align-items: center; gap: 2.4cqw; font-size: 2.8cqw; font-variant-numeric: tabular-nums; opacity: .85; }
.ph-video small i { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff 32%, rgba(255, 255, 255, .25) 32%); }
.ph-ui { background: #fff; padding: 4cqw 5cqw; display: grid; grid-template-rows: auto 1fr auto; gap: 4cqw; }
.ph-ui .u-nav { display: flex; align-items: center; gap: 2.4cqw; }
.ph-ui .u-nav b { font-size: 2.8cqw; font-weight: 800; margin-right: auto; color: var(--ink); }
.ph-ui .u-nav i { width: 8cqw; height: 1.4cqw; border-radius: 1cqw; background: #DADDE6; }
.ph-ui .u-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: center; }
.ph-ui .u-hero h4 { margin: 0 0 2cqw; font-size: 5.4cqw; line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); }
.ph-ui .u-line { height: 1.3cqw; border-radius: 1cqw; background: #E3E6EE; margin-bottom: 1.4cqw; }
.ph-ui .u-btn { display: inline-block; margin-top: 1.6cqw; width: 14cqw; height: 4.4cqw; border-radius: 2.2cqw; background: var(--c1); }
.ph-ui .u-img { aspect-ratio: 4 / 3; border-radius: 2cqw; background: var(--c3); position: relative; overflow: hidden; }
.ph-ui .u-img::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--c1); opacity: .5; right: -12%; bottom: -20%; }
.ph-ui .u-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; }
.ph-ui .u-cards i { height: 9cqw; border-radius: 1.6cqw; background: #F1F3F8; border: 1px solid #E5E8EF; }

/* ================= ABOUT ================= */
.about-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.polaroid { position: relative; margin: 0; padding: 14px 14px 64px; background: #F4F2EC; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .9); transform: perspective(1000px) rotate(-3deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); max-width: 400px; justify-self: center; width: 100%; color: var(--ink); }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -16px; width: 120px; height: 32px; margin-left: -60px; background: rgba(245, 192, 74, .75); transform: rotate(3deg); z-index: 1; }
.polaroid .photo { aspect-ratio: 4 / 5; background: #D9D3F7; overflow: hidden; display: grid; place-items: center; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .initials { font-size: clamp(80px, 12vw, 140px); font-weight: 900; font-stretch: 115%; letter-spacing: -0.06em; color: var(--ink); }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center; font-family: var(--hand); font-size: 26px; font-weight: 600; color: var(--ink-2); }
.about-text { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); max-width: 58ch; margin: 0 0 44px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.fact { position: relative; padding: 20px 20px 4px 0; }
.fact dt { font-size: 48px; font-weight: 850; font-stretch: 112%; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact dd { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ================= EXPERIENCE ================= */
.jobs { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.job { position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) 1.5fr 150px; gap: 16px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.job h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; font-stretch: 108%; }
.job .role { display: block; margin-top: 4px; color: var(--blue); font-weight: 600; font-size: 16px; }
.job ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.job li { margin-bottom: 6px; }
.job li::marker { color: var(--dim); }
.job .period { font-size: 15px; font-weight: 500; color: var(--muted); text-align: right; }
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.edu-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.edu-card h4 { margin: 0 0 4px; font-size: 19px; }
.edu-card p { margin: 0; color: var(--muted); font-size: 15px; }
.edu-card .yr { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ================= TOOLKIT ================= */
.toolkit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 34px 16px; margin-top: 44px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; font-size: 14px; color: var(--muted); perspective: 500px; }
.tile { position: relative; width: 72px; height: 72px; border-radius: 22%; display: grid; place-items: center; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 27px; letter-spacing: -0.02em; --side: color-mix(in srgb, var(--bg) 65%, #000);
  transform: rotateX(var(--rx, 16deg)) rotateY(var(--ry, -22deg)) rotateZ(var(--rz, -5deg)); transition: transform .5s var(--ease);
  box-shadow: 1px 1px 0 var(--side), 2px 2px 0 var(--side), 3px 3px 0 var(--side), 4px 4px 0 var(--side), 5px 5px 0 var(--side), 6px 6px 0 var(--side), 7px 7px 0 var(--side), 18px 26px 30px -8px rgba(0, 0, 0, .7); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, rgba(255, 255, 255, .35), transparent 45%); }
.tool:hover .tile { --rx: 0deg; --ry: 0deg; --rz: 0deg; }
.toolkit .h3 { margin-top: 14px; }
.skill-list { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 24px; }
.skill-list li { break-inside: avoid; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.skill-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* ================= CONTACT ================= */
.contact-card { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(40px, 7vw, 96px); background: radial-gradient(80% 120% at 100% 0%, #6E93FF 0%, var(--blue) 40%, #2443C9 100%); color: #fff; }
.contact-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -130px; bottom: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .1); pointer-events: none; }
.contact-title { margin: 0 0 34px; font-size: clamp(44px, 7vw, 100px); line-height: .94; letter-spacing: -0.05em; font-weight: 850; font-stretch: 112%; max-width: 12ch; }
.mail { display: inline-block; font-size: clamp(22px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; margin-bottom: 34px; overflow-wrap: anywhere; }
.mail:hover { text-decoration-thickness: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; position: relative; z-index: 1; }
.contact-card .btn-light { background: #fff; color: #2443C9; }
.contact-card .btn-light:hover { background: var(--bg); color: #fff; }
.contact-card .btn-line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.contact-card .btn-line:hover { background: #fff; color: #2443C9; }
.contact-place { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .9); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; position: relative; z-index: 1; }
.socials a { font-weight: 600; text-underline-offset: 4px; }

/* ================= FOOTER ================= */
.footer { background: var(--bg); overflow: hidden; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 10px; padding-bottom: 24px; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer a { text-underline-offset: 4px; }
.admin-link { color: var(--dim); }
.wordmark { font-size: 15.6vw; line-height: .78; font-weight: 900; font-stretch: 118%; letter-spacing: -0.065em; color: #17171C; white-space: nowrap; text-align: center; padding-top: 2vw; margin-bottom: -2.2vw; user-select: none; }
.wordmark .wl { display: inline-block; }

/* ================= CUSTOM CURSOR ================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.cursor span { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; color: transparent; display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background .3s, color .2s; mix-blend-mode: difference; }
.cursor.view span { left: -44px; top: -44px; width: 88px; height: 88px; background: var(--blue); color: #fff; mix-blend-mode: normal; }
.cursor.hide span { width: 0; height: 0; left: 0; top: 0; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; }
  html.has-cursor .dcard-hit { cursor: none; }
}

/* ================= VIEWER ================= */
.viewer { position: fixed; inset: 0; z-index: 160; visibility: hidden; }
.viewer.open { visibility: visible; }
.viewer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.viewer.open .viewer-bg { opacity: 1; }
.viewer-panel { position: absolute; inset: 20px; max-width: 1100px; margin: 0 auto; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transform: translateY(30px) scale(.98); opacity: 0; transition: transform .5s var(--ease), opacity .35s; }
.viewer.open .viewer-panel { transform: none; opacity: 1; }
.viewer-bar { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; }
.viewer-body { height: 100%; overflow-y: auto; padding: clamp(24px, 4vw, 56px); overscroll-behavior: contain; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 20px; line-height: 1; transition: background .2s, color .2s; flex: none; }
.icon-btn:hover { background: var(--text); color: var(--bg); }
.v-head { margin-bottom: 30px; padding-right: 150px; }
.v-kind { font-size: 15px; font-weight: 600; color: var(--blue); }
.v-head h2 { margin: 6px 0 12px; font-size: clamp(34px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.045em; font-weight: 850; font-stretch: 110%; }
.v-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); font-size: 15px; }
.v-meta b { color: var(--text); font-weight: 600; }
.v-media { border-radius: 16px; overflow: hidden; background: var(--card); margin-bottom: 30px; container-type: inline-size; }
.v-media img { width: 100%; }
.v-media .ph { aspect-ratio: 16 / 10; }
.v-media.is-portrait { max-width: 520px; margin-left: auto; margin-right: auto; border-radius: 2px; }
.v-media.is-portrait .ph { aspect-ratio: 3 / 4; }
.v-media.is-square { max-width: 640px; margin-left: auto; margin-right: auto; }
.v-media.is-square .ph { aspect-ratio: 1; }
.v-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.v-video iframe, .v-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-novideo { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.v-desc { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 62ch; margin: 0 0 22px; white-space: pre-line; }
.v-gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-bottom: 40px; }
.v-gallery img { width: 100%; border-radius: 12px; }
.v-gallery.stack { grid-template-columns: 1fr; }

/* ================= EDIT MODE ================= */
.edit-bar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 160%); z-index: 140; width: min(1100px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: #16161C; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px #000; transition: transform .5s var(--ease); flex-wrap: wrap; }
body.editing .edit-bar { transform: translate(-50%, 0); }
.edit-bar-label { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.edit-bar-label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34D399; flex: none; }
.edit-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.eb-btn { padding: 8px 13px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; transition: background .2s; }
.eb-btn:hover { background: rgba(255, 255, 255, .16); }
.eb-btn.primary { background: var(--blue); color: #fff; }
.eb-btn.danger:hover { background: #E5484D; }
body.editing { padding-bottom: 90px; }
body.editing [data-bind] { outline: 1.5px dashed rgba(79, 125, 255, .8); outline-offset: 4px; border-radius: 3px; cursor: text; }
body.editing [data-bind]:hover, body.editing [data-bind]:focus { outline: 2px solid var(--blue); background: rgba(79, 125, 255, .08); }
body.editing [data-bind]:empty::before { content: "Click to add text"; opacity: .5; font-style: italic; }
body.editing .contact-card [data-bind] { outline-color: rgba(255, 255, 255, .85); }
.admin { display: none; gap: 6px; z-index: 6; }
body.editing .admin { display: flex; }
.item .admin, .case .admin { position: absolute; top: 12px; right: 12px; }
.admin button, .admin-btn { height: 32px; min-width: 32px; padding: 0 10px; border-radius: 8px; display: inline-grid; place-items: center; background: #fff; color: var(--bg); font-size: 13px; font-weight: 600; }
.admin button:hover, .admin-btn:hover { background: var(--blue); color: #fff; }
.admin button.del:hover { background: #E5484D; color: #fff; }
.job .admin { position: absolute; right: 0; top: 8px; }
.edu-card .admin, .fact .admin { position: absolute; right: 8px; top: 8px; }
.polaroid .admin { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); }
.add-tile { display: none; width: 100%; padding: 30px 20px; border-radius: 20px; border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 600; text-align: center; break-inside: avoid; margin-bottom: 28px; }
.add-tile:hover { border-color: var(--blue); color: var(--blue); }
body.editing .add-tile { display: block; }
.admin-fab { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 140; padding: 12px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
body.admin-viewing .admin-fab { display: inline-flex; }

.modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); opacity: 0; transition: opacity .3s; }
.modal.open .modal-bg { opacity: 1; }
.modal-card { position: relative; width: min(680px, 100%); max-height: calc(100svh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: #16161C; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px #000; transform: translateY(16px); opacity: 0; transition: all .35s var(--ease); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-body { padding: 20px 22px; overflow-y: auto; display: grid; gap: 18px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.f { display: grid; gap: 8px; }
.f > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.f small { color: var(--dim); font-size: 12px; }
.f input[type=text], .f input[type=password], .f textarea, .f select, .mini-input { width: 100%; padding: 11px 13px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; }
.f textarea { resize: vertical; min-height: 90px; }
.f select option, .mini-input option { background: #16161C; }
.f input:focus, .f textarea:focus, .f select:focus, .mini-input:focus { outline: none; border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-field { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.img-prev { width: 120px; height: 90px; border-radius: 10px; border: 1px dashed var(--line-2); background: #000 center/cover no-repeat; display: grid; place-items: center; color: var(--dim); font-size: 12px; flex: none; }
.img-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 92px; height: 72px; border-radius: 8px; background: #000 center/cover no-repeat; border: 1px solid var(--line-2); }
.thumb button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #E5484D; color: #fff; font-size: 12px; font-weight: 800; }
.thumb .mv { position: absolute; bottom: 2px; left: 2px; right: 2px; display: flex; justify-content: space-between; }
.thumb .mv button { position: static; width: 20px; height: 20px; background: rgba(0, 0, 0, .7); font-size: 11px; border-radius: 5px; }
.btn-sm { padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); }
.btn-sm.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-sm.danger { color: #FF8A8E; border-color: rgba(229, 72, 77, .45); }
.cat-edit { padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; gap: 10px; }
.cat-edit-row { display: flex; gap: 8px; align-items: center; }
.cat-edit-row .mini-input { flex: 1; }
.cat-edit-row select.mini-input { flex: 0 0 160px; }
.cat-edit .admin-btn { background: rgba(255, 255, 255, .1); color: var(--text); }
.sub-list { display: grid; gap: 8px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.help-list { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
.help-list b { color: var(--text); }
.help-list code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -160%); z-index: 250; padding: 11px 20px; border-radius: 12px; background: #16161C; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px; transition: transform .45s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .case, .about-grid, .toolkit-grid { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .case-body, .case:nth-child(even) .case-body { padding: 4px 8px 12px; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job .period { grid-row: 1; text-align: left; }
  .hero { justify-content: flex-end; padding-top: 52svh; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { padding: 6px 6px 6px 16px; }
  .name { font-size: clamp(54px, 17vw, 90px); }
  .work { border-radius: 28px 28px 0 0; }
  .grid { columns: 1; }
  .case { top: 80px; border-radius: 24px; }
  .switch { display: flex; width: 100%; }
  .switch button { flex: 1; justify-content: center; padding: 10px; font-size: 14px; gap: 6px; }
  .row2 { grid-template-columns: 1fr; }
  .viewer-panel { inset: 8px; border-radius: 18px; }
  .v-head { padding-right: 0; padding-top: 44px; }
  .edit-bar-actions { margin-left: 0; }
  .cat-edit-row { flex-wrap: wrap; }
  .cat-edit-row select.mini-input { flex: 1 1 120px; }
  .contact-card { border-radius: 28px; }
  .mail { font-size: 20px; }
  .hero-meta span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .case { position: relative; top: 0; }
}
.hero-meta.gone { visibility: hidden; }

/* =========================================================
   MOODBOARD (work) + personal palette
   ========================================================= */
:root { --rose: #FF8FAB; --lilac: #C9B6FF; --butter: #FFD86B; --mint: #9BE3C4; --paper: #F4F1EA; }

.board { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: row dense; gap: 84px 34px; padding: 80px clamp(22px, 4vw, 60px) 100px; border-radius: 36px;
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px) 0 0 / 22px 22px,
    radial-gradient(70% 60% at 15% 5%, rgba(201, 182, 255, .09), transparent 70%),
    radial-gradient(60% 60% at 95% 95%, rgba(255, 143, 171, .08), transparent 70%),
    #121117;
  border: 1px solid var(--line); box-shadow: inset 0 0 140px rgba(0, 0, 0, .55); }
.pin { position: relative; grid-column: span 4; align-self: start; perspective: 1400px; }
.pin--poster { grid-column: span 3; }
.pin--post { grid-column: span 4; }
.pin--video { grid-column: span 5; }
.pin--screen { grid-column: span 6; }
.pin:nth-child(4n+2) { margin-top: 56px; } .pin:nth-child(4n+3) { margin-top: 20px; } .pin:nth-child(4n+4) { margin-top: 70px; }
.pin-in { position: relative; transform-style: preserve-3d; }
.pin-hit { display: block; text-decoration: none; color: inherit; transform: rotate(var(--tilt)); transition: transform .7s var(--ease); transform-style: preserve-3d; }
.pin-hit:hover, .pin-hit:focus-visible { transform: rotate(0deg) translateZ(50px) scale(1.035); }
.obj { position: relative; }
.media { position: relative; overflow: hidden; container-type: inline-size; background: #fff; }
.media > img, .media > .ph { width: 100%; height: 100%; object-fit: cover; }
.obj .play { z-index: 3; }

/* poster: printed sheet + tape */
.sheet .media { aspect-ratio: 3 / 4; box-shadow: 0 34px 44px -22px rgba(0, 0, 0, .9), 0 2px 4px rgba(0, 0, 0, .4); }
.tape { position: absolute; z-index: 3; left: 50%; top: -15px; width: 44%; height: 30px; margin-left: -22%; background: rgba(255, 216, 107, .6); transform: rotate(-4deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* social post: polaroid */
.polaroid-p { background: var(--paper); padding: 11px 11px 0; box-shadow: 0 34px 44px -22px rgba(0, 0, 0, .9); }
.polaroid-p .media { aspect-ratio: 1; }
.polaroid-p .tape { background: rgba(201, 182, 255, .62); transform: rotate(5deg); }
.caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 10px 6px 14px; font-family: var(--hand); font-size: 25px; font-weight: 700; line-height: 1.05; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
/* video: little screen with a binder clip */
.tv { background: #1D1D24; padding: 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 34px 44px -22px rgba(0, 0, 0, .9); }
.tv .media { aspect-ratio: 16 / 10; border-radius: 7px; background: #0B0E22; }
.clip { position: absolute; z-index: 3; top: -9px; left: 18%; width: 46px; height: 20px; background: #0E0E12; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.clip::before { content: ""; position: absolute; left: 7px; right: 7px; bottom: 100%; height: 17px; border: 2.5px solid #C4C5CE; border-bottom: 0; border-radius: 9px 9px 0 0; }
/* UI/UX: laptop on the board */
.laptop { padding-bottom: 6px; }
.lid { background: #1D1D24; border-radius: 14px 14px 4px 4px; padding: 3% 3% 3.6%; border: 1px solid rgba(255, 255, 255, .12); transform-origin: 50% 100%; transform: perspective(1000px) rotateX(5deg); }
.lid .media { aspect-ratio: 16 / 10; border-radius: 3px; }
.lid .media > img { object-position: top; }
.base { position: relative; height: 15px; margin: 0 -6%; background: linear-gradient(#D6D7DD, #8E8F97); border-radius: 0 0 18px 18px; box-shadow: 0 30px 40px -14px rgba(0, 0, 0, .9); }
.base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #7B7C83; border-radius: 0 0 6px 6px; }

/* labels, stamps, notes, doodles */
.tag { display: inline-block; margin: 16px 0 0 6px; padding: 4px 13px 6px; max-width: 92%; background: var(--paper); color: var(--ink); font-family: var(--hand); font-size: 23px; font-weight: 700; line-height: 1.05; transform: rotate(calc(var(--tilt) * -1.4)); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.stamp { position: absolute; z-index: 4; right: -16px; bottom: -16px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--rose); color: var(--rose); background: rgba(18, 17, 23, .9); font-size: 13px; font-weight: 800; letter-spacing: .03em; transform: rotate(-14deg); }
.note { position: absolute; z-index: 5; top: -40px; right: -6px; display: flex; align-items: flex-end; gap: 4px; font-family: var(--hand); font-size: 26px; font-weight: 700; line-height: 1; color: var(--rose); transform: rotate(5deg); pointer-events: none; white-space: nowrap; }
.note svg { width: 38px; height: 22px; flex: none; }
.note.n1 { color: var(--lilac); right: auto; left: -4px; transform: rotate(-6deg); }
.note.n2 { color: var(--butter); }
.doodle { position: absolute; z-index: 1; bottom: -66px; width: 52px; height: 46px; pointer-events: none; }
.doodle svg { width: 100%; height: 100%; }
.doodle.d0 { left: 12%; color: var(--butter); transform: rotate(-12deg); }
.doodle.d1 { right: 10%; width: 80px; color: var(--rose); transform: rotate(8deg); }
.doodle.d2 { left: 38%; width: 90px; color: var(--lilac); }
.doodle.d3 { right: 22%; color: var(--rose); transform: rotate(10deg); }
.pin .admin { position: absolute; top: 8px; right: 8px; z-index: 6; }
.board .add-tile { grid-column: span 3; align-self: center; margin: 0; }
.board-empty { grid-column: 1 / -1; margin: 30px 0; text-align: center; font-family: var(--hand); font-size: 36px; color: var(--lilac); }

/* sticky-note filter tabs */
.work .filters { gap: 14px; margin-bottom: 36px; }
.work .filters button { --note: var(--butter); background: var(--note); color: #1B1A22; box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .9); font-family: var(--hand); font-size: 23px; font-weight: 700; padding: 6px 18px 9px; border-radius: 2px 2px 12px 2px; transform: rotate(var(--r, -2deg)); opacity: .72; transition: transform .35s var(--ease), opacity .25s, box-shadow .35s; }
.work .filters button:nth-child(2) { --note: var(--lilac); --r: 2deg; }
.work .filters button:nth-child(3) { --note: var(--rose); --r: -1deg; }
.work .filters button:nth-child(4) { --note: var(--mint); --r: 3deg; }
.work .filters button:nth-child(5) { --note: var(--paper); --r: -3deg; }
.work .filters button:hover { opacity: 1; color: #1B1A22; box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .9); }
.work .filters button[aria-pressed="true"] { opacity: 1; background: var(--note); color: #1B1A22; transform: rotate(0deg) translateY(-5px) scale(1.08); box-shadow: 0 18px 24px -12px rgba(0, 0, 0, .95); }
.work .filters sup { font-family: var(--font); font-size: 11px; }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(6, 1fr); }
  .pin--poster, .pin--post { grid-column: span 3; }
  .pin--video, .pin--screen { grid-column: span 6; }
}
@media (max-width: 700px) {
  .board { grid-template-columns: 1fr; gap: 70px; padding: 60px 24px 80px; border-radius: 26px; }
  .pin, .pin--poster, .pin--post, .pin--video, .pin--screen { grid-column: auto; margin-top: 0 !important; }
  .pin--poster, .pin--post { width: 86%; }
  .pin:nth-child(even) { justify-self: end; }
  .note { position: static; margin: 14px 0 0 8px; transform: rotate(-2deg); }
  .doodle { display: none; }
  .stamp { right: -8px; bottom: -8px; width: 50px; height: 50px; font-size: 12px; }
  .board .add-tile { grid-column: auto; }
}

/* fill the object frames exactly (aspect-ratio parents) */
.media > img, .media > .ph { position: absolute; inset: 0; }

/* hand-drawn underline drawn under the last word of headings */
.wd.ul { position: relative; }
.scribble { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .32em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* rotating sticker badge */
.sticker { position: absolute; width: 132px; height: 132px; z-index: 3; pointer-events: auto; perspective: 600px; }
.sticker-in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: #1B1A22; box-shadow: 0 2px 0 #C9A73F, 0 4px 0 #B89632, 0 20px 30px -10px rgba(0, 0, 0, .7); transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--ease); }
.sticker svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 18s linear infinite; }
.sticker text { font-family: var(--font); font-size: 11.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; fill: #1B1A22; }
.sticker b { position: relative; font-family: var(--hand); font-size: 30px; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker--hero { right: 7%; bottom: 13%; }
.sticker--about { right: -30px; top: -40px; width: 112px; height: 112px; }
.sticker--about .sticker-in { background: var(--rose); box-shadow: 0 2px 0 #D9708C, 0 4px 0 #C56480, 0 20px 30px -10px rgba(0, 0, 0, .7); }

/* about: a fanned stack of polaroids */
.photo-stack { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.photo-stack .polaroid { position: relative; z-index: 2; }
.pl-back { position: absolute; inset: 0; border-radius: 2px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.pl-back.b1 { background: var(--lilac); transform: rotate(7deg) translate(18px, 8px); }
.pl-back.b2 { background: var(--rose); transform: rotate(-9deg) translate(-20px, 14px); opacity: .9; }

/* tools look like stickers on a laptop lid */
.tool .tile { border: 4px solid var(--paper); }
.tool:nth-child(3n+1) .tile { --rz: 7deg; }
.tool:nth-child(3n+2) .tile { --rz: -6deg; }
.tool:nth-child(3n) .tile { --rz: 3deg; }

/* contact: handwritten "say hi" */
.contact-card .say-hi { position: absolute; right: clamp(24px, 6vw, 90px); top: clamp(30px, 5vw, 70px); display: flex; align-items: flex-end; gap: 6px; font-family: var(--hand); font-size: clamp(34px, 4vw, 52px); font-weight: 700; color: var(--butter); transform: rotate(-8deg); pointer-events: none; }
.contact-card .say-hi svg { width: 64px; height: 44px; }

@media (max-width: 900px) {
  .sticker--hero { right: 6%; bottom: auto; top: 16%; width: 96px; height: 96px; }
  .sticker--hero .sticker-in b { font-size: 22px; }
  .sticker--hero text { font-size: 9px; }
  .contact-card .say-hi { position: static; margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .sticker--about { right: -10px; top: -30px; width: 92px; height: 92px; }
}
.prebuild .sticker--hero { visibility: hidden; }
/* review fixes: stamp never covers text; caption clamps cleanly */
.stamp { top: -20px; right: -18px; bottom: auto; }
.caption { padding: 10px 6px 0; margin-bottom: 14px; }
@media (max-width: 700px) { .stamp { top: -14px; right: -10px; bottom: auto; } }
/* final review fixes */
body.editing .pin-hit:hover, body.editing .pin-hit:focus-visible { transform: rotate(var(--tilt)); }
.pin .admin { transform: translateZ(90px); }
.note { white-space: normal; max-width: 90%; overflow-wrap: anywhere; }
@media (max-width: 900px) { .sticker--hero { pointer-events: none; } }
@media (max-width: 700px) { .pin--video, .pin--screen { width: 100%; } }

/* =========================================================
   THEME: PLUM + ROSE GOLD
   ========================================================= */
:root {
  --bg: #1A0F1F;
  --bg-2: #21132A;
  --card: #2A1A30;
  --card-2: #34223B;
  --line: rgba(251, 244, 238, .09);
  --line-2: rgba(251, 244, 238, .17);
  --text: #FBF4EE;
  --muted: #D2C3CB;
  --dim: #A6929E;
  --blue: #E8B4A0;          /* accent: rose gold (also the "design tool" selection colour) */
  --coral: #F4A7B9;         /* blush — designer cursor */
  --gold: #E9C88F;          /* champagne */
  --rose: #F4A7B9; --lilac: #D7B8E8; --butter: #E9C88F; --mint: #BFE3D0;
  --on-accent: #1A0F1F;
  --rg: linear-gradient(120deg, #F7D6E0 0%, #E8B4A0 45%, #C98C7A 100%);
}
body { background: var(--bg); }
::selection { background: #E8B4A0; color: var(--on-accent); }

/* hero */
.hero { background:
    radial-gradient(55% 65% at 78% 45%, rgba(232, 180, 160, .16), transparent 70%),
    radial-gradient(45% 55% at 95% 95%, rgba(244, 167, 185, .12), transparent 70%),
    radial-gradient(35% 45% at 8% 10%, rgba(215, 184, 232, .08), transparent 70%),
    radial-gradient(rgba(251, 244, 238, .06) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--bg); }
.name .wd + .wd { -webkit-text-stroke: 1.5px #E8B4A0; }
.status-dot { background: #9BE3B5; box-shadow: 0 0 0 4px rgba(155, 227, 181, .15); }
.nav { background: rgba(33, 19, 42, .62); }
.swatches i { border-color: #21132A; }
.swatches i:nth-child(1) { background: #E8B4A0; } .swatches i:nth-child(2) { background: #F4A7B9; } .swatches i:nth-child(3) { background: #D7B8E8; }

/* buttons & accent surfaces carry dark text */
.btn-light { background: var(--text); color: var(--on-accent); }
.btn-light:hover { background: #E8B4A0; color: var(--on-accent); }
.skip { color: var(--on-accent); }
.bsize { color: var(--on-accent); }
.bbox { background: rgba(232, 180, 160, .05); }
.bbox .hd { background: var(--bg); }
.dcur span { color: var(--on-accent); }
.cursor.view span { color: var(--on-accent); }
.filters button[aria-pressed="true"] { color: var(--on-accent); }
.eb-btn.primary, .btn-sm.primary { color: var(--on-accent); }
.admin button, .admin-btn { background: var(--text); color: var(--on-accent); }
.admin button:hover, .admin-btn:hover { background: #E8B4A0; color: var(--on-accent); }
.admin-fab { color: var(--on-accent); }
.edit-bar, .modal-card, .toast { background: #261730; }
.f select option, .mini-input option { background: #261730; }

/* sections */
.work { background: var(--bg-2); }
.band-track span::after { background: #F4A7B9; }
.band-track span:nth-child(3n+2)::after { background: #E8B4A0; }
.band-track span:nth-child(3n)::after { background: #D7B8E8; }
.edu-card { background: var(--card); }
.wordmark { color: #2A1830; }
.polaroid .photo { background: #F7D6E0; }
.pl-back.b1 { background: #D7B8E8; } .pl-back.b2 { background: #E8B4A0; }
.sticker-in { background: #E9C88F; box-shadow: 0 2px 0 #C7A66B, 0 4px 0 #B39258, 0 20px 30px -10px rgba(0, 0, 0, .7); }
.sticker--about .sticker-in { background: #F4A7B9; box-shadow: 0 2px 0 #D88A9D, 0 4px 0 #C47A8D, 0 20px 30px -10px rgba(0, 0, 0, .7); }

/* contact: rose-gold card with dark plum text */
.contact-card { background: radial-gradient(90% 130% at 100% 0%, #F7D6E0 0%, #E8B4A0 45%, #B9786A 100%); color: var(--on-accent); }
.contact-card::after { border-color: rgba(26, 15, 31, .08); }
.contact-card .btn-light { background: var(--on-accent); color: var(--text); }
.contact-card .btn-light:hover { background: #3A2140; color: var(--text); }
.contact-card .btn-line { box-shadow: inset 0 0 0 1.5px rgba(26, 15, 31, .6); }
.contact-card .btn-line:hover { background: var(--on-accent); color: var(--text); }
.contact-place { color: rgba(26, 15, 31, .78); }
.contact-card .say-hi { color: #5B2A4E; }
body.editing .contact-card [data-bind] { outline-color: rgba(26, 15, 31, .7); }

/* =========================================================
   WORK: 3D CARD DECK
   ========================================================= */
.deck { position: relative; }
.deck-stage { position: relative; height: 100svh; min-height: 620px; display: grid; grid-template-columns: minmax(280px, .9fr) 1.3fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: 90px 0 40px; }
.deck-info { position: relative; align-self: center; }
.deck-info-in { display: flex; flex-direction: column; align-items: flex-start; }
.deck-count { font-size: 14px; color: var(--dim); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.deck-count b { font-size: 40px; font-weight: 850; font-stretch: 112%; color: transparent; -webkit-text-stroke: 1.2px #E8B4A0; letter-spacing: -0.03em; margin-right: 4px; }
.deck-kind { margin-top: 18px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--on-accent); background: var(--rg); }
.deck-title { margin: 16px 0 8px; font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -0.04em; font-weight: 850; font-stretch: 110%; }
.deck-meta { font-size: 15px; color: var(--dim); margin-bottom: 14px; }
.deck-desc { margin: 0 0 18px; color: var(--muted); max-width: 42ch; }
.deck-info .tags { margin-bottom: 18px; }
.deck-note { display: inline-block; margin: 0 0 22px; font-family: var(--hand); font-size: 28px; font-weight: 700; color: #F4A7B9; transform: rotate(-3deg); }
.deck-progress { margin-top: 34px; width: min(260px, 70%); height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.deck-progress i { display: block; height: 100%; background: var(--rg); transform-origin: 0 0; transform: scaleX(0); }

.deck-cards { position: relative; height: min(74svh, 680px); perspective: 1800px; transform-style: preserve-3d; }
.dcard { position: absolute; left: 50%; top: 54%; width: min(460px, 86%); transform-style: preserve-3d; will-change: transform, opacity; }
.dcard-hit { display: block; text-decoration: none; color: inherit; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, #3A2442, #241629 70%); border: 1px solid rgba(251, 244, 238, .12);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(232, 180, 160, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); position: relative; overflow: hidden; }
.dcard-hit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; transition: background-position 1s var(--ease); }
.dcard.front .dcard-hit:hover::after { background-position: -40% 0; }
.dcard-media { position: relative; aspect-ratio: 4 / 4.4; border-radius: 16px; overflow: hidden; background: #fff; container-type: inline-size; }
.dcard-media > img, .dcard-media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcard--screen .dcard-media > img, .dcard--screen .dcard-media > .ph { object-position: top; }
.dcard-media .play { z-index: 2; }
.dcard-foot { display: flex; justify-content: space-between; padding: 12px 6px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dcard-foot span:last-child { color: #E8B4A0; font-variant-numeric: tabular-nums; }
.dcard-info { display: none; }
.dcard .admin { position: absolute; top: 20px; right: 20px; z-index: 5; }

/* static deck (edit mode / reduced motion / no animation libs): a simple grid */
.deck.static .deck-stage { height: auto; min-height: 0; display: block; padding: 0; }
.deck.static .deck-info { display: none; }
.deck.static .deck-cards { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; perspective: none; }
.deck.static .dcard { position: relative; left: auto; top: auto; width: auto; transform: none !important; opacity: 1 !important; }
.deck.static .dcard-info { display: block; padding: 12px 4px 0; }
.deck.static .dcard-info h3 { margin: 0 0 4px; font-size: 20px; }
.deck.static .dcard-info p { margin: 0; font-size: 15px; color: var(--muted); }
.deck .add-tile { margin-top: 28px; }

/* auto-tour pill */
.tour-pill { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(38, 23, 48, .92); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font-size: 14px; color: var(--muted); box-shadow: 0 20px 40px -14px #000; white-space: nowrap; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; background: #E8B4A0; animation: tourPulse 1s ease-in-out infinite; }
@keyframes tourPulse { 50% { opacity: .3; } }
.tour-pill button { padding: 7px 14px; border-radius: 999px; background: var(--text); color: var(--on-accent); font-weight: 600; font-size: 13px; }
.tour-pill button:hover { background: #E8B4A0; }

@media (max-width: 900px) {
  .deck-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: stretch; gap: 8px; padding: 76px 0 22px; }
  .deck-cards { order: -1; height: auto; min-height: 0; }
  .dcard { top: 50%; width: min(300px, 74%); }
  .deck-info { align-self: end; }
  .deck-count b { font-size: 26px; }
  .deck-kind { margin-top: 8px; }
  .deck-title { font-size: 28px; margin: 8px 0 4px; }
  .deck-desc { display: none; }
  .deck-info .tags { display: none; }
  .deck-note { font-size: 22px; margin-bottom: 10px; }
  .deck-progress { margin-top: 14px; }
}
/* deck card fits the viewport under the nav */
.dcard { top: 55%; width: min(430px, 86%, calc((100svh - 230px) / 1.22)); }
@media (max-width: 900px) { .dcard { top: 50%; width: min(300px, 74%, calc((60svh - 60px) / 1.22)); } }
/* cursor: small blend dot that grows into a labelled circle on anything clickable */
.cursor span { width: 14px; height: 14px; left: -7px; top: -7px; background: #FBF4EE; color: transparent; font-size: 0; font-weight: 700; letter-spacing: .02em; mix-blend-mode: difference; transition: width .4s var(--ease), height .4s var(--ease), left .4s var(--ease), top .4s var(--ease), background .3s, color .2s, font-size .25s; }
.cursor.big span { width: 74px; height: 74px; left: -37px; top: -37px; background: #E8B4A0; color: #1A0F1F; font-size: 13px; mix-blend-mode: normal; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.cursor.huge span { width: 104px; height: 104px; left: -52px; top: -52px; font-size: 15px; }
.cursor.hide span { width: 0; height: 0; left: 0; top: 0; }
@media (hover: hover) and (pointer: fine) { html.has-cursor a, html.has-cursor button, html.has-cursor [data-action] { cursor: none; } }
/* only the front card receives the pointer (container stays out of 3D hit-testing) */
.deck:not(.static) .deck-cards { pointer-events: none; }
/* cursor: transparent lens — grows on hover and shows the button text through it (inverted), no label of its own */
.cursor span, .cursor.big span, .cursor.huge span { font-size: 0 !important; color: transparent !important; background: #FBF4EE; mix-blend-mode: difference; box-shadow: none; }
.cursor.big span { width: 70px; height: 70px; left: -35px; top: -35px; }
.cursor.huge span { width: 96px; height: 96px; left: -48px; top: -48px; }
/* blend must sit on the transformed (stacking-context) element itself */
.cursor { mix-blend-mode: difference; }
.cursor span, .cursor.big span, .cursor.huge span { mix-blend-mode: normal; }
/* footer: long arrow back to top */
.footer-row { align-items: flex-end; }
.to-top { display: inline-flex; color: #E8B4A0; padding: 6px 10px; transition: transform .5s var(--ease), color .3s; }
.to-top svg { width: 18px; height: 84px; }
.to-top:hover { transform: translateY(-10px); color: var(--text); }
