/* día cero — pre-launch site
   palette (from the can) — no other colors */
:root {
  --green: #6E8C84;   /* mineral green, dominant */
  --sage: #A9BDB5;    /* soft sage, gradients + hovers */
  --ivory: #EEEBE2;   /* backgrounds */
  --white: #FBFAF6;   /* warm white, text on green */
  --ink: #0E1412;     /* deep green-black, dark sections */

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.16, .84, .32, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 64px;
}

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  animation: page-in 0.9s var(--ease) both;
}
body.is-leaving { opacity: 0; transition: opacity 0.45s ease-out; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; font-size: 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.h-display, .h1, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.h-display { font-size: clamp(3.1rem, 12vw, 8.4rem); line-height: 0.92; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.6rem, 8.4vw, 5.8rem); line-height: 0.98; }
.h2 { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.02; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; max-width: 34em; margin: 0; text-wrap: pretty; }
.muted { opacity: 0.78; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
body[data-top="dark"] .site-header { color: var(--white); }
.site-header.is-solid, body[data-top] .site-header.is-solid { background: var(--ivory); color: var(--ink); box-shadow: 0 1px 0 rgba(14, 20, 18, 0.08); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo {
  display: inline-block;
  width: 96px; aspect-ratio: 1922 / 467;
  background: currentColor;
  -webkit-mask: url("../logo/dia-cero-mask.png") center / contain no-repeat;
          mask: url("../logo/dia-cero-mask.png") center / contain no-repeat;
  flex: none;
}
.logo-link { display: inline-flex; align-items: center; min-height: 44px; }

.nav { display: flex; gap: clamp(14px, 3vw, 36px); }
.nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 720px) {
  :root { --header-h: 80px; }
  .logo { width: 124px; }
  .nav a { font-size: 15px; }
}

/* ---------- sections ---------- */
.section { position: relative; isolation: isolate; padding: clamp(96px, 14vw, 180px) 0; }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--green { background: var(--green); color: var(--white); }
.section--dark  { background: var(--ink); color: var(--white); }
.section--first { padding-top: calc(var(--header-h) + clamp(72px, 12vw, 150px)); }

.stack > * + * { margin-top: var(--gap, 28px); }

/* organic curve between sections */
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: clamp(48px, 8vw, 120px);
  pointer-events: none;
}
.wave--top { top: -1px; bottom: auto; transform: scaleY(-1); }
.wave path { fill: var(--wave, var(--ivory)); }
.wave--to-ivory { --wave: var(--ivory); }
.wave--to-green { --wave: var(--green); }
.wave--to-dark  { --wave: var(--ink); }

/* topographic contour lines (like the can) — ivory, green and dark sections */
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/topo.svg") 0 0 / 900px 900px repeat;
  opacity: 0.11;
  animation: topo-drift 140s linear infinite;
  pointer-events: none;
}
/* on green and dark the lines turn warm white */
.section--green.topo::before { filter: invert(1); opacity: 0.16; }
.section--dark.topo::before  { filter: invert(1); opacity: 0.08; }
@media (max-width: 719px) { .topo::before { background-size: 640px 640px; } }
@keyframes topo-drift { to { background-position: 900px 450px; } }

/* liquid light */
.liquid {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  /* fade out near the edges so the section meets the organic curves in its pure color */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
}
.liquid i {
  position: absolute; border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}
.liquid i:nth-child(1) {
  width: 62vmax; height: 52vmax; left: -14vmax; top: -10vmax;
  background: radial-gradient(closest-side, var(--sage), rgba(169, 189, 181, 0));
  animation: blob-a 26s ease-in-out infinite alternate;
}
.liquid i:nth-child(2) {
  width: 54vmax; height: 60vmax; right: -18vmax; bottom: -20vmax;
  background: radial-gradient(closest-side, var(--green), rgba(110, 140, 132, 0));
  animation: blob-b 32s ease-in-out infinite alternate;
}
.liquid i:nth-child(3) {
  width: 34vmax; height: 30vmax; left: 30%; top: 30%;
  background: radial-gradient(closest-side, rgba(169, 189, 181, 0.7), rgba(169, 189, 181, 0));
  animation: blob-c 22s ease-in-out infinite alternate;
}
.section--green .liquid i:nth-child(2) { background: radial-gradient(closest-side, rgba(169, 189, 181, 0.55), rgba(169, 189, 181, 0)); }
.section--dark .liquid i { opacity: 0.55; }
.section--dark .liquid i:nth-child(1) { background: radial-gradient(closest-side, var(--green), rgba(110, 140, 132, 0)); }
.section--dark .liquid i:nth-child(3) { opacity: 0.35; }
@keyframes blob-a { to { transform: translate3d(18vw, 12vh, 0) scale(1.15) rotate(20deg); } }
@keyframes blob-b { to { transform: translate3d(-16vw, -14vh, 0) scale(0.9) rotate(-25deg); } }
@keyframes blob-c { to { transform: translate3d(-12vw, 10vh, 0) scale(1.3); } }

/* film grain + vignette */
.grain { overflow: hidden; overflow: clip; }
.grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(14, 20, 18, 0) 45%, rgba(14, 20, 18, 0.55) 100%);
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- signup form ---------- */
.signup { width: 100%; max-width: 520px; }
.signup__row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid currentColor;
  transition: border-color 0.4s var(--ease);
}
.signup input[type="email"] {
  flex: 1; min-width: 0; min-height: 52px;
  background: transparent; border: 0; outline: 0; border-radius: 0;
  padding: 0 4px; font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.signup input[type="email"]::placeholder { color: currentColor; opacity: 0.62; }
.signup button {
  flex: none; min-height: 52px; padding: 0 0 0 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: opacity 0.4s var(--ease);
}
.signup button .arrow { transition: transform 0.6s var(--ease); }
.signup button:hover .arrow { transform: translateX(4px); }
.signup button[disabled] { opacity: 0.5; cursor: progress; }
.signup__msg { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; }
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__msg { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin-top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.signup-solid .signup__row { border: 1px solid currentColor; border-radius: 999px; padding: 4px 4px 4px 20px; }
.signup-solid button { background: var(--white); color: var(--ink); border-radius: 999px; padding: 0 22px; }
.signup-solid button:hover { background: var(--sage); }

.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }

.fineprint { font-size: 14px; margin: 18px 0 0; }
.fineprint a, .text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fineprint a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; position: relative; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.text-link:hover::after { transform: scaleX(0.4); }

/* ---------- hero (index) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
  overflow: hidden; overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tint { position: absolute; inset: 0; z-index: -1; background: var(--green); opacity: 0.35; mix-blend-mode: multiply; }
.hero__tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 18, 0.5) 0%, rgba(14, 20, 18, 0.18) 16%, rgba(14, 20, 18, 0.42) 38%, rgba(14, 20, 18, 0.72) 70%, rgba(14, 20, 18, 0.82) 100%); }
@media (min-aspect-ratio: 1/1) { .hero__tint::after { background: linear-gradient(90deg, rgba(14, 20, 18, 0.72) 0%, rgba(14, 20, 18, 0.4) 50%, rgba(14, 20, 18, 0.15) 100%), linear-gradient(180deg, rgba(14, 20, 18, 0.45) 0%, rgba(14, 20, 18, 0) 20%); } }
.hero .wrap { position: relative; z-index: 4; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 7vh, 72px); }
.hero__inner { max-width: 760px; }
.hero__inner > .lede { margin-top: 22px; max-width: 30em; }
.hero__inner > .signup { margin-top: 34px; }
.hero__inner .h-display { margin-top: 18px; }
.hero__more { margin-top: 18px; }

/* ---------- our story ---------- */
.intro .lede { margin-top: 34px; }
.founders__grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.founders__grid figure { margin: 0; }
.founders__grid figure:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.founders__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.founders__grid figcaption { margin-top: 12px; }
.founders__text { margin-top: clamp(56px, 8vw, 96px); }
.founders__text .lede { margin-top: 28px; }
@media (min-width: 900px) {
  .founders { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
  .founders__text { margin-top: 0; }
}

.name-line { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 10vw, 7.4rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0; max-width: 11ch; }
.name-line .w { display: inline-block; opacity: 0.14; transform: translateY(0.12em); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.name-line .w.on { opacity: 1; transform: none; }
.no-js .name-line .w, .name-line.all .w { opacity: 1; transform: none; }
.name .lede { margin-top: clamp(40px, 6vw, 72px); }
.name { min-height: 120vh; display: flex; align-items: center; }

.strip-head .lede { margin-top: 28px; }
.strip {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) 8px;
  margin-top: clamp(48px, 7vw, 80px);
  scrollbar-width: none;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: 0 0 auto; width: min(72vw, 340px); margin: 0; scroll-snap-align: start; }
.strip figure.wide { width: min(88vw, 520px); }
.strip img { width: 100%; height: clamp(360px, 62vw, 470px); object-fit: cover; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.strip figcaption { margin-top: 12px; display: flex; justify-content: space-between; }
.strip::after { content: ""; flex: 0 0 1px; }
.strip-hint { margin-top: 18px; }

/* ---------- the brand ---------- */
.pillars { display: grid; gap: 56px; margin-top: clamp(56px, 8vw, 96px); }
.pillar { border-top: 1px solid rgba(251, 250, 246, 0.45); padding-top: 28px; }
.pillar svg { width: 48px; height: 48px; stroke: var(--white); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: 28px 0 12px; }
.pillar p { margin: 0; max-width: 22em; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); } }

.flavor { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; overflow: clip; }
.flavor .h1 { font-size: clamp(3.4rem, 13vw, 9rem); }
.flavor .lede { margin-top: 30px; }

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  margin-top: clamp(56px, 8vw, 96px);
}
.grid figure { margin: 0; overflow: hidden; border-radius: 2px; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.grid figure:hover img { transform: scale(1.03); }
/* phone: horizontal photos full width, vertical photos in pairs */
.grid .g-h { grid-column: span 2; aspect-ratio: 3 / 2; }
.grid .g-v { aspect-ratio: 2 / 3; }
.grid .g-vfull { grid-column: span 2; aspect-ratio: 4 / 5; }
/* computer: editorial bands of tall + wide photos */
@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: clamp(140px, 13.5vw, 192px); }
  .grid .g-h, .grid .g-v, .grid .g-vfull { aspect-ratio: auto; }
  .grid .d-t  { grid-column: span 1; grid-row: span 2; }
  .grid .d-w2 { grid-column: span 2; grid-row: span 2; }
  .grid .d-w3 { grid-column: span 3; grid-row: span 2; }
}
.community-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }

/* ---------- closing email block ---------- */
.closing { text-align: left; overflow: hidden; overflow: clip; }
.closing .h1 { max-width: 12ch; }
.closing .signup { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 120px) 0 36px; position: relative; isolation: isolate; overflow: hidden; }
.site-footer .logo { width: clamp(160px, 26vw, 260px); }
.footer__grid { display: grid; gap: 36px; }
.footer__links { display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; width: fit-content; }
.footer__links a:hover { color: var(--sage); }
.footer__base { margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid rgba(251, 250, 246, 0.16); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 14px; opacity: 0.8; }
.footer__base a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr 1fr; align-items: end; } .footer__links { justify-items: end; } }

/* ---------- legal ---------- */
.legal { max-width: 720px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.2rem); line-height: 1.1; margin: 56px 0 14px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; }
.legal ul { padding-left: 1.1em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  body.is-leaving { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .name-line .w { opacity: 1; transform: none; }
}
