/* palette: bg=#070908 fg=#F1F3EC accent=#A6E635 */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #070908;         /* near-black canvas from reference */
  --bg-alt: #0E1210;     /* alternating dark section */
  --bg-lift: #131816;    /* card surface */
  --fg: #F1F3EC;         /* off-white text */
  --fg-soft: #C9CEC0;    /* softer light heading */
  --muted: #868D7C;      /* secondary text */
  --accent: #A6E635;     /* leaf/lime glow from reference */
  --accent-deep: #7CB518;/* darker accent for hover */
  --clay: #D8A15A;       /* warm secondary tone */
  --border: rgba(241, 243, 236, 0.12);
  --border-soft: rgba(241, 243, 236, 0.06);
  --serif: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: #0a0d0b; }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.025em; font-weight: 300; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; color: var(--fg-soft); max-width: 62ch; }
p { margin: 0 0 1.1em; }
em { font-style: normal; color: var(--accent); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 9, 8, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); background: rgba(7, 9, 8, 0.88); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.brand__mark { color: var(--accent); font-family: var(--mono); font-size: 1rem; }
.nav { display: none; gap: 34px; align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { font-size: 13px; letter-spacing: 0.02em; color: var(--fg-soft); transition: color .25s var(--ease); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 12.5px;
  color: var(--fg);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #0a0d0b; }
.nav__cta::after { display: none; }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 8vw, 2.6rem); padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: stretch; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; opacity: 0.55; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 60% 55%, rgba(166,230,53,0.16), transparent 55%),
  linear-gradient(180deg, rgba(7,9,8,0.55) 0%, rgba(7,9,8,0.35) 45%, rgba(7,9,8,0.9) 100%); }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin: 0 auto; padding: 100px 20px 48px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .hero__inner { padding: 120px 32px 56px; } }
.hero__top { flex: 0 0 auto; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.5rem, 13vw, 9.5rem);
  letter-spacing: -0.035em; line-height: 0.94;
}
.hero__title--top { margin-top: 8px; }
.hero__title--bottom { align-self: flex-end; text-align: right; margin-top: auto; }
.hero__mid { max-width: 44ch; margin: clamp(28px, 6vw, 56px) 0; font-size: clamp(0.95rem, 1.6vw, 1.05rem); color: var(--fg-soft); line-height: 1.7; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: 18px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; }
.hero__scroll::before { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--accent), transparent); animation: pulseLine 2s var(--ease) infinite; }
@keyframes pulseLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 9999px;
  background: var(--accent); color: #0a0d0b;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(241,243,236,0.05); border-color: var(--fg-soft); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; letter-spacing: 0.02em; }
.textlink span { transition: transform .3s var(--ease); }
.textlink:hover span { transform: translateX(5px); }

/* ---------- overview / manifesto ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.split__aside { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.manifesto { background: var(--fg); color: var(--bg); }
.manifesto .container { text-align: center; }
.manifesto__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.16; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto; }
.manifesto__quote em { color: var(--accent-deep); }
.manifesto__mark { font-family: var(--serif); font-size: clamp(4rem, 12vw, 9rem); line-height: 0.6; color: var(--accent-deep); display: block; height: 0.5em; }
.manifesto__by { margin-top: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(7,9,8,0.55); }

/* ---------- timeline (Skeleton D) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 56px; }
.tl-item {
  display: grid; gap: 12px 40px;
  grid-template-columns: 1fr;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .tl-item { grid-template-columns: 120px 1fr; align-items: baseline; } }
@media (min-width: 1024px) { .tl-item { grid-template-columns: 160px 0.4fr 1fr; } }
.tl-item__phase { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tl-item__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.tl-item__body { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 52ch; }
.tl-item:hover .tl-item__phase { color: var(--fg); transition: color .3s var(--ease); }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--border-soft); margin-top: 56px; border: 1px solid var(--border-soft); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: 40px 32px;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
}
.section--alt .card { background: var(--bg-alt); }
.card:hover { background: var(--bg-lift); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.01em; margin: 22px 0 14px; }
.card__body { color: var(--muted); font-size: 15px; line-height: 1.72; margin: 0; }
.card__foot { margin-top: auto; padding-top: 24px; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1; }
.stat__num em { color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- case / project cards ---------- */
.projects { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 800px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { overflow: hidden; border: 1px solid var(--border-soft); background: var(--bg-alt); }
.project__media { overflow: hidden; aspect-ratio: 16 / 10; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); opacity: .9; }
.project:hover .project__media img { transform: scale(1.05); }
.project__body { padding: 26px 28px 30px; }
.project__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.project__title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 14px 0 10px; letter-spacing: -0.01em; }
.project__desc { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- faq ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 28px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.01em; }
.faq__icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); left: 50%; top: 50%; transition: transform .3s var(--ease); }
.faq__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq__item[data-open="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__item[data-open="true"] .faq__a { max-height: 320px; }
.faq__a p { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 68ch; padding-bottom: 28px; margin: 0; }

/* ---------- cta band ---------- */
.cta { background: var(--accent); color: #0a0d0b; text-align: center; }
.cta .h2 { color: #0a0d0b; }
.cta em { color: var(--bg); }
.cta .lead { color: rgba(10,13,11,0.72); margin: 24px auto 40px; }
.cta .btn { background: #0a0d0b; color: var(--accent); }
.cta .btn:hover { background: #000; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 22px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-lift); border: 1px solid var(--border);
  color: var(--fg); padding: 14px 16px; font-family: var(--sans); font-size: 15px;
  border-radius: 4px; transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-block { padding: 26px 0; border-top: 1px solid var(--border); }
.contact-block__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.contact-block p { color: var(--fg-soft); margin: 0; font-size: 15.5px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; }
.footer__brand em { color: var(--accent); }
.footer__tag { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer__col h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer__col a { display: block; padding: 7px 0; color: var(--fg-soft); font-size: 15px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-weight: 300; font-size: clamp(2.8rem, 9vw, 6.5rem); letter-spacing: -0.03em; }
.page-hero h1 em { color: var(--accent); }
.page-hero .lead { margin-top: 28px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
}

/* ---------- cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-lift); border: 1px solid var(--border); padding: 32px 36px; max-width: 480px; border-radius: 8px; }
.cookie-popup__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 12px; }
.cookie-popup__card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 13.5px; border-radius: 6px; transition: background .25s var(--ease), color .25s var(--ease); }
.cookie-popup__actions button:hover { border-color: var(--fg-soft); }
.cookie-popup__actions button:last-child { background: var(--accent); border-color: var(--accent); color: #0a0d0b; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* ---------- legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); margin: 56px 0 18px; letter-spacing: -0.01em; }
.legal h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--accent); }
