/* ==========================================================================
   Home (index.html) — page-specific layout
   Builds on css/styles.css (tokens, header, footer, buttons, cta-band,
   card-grid, work-grid, section rhythm already defined there).
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

/* "Grow" motif — two slow, blurred gradient blobs drifting behind the
   copy and photo, tying the hero back to the CTA band and footer so the
   warm-gradient identity shows up at the top and bottom of every visit. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(70px);
  animation: motif-float 20s var(--ease-calm) infinite;
}
.hero::before {
  width: 28rem;
  height: 28rem;
  top: -9rem;
  left: -10rem;
  background: radial-gradient(circle, color-mix(in oklch, var(--primary) 30%, transparent), transparent 70%);
}
.hero::after {
  width: 22rem;
  height: 22rem;
  bottom: -6rem;
  right: -8rem;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 32%, transparent), transparent 70%);
  animation-delay: -10s;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.08;
}

.hero__lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__contact {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.hero__contact a:first-child {
  font-weight: 500;
  color: var(--foreground);
}
.hero__contact a.email:hover {
  color: var(--foreground);
}

.hero img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding-block: 6rem;
  }
  .hero h1 { font-size: 3.4rem; }
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

/* ---------- Recent work cards ---------- */
/* Each card shows a real project screenshot, a short description and a
   project link. */

.work-card {
  display: flex;
  flex-direction: column;
}
.work-card__visual {
  width: 100%;
 ;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--mist);
}
.work-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.work-card__link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}
.work-card__link:hover {
  text-decoration: underline;
}

/* ---------- What we can build ---------- */

.build-intro {
  max-width: 38rem;
}
.build-intro p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}
.build-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .build-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.build-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.25s var(--ease-calm), box-shadow 0.25s var(--ease-calm), border-color 0.25s var(--ease-calm);
}
.build-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--primary) 30%, var(--border));
  box-shadow: 0 14px 28px -18px color-mix(in oklch, var(--ink) 40%, transparent);
}
.build-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
}
.build-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.build-card h3 {
  margin-top: 1.125rem;
  font-size: 1.0625rem;
}
.build-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* ---------- "How we work" steps ---------- */

.how-we-work {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .how-we-work { padding-block: 5rem; }
}
@media (min-width: 1024px) {
  .how-we-work { grid-template-columns: repeat(2, 1fr); }
}

.how-we-work__intro p {
  margin-top: 1rem;
  max-width: 30rem;
  color: var(--muted-foreground);
}

.steps {
  display: grid;
  gap: 1rem;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Motif icon representing each step, matching the icon style used in
   "What we can build" so the two sections feel like one system. */
.step-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.step-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.step-body h3 { font-size: 1rem; }
.step-body p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- FAQ ---------- */

.faq-intro {
  max-width: 38rem;
}
.faq-intro p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}
.faq-list {
  margin-top: 2.75rem;
  max-width: 44rem;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-item__icon {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background-color: var(--primary);
  border-radius: 2px;
}
.faq-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.18s ease;
}
details[open] .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
}
.faq-item__answer {
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}