/* Fundación Cloe. A free website is a gift: giant condensed serif, real cut-out photos, a 3D gift card. */
:root {
  --paper: #F2F1EC;
  --paper-2: #E9E7DF;
  --card: #F7F6F1;
  --ink: #0E0E0C;
  --ink-2: #4B4A45;
  --ink-3: #8A8880;
  --rule: rgba(14, 14, 12, 0.14);
  --gold: linear-gradient(100deg, #6E5016 0%, #B8913F 22%, #F1DE9E 38%, #C9A452 52%, #7A5A1C 70%, #D9BD72 86%, #8C6A26 100%);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(18px, 2.4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:where(a, button, summary, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gold {
  background: var(--gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* Giant uppercase stretched tall, the way the Budarina wordmark is. */
.mega {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.78;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  padding-block: 0.22em;
}
.mega > span { display: block; transform: scaleY(1.42); }
.mega > span + span { margin-top: 0.4em; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.pill:active { transform: scale(0.96); }
.pill svg { flex-shrink: 0; }
.pill-light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.pill-sm { min-height: 2.25rem; padding: 0.5rem 0.95rem; font-size: 0.8125rem; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { box-shadow: 0 10px 24px -10px rgba(14, 14, 12, 0.55); }
  .pill-light:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
}

/* ---------- Top bar ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--pad);
  pointer-events: none;
  transition: background-color 250ms ease;
}
.bar > * { pointer-events: auto; }
.bar-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1; text-decoration: none; }
.bar-brand svg { width: 1.35rem; height: 1.35rem; }
.bar-links { display: none; align-items: center; font-family: var(--serif); font-size: 1.2rem; }
.bar-links a { text-decoration: none; padding: 0.25rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
.bar-links a:hover { background-size: 100% 1px; }
.bar-links .slash { margin: 0 0.6rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .bar-links { display: flex; }
  .bar-menu { display: none; }
}
.bar.on-bark, .bar.on-bark.is-solid { background: rgba(43, 30, 22, 0.88); color: #EDE3CC; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar.on-bark .bar-links .slash { color: rgba(237, 227, 204, 0.45); }
.bar.on-bark .bar-menu { background: #EDE3CC; color: #2B1E16; }
.bar { transition: background-color 250ms ease, color 250ms ease; }
.bar.is-solid { background: rgba(242, 241, 236, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--pad) 2rem;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s 220ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 220ms ease, visibility 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 2.75rem; }
.menu ol { margin-top: auto; }
.menu ol a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 15vw, 5rem);
  line-height: 1;
  text-decoration: none;
  padding: 0.12em 0;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 500ms var(--ease-out), opacity 400ms ease;
}
.menu.is-open ol a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(2) a { transition-delay: 40ms; }
.menu.is-open li:nth-child(3) a { transition-delay: 80ms; }
.menu.is-open li:nth-child(4) a { transition-delay: 120ms; }
.menu.is-open li:nth-child(5) a { transition-delay: 160ms; }
.menu.is-open li:nth-child(6) a { transition-delay: 200ms; }
.menu-foot { display: flex; gap: 0.6rem; margin-top: 2rem; flex-wrap: wrap; }

/* Floating call to action, like the pill at the bottom of the reference. */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 55;
  transform: translate(-50%, 160%);
  transition: transform 450ms var(--ease-out);
}
.dock.is-on { transform: translate(-50%, 0); }

/* ---------- Hero: giant type, Cloe in the middle, a field of 3D poppies ----------
   The hero is pinned while you scroll the first screen: it fades and sinks away, then the page
   continues normally. So the flowers are never cut off by the edge of a section. */
.hero-scroll { position: relative; height: 160svh; }
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  will-change: opacity;
}
.hero-title {
  position: absolute;
  inset: clamp(5rem, 11svh, 7.5rem) 0 auto;
  z-index: 1;
  font-size: min(8.6vw, 14.5svh);
  pointer-events: none;
  will-change: transform;
}
.hero-title > span:nth-child(-n+2) { display: inline-block; }
.hero-title > span:nth-child(2) { margin-left: 0.22em; }
.hero-title > span:nth-child(3) { margin-top: 0.36em; }
.flora { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: transform; }
.flora canvas { display: block; }
.dog { position: absolute; bottom: 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.dog-cloe { left: 50%; z-index: 3; height: min(48svh, 42vw); width: auto; max-width: none; translate: -50% 0; will-change: transform; }
/* Only her chest fades into the flowers (the bottom 12%); her face, which ends ~84% down the image, stays solid. */
.dog-cloe { -webkit-mask-image: linear-gradient(to top, transparent, #000 12%); mask-image: linear-gradient(to top, transparent, #000 12%); }
/* Desktop: badge and button share one row, and Cloe is sized and lifted so her face always fits
   between the headline (about 2.71 font-sizes tall) and that row. */
@media (min-width: 900px) {
  .hero {
    --foot-h: calc(1.4rem + 2.75rem);
    --title-end: calc(clamp(5rem, 11svh, 7.5rem) + 2.71 * min(8.6vw, 14.5svh));
    --cloe-h: min(48svh, 42vw, calc((100svh - var(--foot-h) - var(--title-end) - 1.6rem) / 0.84));
  }
  .dog-cloe { height: var(--cloe-h); bottom: calc(var(--foot-h) + 1.1rem - 0.16 * var(--cloe-h)); }
  .hero .hero-foot { flex-direction: row; justify-content: center; }
}
.hero-foot {
  position: absolute;
  inset: auto 0 1.4rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.avail { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(247, 246, 241, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.avail i { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #2F9E55; box-shadow: 0 0 0 3px rgba(47, 158, 85, 0.18); }
@media (max-width: 899px) {
  .hero-scroll { height: 150svh; }
  .statement { margin-top: -38svh; }
  .hero-title { inset: 5.5rem 0 auto; font-size: min(17vw, 9.5svh); }
  .hero-title > span:nth-child(n) { display: block; margin: 0.36em 0 0; }
  .hero-title > span:first-child { margin-top: 0; }
  /* Lifted so the badge and button sit under her chin, with the straight cut fading into the flowers. */
  .dog-cloe {
    bottom: clamp(4.5rem, 11svh, 7rem);
    height: min(40svh, 84vw);
  }
}

/* Butterflies, seen from the side: two wings hinged on the body, opening and closing in 3D.
   The script moves them between perches (letters, flowers, Cloe's head) and drives the wingbeat. */
.flutter { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bfly { position: absolute; left: 0; top: 0; width: var(--bs, 64px); height: var(--bs, 64px); perspective: 260px; will-change: transform; }
.bfly-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.wing { position: absolute; inset: 0; transform-origin: 50% 93%; }
.wing svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wing-far { filter: brightness(0.84); }
.bfly-body { position: absolute; left: 34%; top: 89%; width: 32%; height: 8%; border-radius: 999px; background: #1B120B; }
.bfly-body::before { content: ''; position: absolute; right: -10%; top: -55%; width: 26%; height: 110%; border-radius: 50%; background: #1B120B; }
.bfly-body::after { content: ''; position: absolute; right: -4%; bottom: 55%; width: 34%; height: 170%; border-top: 1.5px solid #1B120B; border-right: 1.5px solid #1B120B; border-radius: 0 100% 0 0; }

/* ---------- Statement: the lead reads in as you scroll ---------- */
/* Pulled up over the end of the pinned hero, so it arrives while the hero fades out. */
.statement { position: relative; z-index: 2; margin-top: -45svh; padding: 4rem var(--pad) clamp(4rem, 9vw, 7rem); max-width: 1180px; margin-inline: auto; }
.statement p.big {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement p.big strong { font-weight: 400; font-style: italic; }
.statement .w { color: rgba(14, 14, 12, 0.16); transition: color 300ms ease; }
.statement .w.is-lit { color: var(--ink); }
.statement .note { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; color: var(--ink-2); }
.statement .note p { max-width: 34rem; }

/* ---------- Gift card ---------- */
.giftcard {
  --w: min(560px, 84vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 1.586;
  perspective: 1400px;
  container-type: inline-size;
}
.gc-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.gc-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1000ms var(--ease-in-out); }
.giftcard.is-flipped .gc-flip { transform: rotateY(180deg); }
.gc-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0.55cqw solid #141412;
  border-radius: 6.4cqw;
  background: linear-gradient(160deg, #FBFAF6 0%, var(--card) 55%, #EFEDE5 100%);
  outline: 1px solid transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.gc-front { transform: translateZ(0.5px); }
.gc-back { transform: rotateY(180deg) translateZ(0.5px); }
/* Swap faces when the card is edge-on, so the flip never depends on backface-visibility alone. */
.gc-front, .gc-back { transition: visibility 0s linear 500ms; }
.gc-back, .giftcard.is-flipped .gc-front { visibility: hidden; }
.giftcard.is-flipped .gc-back { visibility: visible; }
.gc-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -14%;
  height: 20%;
  border-radius: 50%;
  background: rgba(14, 14, 12, 0.28);
  filter: blur(24px);
  pointer-events: none;
}
.gc-top { position: absolute; left: 6.5cqw; right: 6.5cqw; top: 5.5cqw; display: flex; align-items: center; justify-content: space-between; }
.gc-top .mono { font-size: 2.1cqw; color: var(--ink-3); }
.gc-logo { display: inline-flex; align-items: center; gap: 1.3cqw; font-family: var(--serif); font-size: 4.4cqw; line-height: 1; }
.gc-logo svg { width: 4.8cqw; height: 4.8cqw; }
.gc-art { position: absolute; right: 6cqw; top: 15cqw; width: 34cqw; height: 34cqw; }
.gc-main { position: absolute; left: 6.5cqw; bottom: 13cqw; width: 50cqw; display: grid; gap: 1.2cqw; }
.gc-kicker { font-size: 3.4cqw; color: var(--ink-2); }
.gc-name { display: block; padding-bottom: 1.2cqw; border-bottom: 0.3cqw solid currentColor; font-family: var(--serif); font-size: 8.4cqw; line-height: 0.95; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-foot { position: absolute; left: 6.5cqw; bottom: 5.5cqw; font-size: 2.1cqw; color: var(--ink-3); }
.gc-back-inner { position: absolute; inset: 0; }
.gc-back ol { position: absolute; left: 6.5cqw; right: 6.5cqw; bottom: 6cqw; counter-reset: inc; display: grid; gap: 0; }
.gc-back li { counter-increment: inc; display: flex; align-items: baseline; gap: 2.4cqw; padding: 1.4cqw 0; border-top: 0.2cqw solid var(--rule); font-family: var(--serif); font-size: 4.6cqw; line-height: 1; }
.gc-back li::before { content: '0' counter(inc); font-family: var(--mono); font-size: 2cqw; color: var(--ink-3); }

/* ---------- Card scene: giant type behind, the card tilting in front, then it opens ---------- */
.scene { position: relative; height: 300svh; }
.scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
}
.scene-type { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 15.5vw, 19rem); pointer-events: none; will-change: opacity, filter; }
.scene-card { position: relative; z-index: 2; will-change: transform; }
.scene-actions { position: absolute; left: 50%; bottom: -4.25rem; transform: translateX(-50%); display: flex; gap: 0.5rem; transition: opacity 300ms ease; }
.scene-copy {
  position: absolute;
  z-index: 3;
  right: max(var(--pad), calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(30rem, 38vw);
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}
.scene-copy.is-on { visibility: visible; }
.scene-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.6vw, 5.6rem); line-height: 0.88; letter-spacing: -0.03em; margin-top: 0.9rem; }
.scene-copy p { color: var(--ink-2); margin-top: 1.1rem; max-width: 26rem; }
.scene-copy .pill { margin-top: 1.6rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink-3); transition: opacity 300ms ease; }
.scroll-hint i { width: 1px; height: 2.2rem; background: linear-gradient(var(--ink-3), transparent); animation: drip 1.8s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 899px) {
  .scene { height: auto; }
  .scene-stage { position: relative; height: auto; display: block; padding: 3rem var(--pad) 1rem; overflow: visible; perspective: 1000px; }
  .scene-type { position: relative; inset: auto; display: block; font-size: 19.5vw; }
  .scene-card { display: grid; justify-items: center; margin-top: -30vw; }
  .scene-actions { position: static; transform: none; margin-top: 1.75rem; justify-content: center; }
  .scene-copy { position: static; width: auto; transform: none; opacity: 1; visibility: visible; margin-top: 3.5rem; }
  .scroll-hint { display: none; }
}

/* What the card includes. */
.inside { max-width: 1240px; margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) var(--pad) 0; scroll-margin-top: 3rem; }
.inside-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.inside-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.9; letter-spacing: -0.03em; }
.inside-head p { max-width: 24rem; color: var(--ink-2); }
.lines li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.lines .amt { grid-row: span 2; padding-top: 0.55rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.lines h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -0.01em; }
.lines p { color: var(--ink-2); max-width: 44rem; }
@media (min-width: 900px) {
  .lines li { grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: baseline; }
  .lines .amt { grid-row: auto; padding-top: 0; }
}

/* ---------- Section heads ---------- */
.sec { max-width: 1240px; margin-inline: auto; padding: clamp(6rem, 13vw, 11rem) var(--pad) 0; scroll-margin-top: 3rem; }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8.5vw, 8.2rem); line-height: 0.86; letter-spacing: -0.035em; text-wrap: balance; }
.sec-head h2 em { font-style: italic; }
.sec-head p { max-width: 36rem; color: var(--ink-2); font-size: 1.0625rem; }
.sec-head .mono { color: var(--ink-3); }

/* Why it matters */
.why { border-top: 1px solid var(--ink); }
.why li { padding: 1.5rem 0 1.8rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.6rem; align-content: start; }
.why .n { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--ink-3); }
.why h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.why p { color: var(--ink-2); }
@media (min-width: 900px) {
  .why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why li { padding: 1.75rem 1.5rem 0 0; border-bottom: 0; }
  .why li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

/* ---------- Projects: a grid of site cards that tilt toward the cursor ---------- */
.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; perspective: 1200px; }
.site {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 1.4rem;
  background: var(--card);
  text-decoration: none;
  transition: transform 500ms var(--ease-out), box-shadow 400ms ease, border-color 300ms ease;
  will-change: transform;
}
.site-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.95rem; background: var(--paper-2); }
.site-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transform-origin: left top; transition: transform 700ms var(--ease-out); }
.site-body { display: grid; gap: 0.45rem; padding: 1.1rem 0.6rem 0.9rem; }
.site-name { font-family: var(--serif); font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1; letter-spacing: -0.01em; }
.site-desc { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding: 0.75rem 0.6rem 0.35rem; border-top: 1px solid var(--rule); color: var(--ink-3); }
.site-go { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .site:hover { border-color: var(--ink); box-shadow: 0 30px 50px -30px rgba(14, 14, 12, 0.45); }
  .site:hover .site-shot img { transform: scale(1.03); }
  .site:hover .site-go { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
}
.sites-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1.5px dashed var(--ink-3);
  border-radius: 1.4rem;
}
.sites-next h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.02em; }
.sites-next p { margin-top: 0.5rem; color: var(--ink-2); max-width: 30rem; }
@media (max-width: 1023px) { .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sites { grid-template-columns: 1fr; } }

/* ---------- Story ---------- */
.quote { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; max-width: 72rem; }
.quote::before { content: '“'; }
.quote::after { content: '”'; }
.story { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.story-text { display: grid; gap: 1rem; max-width: 34rem; color: var(--ink-2); font-size: 1.0625rem; }
.story-text h3 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--ink); }
.story-text strong { color: var(--ink); font-weight: 500; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.crew figure:nth-child(2) { margin-top: 3rem; }
.crew img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.25rem; background: var(--paper-2); }
.crew figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.crew figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.crew figcaption .mono { color: var(--ink-3); }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

/* ---------- Process: a giant numeral that rolls with the scroll ---------- */
.process-pin { display: grid; gap: 2rem; }
.odometer { display: none; }
.steps li { padding: 1.4rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.25rem 1rem; }
.steps .num { grid-row: span 3; font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 0.9; }
.steps .k { color: var(--ink-3); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.steps p { color: var(--ink-2); max-width: 30rem; }
@media (min-width: 900px) {
  .process { height: 420svh; padding-top: 0; }
  .process-pin { position: sticky; top: 0; height: 100svh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
  .odometer { display: block; height: 0.8em; overflow: hidden; font-family: var(--serif); font-size: clamp(15rem, 31vw, 30rem); line-height: 0.8; letter-spacing: -0.05em; }
  .odo-strip { display: block; transition: transform 800ms var(--ease-in-out); transform: translateY(calc(var(--step, 0) * -0.8em)); }
  .odo-strip span { display: block; height: 0.8em; }
  .steps li { grid-template-columns: minmax(0, 1fr); padding: 0.8rem 0; transition: opacity 400ms ease; }
  .steps h3 { font-size: 1.75rem; }
  .js .steps li { opacity: 0.25; }
  .js .steps li.is-on { opacity: 1; }
  /* Only the step in view shows its text, so the column always fits the screen. */
  .js .steps p { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 500ms var(--ease-out); }
  .js .steps p > span { min-height: 0; }
  .js .steps li.is-on p { grid-template-rows: 1fr; }
  .steps .num { display: none; }
  .process .sec-head { margin-bottom: 1.25rem; }
  .process .sec-head h2 { font-size: clamp(3rem, 5vw, 5rem); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ''; }
.plus { position: relative; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--paper-2); transition: background-color 300ms ease, color 300ms ease, transform 450ms var(--ease-out); }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details.is-open .plus, .faq details[open]:not(.is-closing) .plus { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 4rem 1.75rem 0; color: var(--ink-2); max-width: 46rem; font-size: 1.0625rem; }
@media (max-width: 599px) { .faq .answer p { padding-right: 0; } }

/* ---------- Contact heading ---------- */
.contact { position: relative; margin-top: clamp(7rem, 14vw, 12rem); padding: 0 var(--pad) clamp(3rem, 6vw, 5rem); text-align: center; overflow: hidden; isolation: isolate; scroll-margin-top: 2rem; }
.contact .mega { font-size: clamp(4.4rem, 16.4vw, 20rem); position: relative; z-index: 1; }
/* The J in TRABAJEMOS has a long tail: give the second line room so it never touches the T below. */
.contact .mega > span + span { margin-top: 0.62em; }

/* ---------- Footer: cream on bark brown, ending in an engraved cordillera ---------- */
.colophon {
  --bark: #2B1E16;
  --cream: #EDE3CC;
  --cream-2: rgba(237, 227, 204, 0.72);
  --cream-3: rgba(237, 227, 204, 0.5);
  position: relative;
  background: var(--bark);
  color: var(--cream);
  overflow: hidden;
}
.colophon ::selection { background: var(--cream); color: var(--bark); }
.colophon :where(a, button):focus-visible { outline-color: var(--cream); }
.colo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 3rem 2.5rem;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) var(--pad) 0;
}
.colo-logo { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: clamp(2.4rem, 3.4vw, 3.1rem); line-height: 1; text-decoration: none; }
.colo-logo svg { width: 0.95em; height: 0.95em; }
.colo-tag { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.25; color: var(--cream-2); max-width: 12.5em; text-wrap: balance; }
.colo-col h2 { font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; }
.colo-col h2::after { content: ''; display: block; width: 1.75rem; height: 1px; margin-top: 0.9rem; background: currentColor; opacity: 0.8; }
.colo-col ul { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.colo-col li a { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; text-decoration: none; color: var(--cream); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out), color 200ms ease; }
.colo-col li a:hover { background-size: 100% 1px; }
.colo-contact a { display: inline-flex; align-items: center; gap: 0.7rem; }
.colo-contact svg { flex-shrink: 0; opacity: 0.9; }
.colo-write > p:not(.colo-note) { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: var(--cream-2); max-width: 24rem; }
.mailbox { display: flex; margin-top: 1.4rem; max-width: 24rem; border: 1px solid var(--cream); }
.mailbox a { flex: 1; min-width: 0; padding: 0.95rem 1rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 200ms ease; }
.mailbox a:hover { background: rgba(237, 227, 204, 0.08); }
.mailbox .copy { display: grid; place-items: center; width: 3.4rem; border: 0; background: var(--cream); color: var(--bark); cursor: pointer; transition: background-color 200ms ease; }
.mailbox .copy:hover { background: #fff; }
.mailbox .copy:active { transform: scale(0.96); }
.mailbox .copy.is-copied { background: #CFE3B8; }
.colo-note { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-3); }
.colo-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-2);
}
.colo-legal nav { display: flex; align-items: center; gap: 1rem; }
.colo-legal nav span { opacity: 0.6; font-style: normal; }
.colo-legal a { text-decoration: none; color: var(--cream-2); transition: color 200ms ease; }
.colo-legal a:hover, .colo-legal a[aria-current="page"] { color: var(--cream); }
.colo-legal a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.cordillera { position: relative; margin-top: clamp(-1rem, -2vw, 0rem); aspect-ratio: 3200 / 1000; min-height: 240px; }
.cordillera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 1023px) {
  .colo-grid { grid-template-columns: 1fr 1fr; }
  .colo-brand, .colo-write { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .colo-grid { gap: 2.5rem 1.5rem; }
  .colo-legal { flex-direction: column-reverse; align-items: flex-start; }
  .cordillera { min-height: 200px; }
}

/* ---------- Personalize dialog ---------- */
.dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.dialog::backdrop { background: rgba(14, 14, 12, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-box {
  position: relative;
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  animation: pop 260ms var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }
.dialog-box h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; padding-right: 2.5rem; }
.dialog-box .x { position: absolute; right: 0.9rem; top: 0.9rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: var(--paper-2); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.dialog-box form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.dialog-box label { display: grid; gap: 0.4rem; font-size: 0.8125rem; color: var(--ink-2); }
.dialog-box input { width: 100%; height: 2.9rem; padding: 0 0.9rem; border: 1px solid var(--rule); border-radius: 0.7rem; background: #fff; font-size: 1rem; }
.dialog-box input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 14, 12, 0.12); }
.dialog-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.dialog-box .row .pill { width: 100%; }
.dialog-box .fine { color: var(--ink-3); font-size: 0.75rem; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero-title > span { opacity: 0; translate: 0 0.25em; }
.js .hero.is-in .hero-title > span { opacity: 1; translate: 0 0; transition: translate 1000ms var(--ease-out), opacity 700ms ease; }
.js .hero.is-in .hero-title > span:nth-child(2) { transition-delay: 90ms; }
.js .hero .dog { opacity: 0; translate: -50% 30%; }
.js .hero.is-in .dog { opacity: 1; translate: -50% 0; transition: translate 1300ms var(--ease-out) 300ms, opacity 500ms ease 300ms; }

@media (prefers-reduced-motion: reduce) {
  .gold { animation: none; }
  .flutter { display: none; }
  /* Reduce Motion: nothing moves, but things still fade in and the card still turns over (as a crossfade). */
  .js [data-reveal], .js .hero-title > span { transform: none; translate: none; }
  .js [data-reveal].is-in { transition: opacity 600ms ease; }
  .js .hero.is-in .hero-title > span { transition: opacity 600ms ease; }
  .js .hero .dog { opacity: 1; translate: -50% 0; transition: none !important; }
  .hero-scroll { height: auto; }
  .hero { position: relative; }
  .statement { margin-top: 0; padding-top: clamp(5rem, 12vw, 9rem); }
  .pill:active { transform: none; }
  .gc-flip, .odo-strip, .site, .faq .answer { transition: none; }
  .giftcard.is-flipped .gc-flip { transform: none; }
  .gc-back { transform: translateZ(0.5px); }
  .gc-front, .gc-back { transition: opacity 400ms ease, visibility 0s linear 400ms; }
  .gc-back, .giftcard.is-flipped .gc-front { opacity: 0; }
  .giftcard.is-flipped .gc-back { opacity: 1; transition: opacity 400ms ease, visibility 0s; }
  .giftcard.is-flipped .gc-front { transition: opacity 400ms ease, visibility 0s linear 400ms; }
  .giftcard:not(.is-flipped) .gc-front { transition: opacity 400ms ease, visibility 0s; }
  .scroll-hint i { animation: none; }
  .menu ol a { transform: none; transition: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 899px) {
  .mono { font-size: 0.72rem; }
  .sec { padding-top: clamp(5rem, 18vw, 7rem); }
  .sec-head { margin-bottom: 2rem; }
  .sec-head h2 { font-size: clamp(2.8rem, 12.5vw, 4rem); }
  .sec-head p, .story-text, .faq .answer p { font-size: 1rem; }

  /* Card scene: both lines of the giant type stay readable above the card. */
  .scene-stage { padding-top: 4rem; }
  .scene-type { line-height: 0.82; }
  .scene-card { margin-top: 1.75rem; perspective: 900px; }
  .scene-copy { margin-top: 3rem; }
  .scene-copy h2 { font-size: clamp(2.6rem, 12vw, 3.6rem); }

  /* Services: the number sits above each title instead of in its own column. */
  .lines li { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.4rem 0; }
  .lines .amt { grid-row: auto; padding-top: 0; }
  .lines h3 { font-size: 1.85rem; }
  .inside-head h2 { font-size: clamp(2.8rem, 12.5vw, 4rem); }

  .why h3, .steps h3 { font-size: 1.75rem; }
  .quote { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .faq summary { font-size: 1.6rem; padding: 1.15rem 0; }
  .plus { width: 2.25rem; height: 2.25rem; }

  /* Floating pill: smaller, and only shown while scrolling back up. */
  .dock { min-height: 2.6rem; padding: 0.6rem 1.1rem; font-size: 0.875rem; box-shadow: 0 12px 30px -12px rgba(14, 14, 12, 0.5); }
  
}

/* Projects become a swipeable carousel on phones. */
.sites-dots { display: none; }
.sites > li.only-phone { display: none; }
@media (max-width: 699px) { .sites > li.only-phone { display: block; } }
@media (max-width: 699px) {
  .sites {
    display: flex;
    gap: 0.85rem;
    margin-inline: calc(var(--pad) * -1);
    padding: 0.5rem var(--pad) 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    perspective: none;
  }
  .sites::-webkit-scrollbar { display: none; }
  .sites > li { flex: 0 0 84%; scroll-snap-align: start; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
  .js .sites > li:not(.is-current) { opacity: 0.55; transform: scale(0.96); }
  .site-desc { min-height: 2.9em; }
  /* The open slot becomes the last card of the carousel. */
  .sites-next { display: none; }
  .site-cta { display: flex; flex-direction: column; justify-content: center; gap: 1rem; height: 100%; padding: 1.75rem 1.4rem; border: 1.5px dashed var(--ink-3); border-radius: 1.4rem; text-decoration: none; }
  .site-cta h3 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 0.95; letter-spacing: -0.02em; }
  .site-cta p { color: var(--ink-2); }
  .site-cta .pill { align-self: flex-start; }
  .sites-dots { display: flex; justify-content: center; align-items: center; gap: 0.45rem; margin-top: 1.1rem; }
  .sites-dots button { width: 0.5rem; height: 0.5rem; padding: 0; border: 0; border-radius: 999px; background: var(--rule); cursor: pointer; transition: width 300ms var(--ease-out), background-color 300ms ease; }
  .sites-dots button[aria-current="true"] { width: 1.5rem; background: var(--ink); }
  .sites-dots button::after { content: ''; display: block; margin: -0.9rem; width: 2.3rem; height: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sites > li, .sites-dots button { transition: none; }
}
