/* ============================================
   SED Engineering Design Ltd - Main Stylesheet
   Industrial Dark + Clean Light Alternating Rhythm
   Design tokens aligned with IR Processor case study
   ============================================ */

/* ── Design Tokens ── */
:root {
  /* Brand */
  --brand: #1e3a5f;
  --brand-dark: #172d4a;
  --brand-light: #243d62;
  --accent: #d94e1a;
  --accent-hover: #b84014;
  --accent-dim: rgba(217, 78, 26, 0.12);

  /* Light surfaces */
  --surface: #f4f5f7;
  --surface-raised: #ffffff;

  /* Dark surface aliases (kept for compat) */
  --bg-primary: #1e3a5f;
  --bg-secondary: #1a3355;
  --bg-card: #243d62;
  --bg-card-hover: #2a466e;
  --border-dark: #2e4d7a;
  --border-light: #345585;

  /* Borders */
  --border: #dce0e8;

  /* Text — light bg */
  --text: #1a1e26;
  --text-secondary: #5c6270;
  --text-muted: #7d8493;

  /* Text — dark bg */
  --text-inverse: #ffffff;
  --text-on-brand: #c2c7d1;

  /* Accent aliases for compat */
  --accent-gold: #d94e1a;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;

  /* Radius */
  --radius-lg: 12px;
  --radius: 8px;
  --radius-sm: 4px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease-out: 180ms ease-out;

  /* Spacing */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open,
body.overlay-open { overflow: hidden; }

/* ── A11y ── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #c4c9d2; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a6b2; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease-out); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.text-accent { color: var(--accent); }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: 0; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; line-height: 1.25; }
.lead { font-size: 1.125rem; line-height: 1.5; color: var(--text-secondary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; font-size: 0.9375rem; font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--ease-out), box-shadow var(--ease-out);
  border: none; text-decoration: none; white-space: nowrap;
  min-height: 44px;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: #9e3611; }
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted); background: rgba(0,0,0,0.03);
}
.btn--full { width: 100%; justify-content: center; }

/* Dark-section ghost buttons */
.section--dark .btn--ghost {
  color: var(--text-inverse); border-color: rgba(255,255,255,0.25);
}
.section--dark .btn--ghost:hover {
  border-color: #fff; background: rgba(255,255,255,0.08);
}

/* ── Section Header ── */
.section-header {
  text-align: center; margin-bottom: clamp(40px, 6vw, 64px);
}
.section-header__tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-16);
}
.section-header__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600;
  letter-spacing: 0; line-height: 1.15; margin-bottom: var(--space-16);
}
.section-header__desc {
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto; line-height: 1.6;
}

/* Dark section headers */
.section--dark .section-header__tag { color: var(--text-on-brand); }
.section--dark .section-header__title { color: var(--text-inverse); }
.section--dark .section-header__desc { color: var(--text-on-brand); }

/* ── Section background alternation ── */
.section--dark {
  background: var(--brand);
  color: var(--text-inverse);
}
.section--light {
  background: var(--surface);
  color: var(--text);
}
.section--light-alt {
  background: var(--surface-raised);
  color: var(--text);
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(23, 45, 74, 0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--nav-height); transition: all var(--ease-out);
}
.nav--scrolled { background: rgba(23,45,74,0.97); border-bottom-color: rgba(255,255,255,0.12); }
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.nav__logo:visited,
.nav__logo:hover,
.nav__logo:active { color: #fff; }
.nav__logo:focus-visible { outline-color: rgba(255,255,255,0.5); }
.nav__logo-icon { height: 42px; width: auto; filter: brightness(0) invert(92%); }
.nav__logo-text { font-size: 1.15rem; letter-spacing: -0.01em; }
.nav__logo-thin { font-weight: 300; opacity: 0.7; }
.nav__logo-hint {
  display: none;
  font-size: 0.65rem; font-weight: 500;
  color: var(--accent); opacity: 0.7;
}
.nav--scrolled .nav__logo-hint {
  display: inline;
}
.nav--scrolled .nav__logo-text { color: var(--accent); }
.nav--scrolled .nav__logo-thin { color: var(--accent); opacity: 0.8; }
.nav--scrolled .nav__logo-hint { display: inline; }
.nav--scrolled .nav__logo:visited,
.nav--scrolled .nav__logo:hover,
.nav--scrolled .nav__logo:active { color: var(--accent); }
.nav__brand { display: flex; flex-direction: column; align-items: flex-start; }
.nav__brand .nav__logo { margin-bottom: 0; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  color: var(--text-on-brand); text-decoration: none; font-size: 0.9rem;
  padding: 8px 16px; border-radius: var(--radius); transition: all var(--ease-out);
  font-weight: 500;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav__link--cta {
  background: var(--accent); color: #fff; font-weight: 600; margin-left: 8px;
}
.nav__link--cta:hover { background: var(--accent-hover); color: #fff; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: all var(--ease-out);
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative; display: flex; align-items: center;
  justify-content: center; padding: 80px 24px 100px; overflow: hidden;
  background: var(--brand);
  min-height: 100vh;
  min-height: 100dvh;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(217,78,26,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 60px);
  align-items: stretch; max-width: 1100px; width: 100%;
}
.hero__services {
  display: flex; flex-direction: column; gap: 8px;
  height: 100%;
}
.hero-service-card {
  display: flex; align-items: center; gap: 14px; flex: 1 1 0%; position: relative;
  min-height: 0;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); text-decoration: none;
  background: rgba(255,255,255,0.04); transition: all var(--ease-out);
  color: var(--text-on-brand); font-size: 0.9375rem; font-weight: 500;
}
.hero-service-card:hover {
  border-color: var(--accent); background: rgba(217,78,26,0.1);
  color: #fff; transform: translateX(4px);
}
.hero-service-card svg { flex-shrink: 0; }
.hero__content {
  position: relative; z-index: 2; text-align: center; max-width: none;
}
.hero__pretitle {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-16);
}
.hero__title { margin-bottom: var(--space-16); }
.hero__title-line {
  display: block; font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600; letter-spacing: 0; line-height: 1.1;
  color: #fff;
}
.hero__title-line--accent { color: var(--accent); }
.hero__subtitle {
  font-size: 1.125rem; color: var(--text-on-brand);
  max-width: 560px; margin: 0 auto var(--space-24) auto; line-height: 1.5;
}
.nav__anniversary {
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-style: normal;
  font-size: 0.9rem;
  color: #c8962e;
  margin-top: 2px;
  transform: rotate(-1.5deg);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-32); }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero__stats { display: flex; gap: clamp(24px, 4vw, 48px); flex-wrap: nowrap; justify-content: center; }
.hero__stat { text-align: center; }
.hero__stat-number {
  display: block; font-size: 1.75rem; font-weight: 600; color: #fff;
}
.hero__stat-label { font-size: 0.8125rem; color: var(--text-on-brand); }
.hero__scroll {
  position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 3;
}
.hero__scroll-text {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-on-brand);
  animation: scrollBounce 2.2s ease-in-out infinite;
  margin-top: 20px;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-on-brand), transparent);
  animation: scrollLinePulse 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── About ── */
.about { padding: clamp(56px, 8vw, 100px) 0; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.about__image-placeholder {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer; transition: border-color var(--ease-out), box-shadow var(--ease-out);
}
.about__image-placeholder:hover {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}
.about__photo { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.about__photo-label {
  display: block; text-align: center; padding: 6px 0 0;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  color: var(--accent); opacity: 0; transition: opacity var(--ease-out);
}
.about__image-placeholder:hover .about__photo-label { opacity: 1; }
.about__lead {
  font-size: 1.25rem; font-weight: 500; color: var(--text);
  margin-bottom: var(--space-24); line-height: 1.5;
}
.about__content p {
  color: var(--text-secondary); margin-bottom: 16px; font-size: 0.9375rem;
}
.about__content strong { color: var(--text); font-weight: 600; }
.about__credentials { margin-top: var(--space-32); display: flex; flex-direction: column; gap: 12px; }
.credential {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.875rem; color: var(--text-secondary);
}
.credential__icon { font-size: 1.1rem; }

/* ── Services ── */
.services { padding: clamp(56px, 8vw, 100px) 0; background: var(--surface-raised); }
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 24px);
  align-items: stretch;
}
.service-card-link { text-decoration: none; color: inherit; display: flex; position: relative; }
.service-card-link .service-card { flex: 1; }
.service-card-link::before {
  content: 'Case Studies >>';
  position: absolute; top: 12px; right: 16px;
  font-size: 0.68rem; font-weight: 600; color: var(--accent);
  opacity: 0.7; z-index: 3;
}
.service-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 32px);
  transition: box-shadow var(--ease-out); position: relative; overflow: hidden;
}
.service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.service-card__icon { margin-bottom: var(--space-24); }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-12); color: var(--text); }
.service-card > p {
  color: var(--text-secondary); font-size: 0.9375rem;
  margin-bottom: var(--space-24); line-height: 1.55;
}
.service-card__list { display: flex; flex-direction: column; gap: 8px; }
.service-card__list li {
  font-size: 0.85rem; color: var(--text-muted);
  padding-left: 18px; position: relative;
}
.service-card__list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
}


/* ── Process ── */
.process {
  padding: clamp(56px, 8vw, 100px) 0;
}
.process__timeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; position: relative;
}
.process__timeline::before {
  content: ''; position: absolute; top: 30px; left: 10%; right: 10%;
  height: 1px; background: rgba(255,255,255,0.15);
}
.process-step {
  text-align: center; padding: 0 16px; position: relative; z-index: 1;
}
.process-step__number {
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600;
  color: var(--accent); margin-bottom: var(--space-16);
  width: 56px; height: 56px; display: flex; align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%; margin: 0 auto 20px;
}
.process-step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.process-step p { color: var(--text-on-brand); font-size: 0.85rem; line-height: 1.55; }

/* ── Lab ── */
.lab { padding: clamp(56px, 8vw, 100px) 0; }
.lab__photo {
  margin: 0 auto clamp(32px, 5vw, 48px);
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.lab__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.lab__photo-caption {
  display: block;
  text-align: center;
  padding: 10px 16px 14px;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-on-brand);
  opacity: 0.75;
  background: var(--brand-dark);
}
.lab__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.lab__item {
  background: var(--brand-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: box-shadow var(--ease-out);
  position: relative;
}
.lab__item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.lab__item-icon { margin-bottom: var(--space-16); }
.lab__item h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: var(--space-8); }
.lab__item p { color: var(--text-on-brand); font-size: 0.875rem; line-height: 1.55; }
.lab__item-cta {
  display: none;
  position: absolute; top: 12px; right: 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: opacity var(--ease-out);
}
.lab__item-cta:hover { opacity: 0.8; }
@media (max-width: 767px) {
  .lab__grid { grid-template-columns: 1fr; }
  .lab__item-cta { display: inline; }
}

/* ── Projects ── */
.projects { padding: clamp(56px, 8vw, 100px) 0; background: var(--surface); }
.projects__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 24px);
}
.project-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--ease-out);
}
.project-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.project-card__media { position: relative; }
.project-card__thumb {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 112px; height: 112px; max-width: 112px; min-width: 112px;
  border-radius: 6px;
  object-fit: cover; border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 2;
  opacity: 0.85; transition: opacity var(--ease-out);
}
.project-card:hover .project-card__thumb { opacity: 1; }
.project-card__placeholder {
  height: 140px; display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #172d4a 100%);
  position: relative; overflow: hidden;
  padding: 20px 136px 20px 20px;
}
@media (max-width: 639px) {
  .project-card__thumb { width: 80px; height: 80px; right: 8px; }
  .project-card__placeholder { padding: 16px 100px 16px 16px; }
}
.project-card__placeholder .project-card__tags {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin-top: auto;
  position: relative; z-index: 1;
}
.project-card__placeholder .project-card__tags span {
  font-size: 0.68rem; padding: 3px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.project-card__placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(217,78,26,0.1) 0%, transparent 70%);
}
.project-card__placeholder--alt {
  background: linear-gradient(135deg, #1a2838 0%, #101d2c 100%);
}
.project-card__placeholder--alt::after {
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.project-card__placeholder--alt2 {
  background: linear-gradient(135deg, #162820 0%, #0d1a14 100%);
}
.project-card__placeholder--alt2::after {
  background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.1) 0%, transparent 70%);
}
.project-card__placeholder--alt3 {
  background: linear-gradient(135deg, #281c1c 0%, #1a1111 100%);
}
.project-card__placeholder--alt3::after {
  background: radial-gradient(circle at 50% 50%, rgba(239,68,68,0.1) 0%, transparent 70%);
}
.project-card__placeholder--alt4 {
  background: linear-gradient(135deg, #1e1e28 0%, #12121a 100%);
}
.project-card__placeholder--alt5 {
  background: linear-gradient(135deg, #251e18 0%, #18110c 100%);
}
.project-card__placeholder--mpre { background: linear-gradient(135deg, #1a1418 0%, #140f14 100%); }
.project-card__placeholder--mpre::after { background: radial-gradient(circle at 40% 60%, rgba(16,185,129,0.1) 0%, transparent 60%); }
.project-card__placeholder--mdes { background: linear-gradient(135deg, #1e1a14 0%, #18140e 100%); }
.project-card__placeholder--mdes::after { background: radial-gradient(circle at 50% 50%, rgba(245,158,11,0.1) 0%, transparent 60%); }
.project-card__placeholder--sft { background: linear-gradient(135deg, #1a1e2e 0%, #141820 100%); }
.project-card__placeholder--sft::after { background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.12) 0%, transparent 60%); }
.project-card__placeholder--emc { background: linear-gradient(135deg, #1a2818 0%, #0f1a0f 100%); }
.project-card__placeholder--emc::after { background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.1) 0%, transparent 60%); }
.project-card__placeholder--tube { background: linear-gradient(135deg, #1a1818 0%, #1a0f0a 0%); }
.project-card__placeholder--tube::after { background: radial-gradient(circle at 50% 50%, rgba(217,78,26,0.08) 0%, transparent 60%); }
.project-card__placeholder--dsp { background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); }
.project-card__placeholder--dsp::after { background: radial-gradient(circle at 70% 30%, rgba(59,130,246,0.12) 0%, transparent 60%); }
.project-card__placeholder--classd { background: linear-gradient(135deg, #1a1f1a 0%, #0f1a0f 100%); }
.project-card__placeholder--classd::after { background: radial-gradient(circle at 30% 70%, rgba(217,78,26,0.1) 0%, transparent 60%); }
.project-card__placeholder--ir {
  background: linear-gradient(135deg, #1a1f2e 0%, #10141f 100%);
}
.project-card__placeholder--ir::after {
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.12) 0%, transparent 70%);
}
.project-card__brand {
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 300;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--accent); position: relative; z-index: 1;
}
.project-card__brand strong {
  font-weight: 700;
}
.project-card__model {
  font-size: 1.1rem; font-weight: 600; position: relative; z-index: 1;
  margin-top: 2px; color: #fff;
}
.project-card__body { padding: 18px 20px; }
.project-card__tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-16);
}
.project-card__tags span {
  font-size: 0.72rem; padding: 4px 12px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}
.project-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-4); color: var(--text); }
.project-card p {
  color: var(--text-secondary); font-size: 0.8125rem;
  line-height: 1.5; margin-bottom: 0;
}

@media (max-width: 767px) {
  .project-card__media::after {
    content: 'Click for details \2192';
    position: absolute; bottom: 8px; right: 12px;
    font-size: 0.7rem; font-weight: 600; color: var(--accent);
    z-index: 3; letter-spacing: 0.03em;
    pointer-events: none;
  }
}
.project-card__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: var(--space-16); border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-muted);
}
.project-card__meta strong { font-weight: 600; color: var(--text-secondary); }

.projects__disclaimer { text-align: center; color: #d94e1a; font-size: 0.78rem; margin-top: 8px; opacity: 0.8; }

.projects__pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 20px;
}
.project-pill {
  display: inline-block; padding: 6px 14px;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface-raised); color: var(--text-secondary);
  font-size: 0.8rem; font-family: var(--font); cursor: pointer;
  transition: border-color var(--ease-out), color var(--ease-out), background var(--ease-out);
}
.project-pill:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(217,78,26,0.05);
}

.section-header__title sup { color: #f97316; font-size: 0.55em; vertical-align: super; }

/* ── Clients ── */
.clients { padding: clamp(56px, 8vw, 100px) 0; }
.clients__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius);
  overflow: hidden;
}
.client-logo {
  background: var(--brand-light); padding: 24px 20px; display: flex;
  align-items: center; justify-content: center; text-align: center;
  transition: all var(--ease-out); cursor: default;
  min-height: 80px;
}
.client-logo__svg {
  width: 100%; max-width: 140px; height: auto; color: var(--text-on-brand);
  transition: color var(--ease-out);
}
.client-logo:hover { background: var(--bg-card-hover); }
.client-logo:hover .client-logo__svg { color: #fff; }
.client-logo__text {
  font-size: 0.95rem; font-weight: 500; color: var(--text-on-brand);
  transition: color var(--ease-out);
}
.client-logo:hover .client-logo__text { color: #fff; }
.clients__note {
  text-align: center; margin-top: var(--space-32);
  color: var(--text-on-brand); font-style: italic; font-size: 0.9rem;
}

/* ── Testimonials ── */
.testimonials { padding: clamp(56px, 8vw, 100px) 0; background: var(--surface); }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 24px);
}
.testimonials__single {
  max-width: 720px; margin: 0 auto;
}
.testimonial-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 36px) clamp(24px, 3vw, 32px);
  transition: box-shadow var(--ease-out); position: relative;
}
.testimonial-card--featured {
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 40px);
  text-align: center;
}
.testimonial-card--featured .testimonial-card__quote {
  font-size: 1.0625rem; line-height: 1.7;
}
.testimonial-card--featured .testimonial-card__author {
  justify-content: center;
}
.testimonial-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.testimonial-card::before {
  content: '"'; position: absolute; top: 20px; right: 28px;
  font-size: 5rem; font-weight: 900;
  color: rgba(217,78,26,0.08); line-height: 1;
  font-family: Georgia, serif; pointer-events: none;
}
.testimonial-card__quote {
  color: var(--text-secondary); font-size: 0.9375rem;
  line-height: 1.65; font-style: italic;
  margin-bottom: var(--space-24); position: relative; z-index: 1;
}
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-card__author span { font-size: 0.8rem; color: var(--text-muted); }

/* ── Contact ── */
.contact { padding: clamp(56px, 8vw, 100px) 0; }
.contact__grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 640px; margin: 0 auto;
}
.contact__info { display: flex; flex-direction: column; gap: var(--space-24); }
.contact__info-item { display: flex; gap: var(--space-16); align-items: flex-start; }
.contact__info-icon { font-size: 1.2rem; margin-top: 2px; }
.contact__info-item h4 {
  font-size: 0.75rem; font-weight: 600; color: var(--text-on-brand);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.contact__info-item p, .contact__info-item a {
  font-size: 0.9375rem; color: var(--text-on-brand);
}
.contact__info-item a:hover { color: #fff; }

/* ── Obfuscated contact reveal ── */
.contact-reveal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.2);
  color: var(--text-on-brand); font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.contact-reveal:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
.contact-reveal__icon { width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0; }
.contact-reveal.revealed {
  border-style: solid; border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); cursor: default; padding-right: 18px;
}
.contact-reveal.revealed:hover { background: rgba(255,255,255,0.04); }
.contact-reveal__text { font-family: var(--font-mono); font-size: 0.875rem; }

/* Footer reveal variant */
.footer__links .contact-reveal {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1);
  color: var(--text-secondary); font-size: 0.8125rem; padding: 4px 10px;
}
.footer__links .contact-reveal:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.footer__links .contact-reveal.revealed { color: #fff; }

.contact__info-divider {
  height: 1px; background: rgba(255,255,255,0.1);
  margin: 4px 0;
}
.contact__map {
  background: var(--brand-light); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden;
}
.contact__map-visual {
  width: 100%; height: 200px; background: var(--brand-dark);
  border-radius: var(--radius-sm); position: relative; margin: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Crect fill='%23172d4a' width='800' height='400'/%3E%3Cpath d='M120 60 L140 50 L160 55 L180 65 L190 80 L185 100 L175 130 L170 160 L165 190 L160 220 L155 250 L145 280 L140 310 L135 330 L180 330 L190 310 L200 280 L210 260 L220 240 L230 200 L240 180 L250 160 L260 140 L270 130 L280 140 L270 160 L260 180 L255 200 L250 230 L240 250 L230 270 L235 290 L250 310 L260 330 L300 330 L320 310 L330 280 L340 250 L345 220 L340 190 L330 160 L320 140 L310 120 L300 100 L290 85 L280 70 L260 60 L240 50 L220 55 L200 50 L180 55 L160 50 L140 55Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M380 80 L400 70 L420 65 L440 60 L460 62 L475 70 L485 80 L490 95 L480 110 L465 120 L450 130 L440 140 L430 145 L420 140 L410 125 L400 110 L390 100Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M400 130 L420 135 L440 145 L455 160 L465 180 L470 210 L465 240 L455 270 L445 300 L435 330 L420 350 L405 360 L395 355 L385 340 L380 310 L375 280 L378 250 L385 220 L390 190 L395 160 L398 140Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M490 90 L520 70 L550 55 L580 50 L610 55 L640 65 L670 75 L690 90 L700 110 L705 130 L700 150 L690 170 L680 190 L670 210 L660 230 L650 250 L640 270 L630 290 L610 300 L590 305 L570 310 L550 320 L530 330 L510 340 L500 350 L485 355 L475 340 L470 310 L465 280 L460 250 L455 220 L450 190 L460 160 L470 130 L480 110Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M620 290 L640 285 L660 280 L675 285 L685 295 L688 310 L680 325 L660 330 L640 325 L625 315 L620 300Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M700 140 L710 135 L715 145 L712 155 L705 158 L700 150Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3Cpath d='M380 75 L390 68 L400 72 L398 82 L388 85 L378 82Z' fill='%23243d62' stroke='%232e4d7a' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.contact__map-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(217,78,26,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(217,78,26,0.4); }
  50% { box-shadow: 0 0 16px rgba(217,78,26,0.8); }
}
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16);
  background: var(--brand-light); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 32px);
}
.contact__form-group { display: flex; flex-direction: column; gap: 6px; }
.contact__form-group--full { grid-column: 1 / -1; }
.contact__form-group label {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-on-brand);
}
.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
  background: var(--brand-dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.9375rem; font-family: var(--font-sans);
  color: #fff; transition: border-color var(--ease-out);
}
.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder { color: var(--text-on-brand); opacity: 0.6; }
.contact__form-group select { color: #fff; }
.contact__form-group select option { background: var(--brand-dark); color: #fff; }
.contact__form-note {
  color: var(--text-on-brand); font-size: 0.8125rem;
  grid-column: 1 / -1; text-align: center; margin-top: 4px;
}

/* ── Footer ── */
.footer {
  background: var(--brand-dark); padding: clamp(40px, 6vw, 64px) 0 32px;
  color: var(--text-on-brand);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 48px); margin-bottom: var(--space-32);
}
.footer__brand p {
  margin-top: var(--space-16); font-size: 0.875rem;
  color: var(--text-on-brand); line-height: 1.6; max-width: 320px;
}
.footer__logo {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600;
}
.footer__logo-icon { height: 32px; width: auto; filter: brightness(0) invert(80%); }
.footer__links h4 {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-on-brand); margin-bottom: var(--space-16);
}
.footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  color: var(--text-on-brand); font-size: 0.875rem;
  transition: color var(--ease-out);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem; color: var(--text-on-brand); opacity: 0.7;
}
.footer__version {
  font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.5;
}
.footer__legal {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding-top: var(--space-12);
  font-size: 0.75rem; color: var(--text-on-brand); opacity: 0.5;
}
.footer__legal a {
  color: inherit; text-decoration: none; transition: opacity 0.15s;
}
.footer__legal a:hover { opacity: 0.8; color: #fff; }
.footer__legal-sep { opacity: 0.4; }

/* ── Legal Overlay ── */
.legal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.legal-overlay.active { opacity: 1; pointer-events: auto; }
.legal-modal {
  background: var(--surface-raised); border-radius: var(--radius);
  max-width: 700px; width: 90%; max-height: 85vh;
  overflow-y: auto; position: relative;
  padding: clamp(28px, 4vw, 40px);
}
.legal-modal__close {
  position: sticky; top: 0; float: right;
  background: none; border: none; font-size: 1.8rem;
  color: var(--text-muted); cursor: pointer; line-height: 1;
  z-index: 2;
}
.legal-modal__close:hover { color: var(--text); }
.legal-modal__content { clear: both; }
.legal-modal__content h2 { font-size: 1.3rem; margin-bottom: var(--space-16); color: var(--text); }
.legal-modal__content h3 {
  font-size: 0.95rem; margin-top: var(--space-24); margin-bottom: var(--space-8);
  color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.legal-modal__content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-12); }
.legal-modal__content a { color: var(--accent); }

/* ── Reveal Animations ── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Resume Overlay ── */
.resume-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 24px; overflow-y: auto;
}
.resume-overlay.active { opacity: 1; visibility: visible; }
.resume-modal {
  background: var(--brand-light); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); max-width: 760px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  padding: 48px 40px 40px;
  transform: translateY(16px); transition: transform 0.3s ease;
}
.resume-overlay.active .resume-modal { transform: translateY(0); }
.resume-modal__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-on-brand);
  font-size: 2rem; cursor: pointer; line-height: 1;
  transition: color var(--ease-out); padding: 4px 8px;
}
.resume-modal__close:hover { color: #fff; }
.resume-modal__content h2 {
  font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 4px;
}
.resume-modal__subtitle {
  color: var(--accent); font-size: 0.875rem; margin-bottom: var(--space-24);
}
.resume-modal__content hr {
  border: none; border-top: 1px solid rgba(255,255,255,0.08);
  margin: 20px 0 var(--space-24);
}
.resume-modal__content h3 {
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: var(--space-24) 0 var(--space-8);
}
.resume-modal__content p {
  color: var(--text-on-brand); font-size: 0.875rem;
  line-height: 1.65; margin-bottom: 8px;
}
.resume-modal__content strong { color: #fff; }

/* ── Project Overlay (iframe-based, like CV) ── */
.project-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 24px;
}
.project-overlay.active { opacity: 1; visibility: visible; }
.project-modal {
  background: var(--surface-raised);
  border-radius: var(--radius);
  max-width: 1100px; width: 100%;
  max-height: 90vh; height: 90vh;
  position: relative; overflow: hidden;
  transform: translateY(16px); transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.project-overlay.active .project-modal { transform: translateY(0); }
.project-modal__close {
  position: absolute; top: 12px; right: 16px; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease-out);
}
.project-modal__close:hover { background: rgba(0,0,0,0.7); }
.project-modal__iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hero__services { flex-direction: row; flex-wrap: wrap; gap: 8px; height: auto; }
  .hero-service-card { flex: 0 1 calc(50% - 4px); padding: 14px 16px; font-size: 0.88rem; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .process__timeline { grid-template-columns: 1fr; gap: 32px; }
  .process__timeline::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Always show hover hints on mobile */
  .about__photo-label { opacity: 1; }
  .nav { backdrop-filter: none; }
  .nav__anniversary { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__services { flex-direction: column; flex-wrap: nowrap; gap: 8px; height: auto; }
  .hero-service-card { flex: 0 0 auto; width: 100%; min-height: 0; padding: 12px 14px; font-size: 0.85rem; gap: 10px; }
  .hero-service-card svg { width: 20px; height: 20px; flex-shrink: 0; }
  .hero__content { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__stat { text-align: center; }
  .nav__links {
    position: absolute; top: 100%; left: auto; right: 0;
    width: 200px; max-width: 200px;
    background: rgba(23, 45, 74, 0.97);
    flex-direction: column; gap: 8px;
    display: none;
    padding: 16px 16px 24px;
    z-index: 999;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav__links.active { display: flex; }
  .nav__link { font-size: 1.1rem; padding: 16px 20px; }
  .nav__link--cta { margin-left: 0; }
  .nav__links li:last-child { margin-top: 20px; }
  .nav__burger { display: flex; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .client-logo__svg { max-width: 110px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero__stats { gap: 24px; flex-wrap: nowrap; }
  .hero__scroll { display: none; }
  .contact__form { grid-template-columns: 1fr; padding: 24px; }
  .project-overlay { padding: 0; }
  .project-modal { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .project-modal__close { top: 8px; right: 8px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero__inner { gap: 20px; }
  .hero-service-card { padding: 12px 14px; font-size: 0.85rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { padding: 20px 12px; min-height: 60px; }
  .client-logo__svg { max-width: 100px; }
  .client-logo__text { font-size: 0.82rem; }
  .resume-modal { padding: 32px 20px; }
  .resume-modal__content h2 { font-size: 1.3rem; }
}

/* ── Citadel Overlay ── */
.citadel-overlay {
  position: fixed; inset: 0; z-index: 2200;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}
.citadel-overlay.active { opacity: 1; visibility: visible; }
.citadel-modal {
  background: var(--brand-light); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  position: relative; padding: 48px 36px 40px;
  transform: translateY(16px); transition: transform 0.3s ease;
}
.citadel-overlay.active .citadel-modal { transform: translateY(0); }
.citadel-modal__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--text-on-brand);
  font-size: 2rem; cursor: pointer; line-height: 1;
  transition: color var(--ease-out); padding: 4px 8px;
}
.citadel-modal__close:hover { color: #fff; }
.citadel-modal__brand {
  text-align: center; margin-bottom: var(--space-24);
}
.citadel-modal__logo {
  height: 48px; width: auto; opacity: 0.9;
}
.citadel-modal__text {
  color: var(--text-on-brand); font-size: 0.9375rem;
  line-height: 1.65; text-align: center; margin-bottom: var(--space-24);
}
.citadel-modal__btn {
  display: block; text-align: center; justify-content: center;
}
.citadel-modal__btn:hover {
  color: #1e3a5f !important;
  background: var(--accent) !important;
}

/* ── Equipment Overlay ── */
.equip-overlay {
  position: fixed; inset: 0; z-index: 2300;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}
.equip-overlay.active { opacity: 1; visibility: visible; }
.equip-modal {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  max-width: 960px; width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transform: translateY(16px); transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.equip-overlay.active .equip-modal { transform: translateY(0); }
.equip-modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  background: rgba(0,0,0,0.35); border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease-out);
}
.equip-modal__close:hover { background: rgba(0,0,0,0.6); }
.equip-modal__header {
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  padding: 28px 32px 20px;
}
.equip-modal__header h2 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.equip-modal__header p { color: var(--text-on-brand); font-size: 0.9rem; margin-bottom: 16px; }
.equip-modal__search {
  width: 100%; padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: rgba(0,0,0,0.25); color: #fff; outline: none;
  transition: border-color var(--ease-out);
}
.equip-modal__search:focus { border-color: var(--accent); }
.equip-modal__search::placeholder { color: rgba(255,255,255,0.45); }
.equip-modal__body {
  flex: 1; overflow-y: auto; padding: 0;
  min-height: 200px;
}
.equip-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.equip-table thead {
  position: sticky; top: 0; z-index: 2;
}
.equip-table th {
  background: var(--brand-light);
  color: var(--text-on-brand);
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 20px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.equip-table td {
  padding: 10px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.equip-table tbody tr:hover {
  background: rgba(217,78,26,0.04);
}
.equip-table td:first-child {
  font-weight: 600; color: var(--accent); white-space: nowrap;
}
.equip-table td:nth-child(2) {
  font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap;
}
@media (max-width: 767px) {
  .equip-overlay { padding: 12px; }
  .equip-modal { max-width: 100%; max-height: 90vh; border-radius: var(--radius-sm); }
  .equip-modal__header { padding: 24px 20px 16px; }
  .equip-table th,
  .equip-table td { padding: 8px 12px; }
  .equip-table td:first-child,
  .equip-table td:nth-child(2) { white-space: normal; }
}
