/* ═══════════════════════════════════════════
   LAYOUT — Container, Grid, Sections
═══════════════════════════════════════════ */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Section Base ── */
.section {
  padding-block: clamp(80px, 12vw, 180px);
  position: relative;
  overflow: hidden;
}

/* Section header */
.section__header {
  margin-bottom: clamp(48px, 6vw, 96px);
}

.section__label {
  display: block;
  font-size: var(--text-micro);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-ghost);
  margin-bottom: var(--space-5);
}

.section__title {
  font-size: var(--text-display);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-text-primary);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-inline: var(--container-pad);
  padding-block: 120px 80px;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: -100px; /* Slight bleed to avoid edge clipping */
  background-image: url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: var(--z-blob);
  pointer-events: none;
  opacity: 0.65;
  filter: contrast(1.1) brightness(0.9);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero__badge {
  position: relative;
  z-index: var(--z-content);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-7);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-available);
  box-shadow: 0 0 8px var(--c-available);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: 1200px;
  width: 100%;
}

.hero__eyebrow {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-ghost);
  margin-bottom: var(--space-6);
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-text-primary);
  margin-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero__line {
  display: block;
}

.hero__line--italic {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--c-accent);
}

.hero__description {
  font-size: var(--text-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.hero__br {
  display: none;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-border-hover));
  animation: scrollLine 2s ease-in-out infinite;
}

.hero__scroll-label {
  font-size: var(--text-micro);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-ghost);
}

/* ── Experience Strip ── */
.strip {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding-block: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: var(--c-bg-surface);
}

.strip__inner {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.strip__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  white-space: nowrap;
  animation: stripScroll 28s linear infinite;
  width: max-content;
}

.strip__item {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-ghost);
  transition: color var(--dur-med) var(--ease-out-expo);
}

.strip__item:hover {
  color: var(--c-text-primary);
}

.strip__sep {
  color: var(--c-text-micro);
  font-size: var(--text-micro);
}

/* ── Projects Grid ── */
.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.2vw, 4px);
}

/* ── Services Grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── About Layout ── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}

/* ── Process Steps ── */
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr) repeat(4, auto);
  gap: 0;
  align-items: start;
  padding-top: var(--space-5);
}

/* ── Timeline Section ── */
.timeline-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: var(--space-7);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
}

/* ── Contact Layout ── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  position: relative;
}

/* ── Footer Layout ── */
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
}
