/* Mariko Group — one identity, subtle per-pillar accents.
   Design brief: calm, intelligent, technical, human. Large type, negative
   space, restrained animation, very limited gradients. */

:root {
  --bg: #0c1116;
  --bg-raise: #111823;
  --line: #1f2a37;
  --text: #e8edf3;
  --muted: #9aa7b5;
  --faint: #6b7885;

  /* the logo's triad */
  --earth: #b08050;
  --green: #4e9e63;
  --blue: #3b8fd6;

  /* pillar accents (kept quiet) */
  --c-sense: #4e9e63;
  --c-connect: #3b8fd6;
  --c-trust: #c9a24a;
  --c-build: #48a8a0;
  --c-transform: #8a7fd6;
  --c-apply: #b08050;

  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0 0 1em; }
a { color: var(--text); }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .word { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: .14em; font-size: .95rem; }
.brand .word small { display: block; font-size: .58rem; letter-spacing: .42em; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .92rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
/* Services dropdown — pure CSS, keyboard-friendly via :focus-within */
.menu { position: relative; }
.menu > a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.menu > a:hover { color: var(--text); }
.menu .drop {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 250px;
  background: #101823; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; display: none; flex-direction: column;
  box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 60;
}
.menu .drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.menu:hover .drop, .menu:focus-within .drop { display: flex; }
.menu .drop a {
  padding: 9px 12px; border-radius: 8px; font-size: .92rem;
  color: var(--muted); text-decoration: none;
}
.menu .drop a:hover { background: var(--bg-raise); color: var(--text); }

.nav .tag-line { color: var(--muted); font-size: .88rem; white-space: nowrap; }
@media (max-width: 1150px) { .nav .tag-line { display: none; } }
.nav .cta {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  color: var(--text) !important; font-size: .88rem; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.nav .cta:hover { border-color: var(--blue); background: var(--bg-raise); }

/* ---------- hero ---------- */
.hero { padding: 108px 0 72px; }
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 600;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--muted); }
.hero .lede {
  max-width: 39em; margin-top: 28px; color: var(--muted); font-size: 1.12rem;
}
.actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 12px 26px; font-size: .95rem; font-weight: 500;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #4d9de2; transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }

/* the single connected line: World → … → Action */
.chain { margin-top: 84px; overflow-x: auto; padding-bottom: 6px; }
.chain svg { min-width: 640px; width: 100%; height: auto; display: block; }

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.kicker {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 18px; font-weight: 600;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.prose { max-width: 44em; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.callout {
  border-left: 2px solid var(--blue); padding: 6px 0 6px 22px;
  margin: 30px 0; max-width: 42em;
  font-size: 1.18rem; line-height: 1.55; color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

/* ---------- ecosystem journey ---------- */
.journey { display: grid; gap: 0; margin-top: 12px; }
.stage {
  display: grid; grid-template-columns: 190px 1fr; gap: 34px;
  padding: 46px 0; border-top: 1px solid var(--line); position: relative;
}
.stage:first-child { border-top: 0; }
.stage .rail { position: relative; }
.stage .rail .step {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600; color: var(--accent, var(--muted));
}
.stage .rail::before {
  content: ""; position: absolute; left: 3px; top: 34px; bottom: -46px;
  width: 1px; background: var(--line);
}
.stage:last-child .rail::before { display: none; }
.stage .rail .step::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, var(--muted)); margin-right: 12px; vertical-align: 1px;
}
.stage h3 { font-size: 1.55rem; margin-bottom: 4px; }
.stage .tagline { color: var(--accent, var(--muted)); font-weight: 500; margin-bottom: 16px; }
.stage .body { color: var(--muted); max-width: 42em; }
.stage .body ul { margin: .4em 0 1em; padding-left: 1.2em; }
.stage .body li { margin: .2em 0; }
.stage .more {
  display: inline-block; margin-top: 8px; text-decoration: none;
  color: var(--accent, var(--text)); font-weight: 500; font-size: .95rem;
}
.stage .more:hover { text-decoration: underline; }

/* ---------- woolpass ---------- */
.applied {
  background: var(--bg-raise);
}
.applied .card {
  border: 1px solid var(--line); border-radius: 14px; padding: 40px;
  background: linear-gradient(180deg, #141b26, #10161f);
}

/* ---------- together diagram ---------- */
.together-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.model { display: grid; gap: 0; }
.model .node {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 18px;
  background: var(--bg-raise); position: relative;
}
.model .node .lab { font-size: .72rem; letter-spacing: .24em; color: var(--accent, var(--faint)); font-weight: 600; }
.model .node .who { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.model .link { text-align: center; color: var(--faint); line-height: 1; padding: 6px 0; }
.model .apply {
  margin-top: 20px; border-style: dashed;
}
.questions { list-style: none; padding: 0; margin: 26px 0; }
.questions li {
  padding: 9px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 1.05rem;
}
.questions li:last-child { border-bottom: 0; }

/* ---------- core statement ---------- */
.core { text-align: center; padding: 130px 0; }
.core .statement {
  font-size: clamp(1.9rem, 5.6vw, 3.4rem); font-family: "Space Grotesk", sans-serif;
  font-weight: 600; letter-spacing: -0.01em;
}
.core .statement .dot { color: var(--faint); }
.core .sub { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ---------- contact / footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 56px 0 42px; color: var(--muted); font-size: .92rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .brand .word { color: var(--text); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--text); }

/* ---------- about page ---------- */
.about-hero { padding: 110px 0 60px; }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.ledger { list-style: none; padding: 0; margin: 34px 0; max-width: 34em; }
.ledger li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; color: var(--muted);
}
.ledger li:last-child { border-bottom: 0; }

/* ---------- hero: full-bleed image + floating chips ---------- */
.hero-bg {
  /* the photo carries the planet; the left gradient keeps the copy readable.
     If /hero.jpg is missing the gradient alone still reads fine. */
  background:
    linear-gradient(90deg, rgba(10,15,21,.94) 0%, rgba(10,15,21,.72) 42%, rgba(10,15,21,.18) 78%, rgba(10,15,21,.05) 100%),
    linear-gradient(0deg, rgba(12,17,22,.9) 0%, rgba(12,17,22,0) 22%),
    url("/hero.jpg") center right / cover no-repeat,
    #0b1220;
  border-bottom: 1px solid var(--line);
}
.hero-bg .hero { padding: 128px 0 118px; }
.hero-bg .lede { color: #c7d2de; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-visual { position: relative; min-height: 400px; }
.chain-band { padding: 44px 0 6px; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, #0e1620 82%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 9px;
  font-size: .82rem; font-weight: 500; backdrop-filter: blur(6px);
  white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.chip .ico {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue)) 18%, transparent);
  color: var(--accent, var(--blue)); font-size: .85rem;
}
.chip svg { width: 14px; height: 14px; }

/* ---------- ecosystem cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px; margin-top: 40px;
}
.card-p {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-raise); display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s;
}
.card-p:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-p .art { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.card-p .inner { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-p .step {
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin-bottom: 8px;
}
.card-p h3 { font-size: 1.28rem; margin-bottom: 4px; }
.card-p .tagline { color: var(--muted); font-size: .95rem; font-weight: 500; margin-bottom: 12px; }
.card-p .desc { color: var(--muted); font-size: .92rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 16px; }
.chips span {
  font-size: .72rem; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.card-p .more { margin-top: 0; }
.card-p.wide { grid-column: 1 / -1; }
.card-p.wide .split { display: grid; grid-template-columns: 380px 1fr; }
.card-p.wide .split .art { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; object-fit: cover; }

/* ---------- mission strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raise);
  padding: 22px 26px; margin-top: 54px;
}
.strip .item { display: flex; align-items: center; gap: 13px; font-size: .93rem; color: var(--text); }
.strip .item .ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue)) 16%, transparent);
  color: var(--accent, var(--blue));
}
.strip .item svg { width: 18px; height: 18px; }

/* ---------- closing band ---------- */
.closing { position: relative; overflow: hidden; }
.closing .waves { position: absolute; inset: auto 0 0 0; width: 100%; opacity: .5; pointer-events: none; }
.closing .inner { position: relative; text-align: center; padding: 30px 0 90px; }

/* ---------- people ---------- */
.person {
  display: grid; grid-template-columns: 128px 1fr; gap: 34px;
  padding: 52px 0; border-top: 1px solid var(--line); align-items: start;
}
.person:first-of-type { border-top: 0; }
.avatar {
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 2rem;
  color: var(--accent, var(--blue));
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 45%, var(--line));
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .role {
  font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
  color: var(--accent, var(--muted)); margin-bottom: 6px;
}
.person h3 { font-size: 1.5rem; margin-bottom: 2px; }
.person .line { color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.person .bio { color: var(--muted); max-width: 46em; }
.person .bio strong { color: var(--text); }
@media (max-width: 700px) {
  .person { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bg .hero { padding: 84px 0 64px; }
  .hero-visual { min-height: 0; margin-top: 18px; }
  .chip { position: static; display: inline-flex; margin: 6px 10px 0 0; }
  .card-p.wide .split { grid-template-columns: 1fr; }
  .card-p.wide .split .art { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { gap: 16px; }
  .nav-links { display: none; }           /* keep header calm on small screens */
  .nav .cta { margin-left: auto; }
  .stage { grid-template-columns: 1fr; gap: 10px; padding: 38px 0; }
  .stage .rail::before { display: none; }
  .together-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 48px; }
}
