/* Nestra Brands, static site. Rebuilt 9 Oct 2026 from the Framer version so it can live
   on nestrabrands.com with no builder badge. Plain HTML, CSS and a little JS. */

:root {
  --ink: #0f0f0e;
  --ink-2: #161614;
  --paper: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.55);
  --faint: rgba(247, 244, 239, 0.32);
  --line: rgba(247, 244, 239, 0.75);
  --verm: #ff4d2e;
  --amber: #ffc63d;
  --green: #3ddc84;
  --blue: #4d7cff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Line menu (top left) ---------- */
.menu {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--paper);
}
.menu a::before {
  content: "";
  width: 9px;
  height: 2px;
  background: currentColor;
  transition: width 0.35s ease;
}
.menu a:hover::before, .menu a:focus-visible::before { width: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}
#tiles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  /* soft fade into the next section */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(15, 15, 14, 0), var(--ink));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.wordmark {
  margin: 0;
  font-family: "Fraunces", var(--serif);
  font-weight: 800;
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.wordmark .row { display: block; white-space: nowrap; }
.wordmark .ch {
  display: inline-block;
  color: var(--blue);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  transition: color 0.9s ease, font-weight 0.9s ease, transform 0.9s ease;
  will-change: transform;
}
.hero p {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
}

/* ---------- Our brands ---------- */
.brands { padding: 72px 0 40px; }
.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 8px;
  padding: 32px 32px 34px;
  margin-top: 26px;
}
.brand.live { border: 1px solid var(--line); }
.brand .num { font-size: 14px; padding-top: 12px; }
.brand h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(48px, 5.6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand .line { margin: 12px 0 18px; font-size: 19px; }
.brand a { font-size: 15px; }
.brand.soon { color: var(--muted); padding-top: 28px; }
.brand.soon h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; padding-top: 4px; }

/* ---------- How a brand gets made ---------- */
.made { padding: 120px 0 40px; }
.made-head { font-size: 15px; }
.made-head ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 320px;
  color: var(--faint);
}
.made-head li { display: inline; }
.made-head li.on { color: var(--paper); }
.made-head li::after { content: ", "; }
.made-head li:last-child::after { content: "."; }

.deck {
  position: relative;
  height: 560px;
  margin: 70px auto 0;
  max-width: 860px;
}
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 300px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.55);
  transform-origin: 0 0;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s ease, filter 0.45s ease;
  cursor: pointer;
  text-decoration: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card figcaption b { display: block; font-weight: 600; font-size: 14px; }
.card.on figcaption, .card:hover figcaption, .card:focus-visible figcaption { opacity: 1; }

/* ---------- Company ---------- */
.company { padding: 40px 0 120px; }
.company h2, .events h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.company h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.12; }
.company p { margin: 18px 0 0; font-size: 17px; line-height: 1.45; }
.company p + p { margin-top: 6px; }

/* ---------- Founder meetups ---------- */
.events { padding: 80px 0 110px; overflow: hidden; }
.events h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1.05; }
.events .line { margin: 24px 0 0; font-size: 19px; }
.pill {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  margin: 34px auto 0;
  padding: 5px 12px;
  border: 1px solid rgba(247, 244, 239, 0.08);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}
.marquee { margin-top: 26px; overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-block;
  animation: slide 48s linear infinite;
  font-weight: 800;
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.16);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.foot {
  padding: 60px 24px 44px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Lumi page ---------- */
.lumi-page { min-height: 100vh; display: flex; flex-direction: column; }
.lumi-main { flex: 1; text-align: center; padding: 150px 24px 40px; }
.lumi-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 8vw, 96px);
  line-height: 1;
}
.lumi-main .line { margin: 12px 0 0; font-size: 21px; }
.lumi-main img { width: 240px; height: 240px; margin: 52px auto 0; }
.lumi-main .about { max-width: 560px; margin: 60px auto 0; font-size: 19px; line-height: 1.45; }
.lumi-main .out { display: inline-block; margin-top: 70px; font-size: 19px; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .menu { top: 22px; left: 20px; }
  .wrap { padding: 0 16px; }
  .brands { padding-top: 56px; }
  .brand { grid-template-columns: 34px 1fr; padding: 24px 20px 26px; }
  .brand .num { padding-top: 8px; font-size: 13px; }
  .made { padding-top: 80px; }
  .deck {
    height: auto;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 36px -16px 0;
    padding: 0 16px 24px;
  }
  .card {
    position: relative;
    flex: 0 0 72%;
    height: 340px;
    transform: none !important;
    scroll-snap-align: center;
  }
  .card figcaption { opacity: 1; }
  .company { padding-bottom: 80px; }
  .lumi-main { padding-top: 110px; }
  .lumi-main img { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .dot::after { animation: none; }
  .wordmark .ch, .card { transition: none; }
}
