/* ---------- Tokens ---------- */
:root {
  --bg: #0B0F0D;
  --bg-alt: #0F1513;
  --surface: #12181A;
  --border: #1E2826;
  --text: #EEF5F3;
  --text-muted: #8FA5A0;
  --accent-green: #2BD27B;
  --accent-blue: #4DA8FF;
  --white: #FFFFFF;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 12px;
  --radius-sm: 8px;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  line-height: 1.1;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 15, 13, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--accent-green); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: 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: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(77, 168, 255, 0.15), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(43, 210, 123, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 13, 0.1) 0%, rgba(10, 18, 16, 0.55) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A9C6C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent-green);
  color: #062014;
}
.btn-primary:hover { transform: translateY(-2px); background: #3FE38D; }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  z-index: 1;
  opacity: 0.7;
}
.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: scroll-bounce 1.6s var(--ease) infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(10px); opacity: 0.2; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
.bio {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text);
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-green);
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 1.1rem 0.25rem;
  letter-spacing: -0.01em;
}
.card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 1.1rem 1.1rem;
}

/* ---------- Tile grid (design / photo) ---------- */
.placeholder-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--accent-blue);
  background: rgba(77, 168, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.placeholder-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent-green); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.section-contact { text-align: center; }
.section-contact .section-title { margin-bottom: 1rem; }
.contact-line { color: var(--text-muted); margin-bottom: 1rem; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--accent-green);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
  margin-bottom: 2.5rem;
}
.contact-email:hover { border-bottom-color: var(--accent-green); }
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.social-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}
.social-links a:hover { color: var(--accent-blue); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.back-top { transition: color 0.2s var(--ease); }
.back-top:hover { color: var(--accent-green); }

/* ---------- Mobile nav ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 15, 13, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-links.open { max-height: 480px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 1rem var(--pad);
    font-size: 1rem;
  }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
