@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #a9bdc9;
  --blue-light: #c7d5dd;
  --paper: #f7f3f0;
  --blush: #edd2ce;
  --ink: #16191d;
  --ink-soft: #28333c;
  --slate: #46586a;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .tally :focus-visible { outline-color: var(--blush); }

h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 300; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
p { margin: 0; }
.intro, .about p, .quote p, .know dd, .desc, .card .note { text-wrap: pretty; }

.wrap { width: min(100% - 44px, 640px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 6px 0 56px; }
.hero::before {
  content: "";
  position: absolute;
  width: 140vw; max-width: 900px; aspect-ratio: 1;
  left: 50%; top: 14%;
  translate: -62% 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.28) 36%, rgba(255, 255, 255, 0) 66%);
  animation: bloom 2.6s var(--ease) both;
  pointer-events: none;
}
@keyframes bloom {
  from { opacity: 0.15; scale: 0.55; }
  to { opacity: 1; scale: 1; }
}
.hero > * { position: relative; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.topbar nav { flex: 1 1 100%; min-width: 0; }
.lang {
  order: -1; margin: 8px 0 2px auto; display: inline-flex; gap: 2px; padding: 2px;
  border: 1.5px solid var(--ink); border-radius: 999px;
}
.lang button {
  position: relative; min-width: 44px; min-height: 34px; padding: 0 10px 0 calc(10px + 0.14em);
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.14em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang button::after { content: ""; position: absolute; inset: -5px 0; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); cursor: default; }
@media (hover: hover) { .lang button[aria-pressed="false"]:hover { background: rgba(22, 25, 29, 0.1); } }
html.i18n-wait body { visibility: hidden; }

.anchors { display: flex; gap: 4px; margin: 0 -10px; padding: 0; list-style: none; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.anchors a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; text-decoration: none; }
@media (hover: hover) { .anchors a:hover { text-decoration: underline; } }
.anchors .a-work { display: none; } /* five labels crowd a phone row; shown from 760px */

.wordmark { margin-top: 24px; font-size: clamp(4.4rem, 25vw, 6rem); line-height: 0.86; letter-spacing: -0.025em; font-weight: 300; }
.wordmark .w1, .wordmark .w2 { display: block; }
.wordmark .w2 { margin-left: 24%; }
.wordmark .by {
  display: block; margin: 18px 0 0 24%;
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: 0.8125rem; letter-spacing: 0.34em; text-transform: uppercase; line-height: 1;
}
.offer { margin-top: 32px; max-width: 36ch; }
.hl { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin-top: 12px; line-height: 1.5; font-weight: 400; color: var(--ink); text-wrap: pretty; }
.first { margin-top: 12px; line-height: 1.45; font-weight: 600; color: var(--ink); text-wrap: balance; }
.cta { display: flex; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem var(--sans); letter-spacing: 0.01em; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--ink); color: var(--paper); flex: 1.5; }
.btn-line { background: transparent; color: var(--ink); flex: 1; }
@media (hover: hover) {
  .btn-solid:hover { background: #2d343b; }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
}
.btn:active { transform: scale(0.98); }

.proof { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.9375rem; color: var(--ink-soft); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--ink); }
.proof b { color: var(--ink); font-weight: 600; }
.nw { white-space: nowrap; }

/* ---------- Waves ---------- */
.wave { position: absolute; left: 0; top: -39px; width: 100%; height: 40px; fill: var(--bg); display: block; }
section { position: relative; background: var(--bg); }

/* ---------- Menu ---------- */
.menu { --bg: var(--blue); padding: 28px 0 56px; }
.menu h2 { margin-bottom: 14px; }
.menu .intro { max-width: 34ch; margin-bottom: 26px; color: var(--ink-soft); }
.card { background: var(--paper); border-radius: 16px; padding: 6px 16px 22px; box-shadow: 0 18px 36px -18px rgba(22, 25, 29, 0.35), 0 2px 6px rgba(22, 25, 29, 0.08); }
.group { padding-top: 22px; }
.group h3 { font-size: 1.9rem; line-height: 1.1; padding-bottom: 8px; border-bottom: 1px solid rgba(22, 25, 29, 0.55); margin-bottom: 4px; }
.row {
  position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px;
  align-items: start; padding: 12px 8px; margin: 0 -8px; border-radius: 10px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s var(--ease);
}
.row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tick {
  grid-row: 1 / span 2; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--slate); display: grid; place-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tick::after {
  content: ""; width: 7px; height: 12px; margin-top: -3px;
  border: solid var(--paper); border-width: 0 2.5px 2.5px 0; rotate: 45deg;
  scale: 0; transition: scale 0.3s var(--ease);
}
@media (hover: hover) { .row:hover { background: rgba(169, 189, 201, 0.22); } }
.row:has(input:checked) { background: var(--blush); }
.row input:checked + .tick { background: var(--ink); border-color: var(--ink); }
.row input:checked + .tick::after { scale: 1; }
.row input:focus-visible + .tick { outline: 3px solid var(--ink); outline-offset: 3px; }
.line { display: flex; align-items: baseline; gap: 8px; }
.nm { font-weight: 500; line-height: 1.3; }
.dots { flex: 1; min-width: 14px; border-bottom: 2px dotted rgba(70, 88, 106, 0.55); transform: translateY(-4px); }
.pr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { grid-column: 2; font-size: 0.9375rem; line-height: 1.4; color: var(--slate); margin-top: 3px; max-width: 36ch; }
.card .note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(22, 25, 29, 0.2); font-size: 0.9375rem; color: var(--slate); }

/* ---------- My work ---------- */
.work { --bg: var(--paper); padding: 40px 0 64px; }
.work h2 { margin-bottom: 4px; }
.set { padding-top: 26px; }
.set + .set { padding-top: 40px; }
.set h3 { font-size: 1.9rem; line-height: 1.1; padding-bottom: 8px; border-bottom: 1px solid rgba(22, 25, 29, 0.55); margin-bottom: 14px; }
.set h3 .sub { display: block; font-size: 1.25rem; line-height: 1.2; margin-top: 2px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.shots + .shots { margin-top: 14px; }
.shot { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue-light); }
.shots > :nth-child(1) { border-radius: 16px 0 0 16px; }
.shots > :nth-child(2) { border-radius: 0 16px 16px 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  padding: 6px 10px 6px calc(10px + 0.14em); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}

/* Covered (Brazilian) tiles: only a tiny pre-blurred cover loads; the photo loads on tap. */
.covered > :nth-child(1) { border-radius: 16px 0 0 0; }
.covered > :nth-child(2) { border-radius: 0 16px 0 0; }
.covered > .wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 0 0 16px 16px; }
.veil {
  display: block; width: 100%; padding: 0; border: 0; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--ink-soft);
}
.veil:focus-visible { outline: none; }
.veil:focus-visible::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper);
}
@media (hover: hover) {
  .veil:hover .view { background: #2d343b; }
  .veil.shown:hover .hide { background: var(--ink); color: var(--paper); }
}
.veil .blur { position: absolute; inset: 0; filter: blur(14px) saturate(0.7); transform: scale(1.25); }
.veil .real { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease); }
.veil.shown .real { opacity: 1; }
.veil-ui { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.veil .view {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  max-width: calc(100% - 16px); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-align: center;
  box-shadow: 0 10px 22px -12px rgba(22, 25, 29, 0.6);
  transition: transform 0.25s var(--ease);
}
.veil .view svg { width: 18px; height: 18px; flex: none; }
.veil:active .view { transform: scale(0.97); }
.veil.loading .view { opacity: 0.75; }
.veil .hide {
  display: none; position: absolute; top: 8px; right: 8px;
  padding: 6px 10px 6px calc(10px + 0.14em); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.veil.shown .view { display: none; }
.veil.shown .hide { display: block; }

/* ---------- Reviews ---------- */
.reviews { --bg: var(--blush); padding: 36px 0 60px; margin-top: 0; }
.reviews .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.reviews .head .score { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
.feature { margin: 30px 0 8px; }
.feature blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 6.6vw, 2.1rem); line-height: 1.25; text-wrap: pretty; }
.who { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.quotes { margin-top: 12px; }
.quote { padding: 22px 0; border-top: 1px solid rgba(22, 25, 29, 0.25); }
.quote:nth-child(even) { margin-left: 8%; }
.quote p { margin-top: 10px; max-width: 46ch; }
.quote .who { margin-top: 10px; }
.quote .stars svg, .who .stars svg { width: 14px; height: 14px; }

/* ---------- About ---------- */
.about { --bg: var(--blue-light); padding: 40px 0 64px; }
.portrait { position: relative; width: min(78%, 320px); margin: 0 0 34px 4%; }
.portrait::before { content: ""; position: absolute; inset: -14px -16px 12px 16px; border: 1px solid rgba(22, 25, 29, 0.45); border-radius: 52% 48% 50% 50% / 58% 56% 44% 42%; rotate: -5deg; }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 66% 32%; border-radius: 50% 50% 46% 54% / 60% 58% 42% 40%; }
.about h2 { margin-bottom: 18px; }
.about p + p { margin-top: 14px; }
.about p { max-width: 46ch; }
.about .sign { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.4rem; margin-top: 20px; }

/* ---------- Know before ---------- */
.know { --bg: var(--paper); padding: 44px 0 56px; }
.know h2 { margin-bottom: 8px; }
.know dl { margin: 0; }
.know .item { padding: 22px 0; border-bottom: 1px solid rgba(22, 25, 29, 0.18); }
.know .item:last-child { border-bottom: 0; }
.know dt { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.9rem; line-height: 1.1; margin-bottom: 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.know dd { margin: 0; color: var(--slate); max-width: 44ch; }
.rice { width: 66px; height: 26px; flex: none; }

/* ---------- Visit ---------- */
.dark { --bg: var(--ink); color: var(--paper); padding: 48px 0 calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)); }
.dark h2 { color: var(--paper); margin-bottom: 26px; }
.dark a { text-decoration-color: rgba(247, 243, 240, 0.5); }
.addr { font-size: 1.2rem; line-height: 1.4; }
.contact-lines { display: grid; gap: 4px; margin-top: 18px; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.15rem; font-weight: 500; }
.hours { margin: 26px 0 0; padding: 0; list-style: none; max-width: 22rem; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(247, 243, 240, 0.2); }
.hours li.today { color: var(--blush); font-weight: 600; }
.hours li.today span:first-child::after { content: " · today"; font-weight: 400; }
html[lang="es"] .hours li.today span:first-child::after { content: " · hoy"; }
.social { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.dark .btn-solid { background: var(--blush); color: var(--ink); border-color: var(--blush); width: 100%; margin-top: 30px; flex: none; }
@media (hover: hover) { .dark .btn-solid:hover { background: var(--paper); border-color: var(--paper); } }
/* while the picks strip is up it sits above the bar; keep the last lines clear of it */
body:has(.tally:not([hidden])) .dark { padding-bottom: calc(var(--bar-h) + 112px + env(safe-area-inset-bottom)); }
.foot { margin-top: 34px; font-size: 0.875rem; color: #b9c6ce; }

/* ---------- Sticky bar + tally ---------- */
.bar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 243, 240, 0.97);
  box-shadow: 0 -10px 24px -12px rgba(22, 25, 29, 0.25);
}
.bar .btn { min-height: 54px; padding: 0 14px; }
.bar .btn-solid { flex: 1.7; }
.bar .btn-line { flex: 1; }
.tally {
  position: fixed; z-index: 19; left: 10px; right: 10px; bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  background: var(--ink); color: var(--paper); border-radius: 16px;
  box-shadow: 0 14px 30px -10px rgba(22, 25, 29, 0.55);
  animation: rise 0.45s var(--ease) both;
}
.tally[hidden] { display: none; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.tally .sum { flex: 1; line-height: 1.25; font-size: 0.9375rem; }
.tally .sum b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tally .clear { background: none; border: 0; color: var(--paper); font: 500 0.875rem var(--sans); text-decoration: underline; min-height: 44px; padding: 0 6px; cursor: pointer; }
.tally .send { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blush); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.9375rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 520px) {
  .topbar nav { flex: 0 1 auto; }
  .lang { order: 0; margin: 0 0 0 auto; }
  .wordmark { margin-top: 34px; }
}
@media (min-width: 760px) {
  body { font-size: 1.125rem; }
  .wrap { width: min(100% - 80px, 680px); }
  .hero { padding-bottom: 80px; }
  .hero .wrap { width: min(100% - 80px, 900px); }
  .offer { max-width: 40ch; }
  .cta { max-width: 460px; }
  .bar { left: 50%; right: auto; bottom: 14px; translate: -50% 0; width: min(560px, 100% - 40px); border-radius: 22px; box-shadow: 0 14px 30px -10px rgba(22, 25, 29, 0.35); }
  .tally { left: 50%; right: auto; translate: -50% 0; width: min(540px, 100% - 60px); bottom: calc(var(--bar-h) + 28px); }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
  .portrait { margin-left: 0; }
  .anchors .a-work { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .tally { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
