/* --- UNTOUCHED HEADER/CORE CSS --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #6b7280;
  --border: #e5e7eb;
  --blue-start: #bae6fd;
  --blue-mid: #38bdf8;
  --blue-end: #0ea5e9;
  --blue-deep: #0284c7;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.free span {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-right a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--black); }
.nav-cta {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
}
/* --- CLEANED CONTENT CSS --- */

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 3rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-start) 0%, var(--blue-mid) 45%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 380px;
  font-weight: 300;
}

/* BUTTONS */
.btn-primary, .btn-ghost {
  padding: 0.85rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: white;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--border);
}

.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); opacity: 0.9; border-color: var(--black); }

/* MATERIALS GRID */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.material-card {
  text-align: left;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 0.2s ease;
}

.material-card:hover { transform: translateY(-5px); border-color: var(--blue-mid); }

.material-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px dashed var(--border);
}

/* FAQ */
.faq-container { 
  width: 100%; 
  margin: 0 auto;
  text-align: left;
}

/* Reduce the gap between Materials and FAQ */
#materials {
  padding-bottom: 40px; /* Cut bottom padding in half */
}

#faq {
  padding-top: 40px;    /* Cut top padding in half */
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-icon { color: var(--blue-mid); transition: transform 0.3s; }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gray);
  font-size: 0.95rem;
}

.faq-item.active .faq-content { max-height: 200px; padding-bottom: 2rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* FOOTER */
footer {
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.72rem; color: var(--gray); text-decoration: none; text-transform: uppercase; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-right a:not(.nav-cta) { display: none; }
  section { padding: 60px 1.5rem; }
  .hero-bottom { flex-direction: column; }
  .materials-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 2rem; text-align: center; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.5s ease both 0.1s; }
.hero h1 { animation: fadeUp 0.6s ease both 0.2s; }
.hero-bottom { animation: fadeUp 0.6s ease both 0.35s; }

/* ABOUT */
.about-layout {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.about-text {
  flex: 1;
}

.about-heading {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.about-bio {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--blue-mid);
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.about-avatar {
  flex-shrink: 0;
  width: 50%;
  height: 100%;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column-reverse;
    gap: 2.5rem;
  }
  .about-avatar {
    width: 100%;
    height: 240px;
  }
}
/* HOW WE DO IT */
.hwdi-step {
  display: grid;
  align-items: center;
  position: relative;
}

/* Step 1: text | image. Number pulls left out of text column */
.hwdi-step--1 {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
}
.hwdi-step--1 .hwdi-text {
  position: relative;
  padding-left: 3rem;
}
.hwdi-step--1 .hwdi-num {
  position: absolute;
  left: -0.45em;
  top: 50%;
  transform: translateY(-50%);
}

/* Step 2: image | text. Number pulls right out of text column */
.hwdi-step--2 {
    border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
    padding-bottom: 5rem;
      padding-top: 5rem;
}
.hwdi-step--2 .hwdi-text {
  position: relative;
  padding-right: 3rem;
}
.hwdi-step--2 .hwdi-num {
  position: absolute;
  right: -0.45em;
  top: 50%;
  transform: translateY(-50%);
}

/* Step 3: text | number | image. Number is its own grid column in the gap */
.hwdi-step--3 {
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr max-content 1fr;
  gap: 0;
    padding-top: 5rem;
}
.hwdi-step--3 .hwdi-num {
  position: relative;
  transform: none;
  top: auto;
  left: auto;
  right: auto;
  margin: 0 -0.3em;
}

/* Shared number style */
.hwdi-num {
  font-family: var(--sans);
  font-size: clamp(20rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-mid);
  text-stroke: 1.5px var(--blue-mid);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hwdi-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hwdi-heading {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hwdi-sub {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.hwdi-desc {
  font-size: 0.92rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.howwe-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.howwe-list li {
  font-size: 0.85rem;
  color: var(--black);
  padding-left: 1.25rem;
  position: relative;
}
.howwe-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
}

@media (max-width: 768px) {
  .hwdi-step--1,
  .hwdi-step--2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hwdi-step--2 .hwdi-img { order: -1; }
  .hwdi-step--1 .hwdi-text,
  .hwdi-step--2 .hwdi-text {
    padding-left: 0;
    padding-right: 0;
  }
  .hwdi-step--1 .hwdi-num,
  .hwdi-step--2 .hwdi-num {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 0.5rem;
  }
  .hwdi-step--3 {
    grid-template-columns: 1fr;
  }
  .hwdi-step--3 .hwdi-num { display: none; }
}