:root {
  --bg: #fdf0d5;
  --panel: #ffffff;
  --ink: #000000;
  --muted: #555555;
  --accent: #219ebc;
  --accent-2: #197a94;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 240, 213, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--accent);
}

.brand-logo {
  height: 34px;
  width: auto;
  margin-right: 6px;
  border-radius: 6px;
  object-fit: contain;
  vertical-align: middle;
}

.menu { display: flex; gap: 22px; }
.menu a { opacity: .8; transition: opacity .2s ease; }
.menu a:hover { opacity: 1; }

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg);
}

.hero-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.yt-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 177.78vh;
  height: 100vh;
}

@media (min-aspect-ratio: 16/9) {
  .yt-bg {
    width: 100vw;
    height: 56.25vw;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(253, 240, 213, 0.15) 0%,
    rgba(253, 240, 213, 0.20) 40%,
    rgba(253, 240, 213, 0.28) 100%
  );
  z-index: 1;
}

.hero-overlay { position: relative; text-align: center; padding: 0 20px; z-index: 2; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33, 158, 188, 0.14);
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}

.sub {
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 18px);
  max-width: 800px;
  margin: 0 auto 28px;
}

/* Buttons */
.cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  z-index: 3;
  position: relative;
}
.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--accent);
}

/* Sections – enforce spacing on section.container */
section.container {
  padding: 88px 0 !important;   /* ← the key change */
  scroll-margin-top: 94px;
}

.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-size: 32px; margin: 0; color: var(--ink); }
.muted { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.15); }
.chipset { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.04); }

/* Profile */
.profile { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--panel);
}
.profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.panel { background: var(--panel); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px; padding: 24px; }

/* Form */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .9rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
.submit { margin-top: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 16px; padding: 18px; background: rgba(0, 0, 0, 0.02); }

/* Footer */
.footer { padding: 30px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); color: var(--muted); }

/* Responsive */
@media (max-width: 999px) {
  .card { grid-column: span 6; }
  .profile { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .card { grid-column: span 12; }
}
