/* =========================================================
   Offscreen: porcelain blush & rose (light), rosé noir (dark)
   ========================================================= */
:root {
  --bg: #faf3f1;
  --bg-rgb: 250, 243, 241;
  --bg-2: #f6ebe8;
  --surface: #f1e2de;
  --surface-2: #ead5d0;
  --line: rgba(92, 42, 62, 0.10);
  --line-strong: rgba(92, 42, 62, 0.18);
  --ink: #3b1f2c;
  --muted: #86666f;
  --faint: #ae959c;
  --accent: #c25a7c;
  --accent-rgb: 194, 90, 124;
  --accent-soft: #f4c7d4;
  --accent-deep: #8e3456;
  --on-accent: #fff;
  --danger: #c0473f;
  --grain: .035;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #160e12;
  --bg-rgb: 22, 14, 18;
  --bg-2: #1d1318;
  --surface: #24171d;
  --surface-2: #2d1d25;
  --line: rgba(250, 222, 232, 0.08);
  --line-strong: rgba(250, 222, 232, 0.15);
  --ink: #f8e9ee;
  --muted: #c2a6b0;
  --faint: #836872;
  --accent: #eaa0b8;
  --accent-rgb: 234, 160, 184;
  --accent-soft: #f7d1dd;
  --accent-deep: #b35c7e;
  --on-accent: #2a1520;
  --danger: #ec9589;
  --grain: .05;
  color-scheme: dark;
}
:root {

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
body, .topbar.scrolled, .modal, .btn, .filter, .tag { transition-property: background, color, border-color, transform, opacity; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* the AVIF/WebP <picture> wrapper shouldn't affect layout — style the <img> as if it weren't there */
picture { display: contents; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 400; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); }
}

/* preloader */
.preloader {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: transform 1s var(--ease-slow) .1s, visibility 0s 1.2s;
}
.preloader-mark { font-family: var(--serif); font-size: 44px; letter-spacing: .04em; overflow: hidden; }
.preloader-mark span { font-style: italic; color: var(--accent); }
.preloader-mark { animation: rise .9s var(--ease-slow) both; }
.preloader-line { width: 120px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.preloader-line::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: load 1s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.loaded .preloader { transform: translateY(-100%); visibility: hidden; }

@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ---------------- header ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-color: var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 48px; transition: padding .5s var(--ease);
}
.topbar.scrolled .topbar-inner { padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.logo em { color: var(--accent); font-style: italic; }
.main-nav { display: flex; gap: 34px; flex: 1; }
.main-nav a {
  position: relative; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; transition: color .4s var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; transition: border-color .4s, background .4s, color .4s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-login {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 10px 22px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn-login::before {
  content: ''; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-login:hover { color: var(--on-accent); }
.btn-login:hover::before { transform: none; }

.profile-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .4s; }
.profile-chip:hover { border-color: var(--accent); }
.profile-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, var(--accent-soft), var(--accent-deep));
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-style: italic; color: #fff;
}
/* moon/sun cross-fade in place, rather than an instant display swap */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg {
  position: absolute; top: 50%; left: 50%; margin: -9px;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.theme-btn .i-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-btn .i-sun { opacity: 0; transform: rotate(-70deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(70deg) scale(.4); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: rotate(0deg) scale(1); }

/* theme switch: a circle grows from the toggle button to reveal the new theme.
   app.js sets --reveal-x/-y/-r (the button's position and the distance to the far
   corner) right before triggering the transition; this animates the clip-path. */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: reveal-circle 620ms cubic-bezier(.16, 1, .3, 1);
  z-index: 2;
}
@keyframes reveal-circle {
  from { clip-path: circle(0px at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
  to   { clip-path: circle(var(--reveal-r, 150%) at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
}
.profile-chip span:last-child { font-size: 13px; font-weight: 500; }

@media (max-width: 820px) {
  .main-nav { display: none; }
  .topbar-inner { gap: 16px; justify-content: space-between; }
}

/* ---------------- layout & page transitions ---------------- */
#app {
  max-width: var(--maxw); margin: 0 auto; padding: 110px var(--gutter) 80px; min-height: 80vh;
  transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s var(--ease);
}
#app.is-leaving { opacity: 0; transform: translateY(14px); filter: blur(4px); }
#app.is-home { padding-top: 0; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .num { font-family: var(--serif); font-style: italic; font-size: 17px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin-right: 2px; }

.page-head { padding: 40px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -.01em; margin: 18px 0 0;
}
.page-head h1 em { color: var(--accent); }
.page-head p { color: var(--muted); max-width: 520px; margin: 18px 0 0; }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-slow), transform 1.2s var(--ease-slow); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease-slow); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
.in .line-mask > span, .line-mask.in > span { transform: none; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding-top: 90px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.4vw, 132px); line-height: .9; letter-spacing: -.02em;
  margin: 26px 0 30px;
}
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-sub { color: var(--muted); font-size: 16px; max-width: 420px; margin: 0 0 40px; }
.hero-sub, .hero-search, .hero-meta { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease-slow) .7s, transform 1.2s var(--ease-slow) .7s; }
.hero.in .hero-sub, .hero.in .hero-search, .hero.in .hero-meta { opacity: 1; transform: none; }
.hero.in .hero-search { transition-delay: .85s; }
.hero.in .hero-meta { transition-delay: 1s; }

.hero-search { position: relative; max-width: 460px; }
.hero-search input, .field-underline {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); font-family: var(--serif); font-size: 24px; font-style: italic; padding: 12px 44px 14px 0; outline: none;
  transition: border-color .5s var(--ease);
}
.hero-search input::placeholder, .field-underline::placeholder { color: var(--faint); }
.hero-search input:focus, .field-underline:focus { border-color: var(--accent); }
.hero-search button {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--accent); padding: 8px;
  transition: transform .4s var(--ease);
}
.hero-search button:hover { transform: translate(4px, -50%); }

.hero-meta { display: flex; gap: 40px; margin-top: 56px; }
.hero-meta div { font-family: var(--serif); font-size: 36px; line-height: 1; }
.hero-meta small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

/* floating wallpaper columns */
.hero-wall {
  position: relative; height: 100vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  opacity: 0; transition: opacity 2s var(--ease) .3s;
}
.hero.in .hero-wall { opacity: 1; }
.hero-col { display: flex; flex-direction: column; gap: 16px; animation: drift-up 70s linear infinite; will-change: transform; }
.hero-col:nth-child(2) { animation-name: drift-down; animation-duration: 85s; margin-top: -40%; }
.hero-col:nth-child(3) { animation-duration: 60s; }
.hero-wall:hover .hero-col { animation-play-state: paused; }
.hero-col a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--surface); flex-shrink: 0; }
.hero-col img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow), filter 1s; filter: saturate(.92); }
.hero-col a:hover img { transform: scale(1.06); filter: saturate(1.1); }
@keyframes drift-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes drift-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.scroll-cue {
  position: absolute; left: 0; bottom: 36px; display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .hero-wall { position: absolute; inset: 0; height: 100%; opacity: 0; z-index: 0; }
  .hero.in .hero-wall { opacity: .22; }
  .hero-copy { padding: 40px 0 90px; }
  .scroll-cue { display: none; }
}

/* ---------------- marquee ---------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; margin: 40px calc(var(--gutter) * -1) 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-style: italic; color: var(--muted);
  padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; transition: color .4s;
}
.marquee a::after { content: '✦'; font-style: normal; font-size: 14px; color: var(--accent); }
.marquee a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { margin-top: 110px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; margin: 14px 0 0; letter-spacing: -.01em; }
.section-head h2 em { color: var(--accent); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 6px; position: relative; white-space: nowrap;
}
.link-arrow::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.link-arrow::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 1; }
.link-arrow:hover::before { transform: scaleX(1); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- cards ---------------- */
/* masonry columns, built in JS (app.js: layoutGrid) so phone (tall) and desktop (wide)
   wallpapers can sit together without one side of the grid running short — see layoutGrid
   for why CSS's own `columns` balancing isn't used here */
.grid-col { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.grid-col > .card { margin-bottom: 40px; }
.grid > .empty-state { width: 100%; }
@media (max-width: 640px) { .grid-col > .card { margin-bottom: 22px; } }

.card { cursor: pointer; }
.card-media { position: relative; aspect-ratio: var(--ar, 9 / 16); border-radius: 6px; overflow: hidden; background: var(--surface); }
.card-media::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 250% 100%; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.card-media img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease-slow); }
.card-media img.loaded { opacity: 1; transform: scale(1); }
.card:hover .card-media img.loaded { transform: scale(1.06); }
.card-media::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,8,0) 55%, rgba(11,10,8,.7) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }

.card-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.card-actions button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(239,232,220,.25); background: rgba(11,10,8,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease), background .3s, border-color .3s, color .3s;
}
.card-actions button:nth-child(2) { transition-delay: .06s; }
.card:hover .card-actions button, .card-actions button:focus-visible { opacity: 1; transform: none; }
.card-actions button:hover { background: #fff; color: #3b1f2c; border-color: #fff; }
.card-actions button.liked { color: #f4c7d4; border-color: #f4c7d4; opacity: 1; transform: none; }
.card-actions button.liked svg { fill: currentColor; }
@media (hover: none) { .card-actions button { opacity: 1; transform: none; } }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: #fff; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(11,10,8,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-info { padding: 16px 2px 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; margin: 0; transition: color .4s; }
.card:hover .card-title { color: var(--accent-soft); }
.card-cat { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.card-likes { font-size: 12px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.card-likes svg { width: 12px; height: 12px; }

.pop { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); margin: 0 0 10px; }
.empty-state h3 em { color: var(--accent); }
.empty-state .btn { margin-top: 26px; }

/* ---------------- collections ---------------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.coll {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: var(--surface); isolation: isolate;
}
.coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.8s var(--ease-slow), filter 1s var(--ease); filter: brightness(.62) saturate(.85); }
.coll::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,8,0) 30%, rgba(11,10,8,.85) 100%); }
.coll:hover img { transform: scale(1.12); filter: brightness(.78) saturate(1); }
.coll-num { position: absolute; top: 24px; left: 28px; font-size: 11px; letter-spacing: .24em; color: var(--accent-soft); }
.coll { container-type: inline-size; color: #fff; border-radius: 6px; }
.coll-num { color: #f4c7d4 !important; }
.coll h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 15cqi, 44px); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.coll p { margin: 10px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); display: flex; justify-content: space-between; align-items: center; }
.coll p svg { color: #f4c7d4 !important; }
.coll p svg { width: 16px; height: 16px; color: var(--accent); transform: translateX(-8px); opacity: 0; transition: all .6s var(--ease); }
.coll:hover p svg { transform: none; opacity: 1; }
.coll-grid.feature { grid-template-columns: repeat(4, 1fr); }
.coll-grid.feature .coll:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.coll-grid.feature .coll:first-child h3 { font-size: clamp(40px, 12cqi, 72px); }
@media (max-width: 900px) { .coll-grid.feature { grid-template-columns: repeat(2, 1fr); } .coll-grid.feature .coll:first-child { grid-row: auto; aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .coll-grid.feature { grid-template-columns: 1fr; } .coll-grid.feature .coll:first-child { grid-column: auto; } }

/* phone: cards shouldn't eat the whole screen (column count itself is set in app.js) */
@media (max-width: 640px) {
  .card-info { padding-top: 10px; }
  .card-title { font-size: 16px; }
  .card-cat { font-size: 8.5px; margin-top: 3px; }
  .card-likes { font-size: 10.5px; }
  .card-likes svg { width: 10px; height: 10px; }
  .card-actions { right: 7px; bottom: 7px; gap: 6px; }
  .card-actions button { width: 30px; height: 30px; }
  .card-actions svg { width: 14px; height: 14px; }
  .badge { top: 7px; left: 7px; font-size: 8.5px; padding: 4px 7px; }
  /* blur-behind buttons/badges on every card are costly to keep compositing while the
     phone scrolls; a plain, slightly more opaque backdrop reads the same at this size */
  .card-actions button, .badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card-actions button { background: rgba(11, 10, 8, .62); }
  .badge { background: rgba(11, 10, 8, .58); }

  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 30px; margin-top: 8px; }
}

/* filter tabs */
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 36px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto; background: none; border: 1px solid var(--line); color: var(--muted); padding: 10px 20px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: all .45s var(--ease);
}
.filter:hover { border-color: var(--line-strong); color: var(--ink); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter sup { font-size: 9px; margin-left: 4px; opacity: .6; letter-spacing: 0; }

/* ---------------- detail ---------------- */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 20px 0 0; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--accent); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 30px 0 20px; }
.detail-stage { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.detail-stage::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 18%;
  background: var(--glow, rgba(var(--accent-rgb),.25)); filter: blur(90px); opacity: .55; z-index: 0; transition: background 1s;
}

.phone {
  position: relative; z-index: 1; height: min(640px, 72vh); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 4px;
  background: linear-gradient(150deg, #e9d6d6 0%, #b99ea5 45%, #efe0df 75%, #a58a92 100%);
  box-shadow: 0 40px 80px -24px rgba(59, 31, 44, .45), 0 8px 24px rgba(59, 31, 44, .18);
  transform-style: preserve-3d; transition: transform .9s var(--ease-slow);
  animation: phone-in 1.4s var(--ease-slow) both;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotateX(12deg) scale(.94); } to { opacity: 1; transform: none; } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-slow), filter 1s var(--ease); }
.phone.home .phone-screen img { transform: scale(1.08); filter: brightness(.88); }
.phone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 30%; height: 26px; background: #000; border-radius: 20px; z-index: 5; }
.phone-glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%); mix-blend-mode: screen; }

.ls, .hs { position: absolute; inset: 0; z-index: 4; transition: opacity .7s var(--ease), transform .9s var(--ease-slow); }
.ls { display: flex; flex-direction: column; align-items: center; padding-top: 16%; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.ls-date { font-size: 13px; font-weight: 500; letter-spacing: .02em; opacity: .9; }
.ls-time { font-family: var(--sans); font-weight: 300; font-size: clamp(56px, 7vh, 78px); line-height: 1; letter-spacing: -.02em; margin-top: 2px; }
.ls-bottom { position: absolute; bottom: 7%; left: 11%; right: 11%; display: flex; justify-content: space-between; }
.ls-bottom span { width: 42px; height: 42px; border-radius: 50%; background: rgba(20,20,20,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; }
.ls-bottom svg { width: 17px; height: 17px; color: #fff; }
.hs { padding: 17% 8% 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 18px 12px; opacity: 0; transform: scale(1.08); pointer-events: none; }
.hs i { aspect-ratio: 1; border-radius: 24%; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); }
.hs-dock { position: absolute; left: 5%; right: 5%; bottom: 3.5%; padding: 12px; border-radius: 30px; background: rgba(255,255,255,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phone.home .ls { opacity: 0; transform: translateY(-20px); }
.phone.home .hs { opacity: 1; transform: none; }

.seg { position: relative; display: inline-flex; margin-top: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; z-index: 1; }
.seg button { position: relative; z-index: 1; background: none; border: none; padding: 10px 22px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .5s var(--ease); }
.seg button.active { color: var(--bg); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease), width .6s var(--ease); }

.detail-info h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.4vw, 80px); line-height: .95; margin: 22px 0 30px; letter-spacing: -.01em; }
.stats { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.stats > div { flex: 1; padding: 20px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.stats small { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.accent::before { background: var(--accent-deep); }
.btn.accent:hover { color: #fff; border-color: var(--accent-deep); }
.btn.liked { color: var(--accent); border-color: var(--accent); }
.btn.liked svg { fill: currentColor; }
.btn.liked:hover { color: var(--bg); }
.btn.small { padding: 10px 18px; font-size: 10px; }
.btn.danger { color: var(--danger); border-color: rgba(217,138,122,.4); }
.btn.danger::before { background: var(--danger); }

.meta-block h4 { margin: 0 0 14px; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all .4s var(--ease); }
.tag:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .phone { height: min(560px, 70vh); }
}

/* ---------------- search ---------------- */
.search-big { position: relative; margin-top: 30px; }
.search-big input { font-size: clamp(30px, 4vw, 48px); padding: 14px 60px 18px 0; }
.search-big button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--accent); }
.search-big button svg { width: 28px; height: 28px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.suggest span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-right: 8px; }
.result-count { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin: 0 0 30px; }

/* ---------------- modal / toast ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,5,4,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .4s var(--ease);
}
.modal {
  position: relative; width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 48px 40px 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: modal-in .7s var(--ease-slow);
}
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin: 16px 0 12px; }
.modal h3 em { color: var(--accent); }
.modal .sub { color: var(--muted); margin: 0 0 30px; font-size: 14px; }
.modal .field-underline { font-size: 22px; margin-bottom: 26px; }
.modal label { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.modal select, .modal input[type=file], .modal .field { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 13px 14px; border-radius: 4px; font: inherit; margin-bottom: 18px; outline: none; transition: border-color .4s; }
.modal select:focus, .modal .field:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.close-x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: none; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all .4s var(--ease); }
.close-x:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 350; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg); padding: 14px 24px; border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: toast-in .6s var(--ease-slow);
}
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }
.toast.out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------------- profile ---------------- */
.profile-head { display: flex; align-items: center; gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.profile-avatar-lg {
  width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(145deg, var(--accent-soft), var(--accent-deep));
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 52px; color: var(--bg);
}
.profile-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 10px 0 8px; }
.profile-head p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-head .btn { margin-left: auto; }
.tabs { position: relative; display: flex; gap: 36px; margin: 34px 0 40px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: none; padding: 0 0 16px; font-family: var(--serif); font-size: 24px; color: var(--faint); transition: color .4s; }
.tabs button sup { font-family: var(--sans); font-size: 11px; margin-left: 4px; }
.tabs button.active { color: var(--ink); }
.tabs-bar { position: absolute; bottom: -1px; left: 0; height: 1px; background: var(--accent); transition: transform .6s var(--ease), width .6s var(--ease); }

/* ---------------- admin ---------------- */
.admin-login { max-width: 460px; margin: 60px auto; }
.admin-login .field-underline { margin: 30px 0 30px; }
.admin-login .hint { color: var(--faint); font-size: 12px; margin-top: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 70px; }
.stat { padding: 28px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; }
.stat small { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.admin-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 22px; flex-wrap: wrap; }
.admin-bar h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 70px; }
.chips span { font-size: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.admin-table th { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); }
.admin-table tbody tr { transition: background .3s; }
.admin-table tbody tr:hover { background: var(--bg-2); }
.admin-table img { width: 38px; height: 64px; object-fit: cover; border-radius: 3px; }
.admin-table td.title { font-family: var(--serif); font-size: 18px; }
.admin-table .star { color: var(--accent); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions button { background: none; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .3s; }
.row-actions button:hover { border-color: var(--accent); color: var(--accent); }
.row-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ---------------- footer ---------------- */
/* deep plum block in both themes, with a giant gradient wordmark */
.site-footer {
  --foot-bg: #1f1118;
  --foot-ink: #f8e9ee;
  --foot-soft: rgba(248, 233, 238, .62);
  --foot-line: rgba(248, 233, 238, .14);
  --foot-accent: #f19bb8;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  position: relative; overflow: hidden; margin-top: 120px;
  background: var(--foot-bg); color: var(--foot-ink);
}
:root[data-theme="dark"] .site-footer { --foot-bg: #1d1016; border-top: 1px solid var(--foot-line); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--gutter) 0; }

.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.foot-logo { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.foot-logo em { font-style: italic; color: var(--foot-accent); }
.foot-tagline { font-size: 19px; line-height: 1.45; max-width: 340px; margin: 22px 0 18px; color: var(--foot-ink); }
.foot-status { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--foot-soft); margin: 0; }
.foot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--foot-accent); box-shadow: 0 0 0 0 rgba(241, 155, 184, .6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 155, 184, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(241, 155, 184, 0); } }
.foot-icons { display: flex; gap: 10px; margin-top: 30px; }
.foot-icons a, .foot-icons button {
  width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--foot-line); background: rgba(248, 233, 238, .03);
  color: var(--foot-ink); display: flex; align-items: center; justify-content: center;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), color .35s;
}
.foot-icons a:hover, .foot-icons button:hover { border-color: var(--foot-accent); color: var(--foot-accent); transform: translateY(-2px); }
.foot-icons svg { width: 19px; height: 19px; stroke-width: 1.6; }

.foot-col h4 { margin: 4px 0 30px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--foot-ink); }
.foot-col a { display: block; width: fit-content; font-size: 16px; color: var(--foot-soft); margin-bottom: 18px; transition: color .3s, transform .45s var(--ease); }
.foot-col a:hover { color: var(--foot-accent); transform: translateX(5px); }

.foot-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--foot-line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--foot-soft); }
.foot-meta a { transition: color .3s; }
.foot-meta a:hover { color: var(--foot-accent); }

/* wordmark: rises into view; the svg's viewBox hugs the letters so it spans the width undistorted */
.foot-mark { padding: 40px var(--gutter) clamp(24px, 3.5vw, 56px); max-width: 1600px; margin: 0 auto; overflow: hidden; }
.foot-mark svg { display: block; width: 100%; height: auto;
  transform: translateY(60%); opacity: 0; transition: transform 1.6s var(--ease-slow), opacity 1.2s var(--ease); }
.foot-mark.in svg { transform: none; opacity: 1; }
.mark-text { font-family: 'Anton', 'Impact', 'Arial Narrow', sans-serif; font-size: 200px; letter-spacing: 0; }
.mk-top { stop-color: #f7b3c9; transition: stop-color .8s var(--ease); }
.mk-mid { stop-color: #c25a7c; }
.mk-bottom { stop-color: #4a2d3b; }
.foot-mark:hover .mk-top { stop-color: #ffd3e1; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-col h4 { margin-bottom: 20px; }
  .foot-col a { font-size: 15px; margin-bottom: 14px; }
  .foot-meta { flex-direction: column; gap: 8px; }
}

.loader { display: flex; justify-content: center; padding: 160px 0; }
.loader span { width: 80px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.loader span::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: slide 1.2s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .line-mask > span, .hero-sub, .hero-search, .hero-meta { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
}

/* ---------------- laptop mockup (desktop wallpapers) ---------------- */
.detail.is-desktop { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); }
.laptop { position: relative; z-index: 1; width: min(760px, 100%); transform-style: preserve-3d; transition: transform .9s var(--ease-slow); animation: phone-in 1.4s var(--ease-slow) both; }
.laptop-lid {
  position: relative; border-radius: 14px 14px 4px 4px; padding: 7px 7px 16px;
  background: linear-gradient(160deg, #eadada 0%, #c2a9af 55%, #e7d6d6 100%);
  box-shadow: 0 30px 70px -26px rgba(59, 31, 44, .5);
}
.laptop-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #000; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-slow), filter 1s var(--ease); }
.laptop-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13%; height: 3.2%; background: #000; border-radius: 0 0 6px 6px; z-index: 5; }
.laptop-base {
  position: relative; height: 12px; margin: 0 -5%; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #efe2e1 0%, #c7afb4 60%, #9f858d 100%);
}
.laptop-base::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14%; height: 5px; border-radius: 0 0 8px 8px; background: rgba(59, 31, 44, .18); }
.mac-bar, .mac-dock, .mac-win { position: absolute; z-index: 4; transition: opacity .7s var(--ease), transform .9s var(--ease-slow); }
.mac-bar {
  top: 0; left: 0; right: 0; height: 4.2%; display: flex; align-items: center; justify-content: space-between; padding: 0 2.2%;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: clamp(7px, 1.1vw, 11px); font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mac-bar span { display: flex; gap: 1.4em; }
.mac-dock {
  bottom: 2.5%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 12px;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35);
}
.mac-dock i { width: clamp(16px, 2.6vw, 30px); aspect-ratio: 1; border-radius: 24%; background: rgba(255, 255, 255, .5); }
.mac-dock i:nth-child(3n+1) { background: rgba(255, 214, 226, .7); }
.mac-win {
  top: 14%; left: 9%; width: 42%; height: 46%; border-radius: 8px; background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.mac-win::before { content: ''; position: absolute; top: 7%; left: 4%; width: 18%; height: 5%; background: radial-gradient(circle, #f47a7a 38%, transparent 40%) 0 50% / 33% 100% no-repeat, radial-gradient(circle, #f5c25b 38%, transparent 40%) 50% 50% / 33% 100% no-repeat, radial-gradient(circle, #6fcf7c 38%, transparent 40%) 100% 50% / 33% 100% no-repeat; }
.laptop.clean .mac-bar { opacity: 0; transform: translateY(-100%); }
.laptop.clean .mac-dock { opacity: 0; transform: translate(-50%, 30%); }
.laptop.clean .mac-win { opacity: 0; transform: scale(.94); }
.laptop.clean .laptop-screen img { transform: scale(1.03); }

.device-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-left: 10px; vertical-align: middle; }
.device-tag svg { width: 13px; height: 13px; }
.card-cat .dev { margin-left: 8px; opacity: .8; }

@media (max-width: 900px) { .detail.is-desktop { grid-template-columns: 1fr; } }
