/* ============================================================
   HOMEPAGE — Editorial composition
   Goal: clear hierarchy, calm rhythm, architectural feel
   ============================================================ */

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */

.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + clamp(2rem, 5vw, 4rem)) var(--gutter) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--archesian-rule);
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 70%, rgba(217, 211, 197, 0.4));
  z-index: 0;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.home-hero__copy {
  max-width: 64ch;
}

/* Eyebrow — small, mono, indexed, with a fine rule */
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.home-hero__index {
  color: var(--archesian-blueprint);
  font-weight: 500;
}

.home-hero__rule {
  display: inline-block;
  width: clamp(36px, 5vw, 64px);
  height: 1px;
  background: var(--archesian-rule);
}

/* Title — single voice, balanced, one accented phrase */
.home-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.85rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--archesian-ink);
  text-wrap: balance;
  max-width: 18ch;
}

.home-hero__title-accent {
  display: inline;
  font-style: italic;
  color: var(--archesian-blueprint);
  font-weight: 400;
}

/* Lede paragraph */
.home-hero__text {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--archesian-stone);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  line-height: 1.72;
  max-width: 52ch;
}

.home-hero__actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Meta row — small dl with mono labels and serif values */
.home-hero__meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: var(--space-md);
  border-top: 1px solid var(--archesian-rule);
  max-width: 36rem;
}

.home-hero__meta div {
  display: grid;
  gap: 0.35rem;
}

.home-hero__meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-hero__meta dd {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  color: var(--archesian-ink);
  line-height: 1;
}

/* Drawing panel */
.home-hero__drawing {
  position: relative;
  min-height: min(64vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(217, 211, 197, 0.32) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(217, 211, 197, 0.32) 1px, transparent 1px) 0 0 / 28px 28px,
    rgba(255, 255, 255, 0.6);
}

.home-hero__plate {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--archesian-blueprint);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--archesian-rule);
  padding: 0.35rem 0.6rem;
}

.home-hero__arch {
  width: min(72%, 380px);
  color: var(--archesian-ink);
}

.home-hero__draft-lines {
  position: absolute;
  inset: auto var(--space-lg) var(--space-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.home-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}

.home-hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ─────────────────────────────────────────
   SECTION EYEBROW PATTERN — used across home
   ───────────────────────────────────────── */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.section-eyebrow__index {
  color: var(--archesian-blueprint);
  font-weight: 500;
  position: relative;
  padding-right: 0.85rem;
}

.section-eyebrow__index::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--archesian-rule);
  transform: translateY(-50%) translateX(100%);
  margin-left: 0.4rem;
}

/* Section title H2 — italic accent for one phrase */
.section-header__title em,
.practice-section__title em,
.home-contact__title em {
  font-style: italic;
  color: var(--archesian-blueprint);
  font-weight: 400;
}

.section-header__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  max-width: 22ch;
  margin-bottom: var(--space-md);
}

.section-header__description {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.7;
  max-width: 56ch;
}

.section-header--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.section-header--split > div {
  max-width: 28rem;
}

/* Inline link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--archesian-blueprint);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
  align-self: start;
  transition: gap var(--duration-normal) var(--ease-out-expo);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.link-arrow:hover {
  gap: 0.9rem;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────
   PRACTICE SECTION
   ───────────────────────────────────────── */

.practice-section {
  border-bottom: 1px solid var(--archesian-rule);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.practice-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.practice-section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
  max-width: 16ch;
  color: var(--archesian-ink);
}

.practice-section__body {
  display: grid;
  gap: var(--space-lg);
}

.practice-section__body p {
  color: var(--archesian-stone);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.78;
  max-width: 56ch;
}

/* ─────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────── */

.services-section .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--archesian-rule);
  border: 1px solid var(--archesian-rule);
}

.services-grid .service-card {
  position: relative;
  min-height: 320px;
  border: 0;
  background: var(--archesian-paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: background var(--duration-normal) var(--ease-out-expo);
}

.services-grid .service-card:hover {
  background: #FAF8F4;
  transform: none;
}

.service-card__index {
  position: absolute;
  top: clamp(1.25rem, 2vw, 1.75rem);
  right: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.services-grid .service-card__icon {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.services-grid .service-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.85vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  color: var(--archesian-ink);
}

.services-grid .service-card__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.service-card__learn {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--archesian-blueprint);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.service-card__learn::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  margin-left: var(--space-sm);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-card__learn::after {
  width: 44px;
}

/* ─────────────────────────────────────────
   FEATURED PROJECTS
   ───────────────────────────────────────── */

.featured-projects__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.project-card--large {
  grid-row: span 2;
}

.project-card {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--archesian-rule);
  display: flex;
  flex-direction: column;
}

.project-card__image-wrapper {
  aspect-ratio: 4 / 3;
  flex: 1;
}

.project-card--large .project-card__image-wrapper {
  aspect-ratio: auto;
  min-height: 620px;
}

.project-card__content {
  background: rgba(245, 242, 236, 0.94);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  gap: 0.5rem;
}

.project-card__category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.15;
  color: var(--archesian-ink);
}

.project-card--large .project-card__title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────
   PROCESS
   ───────────────────────────────────────── */

.process-section .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--archesian-rule);
  border: 1px solid var(--archesian-rule);
}

.process-timeline__stage {
  background: var(--archesian-paper);
  min-height: 240px;
  transition: background var(--duration-normal) var(--ease-out-expo);
}

.process-timeline__stage--open,
.process-timeline__stage:hover {
  background: #FAF8F4;
}

.process-timeline__button {
  width: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: var(--space-md);
  text-align: left;
  color: var(--archesian-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.process-timeline__button span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--archesian-blueprint);
}

.process-timeline__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out-expo);
}

.process-timeline__details p {
  padding: 0 clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   HOME CONTACT
   ───────────────────────────────────────── */

.home-contact {
  border-top: 1px solid var(--archesian-rule);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.home-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.home-contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
  max-width: 18ch;
  color: var(--archesian-ink);
}

.contact-list {
  display: grid;
  gap: 0;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--archesian-rule);
  align-items: baseline;
  color: var(--archesian-ink);
  transition: padding-left var(--duration-normal) var(--ease-out-expo);
}

a.contact-list__item:hover {
  padding-left: var(--space-sm);
  color: var(--archesian-blueprint);
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list__value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.3;
}

.contact-list__cta {
  margin-top: var(--space-lg);
  width: fit-content;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 1023px) {
  .home-hero__inner,
  .practice-section__grid,
  .home-contact__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__drawing {
    min-height: 400px;
    order: -1;
  }

  .services-grid,
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-projects__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .project-card--large {
    grid-row: auto;
  }

  .project-card--large .project-card__image-wrapper {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-lg));
  }

  .home-hero__title {
    font-size: clamp(2.1rem, 8.6vw, 2.85rem);
    line-height: 1.06;
    max-width: 100%;
  }

  .home-hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .home-hero__drawing {
    min-height: 320px;
  }

  .home-hero__draft-lines {
    flex-direction: column;
    gap: 0.4rem;
  }

  .home-hero__scroll {
    display: none;
  }

  .services-grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .section-header--split {
    align-items: flex-start;
  }

  .contact-list__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .home-contact__title {
    max-width: 100%;
  }
}
