/* Code-UI Solutions — grounded digital agency (Timișoara) */
:root {
  --cui-bg0: #080d16;
  --cui-bg1: #101826;
  --cui-surface: #161e2e;
  --cui-text: #e8eef7;
  --cui-text-dim: #9aa8bc;
  --cui-text-muted: #6b7a90;
  --cui-accent: #dc2626;
  --cui-accent-hover: #ef4444;
  --cui-brand: #f87171;
  --cui-line: rgba(255, 255, 255, 0.1);
  --cui-panel: rgba(255, 255, 255, 0.035);
  --font-display: "Syne", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --page-pad: clamp(1.1rem, 4vw, 1.75rem);
  --content: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body { margin: 0; padding: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid rgba(239, 68, 68, 0.65);
  outline-offset: 2px;
}

.cui-page {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cui-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(220, 38, 38, 0.16), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(56, 90, 140, 0.18), transparent 50%),
    linear-gradient(180deg, var(--cui-bg0) 0%, var(--cui-bg1) 55%, #0c1320 100%);
  background-attachment: fixed;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cui-brand);
  margin: 0 0 0.65rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.muted { color: var(--cui-text-dim); }
.meta { color: var(--cui-text-muted); font-size: 0.8rem; }

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--cui-line);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.9rem var(--page-pad);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  height: 32px;
  width: auto;
  max-width: min(168px, 46vw);
}

.nav {
  display: flex;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.nav-link {
  color: var(--cui-text-dim);
  padding: 0.45rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.lang-switch { display: flex; gap: 0.15rem; flex-wrap: wrap; max-width: 14rem; }
.lang {
  font-size: 0.68rem;
  color: var(--cui-text-muted);
  padding: 0.3rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: 600;
  min-height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang.active, .lang:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cui-line);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 160ms ease, top 160ms ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
body.nav-open .nav-backdrop { display: block; }
body.nav-open { overflow: hidden; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  text-align: center;
}
.btn-primary { background: var(--cui-accent); color: #fff; }
.btn-primary:hover { background: var(--cui-accent-hover); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); }

/* —— Layout sections —— */
.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 4rem var(--page-pad);
}
.section--tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section--process { padding-top: 1.5rem; }
.section--closing {
  border-top: 1px solid var(--cui-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.section-head { margin-bottom: 2rem; max-width: 42rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--cui-text-dim); font-size: 1.02rem; }

/* —— Hero (single photo, grounded) —— */
.hero-bleed {
  position: relative;
  min-height: min(72vh, 640px);
  min-height: min(72dvh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  max-width: none;
  border-bottom: 1px solid var(--cui-line);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.62) 46%, rgba(6, 10, 18, 0.78) 100%),
    var(--hero-image) center / cover no-repeat;
}
.hero-bleed--compact {
  min-height: min(36vh, 300px);
  min-height: min(36dvh, 300px);
}
.hero-bleed--plain {
  min-height: auto;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--cui-bg0), var(--cui-bg1));
}
.hero-bleed--plain.hero-bleed--compact {
  min-height: auto;
}
.hero-bleed--plain .hero-bleed-inner {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.hero-bleed--plain h1 {
  max-width: 22ch;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}
.hero-bleed-shade { display: none; }
.hero-bleed-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 3.25rem var(--page-pad) 2.75rem;
}
.hero-bleed h1 {
  font-size: clamp(2.05rem, 5.6vw, 3.5rem);
  line-height: 1.06;
  margin: 0 0 0.9rem;
  max-width: 18ch;
  color: #f8fafc;
  text-wrap: balance;
}
.hero-bleed .lead {
  color: #d1dae6;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  max-width: 38rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* —— Stats —— */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  position: relative;
  z-index: 2;
  transform: translateY(-1.5rem);
}
.stat {
  text-align: left;
  padding: 1.15rem 1.15rem 1.2rem;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--cui-line);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.05rem);
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--cui-text-dim);
}

/* —— Process —— */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.process-step {
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--cui-line);
  border-radius: 0.75rem;
  background: var(--cui-panel);
  min-height: 100%;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cui-brand);
  margin-bottom: 0.75rem;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.process-step p {
  margin: 0;
  color: var(--cui-text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Service rows (agency style, not sci-fi cards) —— */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--cui-line);
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--cui-line);
}
.service-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid var(--cui-line);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 280ms ease, filter 280ms ease;
}
.service-row:hover img {
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.08);
}
.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.service-row p { margin: 0; color: var(--cui-text-dim); font-size: 0.95rem; }
.service-row .service-body { color: var(--cui-text-dim); font-size: 0.95rem; }
.service-row .service-body p { margin: 0 0 0.65rem; }
.service-row .service-body p:last-child { margin-bottom: 0; }
.service-row .service-body ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }

/* —— Pillars / expertise grid —— */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.pillar {
  background: var(--cui-panel);
  border: 1px solid var(--cui-line);
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0;
  transition: border-color 150ms ease;
}
@media (hover: hover) {
  .pillar:hover { border-color: rgba(255,255,255,0.18); }
}
.pillar-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 150px;
  object-fit: cover;
}
.pillar-body { padding: 1rem 1.05rem 1.15rem; }
.pillar h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.pillar p { margin: 0; font-size: 0.9rem; color: var(--cui-text-dim); }

/* —— Projects —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.gallery-item {
  margin: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--cui-line);
  background: var(--cui-panel);
  display: block;
  color: inherit;
  text-decoration: none;
}
a.gallery-item:hover { border-color: rgba(248, 113, 113, 0.45); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0a0f1a;
  transition: transform 320ms ease;
}
a.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gallery-item figcaption strong {
  color: #f1f5f9;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
}

/* —— Testimonials —— */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.quote {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--cui-line);
  border-radius: 0.5rem;
  background: var(--cui-panel);
}
.quote p {
  margin: 0 0 1rem;
  color: var(--cui-text);
  font-size: 1rem;
  line-height: 1.55;
}
.quote footer {
  font-size: 0.85rem;
  color: var(--cui-text-dim);
}
.quote cite { font-style: normal; color: #f1f5f9; font-weight: 600; }

/* —— Visual band —— */
.visual-band {
  position: relative;
  margin: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.92), rgba(7, 11, 20, 0.7) 55%, rgba(7, 11, 20, 0.8)),
    var(--band-image) center / cover no-repeat;
  border-top: 1px solid var(--cui-line);
  border-bottom: 1px solid var(--cui-line);
}
.visual-band-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.25rem var(--page-pad);
  width: 100%;
}
.visual-band .display { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin: 0 0 0.6rem; }
.visual-band .btn { margin-top: 1rem; }

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}
.contact-photo {
  width: 100%;
  max-height: 320px;
  border-radius: 0.5rem;
  border: 1px solid var(--cui-line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--cui-line);
  border-radius: 0.5rem;
  background: var(--cui-panel);
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid var(--cui-line);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
}
.input:focus {
  outline: none;
  border-color: rgba(220, 38, 38, 0.55);
}

.content-photo {
  margin: 1.5rem 0 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--cui-line);
  max-width: 42rem;
}
.content-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.content-photo--sm { max-width: 32rem; }

.prose {
  color: var(--cui-text-dim);
  line-height: 1.7;
  max-width: 46rem;
  overflow-wrap: anywhere;
}
.prose h2, .prose h3 { color: var(--cui-text); font-family: var(--font-display); }
.prose a { color: var(--cui-accent); }
.prose a:hover { text-decoration: underline; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose--legal h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}
.prose--legal code {
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

/* —— Cookie banner (GDPR) —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 1rem var(--page-pad) calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 18, 32, 0.96);
  border-top: 1px solid var(--cui-line);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: #f8fafc;
}
.cookie-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cui-text-dim);
  max-width: 46rem;
  line-height: 1.5;
}
.cookie-body a { color: var(--cui-brand); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}

.list-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--cui-line);
  border-radius: 0.5rem;
  background: var(--cui-panel);
  margin-bottom: 0.65rem;
}
.list-thumb {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 0.35rem;
}
.stack { display: grid; gap: 0.65rem; }
.empty { color: var(--cui-text-muted); padding: 2rem 0; }

.glass {
  border: 1px solid var(--cui-line);
  background: var(--cui-panel);
  border-radius: 0.5rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--cui-line);
  margin-top: 2rem;
  padding: 2.5rem var(--page-pad) 1.5rem;
  background: rgba(0,0,0,0.2);
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.25rem 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-content: start;
  justify-content: flex-end;
}
.footer-links a { color: var(--cui-text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.copy {
  max-width: var(--content);
  margin: 1.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cui-line);
  color: var(--cui-text-muted);
  font-size: 0.8rem;
}
.copy a { color: var(--cui-text-dim); }
.copy a:hover { color: #fff; }
.footer-id {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer-anpc {
  max-width: var(--content);
  margin: 1.25rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.8rem;
}
.footer-anpc a {
  color: var(--cui-text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-anpc a:hover { color: #fff; }
.consent-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--cui-text-dim);
}
.consent-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--cui-accent);
}
.cookie-revisit {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  border: 1px solid var(--cui-line);
  background: rgba(11, 18, 32, 0.92);
  color: #e2e8f0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-revisit:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(21, 28, 44, 0.98);
}
@media (max-width: 720px) {
  .cookie-revisit { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}

.narrow { max-width: 48rem; }
/* Effects: content stays visible by default. Only .fx-prep is briefly hidden during WAAPI. */
.reveal,
.fade-up { opacity: 1; transform: none; }
.fx-prep {
  /* set only by JS right before animating; fill:both on WAAPI covers the frame */
}
.site-header {
  transition: box-shadow 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  background: rgba(11, 18, 32, 0.96);
}
.gallery-item,
.service-row,
.quote,
.stat,
.list-row,
.pillar {
  transition: border-color 180ms ease, transform 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover,
  .service-row:hover,
  .quote:hover,
  .stat:hover,
  .list-row:hover,
  .pillar:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .service-row,
  .quote,
  .stat,
  .list-row,
  .pillar,
  .site-header {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .service-row { grid-template-columns: 1fr; gap: 0.85rem; }
  .service-row img { max-height: 200px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .hero-bleed h1 { max-width: 22ch; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .nav, .header-actions {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }
  body.nav-open .nav,
  body.nav-open .header-actions { display: flex; }
  body.nav-open .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    order: 3;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--cui-line);
  }
  body.nav-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    order: 4;
    gap: 0.75rem;
    padding: 0.65rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .nav-link { width: 100%; padding: 0.85rem 0.9rem; font-size: 1rem; }
  .lang-switch { max-width: none; }
  .header-actions .btn { width: 100%; }
  .pillar-grid, .gallery, .process-grid { grid-template-columns: 1fr; }
  .stats-strip {
    grid-template-columns: 1fr;
    transform: none;
    margin-top: 1rem;
    gap: 0.5rem;
  }
  .stat { border-radius: 0.65rem; }
  .list-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .list-row .meta { grid-column: 2; }
  .list-thumb { width: 88px; height: 72px; }
  .hero-bleed {
    min-height: min(48dvh, 400px);
  }
  .hero-bleed--compact {
    min-height: min(32dvh, 240px);
  }
  .brand-logo { height: 28px; }
}
