:root {
  --paper: #f8f4ea;
  --ink: #132034;
  --accent: #d95f28;
  --accent-soft: #f1ad84;
  --line: #1f3b52;
  --card: #fff8ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, #ffe6b8 0%, transparent 42%),
    radial-gradient(circle at 90% 0%, #c9f3e7 0%, transparent 38%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 3px, #000 3px 3.2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: rgba(248, 244, 234, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(19, 32, 52, 0.2);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  padding: 0.45rem 0.75rem;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 4.75rem 0 2.75rem;
}

.hero {
  position: relative;
  min-height: clamp(440px, 50vw, 640px);
  isolation: isolate;
}

.hero > .kicker,
.hero > h1,
.hero > .lead {
  position: relative;
  z-index: 2;
}

.hero > .lead {
  max-width: min(50ch, 60%);
}

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 0.8rem;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.07;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7.2vw, 5.2rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.lead,
.manifesto p,
.section-head p,
.services p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 65ch;
  line-height: 1.65;
}

.hero-art {
  position: absolute;
  right: -200px;
  top: clamp(90px, 14vw, 170px);
  width: clamp(520px, 62vw, 980px);
  aspect-ratio: 68 / 42;
  pointer-events: none;
  opacity: 0.92;
  z-index: 1;
  transform: rotate(-24deg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 26px rgba(8, 31, 52, 0.2));
}

.hero-canvas {
  display: block;
}

.fern-footnote {
  position: absolute;
  right: -118px;
  top: clamp(420px, 44vw, 660px);
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  z-index: 3;
}

.fern-footnote a {
  color: rgba(19, 32, 52, 0.78);
  text-decoration-color: rgba(19, 32, 52, 0.35);
  text-underline-offset: 2px;
}

.fern-footnote a:hover,
.fern-footnote a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.pill-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill-list span {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: rgba(255, 248, 236, 0.8);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Portfolio — full-bleed trapezoid bands */
.portfolio {
  padding: 4.75rem 0 2.75rem;
}

.portfolio .section-head {
  width: min(1100px, 92vw);
  margin: 0 auto 1.5rem;
}

.startup-bands {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.band-group-head {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 1.6rem auto -0.4rem;
  width: min(1100px, 92vw);
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed rgba(19, 32, 52, 0.22);
}

.band-group-head:first-child {
  margin-top: 0;
}

.portfolio-band {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.band-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.band-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.band-text {
  flex: 1;
  min-width: 0;
}

.band-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.band-name {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
}

.band-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 1.3rem;
  white-space: pre-line;
}

.band-mockup {
  flex: 0 0 min(360px, 38vw);
  aspect-ratio: 4 / 3;
}

.mockup-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.band-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  /* parallax offset, set by JS on hover (-1..1) */
  --px: 0;
  --py: 0;
  transition: transform 400ms ease;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #132034;
  border-radius: 6px;
  box-shadow: 6px 7px 0 rgba(19, 32, 52, 0.18);
  background: #0b1422;
  transform-origin: bottom center;
  opacity: 0;
  /* signed offset from center card */
  --c: calc((var(--n) - 1) / 2);
  --off: calc(var(--i) - var(--c));
  transition: opacity 600ms ease,
    transform 620ms cubic-bezier(0.2, 1.1, 0.3, 1),
    box-shadow 300ms ease;
}

.gallery-img.is-active {
  opacity: 1;
}

.band-gallery--portrait {
  aspect-ratio: 9 / 16;
  flex: 0 0 min(240px, 60vw);
  margin-inline: auto;
}

.band-gallery--portrait .gallery-img {
  object-fit: contain;
  border-radius: 22px;
}

/* ---- flower-burst on hover (pointer devices only) ---- */
@media (hover: hover) {
  .band-gallery.is-open {
    z-index: 6;
    transform: translate(calc(var(--px) * 9px), calc(var(--py) * 9px));
  }

  .band-gallery.is-open .gallery-img {
    opacity: 1;
    z-index: var(--i);
    transition-delay: calc(var(--i) * 45ms);
    transform: rotate(calc(var(--off) * 7deg))
      translateX(calc(var(--off) * 34%))
      translateY(calc(var(--off) * var(--off) * -6px));
  }

  .band-gallery.is-open .gallery-img:hover {
    z-index: 50;
    transition-delay: 0ms;
    box-shadow: 10px 12px 0 rgba(19, 32, 52, 0.28);
    transform: rotate(0deg)
      translateX(calc(var(--off) * 34%))
      translateY(-12px)
      scale(1.16);
  }
}

.startup-link {
  display: inline-flex;
  color: var(--ink);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
  border-top: 2px dashed rgba(19, 32, 52, 0.2);
}

.reveal-up {
  animation: revealUp 650ms ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
  }

  .hero > .lead {
    max-width: 65ch;
  }

  .hero-art {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 1.4rem;
    width: min(720px, 100%);
    opacity: 1;
    transform: rotate(-1deg);
  }

  .fern-footnote {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0.55rem;
    text-align: right;
  }

  .band-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  .band-mockup {
    flex: none;
    width: min(260px, 78vw);
  }

  .portfolio-band {
    min-height: auto;
  }

  .section {
    padding-top: 3.7rem;
  }
}
