@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f4f0e8;
  --bg-strong: #ece6db;
  --surface: #faf7f0;
  --surface-strong: #ffffff;
  --text: #121212;
  --muted: #57534e;
  --line: #d7d0c2;
  --line-strong: #beb5a4;
  --accent: #0f0f0f;
  --accent-soft: #efebe2;
  --max-width: 1320px;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 0 0 1px rgba(18, 18, 18, 0.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  opacity: 0.32;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  padding: 18px 0 0;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.header-row > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-title,
.eyebrow,
.section-label,
.meta-kicker,
.step-index,
.language-switch a,
.footer-links a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-title {
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.83rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a,
.language-switch a {
  font-size: 0.77rem;
  color: var(--muted);
}

.site-nav a:hover,
.language-switch a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switch a {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.language-switch .is-current {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

/* ── Main ── */

main {
  position: relative;
  z-index: 1;
}

/* ── Hero ── */

.hero {
  padding: 34px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: start;
}

.hero-grid > *,
.section-head > *,
.download-panel > *,
.footer-row > * {
  min-width: 0;
}

.hero-side {
  width: 100%;
}

.hero-top {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 1.2;
  max-width: 52ch;
  min-width: 0;
}

.hero-drawing-wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.hero-drawing-wrap svg {
  display: block;
  margin-inline: auto;
}

.eyebrow,
.section-label,
.meta-kicker,
.step-index {
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.section-label {
  color: var(--muted);
}

.hero-title {
  margin: 14px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-copy {
  max-width: 44ch;
  margin: 22px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;
  font-family: "Archivo", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button-link::after {
  content: "↗";
  font-size: 0.95rem;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-link.is-solid {
  color: #f4f0e8;
  background: var(--text);
}

.button-link.is-soft {
  background: var(--surface);
}

.store-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.panel,
.pillar-card,
.journey-step,
.shot-card,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

/* ── Ecosystem panel ── */

.ecosystem-panel {
  padding: 22px 22px 24px;
}

.ecosystem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.logo-badge {
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d63031;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  gap: 10px;
}

.eco-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-strong);
}

.eco-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eco-card strong {
  font-family: "Archivo", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
}

.eco-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.78rem;
}

/* ── Sections ── */

.section {
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title {
  margin: 12px 0 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.panel p,
.pillar-card p,
.journey-step p,
.shot-caption p,
.section-intro,
.download-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.panel strong,
.pillar-card strong,
.journey-step strong,
.shot-caption strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

/* ── Stat grid ── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  min-height: 140px;
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Archivo", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

/* ── Idea / pillars / journey / shots / drawings ── */

.idea-grid,
.pillars-grid,
.journey-grid,
.shots-grid,
.drawings-grid {
  display: grid;
  gap: 16px;
}

.idea-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shots-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drawings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Pillar card ── */

.pillar-card,
.journey-step {
  padding: 22px;
}

.pillar-card {
  min-height: auto;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-kicker {
  margin-bottom: 18px;
  color: var(--muted);
}

/* ── Journey ── */

.step-index {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

.step-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Drawings ── */

/* ── Hero drawing ── */

.hero-drawing {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-bottom: 16px;
}

/* ── Drawing cards ── */

.drawing-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.drawing-card svg .fill-soft,
.hero-drawing svg .fill-soft {
  fill: rgba(18, 18, 18, 0.06);
}

.drawing-card svg .fill-strong,
.hero-drawing svg .fill-strong {
  fill: var(--text);
}

.drawing-card svg .soft,
.hero-drawing svg .soft {
  stroke: var(--muted);
}

.drawing-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(237, 231, 219, 0.66)),
    var(--surface);
  overflow: hidden;
}

.drawing-frame svg {
  width: 100%;
  height: 100%;
  padding: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing-frame .soft {
  stroke: var(--muted);
}

.drawing-frame .dashed {
  stroke-dasharray: 5 7;
}

.drawing-frame .fill-soft {
  fill: rgba(18, 18, 18, 0.06);
  stroke: var(--text);
}

.drawing-frame .fill-strong {
  fill: var(--text);
  stroke: var(--text);
}

.drawing-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.drawing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

/* ── Shots ── */

.shot-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.shot-card img {
  width: min(100%, 250px);
  height: auto;
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 231, 219, 0.74)),
    var(--surface);
  box-shadow: 0 14px 30px rgba(18, 18, 18, 0.08);
}

.shot-caption {
  padding: 0;
  border-top: 0;
}

/* ── Download ── */

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(235, 228, 216, 0.86)),
    var(--surface);
}

.download-title {
  margin: 10px 0 12px;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.download-panel p {
  font-size: 0.92rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Footer ── */

.site-footer {
  padding: 22px 0 42px;
}

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Animations ── */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 150ms;
}

.delay-3 {
  animation-delay: 220ms;
}

.delay-4 {
  animation-delay: 290ms;
}

.delay-5 {
  animation-delay: 360ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */

@media (max-width: 1180px) {
  .hero-grid,
  .section-head,
  .download-panel,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .idea-grid,
  .stat-grid,
  .drawings-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img {
    width: min(100%, 210px);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  body::before {
    opacity: 0.16;
    mask-image: none;
  }

  .site-header {
    padding-top: 12px;
  }

  .header-row {
    gap: 14px;
    padding: 12px 0 14px;
  }

  .hero {
    padding: 22px 0 42px;
  }

  .hero-grid,
  .hero-top {
    gap: 24px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
  }

  .language-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-text,
  .hero-copy,
  .section-intro {
    max-width: none;
  }

  .hero-copy,
  .section-intro,
  .panel p,
  .pillar-card p,
  .journey-step p,
  .shot-caption p,
  .download-panel p {
    font-size: 0.92rem;
  }

  .hero-drawing-wrap svg {
    max-height: 280px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .section {
    padding: 24px 0 30px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .ecosystem-panel,
  .pillar-card,
  .journey-step,
  .drawing-card,
  .download-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .shots-grid {
    gap: 12px;
  }

  .shot-card {
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .shot-card img {
    width: min(100%, 176px);
    border-radius: 22px;
  }

  .shot-caption strong {
    margin-bottom: 0;
    font-size: 0.88rem;
  }

  .button-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media print {
  body::before,
  .site-header,
  .download-actions,
  .footer-links {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .hero-logo-panel,
  .panel,
  .pillar-card,
  .journey-step,
  .shot-card,
  .download-panel {
    background: #ffffff;
  }

  .container {
    width: 100%;
  }
}
