:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #b8b8b8;
  --subtle: #7a7a7a;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --surface: #0a0a0a;
  --surface-2: #111111;
  --accent: #ffffff;
  --radius: 4px;
  --maxw: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

a { color: var(--fg); text-decoration: none; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 160px; gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { height: 140px; width: auto; }
.primary-nav { display: flex; gap: var(--space-6); justify-self: center; }
.primary-nav a {
  position: relative;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0;
  color: #fff;
  opacity: 0.7;
  transition: opacity .25s ease;
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: #fff;
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.primary-nav a:hover::after { width: 100%; }
.primary-nav a.is-active { opacity: 1; }
.primary-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); justify-self: end; }
.lang-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  padding: 4px 0; opacity: 0.7; transition: opacity .15s ease;
}
.lang-btn:hover { opacity: 1; }
.lang-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  font: inherit; font-weight: 500; font-size: 14px; letter-spacing: 0.02em;
  border-radius: var(--radius); cursor: pointer; user-select: none;
  border: 1px solid #fff; background: #fff; color: #000;
  transition: transform .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: #fff; border-color: var(--line-strong);
}
.btn-ghost:hover { background: #fff; color: #000; opacity: 1; }
.btn-outline {
  background: transparent; color: #fff; border-color: #fff;
}
.btn-outline:hover { background: #fff; color: #000; opacity: 1; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: var(--space-9) 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

/* Page transition */
#main { outline: none; }
.page-enter {
  animation: page-enter .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--muted); margin-bottom: var(--space-4);
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 + .lead, h1 + .slogan { margin-top: var(--space-8); }
h1 { font-size: clamp(38px, 5.5vw, 72px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { color: var(--muted); margin: 0 0 var(--space-4); }
p.lead { font-size: 18px; color: #d8d8d8; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- Centered page composition ---------- */
.hero .container,
.page-hero .container,
.section-head,
.cta-strip,
.svc-list,
.split {
  text-align: center;
}
.hero .container > *,
.page-hero .container > *,
.section-head > * {
  margin-left: auto;
  margin-right: auto;
}
/* long-form body stays left-aligned for readability */
.prose { text-align: left; }

/* ---------- Hero ---------- */
.hero, .page-hero { padding: var(--space-10) 0 var(--space-9); }
.hero h1, .page-hero h1 { margin-bottom: var(--space-5); max-width: 22ch; }
.hero .lead, .page-hero .lead { margin-bottom: var(--space-6); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head h2 { max-width: 22ch; }
.section-head p { max-width: 56ch; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-3);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card .num {
  font-size: 12px; color: var(--subtle); letter-spacing: 0.2em;
}
.card h3 { margin-bottom: 4px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.value { border-top: 1px solid var(--line-strong); padding-top: var(--space-4); }
.value h4 { font-size: 15px; margin-bottom: var(--space-2); font-weight: 600; }
.value p { font-size: 14px; margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-5);
  border: 1px solid var(--line-strong); padding: var(--space-8) var(--space-7);
  border-radius: var(--radius);
  max-width: 820px; margin: 0 auto;
}
.cta-strip h2 { max-width: 26ch; }
.cta-strip p { max-width: 56ch; margin: 0 auto; }

/* ---------- About / content ---------- */
.prose { max-width: 70ch; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 18px; display: inline-block; text-align: left; }
.prose ul li { margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.split .label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--subtle); margin-bottom: var(--space-3); }
.split > div { max-width: 52ch; margin: 0 auto; }

.slogan {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1; letter-spacing: 0;
  margin: var(--space-6) 0;
  color: #fff;
}
.slogan .glow {
  display: inline;
  color: #fff;
  animation: dreamers-glow 4.5s ease-in-out infinite;
}
@keyframes dreamers-glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255,255,255,0.75),
      0 0 20px rgba(255,255,255,0.45),
      0 0 40px rgba(255,255,255,0.25);
  }
  50% {
    text-shadow:
      0 0 14px rgba(255,255,255,1),
      0 0 34px rgba(255,255,255,0.8),
      0 0 65px rgba(255,255,255,0.55),
      0 0 110px rgba(255,255,255,0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slogan .glow { animation: none; }
}

/* ---------- Services list ---------- */
.svc-list { display: flex; flex-direction: column; align-items: center; }
.svc-row {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-7) 0; border-top: 1px solid var(--line);
  width: 100%; max-width: 640px;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { color: var(--subtle); font-size: 13px; letter-spacing: 0.2em; }
.svc-row h3 { font-size: 24px; }
.svc-row p { font-size: 15px; margin: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-8);
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.contact-info { width: 100%; }
.contact-info .label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: var(--space-2);
}
.contact-info p { color: var(--muted); }
.contact-info a { color: #fff; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.contact-info a:hover { opacity: 1; border-bottom-color: #fff; }

form.contact-form {
  display: grid; gap: var(--space-4);
  width: 100%;
  text-align: left;
}
form.contact-form > div:last-of-type,
form.contact-form .form-status { text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: transparent; color: #fff; border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0; font: inherit; font-size: 16px;
  border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { font-size: 14px; color: var(--muted); min-height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}
.footer-top {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-5); text-align: center;
  padding-bottom: var(--space-6);
}
.footer-logo { height: 140px; width: auto; opacity: 0.95; margin-bottom: calc(var(--space-6) * -1); }
.footer-slogan {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
}
.footer-nav { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px; color: var(--muted);
  position: relative; padding-bottom: 2px;
  transition: color 0.2s ease;
}
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-email {
  font-size: 14px; color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.footer-email:hover { border-bottom-color: #fff; }
.footer-bottom {
  display: flex; justify-content: center; align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-sig {
  margin: 0; font-size: 12px; color: var(--subtle);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { height: 96px; }
  .brand-logo { height: 72px; }
  section { padding: var(--space-8) 0; }
  .hero, .page-hero { padding: var(--space-8) 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-5); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .svc-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .svc-row .num { display: none; }
  .footer-logo { height: 96px; }

  .primary-nav {
    gap: var(--space-4);
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header-inner { height: 72px; gap: var(--space-3); }
  .brand-logo { height: 52px; }
  .primary-nav { gap: var(--space-3); }
  .primary-nav a { font-size: 13px; }
  .cta-strip { padding: var(--space-5); }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
