/* Matheus Barreiro portfolio. Layout: pill nav + sticky compact profile card on the left, big two-tone uppercase headings,
   Sobre / Portfólio / case study / Contato pages. Narrow widths swap to a sticky header + bottom tab bar.
   Final content pass: 15 case studies in PT and EN, NDA notes, process diagram, image-slot markers. */
:root {
  --c-bg: #ecebef; --c-panel: #ffffff; --c-fg: #1d1b22; --c-muted: #686470; --c-line: #d9d6df; --c-on: #1d1b22; --c-on-ink: #ffffff; --frame: #1d1b22;
  --s-bg: #110c19; --s-surface: #1a1326; --s-fg: #efe9f7; --s-muted: #a597ba; --s-dim: #5f5378; --s-line: #2d2340;
  --s-accent: #b98bff; --s-accent-ink: #140b22; --s-dot: rgba(185,139,255,.17); --s-glow: rgba(140,80,230,.30); --s-glow2: rgba(90,60,200,.22); --s-grain: .16;
  --art-ink: #ffffff; --art-shade: rgba(8,4,14,.82);
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c-bg: #141317; --c-panel: #1c1b20; --c-fg: #ecebf0; --c-muted: #9b98a3; --c-line: #2e2c34; --c-on: #ecebf0; --c-on-ink: #141317; --frame: #000000; color-scheme: dark; }
}
:root[data-theme="dark"] { --c-bg: #141317; --c-panel: #1c1b20; --c-fg: #ecebf0; --c-muted: #9b98a3; --c-line: #2e2c34; --c-on: #ecebf0; --c-on-ink: #141317; --frame: #000000; color-scheme: dark; }

.device[data-palette="purple"][data-mode="dark"] { --s-bg:#110c19; --s-surface:#1a1326; --s-fg:#efe9f7; --s-muted:#a597ba; --s-dim:#5f5378; --s-line:#2d2340; --s-accent:#b98bff; --s-accent-ink:#140b22; --s-dot:rgba(185,139,255,.17); --s-glow:rgba(140,80,230,.30); --s-glow2:rgba(90,60,200,.22); --s-grain:.16; color-scheme: dark; }
.device[data-palette="purple"][data-mode="light"] { --s-bg:#f5f2f9; --s-surface:#ffffff; --s-fg:#1b1426; --s-muted:#695c7f; --s-dim:#b2a5c7; --s-line:#e2dbee; --s-accent:#6a2fd1; --s-accent-ink:#ffffff; --s-dot:rgba(106,47,209,.16); --s-glow:rgba(160,110,240,.22); --s-glow2:rgba(120,90,220,.14); --s-grain:.10; color-scheme: light; }
.device[data-palette="green"][data-mode="dark"] { --s-bg:#0f1211; --s-surface:#181d1a; --s-fg:#eff2eb; --s-muted:#929a93; --s-dim:#5a625c; --s-line:#252b27; --s-accent:#c3ef6a; --s-accent-ink:#141a07; --s-dot:rgba(195,239,106,.12); --s-glow:rgba(120,190,60,.18); --s-glow2:rgba(40,140,110,.16); --s-grain:.16; color-scheme: dark; }
.device[data-palette="green"][data-mode="light"] { --s-bg:#f3f5f0; --s-surface:#ffffff; --s-fg:#161c14; --s-muted:#5c675a; --s-dim:#a9b3a5; --s-line:#dce3d8; --s-accent:#3f7d1c; --s-accent-ink:#ffffff; --s-dot:rgba(63,125,28,.15); --s-glow:rgba(140,200,80,.18); --s-glow2:rgba(60,160,130,.12); --s-grain:.10; color-scheme: light; }

* { box-sizing: border-box; }
body { background: var(--c-bg); color: var(--c-fg); font-family: var(--f-body); font-size: 15px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--c-panel); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- mockup toolbar ---------- */
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--c-panel); border-bottom: 1px solid var(--c-line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13px; }
@media (max-width: 700px) { .toolbar { position: static; gap: 8px 14px; } }
.toolbar .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-right: auto; }
.ctl { display: flex; align-items: center; gap: 8px; }
.ctl > span { color: var(--c-muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--c-line); border-radius: 999px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--c-muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--c-on); color: var(--c-on-ink); }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sw-purple { background: #9b6bf0; } .sw-green { background: #a8d84e; }

/* ---------- stage / device ---------- */
.device { position: relative; isolation: isolate; background: var(--s-bg); color: var(--s-fg); transition: background-color .4s, color .4s; --head-h: 57px; }
.stage[data-view="mobile"] { padding-block: 32px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px; }
.stage[data-view="mobile"] .device { --head-h: 85px; flex: none; width: 390px; max-width: 100%; height: min(820px, calc(100vh - 120px)); min-height: 600px;
  border: 10px solid var(--frame); border-radius: 46px; overflow: hidden; transform: translateZ(0); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.stage[data-view="mobile"] .site { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.stage[data-view="mobile"] .tabbar { position: absolute; }
.notch { display: none; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: var(--frame); border-radius: 20px; z-index: 40; }
.stage[data-view="mobile"] .notch { display: block; }
.stage[data-view="mobile"] .site-head { padding-top: 38px; }

.notes { display: none; max-width: 330px; color: var(--c-fg); padding-top: 24px; }
.stage[data-view="mobile"] .notes { display: block; }
.notes h2 { font-family: var(--f-display); font-size: 20px; margin: 0 0 4px; }
.notes > p { color: var(--c-muted); margin: 0 0 16px; font-size: 13.5px; }
.notes ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: n; }
.notes li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13.5px; counter-increment: n; }
.notes li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--c-muted); }
.notes b { display: block; font-weight: 600; }
.notes span { color: var(--c-muted); }

/* ---------- texture ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg .dots { position: absolute; inset: -10%; background-image: radial-gradient(var(--s-dot) 1.1px, transparent 1.7px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 25%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 30% 25%, #000 10%, transparent 80%);
  animation: drift 140s linear infinite; }
.bg .spirals { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 35%, #000 100%); }
.bg .glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.bg .g1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; background: var(--s-glow); animation: float1 48s ease-in-out infinite alternate; }
.bg .g2 { width: 36vmax; height: 36vmax; right: -14vmax; top: 30%; background: var(--s-glow2); animation: float2 62s ease-in-out infinite alternate; }
.stage[data-view="mobile"] .bg .g1 { width: 520px; height: 520px; left: -220px; top: -240px; }
.stage[data-view="mobile"] .bg .g2 { width: 420px; height: 420px; right: -260px; }
.bg .grain { position: absolute; inset: 0; opacity: var(--s-grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.device[data-texture="off"] .bg { display: none; }
@keyframes drift { to { background-position: 240px 120px; } }
@keyframes float1 { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes float2 { to { transform: translate(-12vmax, -8vmax) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .bg .dots, .bg .glow { animation: none; } .card, .view { transition: none !important; animation: none !important; } }

/* ---------- site shell ---------- */
.site { position: relative; z-index: 1; container: site / inline-size; }
.site-head, .mprofile { display: none; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 22px 56px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px 64px; }
.pillnav { grid-column: 2; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pillnav a, .langbtn { text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--s-muted); background: none; border: 0; cursor: pointer; }
.pillnav a[aria-current="page"] { background: var(--s-surface); color: var(--s-fg); box-shadow: 0 0 0 1px var(--s-line) inset; }
.pillnav a:hover, .langbtn:hover { color: var(--s-fg); }
.pillnav .spacer { flex: 1; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--s-line); border-radius: 50%; background: none; cursor: pointer; color: var(--s-fg); flex: none; }
.icon-btn svg { width: 16px; height: 16px; }

.profile { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 76px; align-self: start; margin-top: 52px;
  background: color-mix(in srgb, var(--s-surface) 82%, transparent); border: 1px solid var(--s-line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; backdrop-filter: blur(6px); }
.stage[data-view="mobile"] .profile { position: static; }
.id { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 14px; flex: none; background: linear-gradient(140deg, var(--s-accent), var(--s-surface));
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--s-accent-ink); }
.id h2 { margin: 0; font-family: var(--f-display); font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.id p { margin: 2px 0 0; font-size: 12.5px; color: var(--s-muted); }
.pbio { margin: 0; font-size: 13.5px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--s-muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-accent) 22%, transparent); flex: none; }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.links a { font-size: 13px; color: var(--s-accent); text-decoration: none; padding: 2px 0; }
.links a:hover { text-decoration: underline; }
.links .dot { color: var(--s-dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px; border-radius: 11px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid var(--s-line); background: none; color: var(--s-fg); }
.btn.primary { background: var(--s-accent); color: var(--s-accent-ink); border-color: transparent; }
.btn svg { width: 16px; height: 16px; flex: none; }
.profile .btn { width: 100%; }

main { grid-column: 2; min-width: 0; }
.view { display: grid; gap: 56px; animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
.hx { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: .92; font-size: clamp(44px, 7.4cqi, 88px); }
.hx span { display: block; }
.hx span + span { color: var(--s-dim); }
.hx.sm { font-size: clamp(30px, 6cqi, 70px); overflow-wrap: anywhere; }
.kicker { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--s-accent); margin: 14px 0 0; }
.lead { font-size: 17px; max-width: 60ch; margin: 18px 0 0; }
.h2 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.015em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--s-surface); color: var(--s-fg); border: 1px solid var(--s-line); white-space: nowrap; }
.chip.acc { background: none; border-color: var(--s-accent); color: var(--s-accent); }

/* featured fan */
.featured { display: grid; gap: 14px; }
.featured-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.featured-head a { font-size: 13.5px; color: var(--s-muted); text-decoration: none; } .featured-head a:hover { color: var(--s-accent); }
.fan { display: flex; align-items: flex-end; padding: 18px 0 8px 8px; }
.card { flex: none; width: 188px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; position: relative; text-decoration: none; color: var(--art-ink);
  box-shadow: 0 18px 34px -16px rgba(0,0,0,.55); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.card + .card { margin-left: -28px; }
.card:nth-child(1) { transform: rotate(-6deg) translateY(6px); z-index: 1; }
.card:nth-child(2) { transform: rotate(-1deg) translateY(-6px); z-index: 2; }
.card:nth-child(3) { transform: rotate(5deg) translateY(4px); z-index: 1; }
.card:hover, .card:focus-visible, .card.is-active { transform: rotate(0) translateY(-16px) scale(1.04); z-index: 4; box-shadow: 0 28px 44px -18px rgba(0,0,0,.6); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card .cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 13px; background: linear-gradient(to top, var(--art-shade), transparent); }
.card .cap b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.02; }
.card .cap small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.fdots { display: none; justify-content: center; gap: 6px; }
.fdots i { width: 6px; height: 6px; border-radius: 3px; background: var(--s-dim); transition: width .25s, background-color .25s; }
.fdots i.on { width: 18px; background: var(--s-accent); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; max-width: 640px; min-height: 120px; align-content: start; }
.detail h3 { margin: 0; font-family: var(--f-display); font-size: 21px; }
.detail .meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--s-muted); align-self: center; }
.detail p { margin: 0; color: var(--s-muted); grid-column: 1 / -1; }
.detail .more { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: var(--s-accent); text-decoration: none; margin-top: 2px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--s-muted); font-size: 13.5px; margin-top: -24px; }
.facts b { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--s-fg); margin-right: 6px; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tl li { display: grid; gap: 2px; padding-left: 18px; border-left: 1px solid var(--s-line); position: relative; }
.tl li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--s-dim); }
.tl li.now::before { background: var(--s-accent); }
.tl .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--s-muted); }
.tl h3 { margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.tl h3 em { font-style: normal; color: var(--s-accent); }
.tl p { margin: 0; color: var(--s-muted); font-size: 14px; max-width: 62ch; }
.cta .btn { margin-top: 18px; }
.cta p { margin: 14px 0 0; color: var(--s-muted); }

/* portfolio list */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters button { border: 1px solid var(--s-line); background: none; color: var(--s-muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 34px; }
.filters button[aria-pressed="true"] { border-color: var(--s-accent); color: var(--s-accent); background: color-mix(in srgb, var(--s-accent) 10%, transparent); }
.count { font-size: 12.5px; color: var(--s-muted); font-family: var(--f-mono); margin: 12px 0 0; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-line); }
.plist li { border-bottom: 1px solid var(--s-line); }
.prow { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; padding: 18px 6px; text-decoration: none; color: inherit; border-radius: 12px; align-items: start; transition: background-color .2s; }
.prow:hover { background: color-mix(in srgb, var(--s-surface) 70%, transparent); }
.thumb { width: 88px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--art-ink); }
.prow h3 { margin: 0; font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.prow h3 small { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--s-muted); }
.prow p { margin: 6px 0 8px; color: var(--s-muted); font-size: 14px; }
.prow .plat { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.prow .go { color: var(--s-dim); font-size: 20px; align-self: center; transition: transform .2s, color .2s; }
.prow:hover .go { color: var(--s-accent); transform: translateX(3px); }
.empty { padding: 24px 6px; color: var(--s-muted); }

/* case study */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--s-accent); text-decoration: none; margin-bottom: 14px; }
.cmeta { color: var(--s-muted); font-size: 14px; margin: 10px 0 0; }
.ctas { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.nda { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--s-muted); border: 1px dashed var(--s-line); border-radius: 10px; padding: 9px 12px; margin-top: 16px; max-width: 62ch; }
.nda svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--s-accent); }
.cover { position: relative; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; max-width: 100%; display: grid; place-items: center; color: var(--art-ink); font-family: var(--f-mono); font-size: 12px; text-align: center; padding: 16px; }
.jump { display: flex; gap: 6px; flex-wrap: wrap; }
.jump button { border: 1px solid var(--s-line); background: var(--s-bg); color: var(--s-fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 36px; }
.star { display: grid; gap: 40px; }
.star h2 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: -.01em; scroll-margin-top: 120px; }
.star h2 span { color: var(--s-dim); margin-right: 6px; }
.star h2 em { font-style: normal; color: var(--s-accent); }
.star p { margin: 0 0 12px; max-width: 64ch; }
.star p b { font-weight: 600; }
.star .support { color: var(--s-muted); }
.slot { display: flex; gap: 8px; align-items: flex-start; border: 1.5px dashed color-mix(in srgb, var(--s-accent) 55%, transparent); border-radius: 12px; padding: 9px 12px;
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.45; color: var(--s-accent); margin: -4px 0 16px; max-width: 64ch; background: color-mix(in srgb, var(--s-accent) 6%, transparent); }
.slot::before { content: "IMG"; font-weight: 500; padding: 0 5px; border-radius: 4px; background: var(--s-accent); color: var(--s-accent-ink); font-size: 10px; flex: none; margin-top: 1px; }
.device[data-notes="off"] .slot { display: none; }
.pipe { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; counter-reset: p; max-width: 760px; }
.pipe li { border: 1px solid var(--s-line); border-radius: 12px; padding: 10px 12px; background: color-mix(in srgb, var(--s-surface) 70%, transparent); counter-increment: p; display: grid; gap: 2px; align-content: start; }
.pipe li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--s-dim); }
.pipe li b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.pipe li span { font-size: 12px; color: var(--s-muted); }
.pipe li.me { border-color: var(--s-accent); }
.pipe li.me span { color: var(--s-accent); }
.quote { margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--s-accent); background: color-mix(in srgb, var(--s-surface) 70%, transparent); border-radius: 0 12px 12px 0; max-width: 62ch; }
.quote p { margin: 0; font-style: italic; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--s-muted); }
.revisit { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--s-line); border-radius: 14px; max-width: 68ch; background: color-mix(in srgb, var(--s-surface) 55%, transparent); }
.revisit h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 17px; color: var(--s-accent); }
.revisit p:last-child { margin-bottom: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--s-line); padding-top: 20px; }
.pn a { text-decoration: none; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--s-line); display: grid; gap: 2px; min-height: 64px; }
.pn a small { color: var(--s-muted); font-size: 12px; }
.pn a b { font-family: var(--f-display); font-size: 16px; }
.pn a:last-child { text-align: right; }
.pn a:hover { border-color: var(--s-accent); }

/* media */
.avatar img, .card img.art, .thumb img, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar { position: relative; overflow: hidden; }
.cover.has-img { padding: 0; background: #07050c !important; }
.cover.fit img { object-fit: contain; }
.sumline { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; color: var(--s-accent); margin: 14px 0 0; max-width: 70ch; }
.media { margin: 2px 0 20px; display: grid; gap: 8px; justify-items: start; max-width: 760px; }
.media .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; width: 100%; }
.media img, .media video { display: block; border-radius: 12px; border: 1px solid var(--s-line); background: #000; max-width: 100%; height: auto; }
.media .wide { width: 100%; }
.media .row.pair .wide { width: calc(50% - 5px); }
.media .phone { width: 220px; }
.media .row.pair .phone + .wide { width: calc(100% - 230px); }
.media figcaption { font-size: 12.5px; color: var(--s-muted); }
.about-p { max-width: 64ch; margin: 18px 0 0; color: var(--s-muted); }
.chip.link { cursor: pointer; text-decoration: none; }
.chip.link:hover { background: color-mix(in srgb, var(--s-accent) 12%, transparent); }
.flags { display: inline-flex; gap: 4px; align-items: center; padding: 6px 8px !important; }
.flags svg { width: 22px; height: 15px; border-radius: 3px; display: block; opacity: .35; filter: grayscale(.7); transition: opacity .2s, filter .2s; }
.flags svg.on { opacity: 1; filter: none; box-shadow: 0 0 0 1.5px var(--s-accent); }
.recs { display: grid; gap: 12px; }
.rec { margin: 0; padding: 16px 18px; border: 1px solid var(--s-line); border-radius: 14px; background: color-mix(in srgb, var(--s-surface) 70%, transparent); display: grid; gap: 12px; max-width: 680px; }
.rec p { margin: 0; font-style: italic; }
.rec footer { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--s-muted); }
.rec footer b { color: var(--s-fg); font-weight: 600; display: block; }
.rec .ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--s-accent) 18%, transparent); color: var(--s-accent); font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.recs-more { font-size: 13.5px; font-weight: 600; color: var(--s-accent); text-decoration: none; }

/* vertical video embed (YouTube Short) */
.yt { width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 1px solid var(--s-line); background: #000; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

/* gallery carousel */
.car { position: relative; --ch: 420px; min-width: 0; max-width: 100%; }
.view > * { min-width: 0; }
.car-track { display: flex; align-items: center; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; border-radius: 14px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track img { flex: none; width: auto; height: auto; max-width: 92%; max-height: min(var(--ch), var(--h)); border-radius: 12px; border: 1px solid var(--s-line); scroll-snap-align: start; background: var(--s-surface); }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--s-line); background: color-mix(in srgb, var(--s-bg) 82%, transparent); color: var(--s-fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.car-btn svg { width: 18px; height: 18px; }
.car-btn.prev { left: 8px; } .car-btn.next { right: 8px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-btn:hover { border-color: var(--s-accent); color: var(--s-accent); }
.thumb img { background: var(--s-surface); }

/* contact */
.contact-list { display: grid; gap: 10px; max-width: 520px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--s-line); background: color-mix(in srgb, var(--s-surface) 70%, transparent); }
.crow small { display: block; color: var(--s-muted); font-size: 12px; }
.crow b { font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.crow .btn { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }

/* bottom tab bar */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); padding-top: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--s-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--s-line);
  grid-template-columns: repeat(3, 1fr); }
.device[data-narrow="1"] .tabbar { display: grid; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; min-height: 52px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--s-muted); border-radius: 12px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--s-accent); }

@container site (max-width: 860px) {
  .site-head { display: flex; align-items: center; gap: 10px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-block: 10px;
    background: color-mix(in srgb, var(--s-bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--s-line); }
  .site-head .mini { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
  .site-head b { font-family: var(--f-display); font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-head .langbtn { min-width: 44px; min-height: 36px; border: 1px solid var(--s-line); border-radius: 999px; font-size: 12px; color: var(--s-fg); padding: 6px 10px; }
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-block: 26px 110px; }
  .pillnav, .profile { display: none; }
  main { grid-column: 1; }
  .mprofile { display: grid; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--s-line); border-radius: 16px; background: color-mix(in srgb, var(--s-surface) 75%, transparent); }
  .mprofile .row2 { display: flex; gap: 8px; flex-wrap: wrap; }
  .mprofile .btn { flex: 1; }
  .view { gap: 44px; }
  .hx { font-size: clamp(40px, 13cqi, 64px); }
  .hx.sm { font-size: clamp(28px, 8.6cqi, 48px); }
  .lead { font-size: 16px; }
  .fan { overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 12px 18px 16px; margin-inline: -18px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .card { width: 74%; max-width: 260px; scroll-snap-align: center; }
  .card + .card { margin-left: 0; }
  .card:nth-child(n) { transform: none; }
  .card:hover, .card:focus-visible, .card.is-active { transform: none; box-shadow: 0 18px 34px -16px rgba(0,0,0,.55); }
  .fdots { display: flex; }
  .detail { min-height: 0; }
  .facts { margin-top: -16px; gap: 6px 18px; }
  .filters, .jump { position: sticky; top: calc(var(--head-h) - 1px); z-index: 5; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 10px 18px;
    background: color-mix(in srgb, var(--s-bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .filters::-webkit-scrollbar, .jump::-webkit-scrollbar { display: none; }
  .filters button { min-height: 38px; }
  .jump button.on { border-color: var(--s-accent); color: var(--s-accent); }
  .prow { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; padding: 14px 0; }
  .thumb { width: 64px; aspect-ratio: 1; font-size: 17px; }
  .prow h3 { font-size: 17px; }
  .prow p { font-size: 13.5px; margin: 4px 0 0; }
  .prow .tags { display: none; }
  .back { min-height: 40px; }
  .cover { aspect-ratio: 4 / 3; }
  .star h2 { font-size: 23px; }
  .ctas .btn { flex: 1 1 100%; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pn { grid-template-columns: 1fr; }
  .pn a:last-child { text-align: left; }
  .crow .btn { min-height: 44px; }
  .media .phone { width: 46%; max-width: 220px; }
  .car { --ch: 340px; margin-inline: -18px; }
  .car-track { padding-inline: 18px; scroll-padding-inline: 18px; border-radius: 0; }
  .car-btn { display: none; }
  .media .row.pair .wide, .media .row.pair .phone + .wide { width: 100%; }
}

html, body { margin: 0; }
body { background: #110c19; }
body::before { display: none; }
.device { min-height: 100vh; }
