:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-line: rgba(255,255,255,0.18);
  --gray-line-dark: rgba(0,0,0,0.12);
  --gray-text: #6b6b6b;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 5vw;
  display: flex;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.92);
  padding: 12px 5vw;
  backdrop-filter: blur(6px);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--white);
  display: flex;
  align-items: center;
}

.nav-logo-img {
  display: block;
  height: 120px;
  width: auto;
  transition: height 0.4s ease;
}

.nav.scrolled .nav-logo-img {
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 24px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 5vw;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.07), transparent 50%),
    linear-gradient(160deg, #050505 0%, #1c1c1c 45%, #0a0a0a 100%);
  animation: drift 22s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.08) translate(-1%, 1%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.hero-headline {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(30px, 5.4vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.5px;
}

.hero-headline span {
  display: block;
}

.scroll-cue {
  position: absolute;
  left: 5vw;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
}

.scroll-circle::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 1px; height: 10px;
  background: var(--white);
  transform: translateX(-50%);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 6px); opacity: 0.3; }
}

.scroll-text {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 2px;
}

/* ---------- Sections ---------- */
.section {
  padding: 140px 5vw;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-light {
  background: var(--white);
  color: var(--black);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gray-text);
  margin-bottom: 22px;
}

.section-dark .eyebrow {
  color: rgba(255,255,255,0.55);
}

.section-heading {
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.3;
  max-width: 820px;
  letter-spacing: 0.3px;
  margin-bottom: 56px;
}

.body-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 980px;
}

.body-columns p {
  font-size: 17px;
  color: #2b2b2b;
  max-width: 46ch;
}

.section-light .body-columns p { color: #2b2b2b; }

/* single paragraph about section keeps one column readable width */
#about .body-columns {
  grid-template-columns: 1fr;
}
#about .body-columns p { max-width: 70ch; }

/* ---------- Sectors ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}

.sector-card {
  background: var(--black);
  padding: 48px 32px;
}

.sector-num {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.sector-card h3 {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}

.sector-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 34ch;
}

/* ---------- Contact ---------- */
.contact-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  max-width: 60ch;
}

.contact-form {
  max-width: 560px;
}

.form-row {
  margin-bottom: 28px;
}

.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 8px 0;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.submit-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 16px 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 20px;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success { color: #9be29b; }
.form-status.error { color: #e29b9b; }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: 230px;
  padding-bottom: 80px;
}

.legal-hero .section-heading {
  margin-bottom: 20px;
}

.legal-updated {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.legal-content {
  max-width: 760px;
}

.legal-content > p {
  font-size: 16px;
  color: #2b2b2b;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 24px 20px;
}

.legal-content li {
  font-size: 16px;
  color: #2b2b2b;
  margin-bottom: 10px;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 32px 5vw;
  font-size: 12px;
  letter-spacing: 1px;
  border-top: 1px solid var(--gray-line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-line);
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  max-width: 640px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .body-columns { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }

  .nav-logo-img {
    height: 96px;
  }

  .nav.scrolled .nav-logo-img {
    height: 52px;
  }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70vw;
    max-width: 320px;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 90px 6vw;
  }

  .footer-row {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 20px 6vw;
  }

  .nav.scrolled {
    padding: 14px 6vw;
  }

  .nav-logo {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .nav-logo-img {
    height: 76px;
  }

  .nav.scrolled .nav-logo-img {
    height: 48px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }

  .hero-headline {
    font-size: clamp(26px, 7.5vw, 40px);
  }

  .scroll-cue {
    bottom: 24px;
  }

  .section {
    padding: 70px 6vw;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .sector-card {
    padding: 36px 24px;
  }

  .submit-btn {
    width: 100%;
  }
}
