:root {
  --bg: #ffffff;
  --ink: #0e1214;
  --ink-2: #4a5358;
  --muted: #8a9197;
  --line: #e6e9eb;
  --surface: #f4f6f7;
  --surface-2: #eef1f3;
  --accent: #cfd9db;
  --shadow-sm: 0 1px 2px rgba(14, 18, 20, 0.04), 0 2px 8px rgba(14, 18, 20, 0.04);
  --shadow-md: 0 10px 30px rgba(14, 18, 20, 0.08), 0 2px 8px rgba(14, 18, 20, 0.04);
  --shadow-lg: 0 30px 80px rgba(14, 18, 20, 0.18), 0 10px 30px rgba(14, 18, 20, 0.1);
  --r-pill: 999px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-card: 520ms;
  --max: 1200px;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img { max-width: 100%; display: block; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max);
  z-index: 100;
  transition: top 0.35s var(--ease-out), max-width 0.6s var(--ease-out);
}

.site-header.header--hero {
  max-width: 150px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(230, 233, 235, 0.8);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
  z-index: 1;
  margin-right: auto;
  transition: margin 0.6s var(--ease-out);
}

.site-header.header--hero .logo {
  margin: 0 auto;
}

.nav-links {
  position: absolute;
  right: 8px;
  display: flex;
  gap: 8px;
  list-style: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.site-header.header--hero .nav-links {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
}

.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: opacity 0.35s var(--ease-out);
}

.site-header.header--hero .nav-toggle {
  opacity: 0;
  pointer-events: none;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(230, 233, 235, 0.8);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s var(--ease-out);
}

.mobile-menu a:hover { background: var(--surface); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #fff;
}

.us-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-cta {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hero-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  will-change: transform;
  outline: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.card.opening {
  visibility: hidden;
}

.card-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7f9fa 0%, #e6ebed 100%);
  color: var(--muted);
  padding: 24px;
}

.card-glyph {
  width: 48%;
  max-width: 140px;
  opacity: 0.65;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.card:hover .card-glyph {
  opacity: 0.9;
  transform: scale(1.06);
}

.card-body {
  padding: 20px 22px 24px;
  background: #fff;
}

.card-kicker {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ---------- MODAL (Apple TV style) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.4s var(--ease-out);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  z-index: 210;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  will-change: transform, width, height, top, left;
  display: flex;
  flex-direction: column;
}

.modal.active {
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: rgba(14, 18, 20, 0.06);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out) 0.2s, background 0.2s var(--ease-out);
}

.modal-close:hover {
  background: rgba(14, 18, 20, 0.12);
}

.modal.active .modal-close {
  opacity: 1;
}

.modal-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out) 0.25s;
}

.modal.active .modal-inner {
  opacity: 1;
}

.modal-carousel {
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.2) 100%);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.carousel-dot.active {
  background: #fff;
  width: 18px;
  border-radius: var(--r-pill);
}

.modal-content {
  padding: 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.modal-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-title {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.modal-cta { align-self: flex-start; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.about-stats {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.about-stats li {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-stats span {
  font-size: 13px;
  color: var(--muted);
}

.about-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, #eaeff1 40%, #c7d1d4 100%);
  box-shadow:
    inset -20px -20px 60px rgba(14, 18, 20, 0.1),
    inset 20px 20px 60px rgba(255, 255, 255, 0.8),
    0 40px 80px rgba(14, 18, 20, 0.1);
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

/* ---------- CONTACT ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  padding-left: 4px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  width: 100%;
}

.field textarea {
  border-radius: var(--r-sm);
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  justify-self: start;
  grid-column: 1 / -1;
  width: fit-content;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-feedback {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-2);
  min-height: 20px;
}

.form-feedback.success { color: #1a7f3d; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.footer-inner p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 360px; margin: 0 auto; }
  .modal-inner { grid-template-columns: 1fr; grid-template-rows: 45% 55%; }
  .modal-content { padding: 32px 28px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 80px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 16px 16px 18px; }
  .card-title { font-size: 18px; }
  .modal-inner { grid-template-columns: 1fr; grid-template-rows: 42% 58%; }
  .modal-content { padding: 24px 20px 28px; overflow-y: auto; }
  .hero-cta { bottom: 32px; padding: 12px 20px; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
