:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --surface-soft: rgba(0, 0, 0, 0.04);
  --panel: #f9f9f9;
  --text: #1a1a1a;
  --muted: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0055ff;
  --accent-2: #00aaff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
}

[data-theme="dark"] {
  --bg: #07111f;
  --surface: rgba(10, 18, 34, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --panel: #0d1a2d;
  --text: #ecf2ff;
  --muted: #9eb0cd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #45d0ff;
  --accent-2: #8ef3c4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(69, 208, 255, 0.16), transparent 30%),
    radial-gradient(circle at left center, rgba(142, 243, 196, 0.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #091728 50%, #050c17 100%);
}

body.classic-theme {
  --bg: #f7f1e6;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-soft: rgba(50, 34, 19, 0.06);
  --panel: #fffaf3;
  --text: #24180e;
  --muted: #6c5949;
  --line: rgba(46, 29, 14, 0.12);
  --shadow: 0 22px 70px rgba(99, 65, 29, 0.12);
  background:
    radial-gradient(circle at top right, rgba(144, 93, 45, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f2e7d5 55%, #efe2ce 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

body.classic-theme .topbar {
  background: rgba(247, 241, 230, 0.88);
}

.topbar-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04111e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(69, 208, 255, 0.22);
}

.brand-copy small,
.eyebrow,
.section-label,
.meta-chip,
.preview-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links,
.hero-actions,
.stats-row,
.feature-list,
.pill-row,
.contact-row,
.footer-links,
.preview-grid,
.service-grid,
.detail-grid,
.steps-grid,
.classic-points,
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a,
.ghost-link,
.outline-link,
.primary-link,
.floating-action {
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
}

.nav-links a:hover,
.ghost-link:hover,
.outline-link:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

.primary-link,
.outline-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
}

.primary-link {
  color: #051220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(69, 208, 255, 0.24);
}

.outline-link {
  border: 1px solid var(--line);
  color: var(--text);
}

.ghost-link {
  color: var(--muted);
  border: 1px solid transparent;
}

.page-hero,
.gallery-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hero-layout,
.gallery-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 38px;
  padding: 72px 0 56px;
  align-items: center;
}

.hero-copy h1,
.gallery-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy .lede,
.gallery-copy p,
.section-intro p,
.detail-panel p,
.service-card p,
.step-card p,
.testimonial-card p,
.contact-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-copy .lede {
  max-width: 640px;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.orbital-card,
.preview-card,
.service-card,
.detail-panel,
.step-card,
.testimonial-card,
.contact-card,
.mini-stat,
.classic-banner,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.orbital-card {
  position: absolute;
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.orbital-card.main {
  inset: 48px 0 auto 36px;
  min-height: 260px;
}

.orbital-card.side {
  right: 20px;
  bottom: 72px;
  width: min(86%, 310px);
}

.orbital-card.bottom {
  left: 0;
  bottom: 0;
  width: min(82%, 350px);
}

.hero-frame {
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, #06111d), color-mix(in srgb, var(--accent-2) 26%, #07111f));
  padding: 22px;
}

.hero-frame-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  min-height: 216px;
}

.hero-frame-main,
.hero-frame-side {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
}

.hero-frame-lines,
.hero-chart,
.line-bars {
  display: grid;
  gap: 12px;
}

.hero-frame-lines span,
.line-bars span,
.chart-line {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-frame-lines span {
  height: 10px;
}

.hero-frame-lines span:nth-child(1) { width: 72%; }
.hero-frame-lines span:nth-child(2) { width: 100%; }
.hero-frame-lines span:nth-child(3) { width: 84%; }
.hero-frame-lines span:nth-child(4) { width: 62%; }

.line-bars span {
  height: 12px;
  width: 100%;
}

.line-bars span:nth-child(2) { width: 72%; }
.line-bars span:nth-child(3) { width: 86%; }

.hero-chart {
  align-content: end;
  min-height: 100%;
}

.chart-line:nth-child(1) { height: 26px; width: 52%; }
.chart-line:nth-child(2) { height: 12px; width: 100%; }
.chart-line:nth-child(3) { height: 12px; width: 88%; }
.chart-line:nth-child(4) { height: 12px; width: 74%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line);
}

.stats-row {
  margin-top: 24px;
}

.mini-stat {
  min-width: 150px;
  padding: 18px;
  border-radius: 18px;
}

.mini-stat strong {
  display: block;
  font-size: 1.4rem;
}

.section-block {
  padding: 28px 0 80px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.section-intro h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.detail-panel,
.step-card,
.testimonial-card,
.contact-card,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.service-card h3,
.detail-panel h3,
.step-card h3,
.contact-card h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}

.service-index,
.step-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 22px;
}

.signature-box {
  min-height: 360px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 48%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #091120), #050b15);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.signature-box::before,
.signature-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.signature-box::before {
  width: 220px;
  height: 220px;
  top: -50px;
  right: -30px;
  background: rgba(255, 255, 255, 0.12);
}

.signature-box::after {
  width: 290px;
  height: 290px;
  left: -70px;
  bottom: -110px;
  background: color-mix(in srgb, var(--accent-2) 35%, transparent);
}

.signature-box .signature-copy {
  position: absolute;
  inset: auto 28px 28px 28px;
}

.signature-copy h3 {
  font-family: "Instrument Serif", serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 10px;
}

.pill-row {
  margin-top: 18px;
}

.meta-chip,
.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card strong {
  display: block;
  margin-top: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
}

.contact-card h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.contact-row {
  margin-top: 20px;
}

.contact-item {
  min-width: 180px;
}

.contact-item strong,
.offer-box strong {
  display: block;
  margin-bottom: 8px;
}

.form-panel form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

body.classic-theme input,
body.classic-theme textarea {
  background: rgba(117, 82, 43, 0.03);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.offer-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 24;
}

.floating-action {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-copy {
  color: var(--muted);
}

.gallery-page .gallery-layout {
  min-height: min(88svh, 860px);
}

.gallery-copy p {
  max-width: 620px;
}

.gallery-aside {
  display: grid;
  gap: 18px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.preview-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 1.22rem;
}

.preview-media {
  position: relative;
  height: 168px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.05), rgba(5, 10, 18, 0.3));
}

.preview-media-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  opacity: 0.9;
}

.preview-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -44px;
  bottom: -56px;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(6px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 86px;
}

.gallery-grid .preview-card {
  display: grid;
  gap: 16px;
}

.preview-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-weight: 800;
  color: #06111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-signature {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.preview-signature span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
}

.preview-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-links a {
  font-weight: 700;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.preview-links a:last-child {
  color: var(--muted);
}

.preview-card-editorial {
  background:
    linear-gradient(150deg, rgba(255,255,255,0.05), transparent 38%),
    linear-gradient(180deg, #102338, #0b1828);
}

.preview-card-editorial::before {
  background: linear-gradient(90deg, #83d9ff, #74f0bf);
}

.preview-card-editorial::after {
  background: #4db6ff;
}

.preview-card-dashboard {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 22%),
    linear-gradient(135deg, #111a2b, #172337);
}

.preview-card-dashboard::before {
  background: linear-gradient(90deg, #5da8ff, #9bb8ff);
}

.preview-card-dashboard::after {
  background: #668cff;
}

.preview-card-service {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 34%),
    linear-gradient(180deg, #102029, #0d1722);
}

.preview-card-service::before {
  background: linear-gradient(90deg, #57f1e4, #abff7b);
}

.preview-card-service::after {
  background: #2dd4bf;
}

.preview-card-showcase {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 99, 0.18), transparent 24%),
    linear-gradient(135deg, #171528, #111a31);
}

.preview-card-showcase::before {
  background: linear-gradient(90deg, #ff8f5b, #ffd770);
}

.preview-card-showcase::after {
  background: #ff8f5b;
}

.preview-card-classic-formal,
.preview-card-classic-brochure {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(241,231,213,0.95)),
    linear-gradient(135deg, #fff8ef, #efe1cc);
}

.preview-card-classic-formal::before,
.preview-card-classic-brochure::before {
  background: linear-gradient(90deg, #b98342, #e4c37a);
}

.preview-card-classic-formal::after,
.preview-card-classic-brochure::after {
  background: #c89b5f;
}

.preview-card-classic-formal strong,
.preview-card-classic-brochure strong,
.preview-card-classic-formal .preview-signature span,
.preview-card-classic-brochure .preview-signature span,
.preview-card-classic-formal .preview-links a,
.preview-card-classic-brochure .preview-links a {
  color: #2f2114;
}

.preview-card-classic-formal p,
.preview-card-classic-brochure p,
.preview-card-classic-formal .preview-tag,
.preview-card-classic-brochure .preview-tag,
.preview-card-classic-formal .meta-chip,
.preview-card-classic-brochure .meta-chip,
.preview-card-classic-formal .preview-links a:last-child,
.preview-card-classic-brochure .preview-links a:last-child {
  color: #6a5440;
}

.preview-card-classic-formal .preview-signature,
.preview-card-classic-brochure .preview-signature,
.preview-card-classic-formal .preview-links a,
.preview-card-classic-brochure .preview-links a,
.preview-card-classic-formal .meta-chip,
.preview-card-classic-brochure .meta-chip {
  background: rgba(110, 79, 40, 0.05);
  border-color: rgba(110, 79, 40, 0.14);
}

.classic-banner {
  border-radius: 28px;
  padding: 22px;
}

.classic-banner h3 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  font-weight: 400;
}

.classic-points {
  margin-top: 18px;
}

.classic-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

[data-template="editorial"] .page-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.08), transparent 20%),
    linear-gradient(90deg, rgba(255,255,255,0.02), transparent 35%),
    linear-gradient(180deg, #091522 0%, #12263a 100%);
}

[data-template="dashboard"] .page-hero {
  background:
    radial-gradient(circle at 78% 16%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 18%),
    linear-gradient(180deg, #08111d 0%, #0c1626 100%);
}

[data-template="service"] .page-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 32%),
    linear-gradient(180deg, #08111c 0%, #0c1824 100%);
}

[data-template="showcase"] .page-hero {
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 18%),
    radial-gradient(circle at 64% 72%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 22%),
    linear-gradient(180deg, #08111d 0%, #121a33 100%);
}

[data-template="classic-formal"] .page-hero,
[data-template="classic-brochure"] .page-hero {
  background:
    linear-gradient(90deg, rgba(169, 116, 46, 0.07), transparent 24%),
    linear-gradient(180deg, #f8f2e8 0%, #f1e6d4 100%);
}

.template-editorial,
.template-dashboard,
.template-service,
.template-showcase,
.template-classic-formal,
.template-classic-brochure {
  min-height: 560px;
}

.editorial-visual,
.dashboard-frame,
.showcase-poster,
.classic-formal-frame,
.brochure-frame {
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.editorial-visual {
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 36px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.09), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, #0e1728), #0e1829);
}

.editorial-column {
  max-width: 340px;
  align-self: end;
}

.editorial-column strong,
.showcase-copy strong,
.classic-formal-panel strong,
.brochure-top strong {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.02;
}

.editorial-column p,
.showcase-copy p,
.classic-formal-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.editorial-stack {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.editorial-stack span,
.showcase-panel,
.classic-service-row,
.metric-panel,
.service-strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.editorial-stack span {
  width: min(86%, 320px);
  padding: 18px 20px;
  text-align: left;
}

.dashboard-frame {
  min-height: 520px;
  padding: 18px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent),
    linear-gradient(135deg, #0d1828, #101d32);
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-card,
.dashboard-chart,
.dashboard-metrics div {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}

.dashboard-sidebar {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dashboard-sidebar span,
.classic-formal-lines span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.dashboard-sidebar span:nth-child(1) { width: 62%; }
.dashboard-sidebar span:nth-child(2) { width: 100%; }
.dashboard-sidebar span:nth-child(3) { width: 84%; }
.dashboard-sidebar span:nth-child(4) { width: 72%; }

.dashboard-main {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.dashboard-top,
.dashboard-bottom,
.metric-band,
.service-strip,
.showcase-story,
.brochure-columns,
.classic-services-layout {
  display: grid;
  gap: 18px;
}

.dashboard-top {
  grid-template-columns: 1.3fr 0.7fr;
}

.dashboard-card.large {
  min-height: 180px;
}

.dashboard-card.small {
  min-height: 180px;
}

.dashboard-bottom {
  grid-template-columns: 1fr 280px;
}

.dashboard-chart {
  min-height: 220px;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 16px;
}

.dashboard-chart span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 14px;
}

.dashboard-chart span:nth-child(1) { width: 58%; }
.dashboard-chart span:nth-child(2) { width: 84%; }
.dashboard-chart span:nth-child(3) { width: 100%; }
.dashboard-chart span:nth-child(4) { width: 72%; }
.dashboard-chart span:nth-child(5) { width: 90%; }

.dashboard-metrics {
  display: grid;
  gap: 14px;
}

.dashboard-metrics div {
  padding: 18px;
}

.dashboard-metrics strong {
  display: block;
  font-size: 1.5rem;
}

.service-hero-grid,
.showcase-panels {
  display: grid;
  gap: 16px;
}

.service-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-hero-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  box-shadow: var(--shadow);
}

.service-hero-card small,
.metric-panel small,
.timeline-card small {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-hero-card strong,
.metric-panel h3,
.service-strip-card h3,
.timeline-card h3,
.classic-service-row h3 {
  display: block;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.showcase-poster {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.05), transparent 36%),
    linear-gradient(135deg, #0e1224, #17112c);
}

.showcase-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.showcase-orb.a {
  width: 320px;
  height: 320px;
  top: 60px;
  right: 50px;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: 0.6;
}

.showcase-orb.b {
  width: 220px;
  height: 220px;
  bottom: 50px;
  left: 40px;
  background: color-mix(in srgb, var(--accent-2) 50%, transparent);
  opacity: 0.5;
}

.showcase-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  max-width: 380px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(10, 17, 29, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.metric-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-panel,
.service-strip-card,
.timeline-card {
  padding: 24px;
}

.service-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-story {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.showcase-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-panel {
  padding: 26px;
  min-height: 120px;
  display: flex;
  align-items: end;
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  border-top: 3px solid color-mix(in srgb, var(--accent) 80%, white 20%);
  background: var(--surface);
  border-radius: 24px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.classic-formal-frame {
  min-height: 500px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(113,79,37,0.06), rgba(255,255,255,0.6)),
    linear-gradient(135deg, #fbf5ec, #f0e2cd);
}

.classic-badge-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.classic-badge-bar span,
.brochure-grid div {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(110, 79, 40, 0.08);
  border: 1px solid rgba(110, 79, 40, 0.12);
}

.classic-formal-panel {
  padding: 28px;
  border-radius: 28px;
  min-height: 390px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(110, 79, 40, 0.14);
}

.classic-formal-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.classic-formal-lines span:nth-child(1) { width: 42%; }
.classic-formal-lines span:nth-child(2) { width: 76%; }
.classic-formal-lines span:nth-child(3) { width: 58%; }
.classic-formal-lines span:nth-child(4) { width: 88%; }

.brochure-frame {
  min-height: 480px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(118,67,40,0.06)),
    linear-gradient(135deg, #fff9f2, #efe0cb);
}

.brochure-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brochure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.classic-services-layout {
  grid-template-columns: 320px 1fr;
}

.classic-side-card,
.classic-service-row,
.classic-contact-card,
.classic-contact-panel {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(110, 79, 40, 0.14);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
}

.classic-service-list {
  display: grid;
  gap: 16px;
}

.brochure-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hero-layout,
  .gallery-layout,
  .detail-grid,
  .contact-layout,
  .service-grid,
  .steps-grid,
  .testimonial-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .metric-band,
  .service-strip,
  .timeline-layout,
  .showcase-story,
  .brochure-columns,
  .classic-services-layout,
  .service-hero-grid,
  .dashboard-top,
  .dashboard-bottom,
  .brochure-grid,
  .showcase-panels {
    grid-template-columns: 1fr;
  }

  .dashboard-frame {
    grid-template-columns: 1fr;
  }

  .orbital-card.main {
    inset: 18px 24px auto 0;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .nav-links,
  .field-grid {
    width: 100%;
  }

  .nav-links a,
  .primary-link,
  .outline-link,
  .ghost-link {
    width: 100%;
    justify-content: center;
  }

  .hero-layout,
  .gallery-layout {
    padding-top: 52px;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .orbital-card {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-bottom: 14px;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }
}
