/* ============================================================
   NiLa — section & component layouts
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ivory) 86%, transparent);
  backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-links {
  display: flex; align-items: center; gap: 38px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 400; color: var(--body);
  position: relative; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.34s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(96px * var(--section-rhythm)); padding-bottom: calc(120px * var(--section-rhythm)); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 30px; }
.hero h1 { margin-bottom: 34px; max-width: 19ch; }
.hero h1 .serif-italic { color: var(--slate); }
body.no-emph .hero h1 .serif-italic { font-style: normal; color: var(--ink); }
.hero-sub { max-width: 46ch; margin-bottom: 14px; color: var(--body); font-size: 1.06rem; }
.hero-sub.strong { color: var(--ink); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero-figure .ph { position: absolute; inset: 0; height: 100%; }
.hero-figure::after {
  /* champagne corner accent */
  content: ""; position: absolute; top: -12px; right: -12px;
  width: 86px; height: 86px;
  border-top: 1px solid var(--champagne);
  border-right: 1px solid var(--champagne);
}
.hero-figure .caption {
  position: absolute; left: 0; bottom: -34px;
  font-family: "DM Mono", monospace; font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 92px); align-items: start;
}
.problem-head h2 { margin-bottom: 24px; max-width: 17ch; }
.problem-head .sub { color: var(--body); max-width: 38ch; }
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li {
  display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list .pnum { font-family: "DM Sans"; font-size: 0.8rem; color: var(--champagne-ink, var(--slate)); font-variant-numeric: tabular-nums; }
.problem-list .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); margin-top: 9px; }
.problem-list .ptext { color: var(--ink); font-size: 1.08rem; }
.problem-list .ptext span { display: block; color: var(--muted); font-size: 0.96rem; margin-top: 4px; }

/* ---------- Framework cards ---------- */
.framework { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 64px;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 44px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -28px rgba(15, 17, 19, 0.32);
  border-color: color-mix(in oklab, var(--eucalyptus) 40%, var(--line));
}
.card .card-icon {
  width: 44px; height: 44px; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--eucalyptus);
}
.card .card-num { display: block; margin-bottom: 18px; }
.card h3 { margin-bottom: 14px; }
.card h3 .em { color: var(--slate); }
.card p { color: var(--body); font-size: 1rem; }
.card .card-foot {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 0.86rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.card .card-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--champagne); }

/* ---------- Services ---------- */
.services-list { margin-top: 56px; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 44px 8px; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.service-row:hover { background: var(--paper); padding-inline: 24px; }
.service-row .s-num { font-family: "DM Sans"; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-row .s-body h3 { margin-bottom: 10px; }
.service-row .s-tag {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 14px; font-weight: 500;
}
.service-row .s-body p { color: var(--body); max-width: 54ch; font-size: 1rem; }
.service-row .s-link { white-space: nowrap; }
@media (hover: hover) {
  .service-row .s-link .arrow { transition: transform 0.32s var(--ease); }
  .service-row:hover .s-link .arrow { transform: translateX(4px); }
}

/* ---------- Industries ---------- */
.industries { background: var(--paper); border-top: 1px solid var(--line-soft); }
.industries h2 { max-width: 11ch; }
.ind-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.ind-list { list-style: none; margin: 0; padding: 0; }
.ind-list li {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 4px; border-top: 1px solid var(--line);
  font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink);
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.ind-list li:last-child { border-bottom: 1px solid var(--line); }
.ind-list li .ind-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); transition: background 0.3s var(--ease); flex: none; }
.ind-list li:hover { color: var(--slate); padding-left: 12px; }
.ind-list li:hover .ind-mark { background: var(--eucalyptus); }

/* ---------- Why NiLa (dark) ---------- */
.why { background: var(--graphite); color: var(--ivory); }
.why .eyebrow { color: var(--champagne); }
.why .eyebrow .dot { background: var(--champagne); }
.why h2.display { color: var(--ivory); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 110px); margin-top: 70px; align-items: start; }
.why-col .why-kicker {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247,247,245,0.5); margin-bottom: 28px; font-weight: 500;
}
.why-col h3.display { color: var(--ivory); font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 28px; max-width: 13ch; }
.why-col.is-nila h3.display { color: var(--champagne); }
.why-stack { list-style: none; margin: 0; padding: 0; }
.why-stack li {
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: rgba(247,247,245,0.82);
  padding: 14px 0; border-top: 1px solid rgba(247,247,245,0.12);
}
.why-col.is-nila .why-stack li { color: var(--ivory); }
.why-col.is-nila .why-stack li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--champagne); margin-right: 14px; vertical-align: middle;
}
.why-divider { display: none; }

/* ---------- Insights ---------- */
.insights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.insights-list { margin-top: 52px; border-top: 1px solid var(--line); }
.insight-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: 30px 6px; border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.insight-row:hover { background: var(--paper); padding-inline: 22px; }
.insight-row .i-meta { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.insight-row .i-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); line-height: 1.2; }
.insight-row .i-arrow { color: var(--slate); transition: transform 0.32s var(--ease); }
.insight-row:hover .i-arrow { transform: translateX(4px); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final-inner {
  max-width: 780px; margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(56px, 8vw, 96px) clamp(30px, 6vw, 80px);
  position: relative;
}
.final-inner::before, .final-inner::after {
  content: ""; position: absolute; width: 54px; height: 54px;
}
.final-inner::before { top: 22px; left: 22px; border-top: 1px solid var(--champagne); border-left: 1px solid var(--champagne); }
.final-inner::after { bottom: 22px; right: 22px; border-bottom: 1px solid var(--champagne); border-right: 1px solid var(--champagne); }
.final h2 { margin-bottom: 26px; max-width: 18ch; margin-inline: auto; }
.final p { color: var(--body); max-width: 50ch; margin-inline: auto; margin-bottom: 38px; }
.final .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ivory); border-top: 1px solid var(--line); padding-block: 72px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: "DM Sans"; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: 0.95rem; color: var(--body); transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 32ch; margin-top: 22px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--muted);
}
.footer-bottom .fnav { display: flex; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-figure { aspect-ratio: 16 / 11; max-width: 560px; }
  .problem-grid, .ind-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards-3 { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .service-row { grid-template-columns: 1fr; gap: 14px; padding: 32px 4px; }
  .service-row .s-num { display: none; }
  .insight-row { grid-template-columns: 1fr; gap: 8px; }
  .insight-row .i-arrow { display: none; }
  .why-stack li { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .final .btn { width: 100%; justify-content: center; }
}
