:root {
  --header-height: 78px;
  --bg: #0d0d0d;
  --bg-soft: #151515;
  --surface: #1d1d1d;
  --surface-light: #f7f5f2;
  --text: #f4f4f4;
  --text-dark: #161616;
  --muted: #bdb8b2;
  --accent: #8b6b52;
  --accent-strong: #a57f5f;
  --border: rgba(255,255,255,.08);
  --shadow: 0 20px 50px rgba(0,0,0,.18);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}
.narrow { width: min(calc(100% - 2rem), 860px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13,13,13,.9);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link { display: inline-flex; align-items: center; }
.brand-mark { width: 40px; height: 40px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  color: rgba(255,255,255,.88);
  font-size: .96rem;
}
.site-nav a:hover { color: #fff; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-left: .5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
}
.language-switch a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
}
.language-switch a.active,
.language-switch a[aria-current="page"] {
  color: #fff;
}
.language-switch a:hover { color: #fff; }
.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem .8rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 2rem 0 5.5rem;
  background:
    radial-gradient(circle at top center, rgba(139,107,82,.26), transparent 38%),
    linear-gradient(180deg, #171412 0%, #110f0f 44%, #0d0d0d 100%);
}
.hero-shell-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.06), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(139,107,82,.22), transparent 34%);
  opacity: .95;
}
.brand-banner {
  position: relative;
  padding: .25rem 0 .5rem;
  background: transparent;
}
.brand-banner-inner {
  display: flex;
  justify-content: center;
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.42));
}

.hero {
  position: relative;
  z-index: 1;
  padding: .75rem 0 0;
  background: transparent;
}
.hero-inner {
  width: min(100%, 860px);
  text-align: center;
}
.eyebrow,
.section-kicker {
  margin: 0 0 .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero-copy {
  width: min(100%, 740px);
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #d9d5d0;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 2rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.button-primary:hover { background: var(--accent-strong); }


.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.9);
  opacity: .9;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
  position: relative;
}
.scroll-indicator-mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  transform: translateX(-50%);
  animation: wheel-bounce 1.8s ease-in-out infinite;
}
.scroll-indicator-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255,255,255,.8);
  border-bottom: 2px solid rgba(255,255,255,.8);
  transform: rotate(45deg);
  animation: arrow-bounce 1.8s ease-in-out infinite;
}
@keyframes wheel-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: .35; }
}
@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .9; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: .45; }
}

.hero-shell + .section-light {
  position: relative;
}
.hero-shell + .section-light::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,107,82,.28) 50%, transparent 100%);
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}
.section-light {
  background: var(--surface-light);
  color: var(--text-dark);
}
.section-dark {
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
}
.section-heading {
  margin-bottom: 2rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}
.card-grid,
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.card,
.tech-group,
.principle,
.contact-box {
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.card {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
}
.card h3,
.tech-group h3 {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
}
.card p { margin: 0; color: #444; }
.tech-group {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tag-list li {
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #efefef;
  font-size: .95rem;
}
.principles {
  display: grid;
  gap: 1rem;
}
.principle {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1.25rem 1.35rem;
}
.principle p { margin: 0; color: #303030; }
.contact-section {
  background:
    radial-gradient(circle at top right, rgba(165,127,95,.2), transparent 34%),
    linear-gradient(180deg, #171717 0%, #101010 100%);
}
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 2rem;
}
.contact-box h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-copy { color: #d9d5d0; max-width: 640px; }
.contact-mail {
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

/* --- Footer (refined layout) --- */

.site-footer {
  padding: 2.2rem 0;
  background: #0c0c0c;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-copyright {
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
  font-size: .95rem;
}

.site-footer .footer-copy {
  margin-top: 0;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* mobile footer */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
  }
}


@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + .75rem);
    right: 1rem;
    min-width: 240px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(20,20,20,.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .language-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    padding-top: .35rem;
  }
  .site-nav.open { display: flex; }
  .card-grid,
  .expertise-grid,
  .footer-inner,
  .contact-box { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .contact-mail { white-space: normal; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 70px; }
  .hero-logo { width: min(100%, 560px); }
  .section { padding: 4rem 0; }
  .hero-shell { min-height: 100svh; padding: 3.5rem 0 5.5rem; }
  .hero { padding: 1rem 0 0; }
  .contact-box { padding: 1.4rem; }
}


.legal-section {
  scroll-margin-top: 88px;
}

.legal-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal-content p,
.legal-content li {
  color: inherit;
  opacity: 0.92;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.site-footer .footer-links a {
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}


.legal-drawer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 3rem;
}
.legal-tabs {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.legal-tab,
.legal-close {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding: .7rem 1rem;
  font: inherit;
  cursor: pointer;
}
.legal-tab.active {
  background: var(--accent);
  border-color: transparent;
}
.legal-close {
  margin-left: auto;
}
.legal-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
}
.legal-panel h2 { margin-top: 0; }
.legal-panel h3 { margin-top: 1.5rem; }
.legal-panel p, .legal-panel li { color: #d9d5d0; }
.legal-panel a { color: #fff; text-decoration: underline; }
@media (max-width: 860px) {
  .legal-close { margin-left: 0; }
}


@media (max-width: 900px) {
  .hero-shell {
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding: 1.5rem 0 5rem;
  }
  .hero-logo {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .hero-shell {
    padding: 1rem 0 4.5rem;
  }
  .brand-banner {
    padding-top: 0;
  }
  .hero-logo {
    width: min(100%, 440px);
  }
  .scroll-indicator {
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
}
