/* ============================================================
   HOMEPAGE — page-specific styles
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  height: calc(100vh - var(--nav-h) - 100px);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: var(--nav-h);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 60px;
}

.hero__eyebrow {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

.hero__line-1,
.hero__line-2 {
  display: block;
  white-space: nowrap;
}

.hero__line-1 {
  margin-bottom: 0.25em;
}

.hero__h1 {
  font-size: clamp(16px, calc((100vw - var(--gutter) * 2) * 0.047), 51.2px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text-1);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
}

.hero__sub {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}

/* ============================================================
   PROBLEM
   ============================================================ */

.problem {
  position: relative;
  z-index: 2;
  background: var(--ground);
  padding: 120px 0 140px;
}

.problem__header {
  margin-bottom: 80px;
}

.problem__h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 560px;
  margin-bottom: 20px;
}

.problem__intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 480px;
}

.problem__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
}

.problem__item-n {
  font-family: var(--font-mono);
  font-size: 4.5rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-4);
  margin-bottom: 20px;
  display: block;
}

.problem__item-h {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem__item-p {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  padding: 0 0 140px;
  position: relative;
  z-index: 2;
  background: var(--ground);
}

.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.services__h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
}

.services__intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
  align-self: end;
}

.services__tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.tier {
  padding: 0 40px 0 0;
  border-right: 0.5px solid var(--rule);
  margin-right: 0;
}

.tier:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 40px;
}

.tier:not(:first-child):not(:last-child) {
  padding-left: 40px;
}

.tier__n {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 16px;
  display: block;
}

.tier__h {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 12px;
  line-height: 1.3;
}

.tier__p {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-2);
}

.tier__duration {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--text-4);
  text-transform: uppercase;
}

/* ============================================================
   RESULTS
   ============================================================ */

.work {
  padding: 0 0 140px;
  position: relative;
  z-index: 2;
  background: var(--ground);
}

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
}

.work__h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 480px;
}

.work__link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule-md);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}

.work__link:hover { color: var(--text-1); }

.cases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0;
  align-items: center;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--rule);
  text-decoration: none;
  cursor: pointer;
}

.case:first-child { border-top: 0.5px solid var(--rule); }
.case:hover .case__h { color: var(--accent); }
.case:hover .case__cta { color: var(--accent); opacity: 1; }

.case__industry {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.case__body { padding: 0 40px; }

.case__h {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.case__tag {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
}

.case__cta {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
}

.work__confidential {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding: 0 0 140px;
  position: relative;
  z-index: 2;
  background: var(--ground);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 28px;
}

.about__body {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 20px;
}

.about__body strong { color: var(--text-1); font-weight: 500; }

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.fact {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 0.5px solid var(--rule);
}

.fact:last-child { border-bottom: none; }

.fact__k {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-right: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
}

.fact__v {
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.about__principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle { display: flex; gap: 16px; align-items: flex-start; }

.principle__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.principle__text {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
}

.principle__text strong { color: var(--text-1); font-weight: 500; }

/* ============================================================
   CONTACT (homepage section)
   ============================================================ */

.contact {
  padding: 0 0 140px;
  position: relative;
  z-index: 2;
  background: var(--ground);
}

/* ============================================================
   RESPONSIVE — homepage-specific overrides
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__canvas { display: none; }
}

@media (max-width: 1024px) {
  .services__tiers { grid-template-columns: 1fr 1fr; gap: 0; }
  .tier { padding: 32px !important; border-right: 0.5px solid var(--rule) !important; border-bottom: 0.5px solid var(--rule); }
  .tier:nth-child(2n) { border-right: none !important; }
  .tier:nth-last-child(-n+2) { border-bottom: none; }
  .problem__items { grid-template-columns: 1fr; gap: 48px; }
  .case { grid-template-columns: 140px 1fr auto; }
  .work__header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: auto; padding-bottom: 80px; margin-top: var(--nav-h); }
  .services__header,
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__tiers { grid-template-columns: 1fr; }
  .tier { border-right: none !important; border-bottom: 0.5px solid var(--rule) !important; padding: 28px 0 !important; }
  .tier:last-child { border-bottom: none !important; }
  .problem__item-n { font-size: 3rem; }
  .case { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .case__body { padding: 0; }
  .case__arrow { display: none; }
}
