:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #111114;
  --surface-2: #16161a;
  --border: #23232a;
  --border-strong: #2f2f37;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --accent: #f4854a;
  --accent-2: #ee6a2c;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --success: #4ade80;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  /* Fluid layout: side margin grows with the screen; the cap only matters on ultra-wide monitors. */
  --container: 2000px;
  --gutter: clamp(24px, 6vw, 120px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Design settings (Admin → Design). Defaults reproduce the original look exactly. */
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-scale: 100%;
  --heading-weight: 600;
  --heading-tracking: -0.02em;
  --heading-color: #f4f4f5;
  --eyebrow-transform: uppercase;
  --text-soft: #d4d4d8;
  --text-lead: #c8c8cf;
  --text-label: #e4e4e7;
  --accent-rgb: 244, 133, 74;
  --accent-2-rgb: 238, 106, 44;
  --bg-rgb: 8, 8, 10;
  --btn-bg: linear-gradient(180deg, #f79560, var(--accent-2));
  --btn-text: #1a0d05;
  --btn-border: transparent;
  --btn-shadow: 0 6px 24px -6px rgba(var(--accent-2-rgb), .55), inset 0 1px 0 rgba(255,255,255,.25);
  --btn-shadow-hover: 0 10px 30px -6px rgba(var(--accent-2-rgb), .7), inset 0 1px 0 rgba(255,255,255,.25);
  --btn-radius: 12px;
  --btn-sm-radius: 999px;
  --btn-weight: 500;
  --btn-transform: none;
  --btn-tracking: normal;
  --btn2-border: var(--border-strong);
  --btn2-text: var(--text);
}
html { font-size: var(--text-scale); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Pages still scroll normally; only the scrollbar itself is hidden. */
html, body, .drawer, .lightbox { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .drawer::-webkit-scrollbar, .lightbox::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: var(--heading-tracking); font-weight: var(--heading-weight); font-family: var(--font-heading); color: var(--heading-color); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.narrow { max-width: 720px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent { color: var(--accent); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 34px; height: 34px; }
.h-xl { font-size: clamp(2rem, 4vw, 2.6rem); }
.h-md { font-size: 1.3rem; margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--text-lead); max-width: 34rem; }
.lead-sm { font-size: 1.05rem; }

.eyebrow {
  color: var(--accent);
  text-transform: var(--eyebrow-transform);
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.eyebrow-sm { font-size: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-weight: var(--btn-weight); font-size: .95rem; text-transform: var(--btn-transform); letter-spacing: var(--btn-tracking);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-border);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); }
.btn-outline { border-color: var(--btn2-border); color: var(--btn2-text); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: #55555f; background: rgba(255,255,255,.05); }
.btn-sm { padding: .6em 1.3em; border-radius: var(--btn-sm-radius); font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: .45em; color: var(--accent); font-weight: 500; }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon, .project-card:hover .text-link .icon { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.brand-sm { font-size: 1.25rem; }
.brand-sm img { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 2.4rem; margin: 0 auto; }
.main-nav a { position: relative; color: var(--text-soft); font-size: .95rem; padding: .4rem 0; transition: color .2s, text-shadow .2s; }
.main-nav a:hover { color: var(--accent); text-shadow: 0 0 14px rgba(var(--accent-rgb), .55); }
.main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* Hero: copy left, artwork right. The artwork is always shown whole (never cropped);
   its left edge fades under the copy. */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.hero-no-art .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 1; max-width: 640px; padding: 24px 0; }
.hero h1 { margin-bottom: .45em; }
/* bleeds past the container to the right edge of the screen */
.hero-art { position: relative; z-index: 0; margin-left: -16%; margin-right: calc(-1 * (max(0px, (100vw - var(--container)) / 2) + var(--gutter))); pointer-events: none; }
.hero-art img, .hero-art video {
  display: block; width: 100%; height: auto; max-height: 560px;
  object-fit: contain; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 2.2rem 0 0; }
.stats > div { padding: 0 2rem; border-left: 1px solid var(--border-strong); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { color: var(--accent); font-size: 1.7rem; font-weight: 500; line-height: 1.2; }
.stats dd { margin: .2rem 0 0; font-size: .9rem; color: var(--text-soft); }
.stats-bordered { border-top: 1px solid var(--border); padding-top: 1.6rem; margin-top: 1.6rem; }

.inline-contacts {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  /* one row of three; columns shrink (text wraps) instead of an item dropping to a new line */
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: start;
}
.inline-contacts li { display: flex; gap: .7rem; align-items: flex-start; color: var(--accent); min-width: 0; padding: 0 1.4rem; border-left: 1px solid var(--border-strong); }
.inline-contacts li:first-child { padding-left: 0; border-left: 0; }
.inline-contacts div { display: flex; flex-direction: column; color: var(--text); font-size: .9rem; min-width: 0; overflow-wrap: break-word; }
/* Adapt to the width actually available in the hero text column, not the screen width */
.hero-copy { container-type: inline-size; }
@container (max-width: 634px) { /* three across needs ~627px */
  .inline-contacts { grid-template-columns: repeat(2, minmax(0, max-content)); row-gap: 1.2rem; }
  .inline-contacts li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@container (max-width: 464px) { /* two across needs ~453px */
  .inline-contacts { grid-template-columns: minmax(0, 1fr); row-gap: 1.1rem; }
  .inline-contacts li { padding: 0; border-left: 0; }
}
.inline-contacts strong { font-weight: 500; }
.inline-contacts a, .inline-contacts span { color: var(--muted); }
.inline-contacts a:hover { color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 24px 0 72px; }
.section-divided { border-top: 1px solid rgba(255,255,255,.05); background: linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
.section-head { max-width: 560px; margin-bottom: 2.5rem; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-icon { display: inline-flex; color: var(--accent); margin-bottom: 1rem; }
.feature-icon .icon { width: 46px; height: 46px; stroke-width: 1.4; }
.feature h3 { font-size: 1.4rem; margin-bottom: .3rem; font-weight: 500; }
.feature p { font-size: 1.05rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); }
.split-media img { width: 100%; height: auto; }
.split-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

.trusted { margin-top: 3rem; }
.trusted-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.8rem; }
.trusted-list li { color: #8b8b94; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; display: flex; align-items: center; }
.trusted-list img { height: 36px; width: auto; max-width: 160px; object-fit: contain; opacity: .75; transition: opacity .2s; }
.trusted-list a:hover img { opacity: 1; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 20px 50px -30px rgba(var(--accent-rgb), .4); }
.card-icon { display: inline-flex; color: var(--accent); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.25rem; font-weight: 500; }
.card p { font-size: .95rem; }
.solution-card { display: flex; flex-direction: column; }
.solution-card .text-link { margin-top: auto; font-size: .95rem; }
.check-list { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; gap: .5rem; font-size: .9rem; color: var(--text-lead); }
.check-list li { display: flex; gap: .7rem; align-items: center; }
.check-list .icon { color: var(--accent); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-label);
  padding: .6rem 1.2rem; border-radius: 999px; font-size: .88rem; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: #55555f; }
.chip.active { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-3px); }
.project-item { position: relative; display: flex; }
.project-item > .project-card { flex: 1; }
.project-item[hidden] { display: none; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.project-topline .back-link { margin-bottom: 0; }

/* Admin-only shortcuts (shown only while logged in to /admin) */
.admin-edit-chip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(var(--bg-rgb),.85); color: var(--accent); border: 1px solid rgba(var(--accent-rgb),.5);
  border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px);
}
.admin-edit-chip.static { position: static; }
.admin-edit-chip:hover { background: var(--accent); color: var(--btn-text); }
.admin-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #16161a; color: var(--text); border: 1px solid rgba(var(--accent-rgb),.55);
  border-radius: 999px; padding: .65rem 1.1rem; font-size: .88rem; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
}
.admin-fab .icon { color: var(--accent); }
.admin-fab:hover { border-color: var(--accent); }
.project-thumb { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb),.25), transparent 60%), #0b0b0d; border-bottom: 1px solid var(--border); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.thumb-empty { display: grid; place-items: center; height: 100%; color: var(--subtle); }
.project-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: .4rem; }
.project-body .text-link { margin-top: auto; font-size: .92rem; }
.empty-state { text-align: center; padding: 3rem 0; }

/* Project detail */
.project-hero { position: relative; padding: 40px 0 64px; overflow: hidden;
  background: radial-gradient(ellipse at 75% 40%, rgba(var(--accent-rgb),.14), transparent 55%); }
.project-hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-soft); font-size: .9rem; margin-bottom: 1.6rem; }
.back-link .icon { color: var(--accent); }
.back-link:hover { color: var(--accent); }
.project-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .1em; }
.project-subtitle { color: var(--accent); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; margin-bottom: .8rem; }
.project-hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(var(--accent-rgb),.35); }
.project-hero-media img, .project-hero-media video { display: block; width: 100%; height: auto; }
.project-hero-inner.no-media { grid-template-columns: minmax(0, 1fr); }
.draft-badge { display: inline-block; font-size: .8rem; background: rgba(250, 204, 21, .12); color: #fde047; border: 1px solid rgba(250, 204, 21, .3); border-radius: 999px; padding: .2rem .8rem; }
.highlights { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 0; }
.highlights li { display: flex; align-items: center; gap: .8rem; padding: 0 1.6rem; border-left: 1px solid var(--border-strong); font-size: .9rem; color: var(--text-soft); max-width: 12rem; line-height: 1.35; }
.highlights li:first-child { padding-left: 0; border-left: 0; }
.ring-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); flex: none; }

.project-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.project-columns-wide { grid-template-columns: 1.7fr 1fr; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.feature-list li:first-child { padding-top: 0; }
.feature-list-icon { color: var(--accent); }
.feature-list strong, .link-card strong { display: block; font-weight: 500; }
.feature-list small, .link-card small { display: block; color: var(--muted); font-size: .85rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 120px; gap: 12px; }
.gallery-item { padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-main { grid-row: span 3; }
.gallery:has(.gallery-item:only-child) { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gallery-item:only-child img { aspect-ratio: 16 / 9; }

.tech-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.tech-list li { display: flex; align-items: center; gap: 1rem; }
.tech-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.tech-badge {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; text-transform: uppercase; border: 1px solid rgba(var(--accent-rgb),.25);
}

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 40px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.link-card small { word-break: break-all; color: #7dd3fc; }
.link-card > .icon { color: var(--accent); }
.link-card:hover { border-color: rgba(var(--accent-rgb),.5); }

.mockup-cta {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb),.55);
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.12), rgba(var(--accent-rgb),.02));
}
.mockup-cta > div { flex: 1; min-width: 220px; }
.mockup-cta h3 { color: var(--accent); margin-bottom: .2rem; font-weight: 500; }
.mockup-cta p { margin: 0; }
.mockup-cta-icon { color: var(--accent); }
.mockup-cta-img { width: 56px; height: 56px; object-fit: contain; flex: none; }

/* Drawer / dialogs */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: 100vw;
  border: 0; border-left: 1px solid var(--border-strong); padding: 28px 32px;
  background: #0c0c0f; overflow-y: auto;
}
.drawer[open] { animation: slide-in .28s ease; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mockup-title { font-size: 1.9rem; }
.icon-btn { background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; }
.icon-btn:hover { background: rgba(255,255,255,.06); }
.icon-btn .icon { width: 22px; height: 22px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius-sm); margin: auto; }
.lightbox-close { position: fixed; top: 16px; right: 16px; background: rgba(0,0,0,.6); }
.lightbox-caption { text-align: center; color: var(--muted); margin: .8rem 0 0; }

/* Forms */
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.panel h2 { font-size: 1.9rem; }
.contact-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: start; }
.form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .45rem; font-size: .9rem; }
.field > span { color: var(--text-label); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--text);
  background: #0a0a0c; border: 1px solid var(--border-strong); border-radius: 10px; padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #5e5e68; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; color: var(--subtle); margin: 0; }
.alert { border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; margin: 1rem 0; display: flex; gap: .6rem; align-items: flex-start; flex-direction: column; }
.alert:has(> .icon) { flex-direction: row; align-items: center; }
.alert-success { background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); color: #bbf7d0; }
.alert-error { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .3); color: #fecaca; gap: .2rem; }

.detail-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.8rem; }
.detail-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.detail-list li > .icon { color: var(--accent); }
.detail-list div { display: flex; flex-direction: column; font-size: .95rem; }
.detail-list strong { font-weight: 500; }
.detail-list a:hover { color: var(--accent); }
.detail-list small { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.socials { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; }
.socials > div { display: flex; gap: 1.2rem; }
.socials a { color: var(--accent); }
.socials a:hover { color: #fff; }

/* About */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { border-top: 1px solid var(--border-strong); padding-top: 1.4rem; position: relative; }
.steps li::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step-num { display: block; color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .1em; margin-bottom: .6rem; }

/* Home: section header with a link on the right */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > .text-link { white-space: nowrap; margin-bottom: .4rem; }

/* Home: about teaser with stat tiles */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; }
.stat-tiles .card { padding: 24px; }
.stat-tiles dt { color: var(--accent); font-size: 2.1rem; font-weight: 500; line-height: 1.1; }
.stat-tiles dd { margin: .4rem 0 0; color: var(--text-soft); font-size: .92rem; }

/* Scroll reveal. Only active when JS adds .reveal-on (so content is never hidden without JS). */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-on [data-reveal] > .card, .reveal-on [data-reveal] > .project-item, .reveal-on ol[data-reveal] > li { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on [data-reveal].is-visible > .card, .reveal-on [data-reveal].is-visible > .project-item, .reveal-on ol[data-reveal].is-visible > li { opacity: 1; transform: none; }
.reveal-on [data-reveal].is-visible > :nth-child(2) { transition-delay: .08s; }
.reveal-on [data-reveal].is-visible > :nth-child(3) { transition-delay: .16s; }
.reveal-on [data-reveal].is-visible > :nth-child(4) { transition-delay: .24s; }
.reveal-on [data-reveal].is-visible > :nth-child(5) { transition-delay: .32s; }
.reveal-on [data-reveal].is-visible > :nth-child(n+6) { transition-delay: .4s; }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 56px 40px;
  background: var(--bg-2);
}
.cta-media {
  position: absolute; inset: 0 0 0 30%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  opacity: .95;
}
.cta-media img, .cta-media video { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.cta-content { position: relative; max-width: 460px; }
.cta-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-content .muted { font-size: .95rem; margin-bottom: 1.6rem; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.05); padding: 36px 0 28px; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; font-size: .88rem; color: var(--text-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-tagline { margin: 0; font-size: .88rem; color: var(--text-soft); }
.footer-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.04); font-size: .8rem; color: var(--subtle); }
.footer-meta a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-columns, .project-columns-wide { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; padding: 0; }
  .hero-art { margin: 24px 0 0; }
  .hero-art img, .hero-art video { margin: 0 auto; }
  .hero-art img, .hero-art video {
    max-height: 420px; object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
  .main-nav { gap: 1.6rem; }
  .header-inner { gap: 1.4rem; }
}
@media (max-width: 860px) {
  .header-inner { height: 70px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: rgba(var(--bg-rgb), .97); border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .main-nav a.active::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1.2rem; border-bottom: 0 !important; padding: .8rem 1.3rem !important; }
  .feature-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .about-teaser { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 32px 0 48px; }
  .hero-art { margin: 16px -16px 0; }
  .btn-row .btn { flex: 1 1 auto; }
  .field input, .field select, .field textarea { font-size: 16px; } /* stops iOS zooming into fields */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 1.6rem; padding: 0 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .project-columns { margin-bottom: 40px; }
  .mockup-cta { padding: 20px; }
  .mockup-cta .btn { width: 100%; }
  .section { padding: 56px 0; }
  .card-grid, .card-grid-4, .steps { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .stats > div { padding: 0 1.1rem; }
  .stats dt { font-size: 1.4rem; }
  .highlights { flex-direction: column; gap: .8rem; }
  .highlights li { padding: 0; border-left: 0; max-width: none; }
  .cta-banner { padding: 40px 22px; }
  .cta-media { inset: 0; opacity: .35; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 100px; }
  .gallery-main { grid-column: span 2; grid-row: span 2; }
  .drawer { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* Only when Admin → Design → "Respect visitors' reduce-motion setting" is ticked */
@media (prefers-reduced-motion: reduce) {
  .honor-rm *, .honor-rm *::before, .honor-rm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Blog: cards and article pages
   ========================================================================== */
.project-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; margin: 0 0 .55rem; font-size: .8rem; color: var(--muted); }
.post-meta .eyebrow { margin: 0; }

.article-head { padding: 36px 0 0; background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .12), transparent 60%); }
.narrow-article { max-width: calc(760px + 2 * var(--gutter)); }
.article-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .35em; }
.article-lead { max-width: none; font-size: 1.15rem; }
.article-byline { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; margin: 1.1rem 0 2.2rem; }
.article-cover-wrap { max-width: calc(1080px + 2 * var(--gutter)); }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); margin-bottom: 3rem; box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), .45); }
.article-cover img, .article-cover video { width: 100%; height: auto; display: block; }

.prose { font-size: 1.08rem; line-height: 1.8; color: var(--text-lead); padding-bottom: 72px; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin: 2.1em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; font-family: var(--font-heading); color: var(--heading-color); }
.prose p { margin: 0 0 1.25em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.15rem; font-style: italic; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 2.2em 0; }
.prose img, .prose video { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: .7em; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .1em .4em; font-size: .88em; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1em 1.3em; overflow-x: auto; font-size: .9rem; line-height: 1.6; scrollbar-width: none; }
.prose pre::-webkit-scrollbar { display: none; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.6em 0; }

/* ==========================================================================
   Floating interactive showcase (Home: featured solutions & featured blog)
   ========================================================================== */
.showcase-section { position: relative; isolation: isolate; overflow: hidden; }
/* no divider line: starts in the page colour, so it flows on from the section above (hero, gallery wall, …) */
.section-divided:is(.showcase-section, .section-blend) { border-top: 0; background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 35%, var(--bg) 100%); }
.showcase-section::before {           /* glowing grid backdrop */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(var(--accent-rgb), .10), transparent 62%),
    linear-gradient(rgba(var(--accent-rgb), .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 75%);
}
.section-head-center { text-align: center; margin: 0 auto .5rem; max-width: 660px; }
.showcase-hint { display: inline-flex; gap: .45rem; align-items: center; margin: .2rem 0 0; color: var(--accent); font-size: .88rem; }

.showcase { position: relative; --tilt: 1; }
.showcase-stage {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 40px;
  align-items: center; perspective: 1400px; padding: 64px 0 40px;
}
.showcase-slot {
  grid-column: var(--col) / span 2; grid-row: var(--row); justify-self: var(--just); width: min(100%, 360px); z-index: 1;
  transform: translate3d(calc(var(--tx) * var(--tilt)), calc(var(--ty) * var(--tilt) + var(--py, 0px)), 0);
  transition: filter .35s ease, opacity .18s ease;   /* quick opacity: the card blends in as the panel fades out */
}
/* perspective lives on the card's own parent (no preserve-3d), so the tilted card stays fully clickable */
.showcase-float { animation: sc-float 7s ease-in-out infinite; animation-delay: var(--float-delay, 0s); perspective: 1200px; }
@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.showcase-card {
  display: block; position: relative; padding: 18px 18px 16px; color: inherit; cursor: pointer;
  border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), .28);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .015) 42%), var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 42px -14px rgba(var(--accent-rgb), .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: rotateX(calc(var(--rx) * var(--tilt))) rotateY(calc(var(--ry) * var(--tilt))) rotateZ(calc(var(--rz) * var(--tilt)));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease;
}
.showcase-card:hover, .showcase-card:focus-visible {
  transform: translateY(-6px) scale(1.025); border-color: rgba(var(--accent-rgb), .65);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(var(--accent-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.sc-head { display: flex; gap: .8rem; align-items: flex-start; }
.sc-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); }
.sc-icon .icon { width: 18px; height: 18px; }
.sc-titles { flex: 1; min-width: 0; }
.sc-titles h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.sc-titles p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.sc-arrow { color: var(--accent); opacity: .75; }
.sc-arrow .icon { width: 14px; height: 14px; }
.sc-visual { margin-top: 14px; }

/* mini visuals */
.sv-network { width: 100%; height: auto; display: block; }
.sv-lines line { stroke: rgba(var(--accent-rgb), .35); stroke-width: 1; }
.sv-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.sv-core { fill: var(--accent); }
.sv-core-glow { fill: rgba(var(--accent-rgb), .3); transform-box: fill-box; transform-origin: center; animation: sv-pulse 2.4s ease-in-out infinite; }
@keyframes sv-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }
.sv-code { display: grid; gap: 7px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.sv-dots { display: flex; gap: 5px; margin-bottom: 3px; }
.sv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.sv-dots i:first-child { background: var(--accent); }
.sv-line { display: block; height: 6px; border-radius: 4px; }
.sv-a { background: var(--accent); }
.sv-s { background: var(--text-soft); opacity: .55; }
.sv-m { background: var(--muted); opacity: .45; }
.sv-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sv-stack li { display: flex; align-items: center; gap: .6rem; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, .02); font-size: .82rem; color: var(--text-soft); }
.sv-stack i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
.sv-stack .tech-mark { width: 15px; height: 15px; flex: none; }
.sv-chart { position: relative; }
.sv-chart svg { width: 100%; height: 80px; display: block; }
.sv-area { fill: rgba(var(--accent-rgb), .16); }
.sv-stroke { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sv-stat { position: absolute; right: 4px; bottom: -4px; font-size: .78rem; font-weight: 600; color: var(--accent); }
.sv-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--border); }
.sv-cover img, .sv-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* expanded panel */
.showcase-panel {
  position: absolute; left: 50%; top: 50%; z-index: 5; width: min(600px, 100%); max-height: min(660px, 92vh); overflow: auto;
  padding: 24px; border-radius: calc(var(--radius) + 4px); scrollbar-width: none;
  border: 1px solid rgba(var(--accent-rgb), .45);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .09), transparent 45%), var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 0 70px -12px rgba(var(--accent-rgb), .4);
  opacity: 0; transform: translate(-50%, -50%);
}
.showcase-panel::-webkit-scrollbar { display: none; }
.showcase-panel.is-visible { opacity: 1; }
.showcase.is-open .showcase-slot { filter: blur(5px); opacity: .25; pointer-events: none; }
/* the card that became the panel stays hidden until the panel is back on top of it */
.showcase-slot.is-source { opacity: 0 !important; filter: none !important; transition: none; }
.showcase-slot.is-source .showcase-float { animation-play-state: paused; }  /* hold still so the panel lands exactly on it */
.sc-close { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; flex: none; cursor: pointer; border-radius: 8px; color: var(--muted); background: none; border: 1px solid var(--border-strong); }
.sc-close:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); }
.sc-close .icon { width: 16px; height: 16px; }
.sc-visual-lg { margin: 18px 0; }
.sc-text { margin: 0 0 1.1rem; line-height: 1.65; color: var(--text-soft); }
.sc-points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; font-size: .88rem; color: var(--text-lead); }
.sc-points li { display: flex; gap: .5rem; align-items: center; }
.sc-points .icon { color: var(--accent); }
.sc-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.sc-back { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; background: none; border: 0; font: inherit; font-size: .9rem; color: var(--text-soft); }
.sc-back:hover { color: var(--accent); }
.showcase-foot { display: flex; justify-content: center; margin-top: 30px; }

@media (max-width: 1024px) {
  .showcase { --tilt: .45; }
  .showcase-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; min-height: 0; padding-top: 36px; }
  .showcase-slot { grid-column: auto; grid-row: auto; justify-self: center; }
}
@media (max-width: 640px) {
  .showcase { --tilt: 0; }
  .showcase-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; perspective: none; padding-top: 28px; }
  .showcase-slot { width: 100%; }
  .showcase-float { animation: none; }
  .showcase.is-open::before { content: ''; position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, .65); }
  .showcase-panel { position: fixed; left: 16px; right: 16px; width: auto; top: 50%; transform: translateY(-50%); padding: 20px; z-index: 70; }
  .sc-points { grid-template-columns: 1fr; }
  .narrow-article { max-width: 100%; }
}


/* ==========================================================================
   Gallery wall (Home → Featured work): projects in lit frames
   ========================================================================== */
.has-wall { padding-bottom: 32px; }
.wall {
  position: relative; width: 100%; margin: 8px auto 0; aspect-ratio: 1649 / 954;
  container-type: inline-size; overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 97%, transparent 100%), linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 97%, transparent 100%), linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}
.wall-wrap { position: relative; }
.wall-bg { position: absolute; inset: 0; transition: filter .6s ease; }
.wall-bg img, .wall-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-frame { position: absolute; inset: 0; pointer-events: none; }
.wall-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .55s ease; }
/* light cone hanging from the bar lamp, rotated to the lamp's angle (top-centre sits on the lamp) */
.wall-light {
  position: absolute; opacity: 0; transition: opacity .6s ease; mix-blend-mode: screen; pointer-events: none;
  transform-origin: 50% 0; transform: translateX(-50%) rotate(var(--ang, 0deg));
  background:
    radial-gradient(ellipse 34% 3.2% at 50% 0%, rgba(255, 224, 188, .95), transparent 100%),
    radial-gradient(ellipse 58% 100% at 50% 0%, rgba(255, 178, 104, .46), rgba(var(--accent-rgb), .2) 46%, transparent 78%);
}
.wall-bar {                                     /* the bar lamp itself switching on, at its own angle */
  position: absolute; height: .5%; border-radius: 4px; opacity: 0; transition: opacity .4s ease;
  transform: translateY(-50%) rotate(var(--ang, 0deg));
  background: linear-gradient(90deg, transparent, #ffd9b0 20%, #ffd9b0 80%, transparent);
  box-shadow: 0 0 5px 1px rgba(255, 165, 85, .8), 0 6px 16px 1px rgba(var(--accent-rgb), .35);
}
.wall-screen {
  --k: 2;                                         /* laid out at 2x and scaled into the frame: sharp text */
  position: absolute; pointer-events: auto; display: flex; flex-direction: column; gap: calc(.32cqw * var(--k));
  padding: calc(1.1cqw * var(--k)) calc(1.2cqw * var(--k)) calc(1cqw * var(--k)); background: #0b0b0d; color: var(--text); overflow: hidden;
  transform-origin: 0 0;
}
/* ::before dims the screen (no filter: on a 3D-transformed element it blurs the text); ::after is the lamp's light from the top */
.wall-screen::before, .wall-screen::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .55s ease; }
.wall-screen::before { background: #000; opacity: .18; }
.wall-screen::after { background: linear-gradient(180deg, rgba(255, 196, 140, .2), rgba(255, 170, 100, .06) 30%, transparent 55%); opacity: 0; }
.wall-empty::before { opacity: 0; }
.ws-shot { display: block; flex: none; height: 44%; margin-bottom: calc(1.1cqw * var(--k)); border-radius: calc(.35cqw * var(--k)); overflow: hidden; background: #151518; }
.ws-shot img, .ws-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-shot-empty { display: grid; place-items: center; height: 100%; color: var(--subtle); }
.ws-num { color: var(--accent); font-size: calc(.98cqw * var(--k)); line-height: 1.1; }
.ws-title { font-family: var(--font-heading); font-weight: 600; font-size: calc(1.02cqw * var(--k)); line-height: 1.2; color: var(--heading-color); }
.ws-text { font-size: calc(.62cqw * var(--k)); line-height: 1.5; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ws-tech { margin-top: auto; display: flex; flex-wrap: wrap; gap: calc(.3cqw * var(--k)) calc(.9cqw * var(--k)); font-size: calc(.56cqw * var(--k)); color: var(--text-soft); }
.ws-tech > span { display: inline-flex; align-items: center; }
.ws-tech i { display: inline-block; width: calc(.45cqw * var(--k)); height: calc(.45cqw * var(--k)); margin-right: calc(.35cqw * var(--k)); background: var(--accent); transform: rotate(45deg); }
.ws-tech .tech-mark { width: calc(.8cqw * var(--k)); height: calc(.8cqw * var(--k)); margin-right: calc(.3cqw * var(--k)); }

/* hover / keyboard focus: this frame lights up, the others go dark */
.wall-frame:has(.wall-screen:hover, .wall-screen:focus-visible) :is(.wall-light, .wall-bar) {
  opacity: 1; transition: opacity 0s;
  animation: lamp-on 1s linear both, lamp-breathe 4.2s ease-in-out 1s infinite;
}
@keyframes lamp-on {              /* stutters, catches, warms up, steady (within 1s) */
  0% { filter: brightness(0); }
  7% { filter: brightness(.75); }
  11% { filter: brightness(.08); }
  18% { filter: brightness(.9); }
  23% { filter: brightness(.25); }
  31% { filter: brightness(.6); }
  36% { filter: brightness(.35); }
  50% { filter: brightness(.7); }
  75% { filter: brightness(.9); }
  100% { filter: brightness(1); }
}
@keyframes lamp-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(.74); } }
.wall-frame:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-screen::before { opacity: 0; }
.wall-frame:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-screen::after { opacity: 1; }   /* lit from the top only */
.wall:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-bg { filter: brightness(.62); }
.wall:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-frame:not(:has(.wall-screen:hover, .wall-screen:focus-visible)) .wall-shade { opacity: 1; }
.wall:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-frame:not(:has(.wall-screen:hover, .wall-screen:focus-visible)) .wall-screen::before { opacity: .72; }
.wall-screen:focus-visible { outline: none; }

/* phones: frames would be too small to read, so the regular project cards are shown instead */
.card-grid.wall-fallback { display: none; }
@media (max-width: 767px) {
  .wall { display: none; }
  .card-grid.wall-fallback { display: grid; }
}

/* ==========================================================================
   Octagon cursor mesh on cards and buttons: brightest under the cursor
   ========================================================================== */
:root { --mesh-opacity: 1; }
.btn { position: relative; }
:is(.btn, .card, .showcase-card, .showcase-panel)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .35s ease; mix-blend-mode: screen;
  background: rgb(var(--accent-rgb));
  -webkit-mask-image: radial-gradient(circle var(--mesh-r, 150px) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 30%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M7.6 .6h10.8l7 7v10.8l-7 7H7.6l-7-7V7.6z' fill='none' stroke='white' stroke-width='1.1'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%, 26px 26px; -webkit-mask-repeat: no-repeat, repeat; -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--mesh-r, 150px) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 30%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M7.6 .6h10.8l7 7v10.8l-7 7H7.6l-7-7V7.6z' fill='none' stroke='white' stroke-width='1.1'/%3E%3C/svg%3E");
  mask-size: 100% 100%, 26px 26px; mask-repeat: no-repeat, repeat; mask-composite: intersect;
}
.btn::after { --mesh-r: 70px; }
:is(.btn, .card, .showcase-card, .showcase-panel).mesh-on::after { opacity: calc(.7 * var(--mesh-opacity)); }
/* images and videos inside cards stay clear of the mesh */
:is(.project-thumb, .sv-cover, .wall-panel-shot) { position: relative; z-index: 3; }
.btn-primary.mesh-on::after { mix-blend-mode: overlay; opacity: calc(.9 * var(--mesh-opacity)); }


/* Featured work text sits on the scene, over the desk and sofa, on a dark fade */
.wall-caption {
  position: absolute; left: 0; right: 0; bottom: 0; top: 62%; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2cqw;
  padding: 0 max(var(--gutter), 4cqw) max(22px, 5cqw);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .82) 100%);
  transition: filter .55s ease, opacity .55s ease;
}
.wall-caption .eyebrow { margin-bottom: .6rem; }                          /* same as other section eyebrows */
.wall-caption h2 { margin: 0 0 .5rem; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.08; }
.wall-caption-text { margin: 0; max-width: 62ch; color: var(--text-soft); font-size: 1rem; }
@media (max-width: 1023px) { .wall-caption .eyebrow { margin-bottom: .35rem; } .wall-caption h2 { margin-bottom: .25rem; } .wall-caption-text { font-size: .9rem; } }
.wall-caption .btn { flex: none; }
@media (min-width: 768px) { .has-wall .wall-head { display: none; } }

/* everything dims while a frame is hovered, including the caption */
.wall:has(.wall-screen:hover, .wall-screen:focus-visible) .wall-caption { filter: brightness(.3); }

/* a project brought forward: the whole scene goes dark, lights off, no hover effects underneath */
/* (!important so these always win over the hover rules above, even if the pointer is still over a frame) */
.wall-wrap.is-open .wall-bg { filter: brightness(.35) !important; }
.wall-wrap.is-open .wall-shade { opacity: 1 !important; }
.wall-wrap.is-open .wall-screen { pointer-events: none; }
.wall-wrap.is-open .wall-screen::before { opacity: .75 !important; }
.wall-wrap.is-open .wall-screen::after { opacity: 0 !important; }
/* copies carried by the moving box keep the resting look */
.wall-wrap .morph-copy.wall-screen::before { opacity: .18 !important; }
.wall-wrap .morph-copy.wall-screen::after { opacity: 0 !important; }
/* the frame a project left stays a dark, empty screen (not see-through to the photo behind it) */
.wall-screen.is-source > * { visibility: hidden; }
.wall-wrap.is-open :is(.wall-light, .wall-bar) { opacity: 0 !important; }
.wall-wrap.is-open .wall-caption { filter: brightness(.25) !important; pointer-events: none; }
.wall-panel { z-index: 20; }
.wall-panel-num { font-size: .85rem; font-weight: 600; width: auto; padding: 0 .55rem; }
.wall-panel-shot { margin: 18px 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--border); }
.wall-panel-shot img, .wall-panel-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-panel-tech { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.wall-panel-tech li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; color: var(--text-soft); }
.wall-panel-tech i { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.wall-panel-tech .tech-mark { width: 15px; height: 15px; }


/* Glass box that carries a card / frame to the panel and back (see site.js). Same surface as the panel. */
.morph-ghost {
  position: absolute; z-index: 4; pointer-events: none; box-sizing: border-box;
  border: 1px solid rgba(var(--accent-rgb), .45); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .09), transparent 45%), var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -14px rgba(var(--accent-rgb), .4);
  will-change: left, top, width, height, transform; overflow: hidden;
}
.morph-content { position: absolute; left: 0; top: 0; pointer-events: none; }
.wall-wrap .morph-ghost { z-index: 19; background: linear-gradient(160deg, rgba(var(--accent-rgb), .06), transparent 45%), #0b0b0d; }
