/* ============================================================
   sections.css — per-section visual treatment
   Phase 1: editorial-grade layout, no motion yet.
   ============================================================ */

/* ===============================================================
   HERO
   Container sits naturally in the hero section, vertically centred.
   JS controls only opacity (fades out as the user scrolls past Act I).
   =============================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-block: var(--space-9) var(--space-7);
  overflow: visible;
}

.hero .container {
  width: 100%;
  max-width: var(--content-max);
  padding-inline: var(--gutter);
  z-index: var(--z-content);
  position: relative;
  will-change: opacity;
}

.hero__inner {
  max-width: 56ch;
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
  opacity: 0.78;
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--type-display-01);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-stretch: 100%;
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white-cool);
  max-width: 22ch;
  margin-bottom: var(--space-3);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--white-muted);
  max-width: 48ch;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-5);
  right: var(--gutter);
  opacity: 0.55;
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
  .hero__scroll { display: none; }
}

/* ===============================================================
   SWITCHYARD — venture section, aurora aesthetic (not amber)
   =============================================================== */
.venture__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(154, 160, 172, 0.22);
}

.venture__tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white-cool);
  max-width: 32ch;
}

.venture__pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aurora-teal);
}

.venture__pulse span {
  font-size: 8px;
  filter: drop-shadow(0 0 6px var(--aurora-teal));
}

.venture__pitch {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  color: var(--white-cool);
  max-width: 60ch;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}

.venture__services {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-6);
}

.venture__service {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid rgba(154, 160, 172, 0.16);
  align-items: baseline;
}

.venture__services .venture__service:last-child {
  border-bottom: 1px solid rgba(154, 160, 172, 0.16);
}

.venture__service-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.venture__service-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--white-cool);
}

.venture__service-price {
  color: var(--aurora-teal);
  opacity: 0.85;
}

.venture__service-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--white-cool);
  max-width: 50ch;
}

.venture__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  margin-bottom: var(--space-5);
  color: var(--white-muted);
}

.venture__stack-label {
  color: var(--white-dim);
  padding-right: var(--space-2);
  border-right: 1px solid rgba(154, 160, 172, 0.22);
}

.venture__stack span:not(.venture__stack-label) {
  font-size: var(--type-mono);
  letter-spacing: var(--tracking-mono);
}

.venture__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .venture__service {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .venture__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================================================
   ABOUT
   =============================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  gap: var(--space-3);
  align-items: start;
}

.about__prose { grid-column: 1; }
.about__meta  { grid-column: 3; padding-top: var(--space-3); }

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--white-cool);
  margin-bottom: var(--space-4);
  max-width: 32ch;
  letter-spacing: -0.005em;
}

.about__lead strong { font-weight: 500; }

.about__prose p {
  margin-bottom: var(--space-3);
  color: var(--white-cool);
  max-width: 56ch;
}
.about__prose p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about__prose, .about__meta { grid-column: 1; }
}

/* ===============================================================
   SKILLS
   =============================================================== */
.skills__groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.skills__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(154, 160, 172, 0.22);
}

.skills__group-title {
  color: var(--white-muted);
  font-weight: 500;
}

.skills__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.skills__list li {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--white-cool);
  letter-spacing: -0.005em;
  transition: transform var(--dur-normal) var(--ease-out-expo),
              font-weight var(--dur-normal) var(--ease-out-expo);
}

.skills__list li:hover {
  transform: translateX(4px);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .skills__groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .skills__groups { grid-template-columns: 1fr; }
}

/* ===============================================================
   PROJECTS
   =============================================================== */
.projects__feed {
  display: flex;
  flex-direction: column;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(154, 160, 172, 0.18);
  align-items: start;
}

.project:last-child {
  border-bottom: 1px solid rgba(154, 160, 172, 0.18);
}

.project__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project__index {
  color: var(--white-muted);
  font-weight: 500;
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white-cool);
}

.project__tagline {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--white-muted);
  max-width: 28ch;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project__desc {
  color: var(--white-cool);
  max-width: 58ch;
  font-weight: 300;
}

.project__tech {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project__tech li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  color: var(--white-muted);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(154, 160, 172, 0.3);
  border-radius: 100px;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.project__status {
  color: var(--aurora-teal);
  font-weight: 500;
  position: relative;
  padding-left: 14px;
  opacity: 0.85;
}

.project__status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.project__link {
  color: var(--white-cool);
  position: relative;
  padding-bottom: 2px;
}
.project__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background-color: var(--white-cool);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.project__link:hover::after { transform: scaleX(1); }

.project__shot {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(154, 160, 172, 0.15);
}

.project__shot img {
  width: 100%;
  display: block;
  filter: saturate(0.85) brightness(0.92);
  transition: filter var(--dur-slow) var(--ease-out-expo);
}

.project__shot:hover img { filter: saturate(1) brightness(1); }

/* Alternating layout — even-index projects flip the column order */
.project:nth-child(even) {
  grid-template-columns: 1.4fr 1fr;
}

.project:nth-child(even) .project__head {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  align-items: flex-end;
}

.project:nth-child(even) .project__head .project__tagline { text-align: right; }
.project:nth-child(even) .project__body { grid-column: 2; grid-row: 2; }
.project:nth-child(even) .project__shot { grid-column: 1; grid-row: 1 / span 2; }

@media (max-width: 900px) {
  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .project:nth-child(even) .project__head,
  .project:nth-child(even) .project__body {
    grid-column: 1;
    text-align: left;
    align-items: flex-start;
  }
  .project:nth-child(even) .project__shot { grid-column: 1; grid-row: auto; }
  .project:nth-child(even) .project__head .project__tagline { text-align: left; }
}

/* ===============================================================
   JOURNEY
   =============================================================== */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-left: var(--space-5);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(154, 160, 172, 0.4),
    rgba(154, 160, 172, 0.1) 70%,
    transparent
  );
}

.timeline__item {
  position: relative;
  padding-block: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-5);
  align-items: start;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-5) * -1 + 1px);
  top: var(--space-4);
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background-color: var(--white-muted);
  border-radius: 50%;
  border: 2px solid var(--void);
}

.timeline__item--future::before {
  background-color: transparent;
  border: 1px solid var(--white-muted);
}

.timeline__date {
  color: var(--white-muted);
  padding-top: 4px;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--white-cool);
}

.timeline__body {
  color: var(--white-cool);
  max-width: 60ch;
  font-weight: 300;
  margin-bottom: var(--space-3);
}

.timeline__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.timeline__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  color: var(--white-muted);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(154, 160, 172, 0.25);
  border-radius: 100px;
}

@media (max-width: 768px) {
  .timeline__item { grid-template-columns: 1fr; gap: var(--space-2); }
  .timeline__date { padding-top: 0; }
}

/* ===============================================================
   TERMINAL — chrome killed, sleek minimal input
   =============================================================== */
.terminal__shell {
  position: relative;
  padding: var(--space-4) 0 var(--space-3);
  border-top: 1px solid rgba(154, 160, 172, 0.25);
  border-bottom: 1px solid rgba(154, 160, 172, 0.25);
  max-width: 64ch;
}

.terminal__output {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--white-cool);
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 24px;
  margin-bottom: var(--space-3);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__output:empty { display: none; }

.terminal__form {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.terminal__prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--white-muted);
  letter-spacing: 0.02em;
  text-transform: none;
  flex-shrink: 0;
}

.terminal__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--white-cool);
  letter-spacing: 0.02em;
  caret-color: var(--aurora-rose);
  padding: 4px 0;
  text-transform: none;
}

.terminal__input::placeholder { color: var(--white-dim); font-style: normal; }

/* ===============================================================
   CONTACT
   =============================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact__label {
  color: var(--white-muted);
}

.contact__input,
.contact__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(154, 160, 172, 0.35);
  padding: var(--space-2) 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--white-cool);
  outline: none;
  transition: border-color var(--dur-normal) var(--ease-out-quart);
  resize: vertical;
  letter-spacing: -0.005em;
}

.contact__input::placeholder { color: var(--white-dim); }

.contact__input:focus,
.contact__textarea:focus {
  border-bottom-color: var(--white-cool);
}

.contact__textarea { min-height: 120px; }

.contact__submit {
  align-self: flex-start;
  margin-top: var(--space-3);
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--white-cool);
  color: var(--white-cool);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color var(--dur-normal) var(--ease-out-expo),
              color var(--dur-normal) var(--ease-out-expo);
}

.contact__submit:hover {
  background-color: var(--white-cool);
  color: var(--void);
}

.contact__status {
  color: var(--white-muted);
  min-height: 16px;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ===============================================================
   FOOTER
   =============================================================== */
.footer {
  padding-block: var(--space-5);
  border-top: 1px solid rgba(154, 160, 172, 0.18);
}

.footer p {
  color: var(--white-dim);
  opacity: 0.75;
}
