:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #717171;
  --accent: #007aff;
  --max-width: 1100px;
  --gap: 28px;
  --radius: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.34;
}

/* Header / Navbar */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255,255,255,0.55);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: none;
  background: transparent;
}

.brand-title { font-weight: 700; }
.brand-subtitle { font-size: 13px; color: var(--muted); }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0 24px;
}

.hero-tagline-fullwidth {
  text-align: center;
  font-weight: 400;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--gap);
  align-items: center;
}

@media(max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; }
}

/* Hero text */
h1 { font-size: 54px; margin: 8px 0 16px; font-weight: 700; }
p.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.tagline, .contact-blurb {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.34;
  font-weight: 400;
}

/* CTA buttons */
.cta-row { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
}
.btn-primary { background: var(--text); color: white; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(0,0,0,0.08); }

/* Media card */
.media-card {
  background: #f7f7f8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,15,15,0.04);
  height: 420px;
}
.media-card video, .media-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media(max-width: 980px) { .media-card { height: 300px; } }

/* Services */
.services {
  display: flex;
  gap: 18px;
  margin-top: 46px;
  align-items: stretch;
}
.service {
  flex: 1;
  background: transparent;
  padding: 20px;
  border-radius: 12px;
}
.service h3 { margin: 0 0 8px; }
.service p { margin: 0; color: var(--muted); }
@media(max-width: 700px) { .services { flex-direction: column; } }

/* Portfolio grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 50px;
}
@media(max-width: 1100px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 700px) { .grid { grid-template-columns: 1fr; } }

/* Promo Reel */
.promo-reel {
  margin-top: 1rem;
  padding-top: 0;
}
#work .promo-reel { margin-top: 1rem; }
.promo-reel-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.promo-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
.promo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,10,10,0.04);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card .meta { padding: 14px; }
.kicker {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-description { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Contact */
#contact {
  display: flex;
  align-items: flex-end;           /* align children to the bottom */
  justify-content: space-between;  /* spread children horizontally */
  margin-top: 1rem;
  background: rgba(0,0,0,0.02);
  border-radius: 5px;
  padding: 3rem 1rem 1rem;
}

#contact > div:first-child {
  flex: 1;
  padding-top: 0;
}

#contact > div:last-child {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

#contact h3 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Mobile responsiveness */
@media(max-width:700px){
  #contact {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #contact > div:last-child {
    text-align: left;
    white-space: normal;
    margin-top: 16px;
  }
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 68px auto 120px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}