@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ink: #17211b;
  --paper: #f3f1e9;
  --soft: #e8e5d9;
  --accent: #dfff67;
  --muted: #697169;
  --line: rgba(23, 33, 27, 0.16);
  --wrap: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: 120px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; height: 84px; padding-inline: max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.5px; }
.brand b { font-weight: 400; opacity: .65; }
.brand-mark { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-nav > a:not(.nav-cta) { opacity: .78; transition: opacity .2s; }
.site-nav > a:hover { opacity: 1; }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(255,255,255,.5); }
.nav-cta span { margin-left: 22px; }
.menu-toggle { display: none; border: 0; background: none; color: inherit; }

.hero { min-height: 840px; height: 100svh; position: relative; color: white; display: flex; align-items: center; overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("assets/kapipi-drone-hero.webp") 57% center / cover no-repeat; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(12,20,15,.84) 0%, rgba(12,20,15,.63) 36%, rgba(12,20,15,.12) 70%), linear-gradient(0deg, rgba(12,20,15,.5), transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-top: 72px; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 2px; display: flex; align-items: center; gap: 11px; }
.eyebrow span { display: inline-block; width: 24px; height: 1px; background: currentColor; }
.eyebrow.light { color: rgba(255,255,255,.72); }
.hero h1 { max-width: 870px; margin: 28px 0 26px; font: 500 clamp(52px, 6vw, 88px)/.98 Manrope, sans-serif; letter-spacing: -4px; }
.hero-copy { max-width: 600px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.76); }
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 232px; padding: 17px 18px; font-size: 14px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); }
.button-accent { background: var(--accent); color: var(--ink); }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.light-link { color: white; }
.hero-meta { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 0; display: grid; grid-template-columns: repeat(3, 160px); background: rgba(20,29,23,.78); backdrop-filter: blur(12px); }
.hero-meta div { padding: 25px 22px; border-left: 1px solid rgba(255,255,255,.13); }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { font: 500 22px Manrope, sans-serif; color: var(--accent); }
.hero-meta span { margin-top: 7px; font-size: 11px; color: rgba(255,255,255,.58); }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }
h2 { margin: 28px 0 0; font: 500 clamp(38px, 4.4vw, 62px)/1.06 Manrope, sans-serif; letter-spacing: -2.5px; }
.intro-copy { padding-top: 40px; }
.intro-copy p { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.intro-copy .text-link { margin-top: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 120px; }
.feature-card { min-height: 470px; padding: 30px; border: 1px solid var(--line); margin-right: -1px; display: flex; flex-direction: column; }
.feature-dark { background: var(--ink); color: white; border-color: var(--ink); }
.feature-accent { background: var(--accent); }
.card-number { font: 500 11px Manrope; opacity: .5; }
.line-icon { margin-top: 74px; width: 66px; }
.line-icon svg { fill: none; stroke: currentColor; stroke-width: 1.15; }
.feature-card h3 { margin: auto 0 15px; font: 500 25px Manrope; letter-spacing: -1px; }
.feature-card p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.feature-dark p { color: rgba(255,255,255,.58); }

.approach { background: #e6e3d7; }
.approach-layout { display: grid; grid-template-columns: 1fr 1.18fr; gap: 12%; }
.sticky-title { align-self: start; position: sticky; top: 60px; }
.sticky-title > p:last-child { max-width: 390px; margin-top: 30px; color: var(--muted); line-height: 1.6; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 35px 0 42px; border-bottom: 1px solid var(--line); }
.step > span { font: 500 11px Manrope; color: var(--muted); padding-top: 8px; }
.step h3 { margin: 0 0 12px; font: 500 24px Manrope; }
.step p { max-width: 480px; color: var(--muted); line-height: 1.65; }

.impact-head { max-width: 830px; }
.impact-grid { margin-top: 75px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.impact-grid article { min-height: 220px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-grid strong { font: 500 20px Manrope; }
.impact-grid p { margin-top: 45px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.manifesto { background: var(--accent); }
.manifesto-inner { min-height: 400px; display: flex; align-items: center; justify-content: space-between; }
.manifesto p { font: 500 clamp(38px, 5.2vw, 72px)/1.08 Manrope; letter-spacing: -3px; }
.manifesto em { font-style: normal; color: rgba(23,33,27,.38); }
.manifesto svg { width: 150px; fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: .8; }

.contact { background: var(--ink); color: white; }
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 11%; align-items: end; }
.contact h2 { max-width: 750px; }
.contact-copy p { color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 34px; }
.contact-copy .button { width: 100%; }
.site-footer { background: #101712; color: white; border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.45); font-size: 12px; }
.footer-brand { color: white; }

@media (max-width: 900px) {
  :root { --wrap: min(100% - 32px, 680px); }
  .section { padding-block: 80px; }
  .site-header { padding-inline: 16px; height: 70px; }
  .menu-toggle { display: grid; gap: 6px; padding: 10px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .2s; }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; padding: 24px; background: var(--ink); display: none; align-items: stretch; flex-direction: column; gap: 22px; }
  .site-header.menu-open .site-nav { display: flex; }
  .site-header.menu-open .menu-toggle span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 760px; }
  .hero-image { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(12,20,15,.84), rgba(12,20,15,.3)), linear-gradient(0deg, rgba(12,20,15,.66), transparent 50%); }
  .hero h1 { font-size: clamp(46px, 10vw, 70px); letter-spacing: -3px; }
  .hero-meta { left: 0; right: 0; grid-template-columns: repeat(3, 1fr); }
  .hero-meta div { padding: 18px 16px; }
  .intro, .approach-layout, .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .intro-copy { padding-top: 0; }
  .feature-grid { grid-template-columns: 1fr; padding-bottom: 80px; }
  .feature-card { min-height: 360px; margin: -1px 0 0; }
  .line-icon { margin-top: 35px; }
  .sticky-title { position: static; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-inner { min-height: 330px; }
  .manifesto svg { width: 100px; }
  .contact-copy { max-width: 500px; }
}

@media (max-width: 580px) {
  .hero-content { padding-bottom: 90px; }
  .hero h1 { margin-top: 22px; font-size: 44px; letter-spacing: -2px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-meta { display: none; }
  h2 { font-size: 37px; letter-spacing: -1.8px; }
  .impact-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .impact-grid article { min-height: 185px; }
  .impact-grid p { margin-top: 30px; }
  .manifesto-inner { min-height: 300px; }
  .manifesto p { font-size: 36px; letter-spacing: -2px; }
  .manifesto svg { display: none; }
  .footer-inner { padding-block: 38px; align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
