/* ===== Page loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-loader__logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.page-loader__hammer {
  width: 72px;
  height: 72px;
  transform-origin: 32px 32px;
  animation: hammerSpin 0.85s linear infinite;
  filter: drop-shadow(0 0 16px var(--c-glow));
}

@keyframes hammerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.page-loader__brand {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.page-loader__brand span,
.page-loader__brand {
  color: #fff;
}

.page-loader__text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

body.is-loading {
  overflow: hidden;
}

/* ===== Design tokens — E&M Allrounder (logo colors) ===== */
:root {
  --c-bg: #fafafa;
  --c-bg-alt: #f0f0f0;
  --c-bg-warm: #f5f5f5;
  --c-bg-dark: #0a0a0a;
  --c-bg-dark-2: #141414;
  --c-bg-dark-warm: #111111;
  --c-text: #1a1a1a;
  --c-text-muted: #5c5c5c;
  --c-text-light: #888888;
  --c-gray-brand: #b0b0b0;
  --c-border: #e0e0e0;
  --c-border-warm: #d8d8d8;
  --c-accent: #e02020;
  --c-accent-light: #ff2a2a;
  --c-accent-hover: #c01818;
  --c-accent-soft: #fdeaea;
  --c-accent-subtle: rgba(224, 32, 32, 0.1);
  --c-navy: #2a2a2a;
  --c-navy-soft: rgba(0, 0, 0, 0.04);
  --c-glow: rgba(224, 32, 32, 0.45);
  --c-glow-strong: rgba(224, 32, 32, 0.7);
  --c-accent-line: rgba(224, 32, 32, 0.55);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-accent: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 0.65s;
  --header-h: 104px;
  --max-w: 1160px;
  --shadow-glow: 0 0 40px var(--c-glow);
  --shadow-glow-lg: 0 0 80px var(--c-glow);
  --shadow-warm: 0 8px 32px rgba(224, 32, 32, 0.08);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.11);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.13);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 14px 44px rgba(0, 0, 0, 0.11), 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  user-select: none;
  -webkit-user-select: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

input,
textarea,
select,
.legal-block {
  user-select: text;
  -webkit-user-select: text;
}

.font-display { font-family: var(--font-display); font-weight: 700; }
.font-accent  { font-family: var(--font-accent); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Animations ===== */
.anim {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
  filter: blur(4px);
}

.anim--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.anim--d1 { transition-delay: 0.08s; }
.anim--d2 { transition-delay: 0.16s; }
.anim--d3 { transition-delay: 0.24s; }
.anim--d4 { transition-delay: 0.32s; }

[data-i18n], [data-i18n-placeholder] {
  transition: opacity 0.2s ease;
}

.i18n-fade { opacity: 0; }

/* ===== Typography helpers ===== */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: 14px;
  padding: 6px 14px 6px 12px;
  background: linear-gradient(90deg, rgba(224, 32, 32, 0.12) 0%, rgba(224, 32, 32, 0.04) 100%);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 12px rgba(224, 32, 32, 0.1), var(--shadow-xs);
}

.label--light {
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, rgba(224, 32, 32, 0.2) 0%, rgba(224, 32, 32, 0.06) 100%);
  border-left-color: var(--c-accent-light);
  box-shadow: 0 0 24px rgba(224, 32, 32, 0.2);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-head--center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:active {
  transform: scale(0.96);
}

.btn.is-popping {
  animation: btnPop 0.55s var(--ease-bounce);
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(224, 32, 32, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ff3d3d 0%, var(--c-accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(224, 32, 32, 0.55), 0 0 0 1px rgba(255, 80, 80, 0.2);
}

.btn--glow {
  position: relative;
}

.btn--glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  opacity: 0;
  z-index: -1;
  filter: blur(16px);
  transition: opacity 0.4s var(--ease);
}

.hero--landing .btn--glow:hover::after {
  opacity: 0.35;
}

.hero--landing .btn--primary {
  box-shadow: 0 4px 20px rgba(224, 32, 32, 0.25);
}

.hero--landing .btn--primary:hover {
  box-shadow: 0 8px 28px rgba(224, 32, 32, 0.35);
}

.btn--glow:hover::after {
  opacity: 0.6;
}

.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn--outline-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(224, 32, 32, 0.08);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

.btn--lg { padding: 15px 32px; font-size: 15px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-header);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 32, 32, 0.35) 50%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo__img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease-out);
}

.header .logo__img {
  height: 92px;
  max-height: calc(var(--header-h) - 12px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55)) brightness(1.12) contrast(1.06);
}

.logo:hover .logo__img {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.header .logo:hover .logo__img {
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.6)) brightness(1.15) contrast(1.08);
}

.logo--footer .logo__img {
  height: 72px;
}

.footer__tagline {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-gray-brand);
  letter-spacing: 0.04em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  position: relative;
  padding: 4px 0;
  overflow: hidden;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
}

.nav__link--active::after {
  width: 100%;
  background: var(--c-accent);
  box-shadow: none;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.is-tapped {
  animation: navTap 0.45s var(--ease-bounce);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav__cta { display: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-switch__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  min-width: 46px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}

.lang-switch__btn:hover:not(.active) {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch__btn.active {
  opacity: 1;
  border-color: var(--c-accent);
  background: rgba(224, 32, 32, 0.1);
  box-shadow: 0 0 16px rgba(224, 32, 32, 0.2);
}

.lang-flag {
  display: flex;
  line-height: 0;
}

.lang-flag__svg {
  display: block;
  width: 34px;
  height: 23px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lang-switch__code {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.lang-switch__btn.active .lang-switch__code {
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.35s var(--ease);
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ===== Landing Hero ===== */
.hero--landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.78) 60%, rgba(0,0,0,0.82) 100%),
    url('../images/gallery/img-9367.png') center/cover no-repeat;
  transform: scale(1.02);
  animation: heroKen 20s ease-in-out infinite alternate;
}

.hero__glow {
  display: none;
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.15); }
}

@keyframes heroKen {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 28px 48px;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin-bottom: 44px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__metrics {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 28px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.metric:hover {
  background: transparent;
}

.hero--landing .metric--glow:hover .metric__value {
  text-shadow: none;
  color: #fff;
}

.hero--landing .metric__value {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  letter-spacing: -0.02em;
}

.hero--landing .metric:hover .metric__value {
  opacity: 1;
}

.metric__value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: text-shadow 0.4s var(--ease);
}

.metric__label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.metric__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 32px;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
  padding: 8px 12px;
  border-radius: 4px;
}

.hero--landing .metric--glow:hover .metric__value,
.metric--glow:hover .metric__value {
  text-shadow: none;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  background: linear-gradient(145deg, #0a0a0a 0%, #111111 45%, #141414 100%);
  border-bottom: none;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(224, 32, 32, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent-light), var(--c-accent), var(--c-accent-light), transparent);
}

.page-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-hero__breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color 0.25s ease;
}

.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb span { margin: 0 8px; opacity: 0.4; }

.page-hero__lead {
  position: relative;
  z-index: 1;
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}

.section--spacious {
  padding: 120px 0;
}

.section-head__desc {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.85;
  max-width: 640px;
  margin-top: 20px;
}

.section-head__desc--light {
  color: rgba(255,255,255,0.55);
  margin-left: auto;
  margin-right: auto;
}

.section-foot {
  margin-top: 48px;
  text-align: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent-light);
  position: relative;
  overflow: hidden;
  padding: 8px 4px;
  transition: transform 0.35s var(--ease-out), color 0.25s ease, text-shadow 0.35s ease;
}

.link-arrow:hover {
  transform: translateX(8px);
  color: var(--c-accent);
  text-shadow: 0 0 20px var(--c-glow);
}

.link-arrow.is-tapped {
  animation: linkLaunch 0.5s var(--ease-bounce);
}

.section--intro { background: var(--c-bg); }
.section--alt {
  background: var(--c-bg-alt);
  background-image: radial-gradient(ellipse 70% 60% at 0% 50%, rgba(224, 32, 32, 0.05) 0%, transparent 55%);
}
.section--dark {
  background: linear-gradient(160deg, #0a0a0a 0%, #111111 50%, #141414 100%);
  color: #fff;
}

main > .section:first-of-type,
.page-hero + .section {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 180px);
}

.section--dark .section-head h2 { color: #fff; }

/* Intro block */
.intro-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-block h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 20px;
}

.intro-block p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
}

.check-list__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  position: relative;
}

.check-list__mark::after {
  content: '';
  position: absolute;
  top: 4px; left: 6px;
  width: 5px; height: 9px;
  border: solid var(--c-accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Nav cards (landing) */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 48px;
}

.nav-card {
  display: block;
  padding: 40px 36px;
  background: var(--c-bg-dark-2);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease), border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
  box-shadow: var(--shadow-sm);
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 32, 32, 0.14) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.nav-card:hover {
  background: #1a1212;
  transform: translateY(-6px);
  border-left-color: var(--c-accent-light);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(224, 32, 32, 0.12);
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card--glow:hover {
  box-shadow: inset 0 0 80px rgba(224, 32, 32, 0.1), 0 0 50px rgba(224, 32, 32, 0.2);
}

.nav-card.is-launching {
  animation: cardLaunch 0.55s var(--ease-bounce);
}

.nav-card__num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.nav-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.nav-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 320px;
}

.nav-card__arrow {
  position: absolute;
  top: 40px;
  right: 36px;
  font-size: 18px;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s ease, transform 0.35s var(--ease-out);
}

.nav-card:hover .nav-card__arrow {
  color: var(--c-accent-light);
  transform: translateX(6px);
  text-shadow: 0 0 16px var(--c-glow);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--c-bg-warm) 0%, var(--c-bg-alt) 100%);
  padding: 72px 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 64px;
  background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 32, 32, 0.15);
  box-shadow: var(--shadow-xl);
}

.cta-band__inner--glow::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224,32,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band__inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-band__inner p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  max-width: 480px;
}

/* ===== About page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-intro__lead {
  font-size: 19px;
  color: var(--c-text);
  line-height: 1.85;
  margin-bottom: 24px;
  font-weight: 500;
}

.about-intro__text p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Expandable strength cards */
.about-expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.about-expand {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease-out);
  cursor: default;
  background-image: linear-gradient(145deg, var(--c-bg) 70%, var(--c-accent-soft) 100%);
  box-shadow: var(--shadow-card);
}

.about-expand:hover,
.about-expand.is-open {
  border-color: rgba(224, 32, 32, 0.4);
  box-shadow: var(--shadow-card-hover), 0 0 24px rgba(224, 32, 32, 0.1);
  transform: translateY(-3px);
}

.about-expand__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 24px;
  position: relative;
}

.about-expand__num {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
}

.about-expand__head h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  padding-right: 28px;
}

.about-expand__toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.about-expand__toggle::before,
.about-expand__toggle::after {
  content: '';
  position: absolute;
  background: var(--c-accent);
  border-radius: 1px;
  transition: transform 0.4s var(--ease-out);
}

.about-expand__toggle::before {
  top: 9px; left: 2px;
  width: 16px; height: 2px;
}

.about-expand__toggle::after {
  top: 2px; left: 9px;
  width: 2px; height: 16px;
}

.about-expand:hover .about-expand__toggle::after,
.about-expand.is-open .about-expand__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.about-expand__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-out), padding 0.45s var(--ease-out), opacity 0.4s ease;
  opacity: 0;
  padding: 0 28px;
}

.about-expand:hover .about-expand__body,
.about-expand.is-open .about-expand__body {
  max-height: 200px;
  opacity: 1;
  padding: 0 28px 28px;
}

.about-expand__body p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
  padding-top: 4px;
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
}

/* Horizontal hover panels */
.about-panels-section {
  overflow: hidden;
}

.about-panels {
  display: flex;
  gap: 10px;
  min-height: 440px;
  margin-top: 52px;
}

.about-panel {
  position: relative;
  flex: 1;
  min-width: 64px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s var(--ease-out), box-shadow 0.5s var(--ease);
}

.about-panels:hover .about-panel {
  flex: 0.75;
}

.about-panels .about-panel:hover,
.about-panels .about-panel.is-active {
  flex: 4.5;
  box-shadow: 0 0 50px var(--c-glow);
}

.about-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}

.about-panel:hover .about-panel__bg {
  transform: scale(1.06);
}

.about-panel__bg--1 { background-image: url('../images/gallery/img-9367.png'); }
.about-panel__bg--2 { background-image: url('../images/gallery/img-9359.png'); }
.about-panel__bg--3 { background-image: url('../images/gallery/img-9391.png'); }
.about-panel__bg--4 { background-image: url('../images/gallery/img-extra-02.png'); }

.about-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, rgba(13,17,23,0.55) 100%);
  transition: background 0.5s var(--ease);
}

.about-panel:hover .about-panel__overlay,
.about-panel.is-active .about-panel__overlay {
  background: linear-gradient(to top, rgba(13,17,23,0.97) 0%, rgba(13,17,23,0.72) 60%, rgba(13,17,23,0.4) 100%);
}

.about-panel__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.about-panel__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent-light);
  margin-bottom: auto;
}

.about-panel__title {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 24px;
  transition: writing-mode 0.5s var(--ease-out), transform 0.5s var(--ease-out), font-size 0.5s var(--ease-out);
  white-space: nowrap;
}

.about-panel:hover .about-panel__title,
.about-panel.is-active .about-panel__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 16px;
  margin-bottom: 8px;
}

.about-panel__teaser {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.1s, max-height 0.5s var(--ease-out);
}

.about-panel:hover .about-panel__teaser,
.about-panel.is-active .about-panel__teaser {
  opacity: 1;
  max-height: 30px;
  margin-bottom: 12px;
}

.about-panel__content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s ease 0.15s, max-height 0.6s var(--ease-out) 0.05s;
}

.about-panel:hover .about-panel__content,
.about-panel.is-active .about-panel__content {
  opacity: 1;
  max-height: 180px;
}

.about-panel__content p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
}

/* Value cards bottom row */
.about-values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  padding: 40px 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease), border-color 0.35s ease;
  background-image: linear-gradient(160deg, var(--c-bg) 50%, rgba(30, 58, 95, 0.04) 100%);
  box-shadow: var(--shadow-card);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 32, 32, 0.25);
  box-shadow: var(--shadow-md);
}

.value-card--glow:hover {
  box-shadow: var(--shadow-card-hover), 0 0 36px rgba(224, 32, 32, 0.1);
}

.value-card__num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

.prose p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.feature-grid li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.35s var(--ease);
  box-shadow: var(--shadow-xs);
}

.feature-grid li:hover {
  border-color: rgba(224, 32, 32, 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-grid__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--c-accent);
}

.feature-grid__icon svg { width: 100%; height: 100%; }

.feature-grid strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.image-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.45s var(--ease);
}

.image-frame:hover {
  box-shadow: var(--shadow-xl);
}

.image-frame__img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}

.image-frame:hover .image-frame__img {
  transform: scale(1.03);
}

.image-frame__img--about {
  background-image: url('../images/gallery/img-9367.png');
  background-position: center 40%;
}

.image-frame__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(13,17,23,0.95), transparent);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.image-frame__stat {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-item {
  padding: 36px 0;
  border-top: 1px solid var(--c-border);
}

.value-item__num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.value-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.value-item p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ===== Services page ===== */
.section--services {
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(224, 32, 32, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(224, 32, 32, 0.04), transparent 50%),
    linear-gradient(180deg, #f4f4f4 0%, #efefef 100%);
  padding-top: 48px;
  padding-bottom: 88px;
}

.services-process {
  position: relative;
  margin-bottom: 40px;
  padding: 28px 24px 32px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.services-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent-light), var(--c-accent), #8b1010);
}

.services-process__track {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 32, 32, 0.22) 12%, rgba(224, 32, 32, 0.22) 88%, transparent);
}

.services-process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.services-process__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.services-process__step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid rgba(224, 32, 32, 0.22);
  box-shadow: 0 6px 16px rgba(224, 32, 32, 0.08);
}

.services-process__list span:last-child {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.service-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-line.is-tapped {
  animation: cardPop 0.45s var(--ease-bounce);
}

.service-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid #eee;
  position: relative;
  background: #fff;
  transition:
    background 0.35s ease,
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.35s ease;
}

.service-line:nth-child(even) {
  background: #fafafa;
}

.service-line:first-child {
  border-radius: 12px 12px 0 0;
}

.service-line:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.service-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-accent-light), var(--c-accent));
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
}

.service-line:hover {
  z-index: 2;
  transform: translateX(18px);
  background: #fff;
  box-shadow:
    -8px 0 0 rgba(224, 32, 32, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(224, 32, 32, 0.06);
  border-color: transparent;
}

.service-line:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.service-line__index {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(224, 32, 32, 0.14);
  transition: color 0.35s ease, transform 0.4s var(--ease-out);
}

.service-line:hover .service-line__index {
  color: rgba(224, 32, 32, 0.5);
  transform: translateX(6px);
}

.service-line__main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: baseline;
}

.service-line h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.service-line p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-muted);
  max-width: 36ch;
}

@media (max-width: 800px) {
  .services-process {
    padding: 22px 18px;
  }

  .services-process__track {
    display: none;
  }

  .services-process__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-process__list li {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
  }

  .service-line {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 22px 18px;
  }

  .service-line:hover {
    transform: translateX(10px);
  }

  .service-line__index {
    font-size: 2rem;
  }

  .service-line__main {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-line p {
    max-width: none;
  }
}

/* ===== Projects page ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease-out), border-color 0.3s ease;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.project-item:hover,
.project-item:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(224, 32, 32, 0.28);
  outline: none;
}

.project-item:nth-child(even) .project-item__image { order: 2; }

.project-item__image {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}

.project-item:hover .project-item__image {
  transform: scale(1.04);
}

.project-item__image--1 { background-image: url('../images/gallery/img-9367.png'); }
.project-item__image--2 { background-image: url('../images/gallery/img-9359.png'); }
.project-item__image--3 { background-image: url('../images/gallery/img-9391.png'); }
.project-item__image--4 { background-image: url('../images/gallery/img-9474.png'); }

.project-item__content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-light);
  margin-bottom: 16px;
  padding: 5px 12px;
  background: rgba(224, 32, 32, 0.1);
  border: 1px solid rgba(224, 32, 32, 0.3);
  border-radius: 2px;
}

.project-item h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-item p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.project-meta {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

.project-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 4px;
}

.project-meta dd {
  font-size: 14px;
  font-weight: 500;
}

.project-item__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.project-item__open::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.project-item:hover .project-item__open::after,
.project-item:focus-visible .project-item__open::after {
  transform: translateX(4px);
}

/* Project detail panel */
.project-panel {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.project-panel[hidden] {
  display: none;
}

.project-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  animation: projectPanelFade 0.3s var(--ease-out);
}

.project-panel__sheet {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: 100%;
  background: var(--c-bg);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  overflow: auto;
  animation: projectPanelSlide 0.4s var(--ease-out);
}

.project-panel__close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 2;
  margin: 16px 16px 0 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.project-panel__close:hover {
  background: var(--c-accent);
  transform: scale(1.05);
}

.project-panel__inner {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  padding: 28px 36px 48px;
}

.project-panel__text .tag {
  margin-bottom: 14px;
}

.project-panel__text h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.project-panel__detail {
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-meta--panel {
  margin-bottom: 28px;
}

.project-panel__photos-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 14px;
}

.project-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.project-panel__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg-alt);
}

.project-panel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-out);
}

.project-panel__thumb:hover img,
.project-panel__thumb:focus-visible img {
  transform: scale(1.06);
}

.project-panel__thumb:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

@keyframes projectPanelFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes projectPanelSlide {
  from { transform: translateX(28px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

body.project-panel-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .project-panel__inner {
    grid-template-columns: 1fr;
    padding: 12px 20px 40px;
    gap: 28px;
  }

  .project-panel__sheet {
    width: 100%;
  }
}

/* ===== Contact page ===== */
.split--contact {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.section--contact {
  padding-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.contact-info__intro {
  margin-bottom: 12px;
}

.contact-info__intro h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}

.contact-info__intro p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s ease, box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out);
}

.info-card:hover {
  border-color: rgba(224, 32, 32, 0.35);
  box-shadow: var(--shadow-sm), 0 0 0 3px var(--c-accent-subtle);
  transform: translateY(-2px);
}

.info-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.info-card__icon svg {
  width: 20px;
  height: 20px;
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.info-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
}

.info-card__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.55;
  word-break: break-word;
}

.info-block__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 8px;
}

.info-block p {
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.6;
}

.contact-form {
  position: relative;
  padding: 40px 40px 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.35)),
    linear-gradient(155deg, var(--c-bg) 0%, var(--c-bg-warm) 55%, var(--c-accent-soft) 140%);
  border: 1px solid var(--c-border-warm);
  border-radius: 10px;
  box-shadow: var(--shadow-lg), var(--shadow-warm);
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent-light), var(--c-accent), #8b1010);
}

.contact-form__head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
}

.contact-form__head h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contact-form__head p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 42ch;
}

.form-status {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  animation: formStatusIn 0.35s var(--ease-out);
}

.form-status--success {
  color: #14532d;
  background: #ecfdf3;
  border: 1px solid #86efac;
}

.form-status--error {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

@keyframes formStatusIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a3a3a3;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #cfcfcf;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--c-accent-subtle);
}

.form-select {
  position: relative;
}

.form-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-text-muted);
  border-bottom: 2px solid var(--c-text-muted);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.6;
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
}

.contact-form__note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-light);
  letter-spacing: 0.01em;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--c-accent), transparent) 1;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer__links a:hover { color: var(--c-accent); }

.footer__contact p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer__contact a,
.info-block a,
.contact-preview__details a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__contact a:hover,
.info-block a:hover,
.contact-preview__details a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== Responsive ===== */
@media (min-width: 1024px) {
  .nav__cta { display: inline-flex; }
}

@media (max-width: 1024px) {
  .intro-block,
  .split,
  .split--contact,
  .about-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    position: static;
  }

  .about-expand-grid {
    grid-template-columns: 1fr;
  }

  .about-panels {
    flex-direction: column;
    min-height: auto;
  }

  .about-panel {
    flex: none !important;
    min-height: 72px;
    min-width: 100%;
  }

  .about-panel.is-active {
    min-height: 280px;
  }

  .about-panel__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
  }

  .about-panel__teaser {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
  }

  .about-panel.is-active .about-panel__teaser {
    opacity: 1;
    max-height: 30px;
    margin-bottom: 12px;
  }

  .about-panel__content {
    opacity: 0;
    max-height: 0;
  }

  .about-panel.is-active .about-panel__content {
    opacity: 1;
    max-height: 200px;
  }

  .about-values-row {
    grid-template-columns: 1fr;
  }

  .values { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; }
  .project-item:nth-child(even) .project-item__image { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 88px; }

  .header .logo__img {
    height: 74px;
    max-height: calc(var(--header-h) - 10px);
  }

  .logo__img { height: 58px; }

  .nav__toggle { display: flex; }

  .nav__actions {
    gap: 10px;
  }

  .lang-switch {
    padding: 5px 6px;
    gap: 6px;
  }

  .lang-switch__btn {
    min-width: 40px;
    padding: 5px 6px;
  }

  .lang-flag__svg {
    width: 30px;
    height: 20px;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-bg-dark);
    flex-direction: column;
    padding: 20px 28px;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero__metrics { flex-wrap: wrap; gap: 24px; }
  .metric__divider { display: none; }
  .metric { min-width: 40%; }

  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .contact-form { padding: 28px 22px 24px; }
  .contact-form__head { margin-bottom: 22px; padding-bottom: 18px; }

  .about-expand__body {
    max-height: 0;
  }

  .about-expand.is-open .about-expand__body {
    max-height: 240px;
    opacity: 1;
    padding: 0 28px 28px;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ===== Landing preview sections ===== */
.preview-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.preview-split h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.preview-split p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.preview-split .link-arrow {
  margin-top: 12px;
}

.image-frame--glow {
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.5s var(--ease);
}

.image-frame--glow:hover {
  box-shadow: var(--shadow-xl), 0 0 48px rgba(224, 32, 32, 0.1);
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.preview-card {
  padding: 40px 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease), border-color 0.35s ease;
  background-image: linear-gradient(160deg, var(--c-bg) 60%, var(--c-accent-soft) 100%);
  box-shadow: var(--shadow-card);
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent-light), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.preview-card--glow:hover {
  transform: translateY(-10px);
  border-color: rgba(224, 32, 32, 0.45);
  box-shadow: var(--shadow-card-hover), 0 0 36px rgba(224, 32, 32, 0.12);
}

.preview-card--glow:hover::before,
.preview-card.is-tapped::before {
  transform: scaleX(1);
}

.preview-card.is-tapped {
  animation: cardPop 0.5s var(--ease-bounce);
}

.preview-card__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.preview-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.preview-card p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.preview-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.preview-project {
  border: 1px solid var(--c-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-bg);
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease), border-color 0.35s ease;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.preview-project--glow:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 32, 32, 0.4);
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(224, 32, 32, 0.1);
}

.preview-project.is-tapped {
  animation: cardPop 0.5s var(--ease-bounce);
}

.preview-project__img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}

.preview-project:hover .preview-project__img {
  transform: scale(1.05);
}

.preview-project__img--1 { background-image: url('../images/gallery/img-9367.png'); }
.preview-project__img--2 { background-image: url('../images/gallery/img-9359.png'); }

.preview-project__body {
  padding: 32px 28px;
}

.preview-project__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.preview-project__body p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.65;
}

.contact-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
}

.contact-preview h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 24px;
}

.contact-preview p {
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 32px;
}

.contact-preview__details {
  display: flex;
  gap: 48px;
}

.contact-preview__details strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 6px;
}

.contact-preview__details p {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 0;
}

.contact-preview__box {
  padding: 44px 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2)),
    linear-gradient(160deg, var(--c-bg-warm) 0%, var(--c-accent-soft) 100%);
  border: 1px solid var(--c-border-warm);
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-preview__box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent-light), var(--c-accent));
}

.contact-preview__box--glow {
  position: relative;
  transition: box-shadow 0.5s var(--ease), transform 0.45s var(--ease-out);
}

.contact-preview__box--glow:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(224, 32, 32, 0.12);
  transform: translateY(-4px);
}

.contact-preview__box p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.section-head h2.font-display {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

@media (max-width: 1024px) {
  .preview-split,
  .contact-preview {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .preview-cards { grid-template-columns: 1fr; }
  .preview-projects { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .preview-split,
  .contact-preview {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .preview-cards { grid-template-columns: 1fr; }
  .preview-projects { grid-template-columns: 1fr; }
}

/* ===== Legal page (Impressum & Datenschutz) ===== */
.container--legal {
  max-width: 780px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.legal-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.legal-nav__link:hover {
  color: var(--c-accent);
  border-color: rgba(224, 32, 32, 0.4);
  background: var(--c-accent-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.legal-block {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}

.legal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-block__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  line-height: 1.25;
}

.legal-block__section {
  margin-bottom: 32px;
}

.legal-block__section:last-child {
  margin-bottom: 0;
}

.legal-block__section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--c-accent);
}

.legal-block__section p {
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.legal-block__section p strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ===== Click & interaction effects ===== */
.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(224, 32, 32, 0.4);
  transform: scale(0);
  animation: rippleExpand 0.7s var(--ease-out) forwards;
  pointer-events: none;
  z-index: 5;
}

.click-ripple--light {
  background: rgba(255, 255, 255, 0.35);
}

.click-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-light);
  box-shadow: 0 0 10px var(--c-glow-strong);
  pointer-events: none;
  z-index: 6;
  animation: sparkFly 0.65s var(--ease-out) forwards;
}

.lang-switch__btn.is-tapped {
  animation: langTap 0.4s var(--ease-bounce);
}

.about-expand.is-tapped {
  animation: cardPop 0.45s var(--ease-bounce);
}

@keyframes rippleExpand {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes btnPop {
  0% { transform: scale(1) translateY(0); }
  35% { transform: scale(0.94) translateY(1px); }
  70% { transform: scale(1.04) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes cardLaunch {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(2px) scale(0.97); box-shadow: 0 0 50px var(--c-glow-strong); }
  100% { transform: translateY(-6px) scale(1); }
}

@keyframes cardPop {
  0% { transform: scale(1); }
  45% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes linkLaunch {
  0% { transform: translateX(0); }
  50% { transform: translateX(14px); text-shadow: 0 0 24px var(--c-glow-strong); }
  100% { transform: translateX(8px); }
}

@keyframes navTap {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); color: var(--c-accent-light); }
  100% { transform: scale(1); }
}

@keyframes langTap {
  0% { transform: scale(1); }
  50% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

@keyframes sparkFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--spark-x, 0), var(--spark-y, 0)) scale(0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .anim { opacity: 1; transform: none; filter: none; }
  .hero__bg { animation: none; }
  .hero__glow { animation: none; }
  .page-loader__hammer { animation: none; }
}

/* ===== Vorher / Nachher ===== */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ba-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ba-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  background: #111418;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  font: inherit;
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.ba-card__media:hover,
.ba-card__media:focus-visible {
  outline: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ba-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.ba-card__media:hover img,
.ba-card__media:focus-visible img {
  transform: scale(1.03);
}

.ba-card__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 12px;
  background: rgba(224, 32, 32, 0.92);
  border-radius: 2px;
  pointer-events: none;
}

.ba-card__body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ba-card__body p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== Project gallery ===== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.gallery-filter {
  appearance: none;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-filter:hover {
  color: var(--c-text);
  border-color: rgba(224, 32, 32, 0.5);
}

.gallery-filter.is-active {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 10px 28px rgba(224, 32, 32, 0.28);
}

.gallery-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-light);
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 3px;
  background: #111418;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.35s var(--ease);
  font: inherit;
  color: inherit;
  text-align: left;
}

.gallery-item.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s var(--ease-out);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  outline: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 11px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-item__badge,
.gallery-item:focus-visible .gallery-item__badge {
  opacity: 1;
  transform: none;
}

.gallery-item__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 14, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.gallery-item:hover .gallery-item__shine,
.gallery-item:focus-visible .gallery-item__shine {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lightboxIn 0.35s var(--ease-out);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96) translateY(14px); }
  to { opacity: 1; transform: none; }
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease-out);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(224, 32, 32, 0.9);
  border-color: var(--c-accent);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  z-index: 2;
}

.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ba-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .gallery-filters {
    gap: 8px;
    margin-bottom: 28px;
  }

  .gallery-count {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item__badge {
    opacity: 1;
    transform: none;
  }

  .gallery-item__shine {
    opacity: 1;
  }

  .lightbox__nav { display: none; }
  .lightbox__close { top: 12px; right: 12px; }
}

