/* ============ FONTS ============ */
@font-face {
  font-family: "Mazius Display";
  src: url("assets/fonts/mazius-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --color-bg: #030303;
  --color-cream: #f5f3ee;
  --color-muted: #a9a7a1;
  --font-display: "Mazius Display", serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

section {
  padding: 120px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============ SHARED ============ */
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.section-heading {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: -1.8px;
  line-height: 1em;
  margin-bottom: 24px;
}

.section-copy {
  font-size: 18px;
  line-height: 1.6em;
  color: var(--color-muted);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-cream);
  color: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 22px;
  border-radius: 100px;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

.btn-arrow { width: 16px; height: 16px; }

/* ============ NAV ============ */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 5vw, 32px) clamp(20px, 5vw, 48px);
}

.nav-brand {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 1.4px;
}

.nav-contact {
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 500;
  letter-spacing: 1.2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    #03030333 0%,
    #0303031f 36%,
    #030303b8 76%,
    #030303 100%
  );
}

/* Subtle dot-screen texture over the hero, purely decorative */
.hero-halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.7) 0.5px,
    rgba(0, 0, 0, 0.1) 0.7px,
    transparent 0.85px
  );
  background-size: 3.6px 3.6px;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 48px 120px;
  max-width: 760px;
  text-align: left;
}

.hero-title {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 72px;
  letter-spacing: -2.4px;
  line-height: 0.98em;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-weight: 400;
  display: block;
  font-size: 48px;
  letter-spacing: -1.4px;
  opacity: 0.9;
  margin-top: 8px;
}

/* ============ CASE STUDIES ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.case-card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.case-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(0.55);
}

.case-index {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.case-title {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.9px;
  line-height: 1em;
  margin-bottom: 16px;
}

.case-excerpt {
  font-size: 13px;
  line-height: 1.55em;
  color: #b9b6b0;
  margin-bottom: 20px;
}

.case-excerpt .excerpt-more strong {
  color: var(--color-cream);
}

.read-toggle {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-cream);
  cursor: pointer;
}

.read-toggle:hover { text-decoration: underline; }

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.case-link-arrow {
  width: 30px;
  height: 30px;
  padding: 8px;
  background: var(--color-cream);
  color: var(--color-bg);
  border-radius: 100px;
}

.case-dots {
  display: none;
}

/* ============ TESTIMONIALS ============ */
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(245, 243, 238, 0.15);
  padding-top: clamp(32px, 6vw, 48px);
}

.testimonial {
  flex: 1;
  min-width: 0;
}

.testimonial-quote {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 36px);
  letter-spacing: -0.9px;
  line-height: 1.15em;
  margin-bottom: 24px;
  max-width: 900px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name { font-size: 20px; font-weight: 600; font-style: normal; }

.testimonial-role { font-size: 16px; color: var(--color-muted); }

.carousel-arrow {
  flex: none;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  border-radius: 100px;
  border: 3px solid rgba(245, 243, 238, 0.65);
  background: none;
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-arrow:hover { background: rgba(245, 243, 238, 0.1); }

.carousel-arrow svg { width: 18px; height: 18px; }

/* ============ FOUNDER ============ */
.founder {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 48px;
  align-items: center;
  border-top: 1px solid rgba(245, 243, 238, 0.1);
}

.founder-portrait {
  border-radius: 18px;
  overflow: hidden;
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  border-top: 1px solid rgba(245, 243, 238, 0.1);
}

.cta-heading {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: clamp(32px, 7.5vw, 64px);
  letter-spacing: -2px;
  line-height: 1em;
  max-width: 760px;
}

/* ============ RESPONSIVE ============ */
/* Most type and spacing above scales fluidly with clamp(), so these
   breakpoints only handle layout changes (columns, direction, ordering)
   that clamp() can't do on its own. */

@media (max-width: 900px) {
  .hero-title { font-size: 44px; }
  .hero-subtitle { font-size: 30px; }
  .section-heading { font-size: 38px; }

  /* Case studies: swipeable carousel instead of stacked cards */
  .case-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    margin: 0 -20px;
    padding: 4px 20px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case-grid::-webkit-scrollbar { display: none; }

  .case-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    min-height: 400px;
  }

  .case-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }

  .case-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 100px;
    background: rgba(245, 243, 238, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
  }

  .case-dot.is-active {
    width: 20px;
    background: var(--color-cream);
  }

  .founder { grid-template-columns: 1fr; }

  /* On narrower/taller screens the cover-crop centers on empty sky —
     shift it right so the two figures stay in frame. */
  .hero-bg-image { object-position: 70% center; }
}

@media (max-width: 600px) {
  .nav {
    padding-top: max(16px, env(safe-area-inset-top));
    gap: 12px;
  }
  .nav-brand { letter-spacing: 0.8px; }
  .nav-contact { letter-spacing: 0.8px; }

  .case-card { flex-basis: 88%; min-height: 340px; }

  /* Testimonials run long on mobile — tighten type, spacing and
     section padding so the quote doesn't take the whole viewport. */
  .testimonial-section { padding-top: 56px; padding-bottom: 56px; }
  .testimonial-carousel { gap: 12px; padding-top: 28px; }
  .testimonial-quote {
    font-size: clamp(17px, 4.4vw, 24px);
    line-height: 1.3em;
    margin-bottom: 16px;
  }
  .testimonial-name { font-size: 15px; }
  .testimonial-role { font-size: 13px; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow svg { width: 14px; height: 14px; }

  .final-cta { gap: 28px; }
}

@media (max-width: 420px) {
  .hero-bg-image { object-position: 74% center; }
}