/* Portfolio — layout and sizes follow the Sidewise reference (left sidebar, window, shell → panel → strip). */
:root {
  --bg: #0a0a0a; --window: #0c0c0c; --shell: #141414; --shell-hover: #181818; --panel: #1a1a1a;
  --raised: #242424; --placeholder: #242424; --border: #ffffff0f;
  --t1: #fafafa; --t2: #a1a1a1; --t3: #8a8a8a; --muted: #8a8a8a;
  --brand: #dc9058; --accent-subtle: #3d2a24; --accent-border: #ff943d33; --ok: #22c55e;
  --btn: #fff; --btn-t: #0a0a0a; --icon-filter: none;

  --fs-m: .9375rem; --fs-s: .8125rem; --fs-xs: .75rem; --fs-l: 1.0625rem; --fs-quote: 1.125rem;
  --h1: 3.5rem; --lh-h1: 1.02; --h2: 2rem; --h3: 1.25rem; --metric: 2rem;
  --page-top: 1rem; --outer: 1rem; --side-off: 18.25rem;
  --win-pad: 2rem; --sec-gap: 6.25rem; --hero-pv: 3rem; --hero-ph: 3rem; --panel-l: 2rem;
  --r-win: 1.5rem; --r-shell: 1.25rem; --r-panel: 1rem; --r-s: .625rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #efede8; --window: #f4f2ee; --shell: #e7e4de; --shell-hover: #ece9e4; --panel: #faf9f6;
  --raised: #f0eee9; --placeholder: #e2dfd8; --border: #281e0f14;
  --t1: #1a1815; --t2: #57534c; --t3: #67635b; --muted: #868178;
  --brand: #9a5222; --accent-subtle: #fbede3; --accent-border: #dc782840;
  --btn: #1a1815; --btn-t: #faf9f6;
  color-scheme: light;
}
@media (max-width: 991px) {
  :root { --h1: 3rem; --page-top: 6rem; --win-pad: 1rem; --sec-gap: 5rem; --hero-pv: 2rem; --hero-ph: 1.5rem; }
}
@media (max-width: 767px) {
  :root { --h1: 2.5rem; --lh-h1: 1.05; --h2: 1.625rem; --metric: 1.625rem; --fs-quote: 1.0625rem;
    --page-top: 5rem; --outer: .5rem; --win-pad: 0rem; --sec-gap: 4.0625rem; --hero-pv: 1.5rem; --hero-ph: 1.5rem; --panel-l: 1.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 var(--fs-m)/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Page / window ───────────────────────── */
.page-wrapper { min-height: 100vh; padding: var(--page-top) var(--outer) var(--outer) var(--side-off); background: var(--bg); position: relative; }
.window { padding: var(--win-pad); border: 1px solid var(--border); border-radius: var(--r-win); background: var(--window); display: flex; flex-direction: column; gap: var(--sec-gap); }
.main-wrapper { display: flex; flex-direction: column; gap: var(--sec-gap); min-height: 85vh; overflow: clip; }
.section { width: 100%; display: flex; flex-direction: column; align-items: center; }
.container { width: 100%; max-width: 100rem; display: flex; flex-direction: column; gap: 1.5rem; }
.shell { padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; }
.panel { border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); overflow: clip; }

/* ── Buttons ─────────────────────────────── */
.button { height: 2.5rem; padding: 0 1rem; gap: .5rem; border-radius: var(--r-s); background: var(--btn); color: var(--btn-t); font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; white-space: nowrap; flex: none; display: inline-flex; align-items: center; justify-content: center; transition: opacity .2s, background-color .2s, color .2s; position: relative; overflow: clip; }
.button:hover { opacity: .86; }
.button.is-secondary { background: var(--raised); color: var(--t1); }
.button.is-secondary:hover { opacity: 1; background: var(--shell-hover); outline: 1px solid var(--border); outline-offset: -1px; }
.button.is-ghost { padding: 0 .75rem; background: transparent; color: var(--t2); }
.button.is-ghost:hover { opacity: 1; color: var(--t1); }
.button .arrow { transition: transform .2s; }
.button:hover .arrow { transform: rotate(45deg); }
.button.is-block { width: 100%; }

/* ── Status ──────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--t2); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: none; position: relative; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

/* ── Navigation (sidebar) ────────────────── */
.navigation { position: fixed; top: 0; left: 1rem; z-index: 50; width: 16.25rem; height: 100vh; padding: 1rem 0; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; scrollbar-width: none; }
.navigation::-webkit-scrollbar { display: none; }
.nav-group { padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; flex-shrink: 0; }
.nav-profile-panel { padding: .75rem; gap: .75rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; align-items: center; overflow: clip; }
.nav-identity { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: auto; }
.nav-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex: none; }
.nav-avatar.is-mono { display: grid; place-items: center; background: linear-gradient(140deg, #e6a26c, #b4612b 55%, #5d2e14); color: #fff; font-weight: 500; font-size: 1rem; }
.nav-identity-copy { display: flex; flex-direction: column; min-width: 0; flex: auto; }
.nav-name { font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; color: var(--t1); }
.nav-role { font-size: var(--fs-s); line-height: 1.45; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-bar-status, .nav-bar-actions { display: none; }
.nav-status-strip { min-height: 2rem; padding: 0 .75rem; display: flex; align-items: center; }
.nav-menu { display: flex; flex-direction: column; gap: .5rem; flex: auto; min-height: 0; }
.nav-links { display: flex; flex-direction: column; gap: .5rem; flex: auto; min-height: 0; overflow: hidden auto; border-radius: var(--r-shell); scrollbar-width: none; }
.nav-group-label, .nav-theme-row { min-height: 2rem; padding: 0 .75rem; color: var(--t2); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; display: flex; align-items: center; }
.nav-theme-row { justify-content: space-between; }
.nav-panel { padding: .25rem; gap: .25rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.nav-item { width: 100%; height: 36px; padding: 0 .75rem; gap: .75rem; border-radius: var(--r-s); color: var(--t2); font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; display: flex; align-items: center; transition: color .2s, background-color .2s; }
.nav-item:hover, .nav-item.is-current { background: var(--raised); color: var(--t1); }
.nav-item .ic { opacity: .67; }
.nav-item.is-current .ic { opacity: 1; }
.nav-item-label { flex: auto; white-space: nowrap; }
.nav-item .ext { width: 14px; height: 14px; color: var(--t3); opacity: 1; }
.theme-toggle, .lang-toggle { display: flex; align-items: center; padding: 2px; border-radius: var(--r-s); background: var(--raised); outline: 1px solid var(--border); outline-offset: -1px; }
.theme-option, .lang-option { width: 32px; height: 22px; border-radius: 8px; color: var(--t3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; letter-spacing: .02em; transition: color .2s, background-color .2s; }
.theme-option .ic { width: 14px; height: 14px; }
.theme-option:hover, .lang-option:hover { color: var(--t1); }
.theme-option.is-active, .lang-option.is-active { background: var(--panel); color: var(--t1); outline: 1px solid var(--border); outline-offset: -1px; }
.nav-field { height: 40px; padding: 0 8px 0 12px; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--raised); color: var(--t2); display: flex; align-items: center; font-size: 13px; }
.nav-field span { flex: auto; }
.nav-menu-button { width: 40px; height: 40px; border-radius: var(--r-s); background: var(--raised); color: var(--t1); flex: none; position: relative; }
.nav-menu-button i { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s; }
.nav-menu-button i:nth-child(1) { top: 14px; }
.nav-menu-button i:nth-child(2) { top: 19.25px; }
.nav-menu-button i:nth-child(3) { top: 24.5px; }
.menu-open .nav-menu-button i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-open .nav-menu-button i:nth-child(2) { opacity: 0; }
.menu-open .nav-menu-button i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
.nav-scrim { display: none; }

/* ── Hero ────────────────────────────────── */
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: .25rem; width: 100%; }
.hero-row.is-half { grid-template-columns: 1fr 1fr; }
.hero-copy { min-height: 480px; padding: var(--hero-pv) var(--hero-ph); gap: 2rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: clip; }
.hero-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero-title, .detail-title, .page-header-title, .page-header-title-muted { font-size: var(--h1); line-height: var(--lh-h1); font-weight: 400; letter-spacing: -.035em; color: var(--t1); text-wrap: pretty; }
.hero-title-muted, .page-header-title-muted { color: var(--muted); display: block; }
.hero-text, .detail-summary, .page-header-text { max-width: 28.125rem; color: var(--t2); font-size: var(--fs-l); line-height: 1.5; letter-spacing: -.01em; text-wrap: balance; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hero-portrait { min-width: 200px; min-height: 480px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--placeholder); position: relative; overflow: clip; }
.hero-portrait > img, .hero-portrait > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 60% at 30% 20%, #dc905833, transparent), var(--placeholder); }
.portrait-mono span { width: 96px; height: 96px; border-radius: 999px; display: grid; place-items: center; font-size: 40px; color: #fff; background: linear-gradient(140deg, #e6a26c, #b4612b 55%, #5d2e14); }
.announcement { height: 2rem; max-width: 100%; padding: 0 .75rem 0 .25rem; gap: .5rem; border-radius: 999px; background: var(--accent-subtle); outline: 1px solid var(--accent-border); outline-offset: -1px; color: var(--brand); display: inline-flex; align-items: center; transition: filter .2s; }
.announcement:hover { filter: brightness(1.1); }
.announcement-tag { height: 1.5rem; padding: 0 .5rem; border-radius: 999px; outline: 1px solid var(--accent-border); outline-offset: -1px; font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; display: flex; align-items: center; white-space: nowrap; }
.announcement-text { font-size: var(--fs-s); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.announcement .ic { width: 14px; height: 14px; }

/* ── Metric cards / logo row ─────────────── */
.hero-stats, .detail-metrics { display: flex; gap: .25rem; width: 100%; }
.metric-card { width: 100%; padding: 1rem; gap: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; min-width: 0; }
.metric-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--t3); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; }
.metric-card-top .ic { width: 18px; height: 18px; opacity: .62; }
.metric-card-body { display: flex; flex-direction: column; gap: .25rem; }
.metric-card-value { color: var(--t1); font-size: var(--metric); line-height: 1; letter-spacing: -.035em; }
.metric-card-caption { color: var(--t2); font-size: var(--fs-s); line-height: 1.45; }
.logo-row { width: 100%; padding: .75rem; gap: 1rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; align-items: center; overflow: clip; }
.logo-row-label { height: 2rem; padding: 0 .75rem; border-radius: 999px; background: var(--raised); color: var(--t2); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; white-space: nowrap; flex: none; display: flex; align-items: center; }
.logo-ticker { flex: auto; min-width: 0; display: flex; overflow: clip; -webkit-mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000); mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000); }
.logo-track { flex: none; display: flex; align-items: center; gap: 3rem; padding-right: 3rem; animation: ticker 28s linear infinite; }
.logo-item { flex: none; height: 25px; display: flex; align-items: center; color: var(--t2); opacity: .75; font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ── Section head ────────────────────────── */
.section-head { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.section-head-copy { display: flex; flex-direction: column; gap: .5rem; flex: auto; max-width: 35rem; }
.section-head-title { color: var(--t1); font-size: var(--h2); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.section-head-text { max-width: 28.125rem; color: var(--t2); font-size: var(--fs-m); line-height: 1.55; letter-spacing: -.005em; text-wrap: balance; }
.section-head-action { flex: none; display: flex; }

/* ── Project cards ───────────────────────── */
.work-feature-grid { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card-stack { display: flex; flex-direction: column; gap: .25rem; }
.project-card { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); color: var(--t1); display: flex; flex-direction: column; position: relative; overflow: clip; transition: background-color .2s; }
.project-card:hover { background: var(--shell-hover); }
.project-card.is-feature { justify-content: flex-end; min-height: 100%; }
.project-card-media { aspect-ratio: 4 / 3; width: 100%; flex: none; background: var(--placeholder); position: relative; overflow: clip; }
.project-card.is-feature .project-card-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.project-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.project-card:hover .project-card-image { transform: scale(1.04); }
.project-card-metric-slot { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; }
.project-card-badge-slot { position: absolute; z-index: 1; top: 12px; right: 12px; display: flex; }
.project-card-metric-slot { max-width: calc(100% - 120px); }
.card-metric { max-width: 100%; overflow: hidden; height: 28px; padding: 0 .75rem; gap: .25rem; border-radius: 999px; background: var(--panel); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; white-space: nowrap; display: inline-flex; align-items: center; }
.pill-accent-label { color: var(--brand); }
.pill-accent-text { color: var(--t2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-badge { height: 1.5rem; padding: 0 .5rem; gap: .375rem; border-radius: 999px; background: var(--accent-subtle); color: var(--brand); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; white-space: nowrap; display: inline-flex; align-items: center; }
.card-badge .ic { width: 10px; height: 10px; }
.project-card-strip { min-height: 56px; padding: 1rem; gap: .5rem; display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.project-card.is-feature .project-card-strip { background: var(--panel); }
.project-card.is-feature:hover .project-card-strip { background: var(--shell-hover); }
.project-card-text { display: flex; flex-direction: column; gap: .25rem; flex: auto; min-width: 0; }
.project-card-title-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; }
.project-card-title { color: var(--t1); font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; }
.project-card-dot, .project-card-category { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; }
.project-card-summary { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card-meta { padding-left: .5rem; gap: .5rem; color: var(--t3); font-size: var(--fs-s); line-height: 1.45; flex: none; display: flex; align-items: center; white-space: nowrap; }
.project-card-meta .ic { width: 14px; height: 14px; transition: transform .2s, color .2s; }
.project-card:hover .project-card-meta .ic { transform: rotate(45deg); color: var(--t1); }
.projects-grid { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: grid; grid-template-columns: 1fr 1fr; }
.projects-grid.is-three { grid-template-columns: repeat(3, 1fr); }
.projects-grid .card-item[hidden] { display: none; }
/* list view */
.projects-grid.is-list { grid-template-columns: 1fr; }
.projects-grid.is-list .project-card { flex-direction: row; align-items: center; gap: 1rem; padding: .5rem 20px .5rem .5rem; }
.projects-grid.is-list .project-card-media { aspect-ratio: auto; width: 64px; height: 48px; border-radius: var(--r-s); }
.projects-grid.is-list .project-card-metric-slot, .projects-grid.is-list .project-card-badge-slot { display: none; }
.projects-grid.is-list .project-card-strip { flex: auto; align-items: center; min-height: 0; padding: 0; }
.card-item { display: flex; flex-direction: column; min-width: 0; }

/* video in cards */
.play-badge { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 999px; background: #ffffffeb; color: #0a0a0a; display: grid; place-items: center; transition: transform .2s; }
.play-badge .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.project-card:hover .play-badge { transform: scale(1.08); }

/* ── Service cards ───────────────────────── */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .25rem; }
.service-card { width: 100%; height: 100%; padding-bottom: 48px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); color: var(--t1); display: flex; flex-direction: column; position: relative; overflow: clip; transition: background-color .2s; }
.service-card:hover { background: var(--shell-hover); }
.service-card-panel { padding: 1.5rem; gap: .75rem; display: flex; flex-direction: column; flex: auto; }
.icon-box { width: 40px; height: 40px; border-radius: var(--r-s); background: var(--raised); outline: 1px solid var(--border); outline-offset: -1px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--t1); }
.icon-box .ic { width: 20px; height: 20px; }
.service-card-title { color: var(--t1); font-size: var(--h3); line-height: 1.25; font-weight: 400; letter-spacing: -.015em; }
.service-card-summary { max-width: 28.125rem; color: var(--t2); font-size: var(--fs-m); line-height: 1.55; letter-spacing: -.005em; text-wrap: balance; }
.service-card-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; padding: 0 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.service-card-price { color: var(--t1); font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; }
.service-card-view { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; display: flex; align-items: center; gap: .5rem; transition: color .2s; white-space: nowrap; }
.service-card-view .ic { width: 14px; height: 14px; transition: transform .2s; }
.service-card:hover .service-card-view { color: var(--t1); }
.service-card:hover .service-card-view .ic { transform: rotate(45deg); }
.service-card-tile-arrow, .service-card-tile-text { display: none; }
.service-card-tile-arrow { position: absolute; top: 12px; right: 12px; color: var(--t3); }
.service-card-tile-text { flex-direction: column; gap: .125rem; }
.service-card-tile-title { color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; }
.service-card-tile-price { color: var(--t2); font-size: var(--fs-s); line-height: 1.45; }

/* ── Testimonial-style ticker ────────────── */
.kind-words-head { width: 100%; padding-right: 1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.rating-summary { display: flex; align-items: center; gap: .75rem; white-space: nowrap; flex: none; }
.rating-score-row { display: flex; align-items: center; gap: .25rem; color: var(--t1); font-size: var(--fs-m); line-height: 1.3; }
.rating-score-row .ic { width: 13px; height: 13px; fill: var(--brand); stroke: none; }
.rating-label { color: var(--t3); font-size: var(--fs-xs); line-height: 1.3; }
.testimonial-shell { width: 100%; padding: .25rem 0; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; overflow: clip; }
.testimonial-ticker { padding: 0 .25rem; display: flex; overflow: clip; -webkit-mask-image: linear-gradient(90deg, #0000, #000 3% 97%, #0000); mask-image: linear-gradient(90deg, #0000, #000 3% 97%, #0000); }
.testimonial-track { flex: none; display: flex; gap: .25rem; padding-right: .25rem; animation: ticker 60s linear infinite; }
.testimonial-ticker:hover .testimonial-track { animation-play-state: paused; }
.testimonial-card { width: 340px; flex: none; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; position: relative; overflow: clip; }
.testimonial-panel { min-height: 224px; padding: 1.5rem; gap: 1rem; display: flex; flex-direction: column; flex: auto; }
.testimonial-icon { color: var(--t3); }
.testimonial-icon .ic { width: 20px; height: 20px; }
.testimonial-index { color: var(--brand); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; }
.testimonial-quote { color: var(--t1); font-size: var(--fs-quote); line-height: 1.45; letter-spacing: -.01em; }
.testimonial-strip { min-height: 52px; padding: 0 1.5rem 1.5rem; display: flex; align-items: center; gap: .75rem; }
.testimonial-person { display: flex; flex-direction: column; flex: auto; }
.testimonial-name { color: var(--t1); font-size: var(--fs-s); line-height: 1.3; }
.testimonial-role { color: var(--t3); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; }

/* ── Store-like cards (3 cols) ───────────── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.card-scroll-item { display: flex; flex-direction: column; min-width: 0; }
.product-card { width: 100%; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); color: var(--t1); display: flex; flex-direction: column; position: relative; overflow: clip; transition: background-color .2s; }
.product-card:hover { background: var(--shell-hover); }
.product-card-media { aspect-ratio: 4 / 3; width: 100%; background: var(--placeholder); position: relative; overflow: clip; }
.product-card-media img, .product-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.product-card:hover .product-card-media img, .product-card:hover .product-card-media video { transform: scale(1.04); filter: brightness(1.04); }
.card-platform { height: 1.5rem; padding: 0 .5rem; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--t2); font-size: var(--fs-xs); line-height: 1.3; white-space: nowrap; display: inline-flex; align-items: center; }
.card-platform .ic { width: 12px; height: 12px; }
.product-card-strip { min-height: 56px; padding: 1rem; gap: .5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.product-card-title { color: var(--t1); font-size: var(--fs-m); line-height: 1.3; letter-spacing: -.005em; }
.product-card-type { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; display: flex; gap: .375rem; flex-wrap: wrap; }
.product-card-price { color: var(--t1); font-size: var(--fs-m); line-height: 1.3; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.product-card-view { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; }

/* ── Article-style rows (task → solution) ── */
.card-stack.is-rows { gap: .25rem; }
.article-row { min-height: 64px; padding: .5rem 20px .5rem .5rem; gap: 1rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); color: var(--t1); display: flex; align-items: center; transition: background-color .2s; }
.article-row:hover { background: var(--shell-hover); }
.article-row-thumb { width: 64px; height: 48px; border-radius: var(--r-s); background: var(--raised); flex: none; display: grid; place-items: center; color: var(--t2); position: relative; overflow: clip; }
.article-row-thumb .ic { width: 20px; height: 20px; }
.article-row-body { display: flex; align-items: center; gap: 1rem; flex: auto; min-width: 0; }
.article-row-title { color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; flex: 1 1 0; min-width: 0; }
.article-row-solution { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; flex: 1.15 1 0; min-width: 0; }
@media (max-width: 1199px) { .article-row-body .pill { display: none; } }
.pill { height: 1.5rem; padding: 0 .5rem; border: 1px solid var(--border); border-radius: 999px; color: var(--t2); font-size: var(--fs-xs); line-height: 1.3; white-space: nowrap; display: inline-flex; align-items: center; flex: none; }
.article-row > .ic { width: 16px; height: 16px; color: var(--t3); transition: transform .2s, color .2s; }
.article-row:hover > .ic { transform: rotate(45deg); color: var(--t1); }

/* ── Footer / CTA ────────────────────────── */
.footer { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; }
.cta-newsletter { display: grid; grid-template-columns: 7fr 5fr; gap: .25rem; width: 100%; }
.cta-card { border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.cta-body { min-height: 256px; padding: var(--panel-l); gap: 2rem; display: flex; flex-direction: column; justify-content: space-between; flex: auto; }
.cta-copy { display: flex; flex-direction: column; gap: .75rem; }
.cta-title { color: var(--t1); font-size: var(--h2); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.cta-subtitle { color: var(--t1); font-size: var(--h3); line-height: 1.25; font-weight: 400; letter-spacing: -.015em; }
.cta-text { max-width: 28.125rem; color: var(--t2); font-size: var(--fs-m); line-height: 1.55; letter-spacing: -.005em; text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cta-strip { padding: 1rem var(--panel-l); gap: .25rem .75rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.cta-note { color: var(--t3); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; }
.plat-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.plat-chip { height: 2rem; padding: 0 .75rem; gap: .375rem; border-radius: 999px; background: var(--raised); color: var(--t1); font-size: var(--fs-s); display: inline-flex; align-items: center; transition: background-color .2s; }
.plat-chip:hover { background: var(--shell-hover); outline: 1px solid var(--border); outline-offset: -1px; }
.plat-chip .ic { width: 12px; height: 12px; color: var(--t3); }
.footer-panel { min-height: 56px; padding: .75rem 1rem; gap: .75rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; overflow: clip; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--t3); font-size: var(--fs-s); line-height: 1.45; }
.footer-link { color: var(--t3); transition: color .2s; }
.footer-link:hover { color: var(--t1); }
.footer-social { display: flex; align-items: center; gap: .25rem; }
.footer-icon-link { width: 32px; height: 32px; border-radius: var(--r-s); color: var(--t2); display: flex; align-items: center; justify-content: center; transition: color .2s, background-color .2s, transform .2s; }
.footer-icon-link:hover { background: var(--raised); color: var(--t1); transform: scale(1.1); }
.footer-icon-link.is-outline { outline: 1px solid var(--border); outline-offset: -1px; }

/* ── Inner pages ─────────────────────────── */
.page-header { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; }
.page-header-panel { padding: var(--hero-pv) var(--hero-ph); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.page-header-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 40rem; }
.page-header-title { text-wrap: balance; }
.work-toolbar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.filter-bar, .view-toggle { padding: .25rem; gap: .25rem; border-radius: 999px; background: var(--shell); display: flex; align-items: center; max-width: 100%; }
.view-toggle { flex: none; }
.filter-tab { height: 2rem; padding: 0 .75rem; border-radius: 999px; color: var(--t2); font-size: var(--fs-s); line-height: 1.45; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: .375rem; transition: color .2s, background-color .2s; }
.filter-tab:hover { color: var(--t1); }
.filter-tab.is-active { background: var(--panel); color: var(--t1); outline: 1px solid var(--border); outline-offset: -1px; }
.filter-tab small { color: var(--t3); font-size: 11px; }
.detail-row-grid { display: grid; grid-template-columns: 2fr 1fr; gap: .25rem; width: 100%; }
.detail-copy { min-height: 400px; padding: 48px; gap: 2rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: clip; }
.detail-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
.back-link { height: 1.5rem; gap: .5rem; color: var(--t2); font-size: var(--fs-s); line-height: 1.3; display: inline-flex; align-items: center; transition: color .2s; }
.back-link:hover { color: var(--t1); }
.back-link .ic { width: 14px; height: 14px; }
.detail-panel { min-width: 220px; min-height: 400px; padding: 16px 24px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.detail-row { min-height: 48px; gap: 1rem; border-top: 1px solid var(--border); color: var(--t3); font-size: var(--fs-s); line-height: 1.45; display: flex; justify-content: space-between; align-items: center; }
.detail-row:first-child { border-top-width: 0; }
.detail-row-label { white-space: nowrap; }
.detail-row-value { color: var(--t1); text-align: right; flex: auto; overflow-wrap: anywhere; }
a.detail-row-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.inline-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.inline-link { color: var(--t1); font-size: var(--fs-s); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t3); }
.detail-cover { aspect-ratio: 2; width: 100%; border-radius: var(--r-panel); background: var(--placeholder); position: relative; overflow: clip; }
.detail-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.detail-cover.is-contain > img { object-fit: contain; object-position: center; padding: 1rem; }
.detail-cover.is-video { aspect-ratio: 16 / 9; background: #000; }
.detail-cover.is-video.is-vertical { aspect-ratio: auto; display: flex; justify-content: center; padding: 1rem; background: var(--placeholder); }
.detail-cover video { width: 100%; height: 100%; display: block; }
.detail-cover.is-vertical video { width: auto; height: min(78vh, 760px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-s); background: #000; }
.story-steps { display: flex; flex-direction: column; gap: .25rem; width: 100%; margin-top: 8px; }
.story-step { padding: 32px; gap: 48px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; align-items: flex-start; overflow: clip; }
.story-step-label { display: flex; flex-direction: column; gap: .75rem; flex: 1 1 0; }
.story-step-index { color: var(--brand); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; }
.story-step-title { color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; font-weight: 400; }
.story-step-body { flex: 2 1 0; max-width: 40rem; display: flex; flex-direction: column; gap: 1rem; }
.rich-p { color: var(--t2); font-size: var(--fs-l); line-height: 1.5; letter-spacing: -.01em; }
.gallery { display: flex; flex-direction: column; gap: .25rem; width: 100%; }
.gallery-row { display: flex; gap: .25rem; }
.gallery-media { aspect-ratio: 12 / 5; flex: 1 1 0; width: 100%; border-radius: var(--r-panel); background: var(--placeholder); position: relative; overflow: clip; }
.gallery-media.is-half { aspect-ratio: 3 / 2; }
.gallery-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gallery-media.is-contain img { object-fit: contain; object-position: center; padding: 1rem; }
.sub-card { height: 100%; padding: 24px; gap: .75rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; overflow: clip; }
.sub-card-title { color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; font-weight: 400; text-wrap: balance; }
.sub-card-text { max-width: 28.125rem; color: var(--t2); font-size: var(--fs-m); line-height: 1.55; letter-spacing: -.005em; text-wrap: balance; }
.sub-card .icon-box.is-accent { background: var(--accent-subtle); color: var(--brand); outline-color: var(--accent-border); }
.clients-grid { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: grid; grid-template-columns: repeat(4, 1fr); }
.client-logo { height: 112px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; overflow: clip; transition: background-color .2s; }
a.client-logo:hover { background: var(--shell-hover); }
.client-logo b { font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--t2); }
.client-logo small { color: var(--t3); font-size: var(--fs-xs); }
.timeline-shell { width: 100%; padding: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; gap: .25rem; }
.timeline-row { min-height: 72px; padding: 12px 24px; gap: 1rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; align-items: center; }
.timeline-body { display: flex; align-items: center; gap: 1rem; flex: auto; min-width: 0; }
.timeline-meta { width: 140px; flex: none; color: var(--brand); font-size: var(--fs-s); line-height: 1.45; }
.timeline-text { display: flex; flex-direction: column; gap: 2px; flex: auto; min-width: 0; }
.timeline-title { color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; font-weight: 400; }
.timeline-desc { color: var(--t3); font-size: var(--fs-s); line-height: 1.45; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: .75rem; width: 100%; }
.contact-form-shell, .side-card { padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; }
.contact-panel { padding: 32px; gap: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.contact-panel h2 { font-size: var(--h3); font-weight: 400; letter-spacing: -.015em; line-height: 1.25; }
.contact-panel p { color: var(--t2); }
.contact-links { display: flex; flex-direction: column; gap: .25rem; }
.contact-link { height: 52px; padding: 0 1rem; gap: .75rem; border-radius: var(--r-s); background: var(--raised); display: flex; align-items: center; transition: background-color .2s; }
.contact-link:hover { background: var(--shell-hover); outline: 1px solid var(--border); outline-offset: -1px; }
.contact-link span { flex: auto; }
.contact-link small { color: var(--t3); font-size: var(--fs-s); }
.contact-link .ic { color: var(--t3); }
.contact-side { display: flex; flex-direction: column; gap: .75rem; }
.side-card-strip { height: 32px; padding: 0 .75rem; color: var(--t1); font-size: var(--fs-xs); line-height: 1.3; letter-spacing: .005em; display: flex; align-items: center; }
.side-card-panel { padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.side-card-panel.is-links { padding: .25rem; gap: .25rem; }
.faq-list { width: 100%; padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); display: flex; flex-direction: column; }
.faq-item { padding: 0 24px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); display: flex; flex-direction: column; overflow: clip; }
.faq-head { width: 100%; padding: 18px 0; gap: 1rem; display: flex; align-items: center; text-align: left; cursor: pointer; }
.faq-question { flex: auto; color: var(--t1); font-size: var(--fs-l); line-height: 1.3; letter-spacing: -.01em; font-weight: 400; }
.faq-toggle { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 999px; color: var(--t2); flex: none; display: flex; align-items: center; justify-content: center; transition: background-color .2s, transform .2s; }
.faq-toggle .ic { transition: transform .2s; }
.faq-item.is-open .faq-toggle { background: var(--raised); }
.faq-item.is-open .faq-toggle .ic { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s; }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body-inner { min-height: 0; overflow: hidden; }
.faq-answer { max-width: 35rem; padding: 0 48px 20px 0; color: var(--t2); font-size: var(--fs-m); line-height: 1.55; }

/* ── Preloader ───────────────────────────── */
.preloader { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; }
.preloading .preloader { display: block; }
.preloader-half { position: absolute; left: 0; right: 0; background: var(--bg); transition: transform .8s cubic-bezier(.7, 0, .2, 1); }
.preloader-half.is-top { top: 0; bottom: 50%; }
.preloader-half.is-bottom { top: 50%; bottom: 0; }
.preloader-line { position: absolute; left: 0; right: 0; top: calc(50% - 1px); width: 200px; height: 2px; margin: 0 auto; border-radius: 1px; background: var(--border); overflow: hidden; transition: opacity .3s; }
.preloader-fill { position: absolute; inset: 0; background: var(--t1); transform-origin: 0 50%; transform: scaleX(0); }
.preloader-count { position: absolute; left: 50%; bottom: calc(50% + 13px); width: 200px; margin-left: -100px; text-align: center; color: var(--brand); font-size: 1rem; font-weight: 500; line-height: 21px; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.preloader.is-done .preloader-half.is-top { transform: translateY(-100%); }
.preloader.is-done .preloader-half.is-bottom { transform: translateY(100%); }
.preloader.is-done .preloader-line, .preloader.is-done .preloader-count { opacity: 0; }

/* ── Reveal ──────────────────────────────── */
.reveal.pre { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.pre.is-in { opacity: 1; transform: none; }

/* ═══════════ ≤ 991px — top bar + dropdown menu ═══════════ */
@media (max-width: 991px) {
  .page-wrapper { padding-left: var(--outer); }
  .navigation { top: var(--outer); left: var(--outer); right: var(--outer); width: auto; height: auto; max-height: calc(100dvh - 2 * var(--outer)); padding: .25rem; gap: .25rem; border-radius: var(--r-shell); background: var(--shell); }
  .navigation .nav-group { padding: 0; }
  .nav-profile-panel { height: 56px; padding: 0 .5rem 0 .5rem; }
  .nav-avatar { width: 32px; height: 32px; }
  .nav-avatar.is-mono { font-size: .875rem; }
  .nav-identity-copy { gap: .25rem; }
  .nav-role { display: none; }
  .nav-bar-status, .nav-bar-actions { display: flex; }
  .nav-bar-actions { align-items: center; gap: .5rem; flex: none; }
  .nav-status-strip, .nav-group-label { display: none; }
  .nav-menu { display: none; gap: .25rem; }
  .menu-open .nav-menu { display: flex; }
  .nav-links { gap: .25rem; flex-grow: 0; overflow: visible; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: #0000008c; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .hero-row .hero-lead, .hero-title, .hero-text { max-width: none; }
  .projects-grid.is-three { grid-template-columns: 1fr 1fr; }
  .detail-copy { min-height: 0; padding: 32px 24px; }
  .detail-panel { min-height: 0; }
  .story-step { gap: 32px; padding: 24px; }
  .cta-newsletter { grid-template-columns: 1fr; }
  .cta-body { min-height: 0; }
  .contact-grid { display: flex; flex-direction: column; }
}

/* ═══════════ ≤ 767px ═══════════ */
@media (max-width: 767px) {
  .window { border-width: 0; border-radius: 0; background: var(--bg); }
  .nav-bar-cta { display: none; }
  .hero-row, .detail-row-grid { display: flex; flex-direction: column; }
  .hero-copy { min-height: 384px; gap: 1.5rem; }
  .hero-title { text-wrap: balance; }
  .hero-portrait { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats .metric-card { padding: .75rem; gap: 1rem; }
  .hero-stats .metric-card-top .ic, .hero-stats .metric-card-caption { display: none; }
  .logo-row-label { display: none; }
  .section-head, .kind-words-head { flex-direction: column; align-items: flex-start; gap: .75rem; padding-right: 0; }
  .section-head .button.is-ghost { height: 1.5rem; padding-left: 0; }
  .work-feature-grid { display: flex; flex-direction: column; }
  .project-card.is-feature { justify-content: flex-start; }
  .project-card.is-feature .project-card-media { position: relative; aspect-ratio: 4 / 3; height: auto; }
  .card-grid-2 .service-card { padding-bottom: 0; }
  .card-grid-2 .service-card-panel { padding: .75rem; gap: 20px; }
  .card-grid-2 .service-card-title, .card-grid-2 .service-card-summary, .card-grid-2 .service-card-strip { display: none; }
  .card-grid-2 .service-card-tile-arrow { display: block; }
  .card-grid-2 .service-card-tile-text { display: flex; }
  .card-grid-2.is-stack-phone { display: flex; flex-direction: column; }
  .card-grid-2.is-stack-phone .service-card { padding-bottom: 48px; }
  .card-grid-2.is-stack-phone .service-card-panel { padding: 1.5rem; gap: .75rem; }
  .card-grid-2.is-stack-phone .service-card-title, .card-grid-2.is-stack-phone .service-card-summary { display: block; }
  .card-grid-2.is-stack-phone .service-card-strip { display: flex; }
  .card-grid-2.is-stack-phone .service-card-tile-arrow, .card-grid-2.is-stack-phone .service-card-tile-text { display: none; }
  .testimonial-shell { padding: .25rem; }
  .testimonial-ticker { padding: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .testimonial-ticker::-webkit-scrollbar { display: none; }
  .testimonial-track { animation: none; }
  .testimonial-track[aria-hidden] { display: none; }
  .testimonial-card { width: 290px; scroll-snap-align: start; }
  .card-grid-3 { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .card-grid-3::-webkit-scrollbar { display: none; }
  .card-scroll-item { flex: 0 0 82%; scroll-snap-align: start; }
  .article-row { padding: .75rem; gap: .75rem; }
  .article-row-thumb { width: 56px; height: 42px; }
  .article-row-body { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .article-row-body .pill { display: none; }
  .article-row-solution { text-align: left; max-width: none; }
  .footer-panel, .cta-strip { flex-direction: column; align-items: flex-start; }
  .work-toolbar { flex-direction: column; align-items: flex-start; }
  .filter-bar { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .projects-grid, .projects-grid.is-three { display: flex; flex-direction: column; }
  .detail-copy { padding: 24px; }
  .detail-panel { padding: 8px 16px; }
  .detail-metrics { display: grid; grid-template-columns: 1fr; }
  .detail-cover { aspect-ratio: 3 / 2; }
  .detail-cover.is-video { aspect-ratio: 16 / 9; }
  .story-step { flex-direction: column; gap: 1rem; }
  .story-step-body { flex: auto; width: 100%; }
  .gallery-row { flex-direction: column; }
  .gallery-media, .gallery-media.is-half { aspect-ratio: 4 / 3; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .client-logo { height: 88px; }
  .timeline-row { align-items: flex-start; padding: 16px; gap: .75rem; }
  .timeline-body { flex-direction: column; align-items: flex-start; gap: 2px; }
  .timeline-meta { width: auto; }
  .contact-panel { padding: 24px; }
  .faq-item { padding: 0 1rem; }
  .faq-answer { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.card-stack .project-card-meta span { display: none; }

/* ═══════════ Covers — one system for cards, detail pages and galleries ═══════════ */
:root { --cover-base: #131313; --cover-tint: 38%; }
:root[data-theme="light"] { --cover-base: #e9e6e0; --cover-tint: 30%; }
.cover {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  background:
    radial-gradient(80% 70% at 85% 105%, color-mix(in srgb, var(--tone) var(--cover-tint), transparent), transparent 70%),
    radial-gradient(60% 55% at 5% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%),
    var(--cover-base);
}
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
:root[data-theme="light"] .cover::after { background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); }
.cover > *, .cv-stage > * { z-index: 1; }

/* site: browser window + phone, fitted into a centered 4:3 stage */
.cv-stage { position: absolute; left: 50%; top: 50%; width: min(100cqw, 133.333cqh); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); container-type: inline-size; }
.cv-browser { position: absolute; left: 13cqw; top: 11cqw; width: 74cqw; border-radius: 1.4cqw; overflow: hidden; background: #fff; box-shadow: 0 2.5cqw 7cqw rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.07); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cover--site.has-phone .cv-browser { left: 7cqw; top: 9cqw; }
.cv-bar { height: 3.6cqw; padding: 0 1.6cqw; gap: .8cqw; display: flex; align-items: center; background: #ededed; border-bottom: 1px solid #e0e0e0; }
.cv-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #d4d4d4; flex: none; }
.cv-bar i:nth-child(1) { background: #ff6159; } .cv-bar i:nth-child(2) { background: #ffbd2e; } .cv-bar i:nth-child(3) { background: #28c941; }
.cv-bar span { margin: 0 auto; transform: translateX(-2cqw); padding: .25cqw 3.5cqw; border-radius: .8cqw; background: #fff; color: #8a8a8a; font-size: max(7px, 1.45cqw); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.cv-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.cv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cv-screen img.is-long { transition: object-position 7s cubic-bezier(.45,0,.55,1); }
a:hover .cv-screen img.is-long { object-position: 50% 100%; }
.cv-phone { position: absolute; right: 7cqw; top: 29cqw; width: 19cqw; aspect-ratio: 9 / 19.5; padding: .75cqw; border-radius: 3cqw; background: #0b0b0b; box-shadow: 0 2.5cqw 7cqw rgba(0,0,0,.55), inset 0 0 0 .25cqw #2b2b2b; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cv-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 2.3cqw; overflow: hidden; background: #fff; }
.cv-phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
a:hover .cv-browser { transform: translateY(-1cqw); }
a:hover .cv-phone { transform: translateY(-2cqw); }

/* blurred poster background for video & phone tiles */
.cv-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(26px) saturate(1.15) brightness(.42); transform: scale(1.05); z-index: 0 !important; }
:root[data-theme="light"] .cv-bg { filter: blur(26px) saturate(1.1) brightness(.85); opacity: .7; }

/* vertical video / mobile screen: centered phone 9:16 */
.cv-reel { position: absolute; left: 50%; top: 50%; height: min(86cqh, 150cqw); aspect-ratio: 9 / 16; transform: translate(-50%, -50%); padding: min(1.1cqh, 2cqw); border-radius: min(3.6cqh, 6.4cqw); background: #0b0b0b; box-shadow: 0 1.5cqh 5cqh rgba(0,0,0,.6), inset 0 0 0 1px #2b2b2b; overflow: hidden; }
.cv-reel > video, .cv-reel > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: min(2.6cqh, 4.6cqw); background: #000; display: block; }
.cover--reel.is-shot .cv-reel { aspect-ratio: 9 / 19.5; }

/* horizontal video: 16:9 player frame */
.cv-player { position: absolute; left: 50%; top: 50%; width: min(84cqw, 140cqh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); border-radius: min(1.6cqw, 2.8cqh); overflow: hidden; background: #000; box-shadow: 0 2cqh 6cqh rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.cv-player > video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* design: whole artwork, never cropped; several = fanned stack */
.cv-art { position: absolute; inset: 0; }
.cv-art img { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 76cqw; max-height: 78cqh; transform: translate(-50%, -50%); border-radius: min(1.2cqw, 1.6cqh); box-shadow: 0 2cqh 6cqh rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cover--art.is-fan .cv-art img { max-width: 52cqw; max-height: 70cqh; }
.cover--art.is-fan .cv-art img:nth-child(1) { z-index: 3; }
.cover--art.is-fan .cv-art img:nth-child(2) { z-index: 2; transform: translate(-50%, -50%) translateX(-20cqw) rotate(-6deg) scale(.86); }
.cover--art.is-fan .cv-art img:nth-child(3) { z-index: 1; transform: translate(-50%, -50%) translateX(20cqw) rotate(6deg) scale(.86); }
a:hover .cover--art.is-fan .cv-art img:nth-child(2) { transform: translate(-50%, -50%) translateX(-24cqw) rotate(-8deg) scale(.86); }
a:hover .cover--art.is-fan .cv-art img:nth-child(3) { transform: translate(-50%, -50%) translateX(24cqw) rotate(8deg) scale(.86); }
a:hover .cover--art:not(.is-fan) .cv-art img { transform: translate(-50%, -50%) scale(1.03); }

/* cards: equal media, single-line text rows */
.project-card-media, .product-card-media { aspect-ratio: 4 / 3; }
.project-card-media .cover, .product-card-media .cover { position: absolute; inset: 0; }
.project-card-title-row { flex-wrap: nowrap; min-width: 0; }
.project-card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.project-card-dot, .project-card-category { flex: none; }
.product-card-strip > div:first-child { min-width: 0; }
.product-card-title, .product-card-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-type { display: block; }
.product-card { height: 100%; }
.card-grid-3 .card-scroll-item { height: 100%; }
.play-badge { z-index: 2; }
.projects-grid.is-list .project-card-media .cover::after { display: none; }

/* detail page */
.detail-cover { aspect-ratio: 2; }
.detail-cover > .cover { border-radius: inherit; }
.detail-cover.is-player { aspect-ratio: 16 / 9; background: var(--cover-base); container-type: size; }
.detail-cover.is-player.is-reel { aspect-ratio: 16 / 10; }
.detail-cover.is-player .cv-player { width: min(88cqw, 150cqh); }
.detail-cover.is-player .cv-reel { height: 90cqh; }
.detail-cover.is-player video { object-fit: contain; }
.gallery-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border-radius: var(--r-shell); background: var(--shell); }
.gallery-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--border); }
.gallery-grid.is-odd .gallery-tile:first-child { grid-column: 1 / -1; aspect-ratio: 2; }
.hero-portrait .cover { position: absolute; inset: 0; }

@media (max-width: 767px) {
  .detail-cover { aspect-ratio: 4 / 3; }
  .detail-cover.is-player { aspect-ratio: 16 / 10; }
  .detail-cover.is-player.is-reel { aspect-ratio: 4 / 5; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid.is-odd .gallery-tile:first-child { aspect-ratio: 4 / 3; }
  .hero-portrait { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { a:hover .cv-screen img.is-long { object-position: 50% 0; } }
