:root {
  --paper: #e9edf2;
  --ink: #12161c;
  --muted: #5b6573;
  --line: rgba(18, 22, 28, 0.12);
  --accent: #0f7a6c;
  --accent-ink: #08564c;
  --surface: rgba(255, 255, 255, 0.55);
  --shadow: 0 28px 60px rgba(18, 22, 28, 0.14);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(18, 22, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 28, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(15, 122, 108, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(18, 22, 28, 0.06), transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
}
.top.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: var(--surface);
}

/* —— Landing hero: one composition —— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: end;
  padding: 2.5rem 0 0;
  overflow: hidden;
}
.hero-copy {
  padding-bottom: 2.5rem;
  animation: rise 0.8s ease both;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0 0 1.15rem;
}
.hero-line {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.store-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: calc((100vw - min(1180px, 100vw - 2.5rem)) / -2);
  animation: slide-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-visual img {
  width: min(320px, 45vw);
  max-height: 480px;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  object-position: top;
  border-radius: 28px 0 0 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-right: 0;
  background: #0b0d12;
}

.section {
  padding: 5rem 0 1rem;
}
.section-head {
  max-width: 34rem;
  margin-bottom: 2rem;
  animation: rise 0.7s ease both;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
}
.section p.sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.gallery figure {
  margin: 0;
  animation: rise 0.75s ease both;
}
.gallery figure:nth-child(2) { animation-delay: 0.08s; }
.gallery figure:nth-child(3) { animation-delay: 0.16s; }
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18, 22, 28, 0.1);
  background: #0b0d12;
  transition: transform 0.35s ease;
}
.gallery figure:hover img { transform: translateY(-6px); }
.gallery figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.closing {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
}
.closing p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* —— Support / Privacy —— */
.page {
  padding: 2.5rem 0 4rem;
  max-width: 40rem;
  animation: rise 0.65s ease both;
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.page .lede {
  color: var(--muted);
  margin: 0 0 2rem;
}
.page h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.55rem;
}
.page p, .page li { color: #2a313c; }
.page ul { padding-left: 1.15rem; }
.page a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.back:hover { color: var(--ink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero-visual {
    margin-right: 0;
    min-height: 0;
    justify-content: center;
  }
  .hero-visual img {
    width: min(260px, 72vw);
    max-height: 400px;
    height: auto;
    aspect-ratio: 780 / 1688;
    object-fit: cover;
    object-position: top;
    border-radius: 24px 24px 0 0;
    border-right: 1px solid var(--line);
  }
  .gallery { grid-template-columns: 1fr; max-width: 320px; }
  .closing { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
}

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