/* Dedicated Home page presentation. Loaded after the shared responsive layer. */
.home-page {
  padding-bottom: 2rem;
}

.home-hero {
  position: relative;
  padding: clamp(3.75rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  right: -14vw;
  top: -18vw;
  border: 1px solid rgba(103, 183, 176, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(103, 183, 176, .025),
    0 0 0 145px rgba(214, 168, 79, .018);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.home-hero-copy h1 {
  max-width: 920px;
  font-size: clamp(3.15rem, 7.4vw, 6.75rem);
}

.home-hero-copy h1 span {
  display: block;
  color: var(--cyan);
}

.home-hero-lede {
  max-width: 770px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.home-role-line {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-role-line li {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.home-role-line li:not(:last-child)::after {
  content: "/";
  color: rgba(214, 168, 79, .55);
}

.home-command,
.home-lane,
.home-feature,
.home-step,
.home-work-card,
.home-callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 29, 31, .95), rgba(18, 22, 23, .95));
  box-shadow: 0 24px 60px var(--shadow);
}

.home-command {
  position: relative;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  overflow: hidden;
}

.home-command::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214, 168, 79, .08), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.home-command > * {
  position: relative;
  z-index: 1;
}

.home-command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 50, 52, .75);
}

.home-command-label,
.home-command-status,
.home-feature-label,
.home-work-type {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-command-label,
.home-feature-label {
  color: var(--amber);
}

.home-command-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
}

.home-command-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(143, 174, 104, .52);
}

.home-command h2 {
  margin: 1.15rem 0 .8rem;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.home-command > p {
  color: var(--muted);
}

.home-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.2rem;
}

.home-command-grid div {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgba(103, 183, 176, .17);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.home-command-grid dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-command-grid dd {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.home-section {
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
  border-top: 1px solid rgba(42, 50, 52, .7);
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.home-section-heading h2 {
  max-width: 760px;
}

.home-section-note {
  margin: 0;
  color: var(--muted);
}

.home-lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.home-lane {
  min-width: 0;
  padding: 1.15rem;
  box-shadow: none;
}

.home-lane span,
.home-step span {
  display: block;
  margin-bottom: .9rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: .74rem;
}

.home-lane h3,
.home-step h3 {
  font-size: 1.08rem;
}

.home-lane p,
.home-step p,
.home-feature p,
.home-work-card p,
.home-callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1rem;
}

.home-feature-stack {
  display: grid;
  gap: 1rem;
}

.home-feature {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: none;
  overflow: hidden;
}

.home-feature-primary {
  min-height: 100%;
  display: grid;
  align-content: end;
  padding-top: clamp(8rem, 20vw, 15rem);
  background:
    radial-gradient(circle at 78% 20%, rgba(103, 183, 176, .16), transparent 18rem),
    linear-gradient(145deg, rgba(214, 168, 79, .08), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, rgba(24, 29, 31, .97), rgba(18, 22, 23, .97));
}

.home-feature-primary::before {
  content: "BUILD / TEST / DOCUMENT";
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  max-width: 13ch;
  color: rgba(230, 225, 213, .1);
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: .9;
  text-align: right;
}

.home-feature h3 {
  margin-top: .7rem;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.home-feature-secondary h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-feature .text-link {
  margin-top: 1rem;
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  counter-reset: home-process;
}

.home-step {
  position: relative;
  min-width: 0;
  padding: 1.2rem;
  box-shadow: none;
}

.home-step::after {
  counter-increment: home-process;
  content: "0" counter(home-process);
  position: absolute;
  top: .9rem;
  right: 1rem;
  color: rgba(103, 183, 176, .13);
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 800;
}

.home-step span {
  color: var(--cyan);
}

.home-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-work-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.15rem;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}

.home-work-card:hover,
.home-work-card:focus-within {
  border-color: rgba(214, 168, 79, .55);
  transform: translateY(-1px);
}

.home-work-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}

.home-work-mark {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 79, .24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(214, 168, 79, .1), transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 9px),
    #0e1112;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-work-type {
  margin-bottom: .45rem;
  color: var(--cyan) !important;
}

.home-work-card h3 {
  margin-bottom: .4rem;
  font-size: 1.25rem;
}

.home-work-card .text-link {
  z-index: 3;
  margin-top: .7rem;
}

.home-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.home-callout h2 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
}

.home-callout p {
  max-width: 760px;
}

.home-callout .hero-actions {
  margin-top: 0;
  justify-content: flex-end;
}

@media (max-width: 1040px) {
  .home-hero-grid,
  .home-section-heading,
  .home-feature-grid,
  .home-callout {
    grid-template-columns: 1fr;
  }

  .home-command {
    max-width: 620px;
  }

  .home-lane-grid,
  .home-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-callout .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding: 3.25rem 0;
  }

  .home-hero::before {
    display: none;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.45rem);
  }

  .home-role-line {
    display: grid;
    gap: .35rem;
  }

  .home-role-line li::after {
    display: none;
  }

  .home-lane-grid,
  .home-step-grid,
  .home-work-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-primary {
    padding-top: 10rem;
  }

  .home-work-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: .9rem;
  }

  .home-work-mark {
    min-height: 78px;
  }

  .home-command,
  .home-lane,
  .home-feature,
  .home-step,
  .home-work-card,
  .home-callout {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  }
}

@media (max-width: 460px) {
  .home-command-grid {
    grid-template-columns: 1fr;
  }

  .home-work-card {
    grid-template-columns: 1fr;
  }

  .home-work-mark {
    min-height: 72px;
  }
}

@media (hover: none), (pointer: coarse) {
  .home-work-card:hover,
  .home-work-card:focus-within {
    transform: none;
  }
}

.home-identity {
  display: grid;
  gap: 1rem;
}

.home-headshot {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(103, 183, 176, .28);
  border-radius: var(--radius);
  background: rgba(18, 22, 23, .95);
  box-shadow: 0 24px 60px var(--shadow);
}

.home-headshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 1040px) {
  .home-identity {
    max-width: 680px;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .home-identity {
    max-width: 420px;
    grid-template-columns: 1fr;
    margin-inline: auto;
  }

  .home-headshot {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  }
}
