/* Alma Jaguar test site. Base: direction A "Templo" (candlelit night).
   Type from A1 (Italiana for display, Jost for text). Mobile first: nothing depends on hover. */
:root {
  --cacao: #17110c;   /* page */
  --madera: #241a12;  /* raised surface */
  --cera: #eee3d0;    /* text */
  --humo: #a99b87;    /* secondary text */
  --vela: #d8a860;    /* candle gold, the one accent */
  --bosque: #15312f;  /* deep forest green, close to blue: the science band */
  --gutter: clamp(20px, 6vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cacao); color: var(--cera); font-family: Jost, "Futura", sans-serif; font-weight: 300;
       font-size: clamp(17px, .5vw + 15px, 19px); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--vela); outline-offset: 4px; }
.wrap { padding-inline: var(--gutter); max-width: 1280px; margin-inline: auto; }
h1, h2, h3, blockquote, .display { font-family: Italiana, Georgia, serif; font-weight: 400; letter-spacing: .01em; }
h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; margin: 0 0 .5em; }
h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; margin: 0 0 .4em; }
.lead { max-width: 36ch; margin: 0; }
.muted { color: var(--humo); }
.kicker { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--vela); margin: 0 0 18px; }

.mark { background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.jaguar { --src: url(brand/logo/jaguar.svg); aspect-ratio: 1768 / 1385; }
.wordmark { --src: url(brand/logo/wordmark.svg); aspect-ratio: 2699 / 172; }

/* Top bar: over the hero on the home page, solid on the other pages. */
.topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
          gap: 16px; padding: 14px var(--gutter); font-size: 15px; }
.topnav.solid { position: sticky; background: rgba(23,17,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(238,227,208,.1); }
.topnav .home { display: block; width: 150px; padding: 12px 0; }
.topnav .home .wordmark { display: block; width: 100%; color: var(--cera); }
.topnav nav { display: flex; gap: 4px; margin-left: auto; }
.topnav nav a { text-decoration: none; padding: 12px 10px; }
.topnav nav a[aria-current] { color: var(--vela); }
.topnav nav .lang { letter-spacing: .12em; color: var(--humo); }
.topnav .narrow { display: none; }
@media (max-width: 599px) {
  .topnav .wide { display: none; }
  .topnav .narrow { display: inline; }
  .topnav.solid .home-link { display: none; }  /* the wordmark already links home */
}

.btn { display: inline-block; padding: 16px 30px; min-height: 52px; background: var(--cera); color: var(--cacao); text-decoration: none;
       font-weight: 400; font-size: 17px; letter-spacing: .02em; transition: background .3s; }
.btn:active { background: var(--vela); }
@media (hover: hover) { .btn:hover { background: var(--vela); } }

/* Hero: darkness, then light blooms from the floor and reveals the room. */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end center; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 60%); }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse var(--r, 0%) calc(var(--r, 0%) * .75) at 50% 78%, transparent 0%, rgba(23,17,12,.35) 45%, var(--cacao) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(23,17,12,.45), rgba(23,17,12,.1) 30%, rgba(23,17,12,.6) 62%, rgba(23,17,12,.92)); }
.hero-inner { text-align: center; padding: 0 var(--gutter) 13svh; width: 100%; }
@media (max-width: 899px) { .hero-inner { padding-bottom: 24svh; } }
.hero .jaguar { width: clamp(170px, 26vw, 330px); margin: 0 auto 32px; color: var(--cera); opacity: 0; }
.hero .wordmark { width: clamp(260px, 48vw, 660px); margin: 0 auto; color: var(--cera); opacity: 0; }
.hero h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 28px 0 0; color: var(--vela); opacity: 0; }
body.lit .hero-light { animation: bloom 3.2s cubic-bezier(.2,.7,.2,1) forwards; }
body.lit .hero .jaguar { animation: emerge 2.2s 1.2s ease-out forwards; }
body.lit .hero .wordmark { animation: emerge 2s 1.9s ease-out forwards; }
body.lit .hero h1 { animation: emerge 1.6s 2.6s ease-out forwards; }
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes bloom { from { --r: 0%; } to { --r: 120%; } }
@keyframes emerge { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
.scroll-hint { position: absolute; bottom: 4svh; left: 50%; width: 1px; height: 7svh; background: linear-gradient(var(--vela), transparent); opacity: .6; }

/* Questions: each one lights up as it reaches the middle of the screen. */
.questions { padding-block: 20svh 8svh; }
.questions p { font-family: Italiana, Georgia, serif; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.1;
               max-width: 17ch; margin: 0 0 1.1em; color: var(--humo); opacity: .28; transition: opacity 1.2s ease, color 1.2s ease; }
.questions p:nth-child(even) { margin-left: auto; text-align: right; }
.questions p.on { opacity: 1; color: var(--cera); }

/* What Alma Jaguar is, and what makes it different. */
.about { padding-block: 10svh 8svh; }
.about .lead { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.6; max-width: 34ch; }
.about .lead + .lead { margin-top: 1em; color: var(--vela); font-family: Italiana, Georgia, serif; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }
.diff { padding-block: 8svh 6svh; }
.diff .sub { font-family: Italiana, Georgia, serif; font-size: clamp(24px, 2.4vw, 32px); color: var(--vela); margin: -.2em 0 1em; line-height: 1.2; }
.diff ul { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(238,227,208,.18); }
.diff li { padding: 20px 0; border-bottom: 1px solid rgba(238,227,208,.18); }
.diff li b { display: block; font-family: Italiana, Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; margin-bottom: 4px; }
.diff li span { color: var(--humo); }
.diff .closer { margin: 40px 0 0; max-width: 34ch; font-size: clamp(19px, 1.5vw, 22px); }
@media (min-width: 900px) { .diff ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; } }

/* Call to action that breathes: a light and a ring grow for 4 s and shrink for 4 s, with the cue words.
   It keeps moving even with "reduce motion" on: the circle is the exercise itself, not decoration. */
.breathe { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 18svh var(--gutter); }
.breathe .orb, .breathe .ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; z-index: -1; border-radius: 50%; translate: -50% -50%;
  animation: breath 8s ease-in-out infinite; }
.breathe .orb { width: min(96vw, 820px); background: radial-gradient(circle, rgba(216,168,96,.6), rgba(216,168,96,.2) 45%, transparent 70%); }
.breathe .ring { width: min(80vw, 660px); border: 1px solid rgba(216,168,96,.7); box-shadow: 0 0 40px rgba(216,168,96,.18), inset 0 0 40px rgba(216,168,96,.12); }
.cue { position: relative; height: 1.4em; margin: 0 0 14px; font-size: 16px; letter-spacing: .34em; text-transform: uppercase; color: var(--vela); }
.cue span { position: absolute; inset: 0; animation: cue 8s ease-in-out infinite; }
.cue span + span { animation-delay: -4s; }
.breathe h2 { font-size: clamp(44px, 7vw, 96px); line-height: 1; margin: 0 auto .4em; max-width: 12ch; }
.breathe p { margin: 0 auto 36px; max-width: 30ch; }
.breathe .tel { display: inline-block; margin-top: 18px; padding: 10px; color: var(--humo); }
@keyframes breath { 0%, 100% { scale: .62; } 50% { scale: 1; } }
@keyframes cue { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

.bleed { margin: 0; }
.bleed img { width: 100%; height: min(88svh, 900px); object-fit: cover; }
@media (max-width: 899px) { .bleed img { height: 40svh; } }

.jaguar-sec { padding-block: 16svh; display: grid; gap: 48px; }
.jaguar-sec .jaguar { width: min(70vw, 420px); color: var(--vela); opacity: .9; }
.pillars { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(238,227,208,.18); }
.pillars li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(238,227,208,.18);
              font-family: Italiana, Georgia, serif; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }
.pillars li::before { content: "△"; color: var(--vela); font-family: Jost, sans-serif; font-size: 15px; line-height: 2.4; }
.pillars li:nth-child(even)::before { content: "▽"; }
.pillars small { display: block; font-family: Jost, sans-serif; font-size: 17px; color: var(--humo); margin-top: 6px; line-height: 1.5; }
@media (min-width: 900px) {
  .jaguar-sec { grid-template-columns: 5fr 6fr; align-items: start; column-gap: 8vw; }
  .jaguar-sec .jaguar { grid-row: span 2; position: sticky; top: 18svh; }
}

.science { background: var(--bosque); color: #f1ece0; padding-block: 16svh; }
.science h2 { font-size: clamp(46px, 7.4vw, 112px); line-height: 1; margin-bottom: .4em; }
.science p { max-width: 40ch; margin: 0 0 1em; }
.science .more { display: inline-block; padding: 10px 0; color: var(--vela); }

.quote { position: relative; min-height: 90svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(23,17,12,.85)); }
.quote blockquote { margin: 0; padding: 0 var(--gutter) 12svh; font-size: clamp(40px, 6vw, 88px); line-height: 1.04; max-width: 14ch; }

/* Testimonials: the video, then written words to swipe through. */
.voices { padding-block: 16svh 6svh; }
.voices video { width: min(100%, 360px); aspect-ratio: 9 / 16; background: var(--madera); margin: 32px 0 0; }
.swipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 20px; margin-top: 40px;
         scrollbar-width: none; overscroll-behavior-x: contain; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { flex: 0 0 84%; scroll-snap-align: center; }
.voice { margin: 0; padding: 28px 24px; background: var(--madera); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.voice blockquote { margin: 0; font-size: clamp(25px, 2.2vw, 30px); line-height: 1.25; }
.voice figcaption { color: var(--humo); font-size: 15px; letter-spacing: .06em; }
.hint { color: var(--humo); font-size: 14px; padding-inline: var(--gutter); margin: 0; }
@media (min-width: 900px) {
  .voices-grid { display: grid; grid-template-columns: 360px 1fr; column-gap: 6vw; align-items: start; }
  .swipe > * { flex-basis: 40%; }
}

.closing { padding-block: 16svh 10svh; text-align: center; }
.closing .lead { margin: 0 auto 40px; color: var(--humo); }
.contact { list-style: none; padding: 0; margin: 48px auto 0; display: grid; gap: 2px; max-width: 420px; }
.contact a, .contact span { display: block; padding: 12px; text-decoration: none; }
.contact small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--humo); }

footer { padding: 40px var(--gutter); color: var(--humo); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid rgba(238,227,208,.12); }
footer .wordmark { width: 180px; color: var(--humo); }
footer a { text-decoration: none; }
footer .legal { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.6; }
footer .legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Experiences page. */
.page-head { padding-block: 12svh 4svh; }
.page-head h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; margin: 0 0 .3em; }
.group { padding-block: 6svh; }
.group > h2 { padding-inline: var(--gutter); max-width: 1280px; margin-inline: auto; }
.item { padding-block: 6svh; border-top: 1px solid rgba(238,227,208,.12); }
.item .swipe { margin-top: 0; padding-top: 0; }
.item .swipe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.item .swipe.one > * { flex-basis: 100%; }
.item.wide .swipe img { aspect-ratio: 4 / 3; }
.item .text { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.item .text p, .item .text ul { max-width: 40ch; }
.item .text p { margin: 0 0 1em; }
.item h4 { font-family: Jost, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--vela); margin: 28px 0 8px; }
.item ul { padding-left: 1.1em; margin: 0; color: var(--humo); }
.item li { margin-bottom: .4em; }
.item .more { display: inline-block; padding: 10px 0; color: var(--vela); }
@media (min-width: 900px) {
  .item { display: grid; grid-template-columns: 6fr 5fr; column-gap: 4vw; align-items: start; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
  .item .swipe { padding-inline: 0; }
  .item .swipe > * { flex-basis: 100%; }
  .item .text { padding: 0; }
}

/* Science page. */
.refs { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: r; }
.refs li { counter-increment: r; padding: 24px 0; border-top: 1px solid rgba(238,227,208,.18); max-width: 60ch; }
.refs h3 { font-size: clamp(26px, 2.4vw, 32px); }
.refs h3::before { content: counter(r) ". "; color: var(--vela); }
.refs p { margin: 0 0 .6em; color: var(--humo); font-size: 16px; }
.refs a { color: var(--vela); word-break: break-all; display: inline-block; padding: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-light { --r: 120%; animation: none !important; }
  .hero .jaguar, .hero .wordmark, .hero h1 { opacity: 1; animation: none !important; }
  .questions p { opacity: 1; color: var(--cera); transition: none; }
}

/* Inside the testimonials block, the swipe row runs to the screen edges. */
.voices .swipe { margin-inline: calc(-1 * var(--gutter)); }
.voices .hint { padding-inline: 0; }
.voice blockquote { font-size: clamp(23px, 2vw, 28px); }
/* Desktop: video pinned on the left, written testimonials stacked on the right. */
@media (min-width: 900px) {
  .voices-grid > div:first-child { position: sticky; top: 8svh; }
  .voices .swipe { flex-direction: column; overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; gap: 16px; max-width: 52ch; }
  .voices .swipe > * { flex-basis: auto; }
  .voices .hint { display: none; }
}

/* "¿Qué es?" carries the jaguar. */
.about-mark { width: min(56vw, 360px); color: var(--vela); opacity: .9; margin: 0 0 40px; }
@media (min-width: 900px) {
  .about { display: grid; grid-template-columns: 5fr 6fr; column-gap: 6vw; align-items: center; }
  .about-mark { margin: 0; }
}

/* Experiences page opening: full photo with the title over its lower part. */
.exp-hero { position: relative; min-height: 88svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding-bottom: 8svh; }
.exp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.exp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(23,17,12,.55), rgba(23,17,12,.05) 30%, rgba(23,17,12,.55) 60%, var(--cacao)); }
.exp-hero .wrap { width: 100%; }
.exp-hero h1 { font-size: clamp(48px, 8vw, 112px); line-height: .98; margin: 0 0 .3em; max-width: 10ch; }
.exp-hero .lead { color: var(--cera); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { text-decoration: none; padding: 10px 18px; border: 1px solid rgba(238,227,208,.4); font-size: 16px; }
.topnav.solid + .exp-hero { margin-top: -77px; padding-top: 77px; }
@media (max-width: 899px) { .topnav .home { width: 104px; } .topnav nav a { padding-inline: 8px; } }

/* Desktop: no sideways swiping with a mouse. All photos show at once:
   one big on top when the count is odd, the rest in pairs. */
@media (min-width: 900px) {
  .item .swipe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; scroll-snap-type: none; padding: 0; }
  .item .swipe > * { flex: none; }
  .item .swipe img, .item.wide .swipe img { aspect-ratio: 4 / 5; }
  .item .swipe > :first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .item.wide .swipe.one img { aspect-ratio: 4 / 3; }
  .item .swipe.one img { aspect-ratio: 4 / 5; }
  .item.wide .swipe.one img { aspect-ratio: 3 / 2; }
  .item .swipe + .hint { display: none; }
  .item .text { position: sticky; top: 110px; }
}

/* Under "¿Qué es?": the way to the services. */
.about-btn { margin-top: 36px; }

/* Our essence: the founder, with a small, discreet portrait. */
.essence { padding-block: 4svh 16svh; display: grid; gap: 36px; }
.essence .founder { margin: 0; width: min(46vw, 200px); }
.essence .founder img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); }
.essence .founder figcaption { margin-top: 12px; font-size: 15px; color: var(--cera); }
.essence .founder small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--humo); }
.essence p { max-width: 52ch; margin: 0 0 1em; }
.essence .closer { font-family: Italiana, Georgia, serif; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; color: var(--vela); margin-top: 1.2em; max-width: 26ch; }
@media (min-width: 900px) {
  .essence { grid-template-columns: 5fr 6fr; column-gap: 8vw; align-items: start; }
  .essence .founder { justify-self: end; width: 220px; margin-top: 12px; }
}

/* The featured testimonial: one long quote, in text type so it reads easily. */
.featured { margin: 32px 0 0; padding: 28px 24px; border-left: 1px solid var(--vela); background: var(--madera); }
.featured blockquote { margin: 0; font-family: Jost, "Futura", sans-serif; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.7; letter-spacing: 0; }
.featured figcaption { margin-top: 20px; font-family: Italiana, Georgia, serif; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; color: var(--vela); }
.featured small { display: block; margin-top: 6px; font-family: Jost, sans-serif; font-size: 14px; line-height: 1.5; color: var(--humo); max-width: 52ch; }
@media (min-width: 900px) { .featured { margin: 0 0 16px; max-width: 52ch; } }

/* FAQ: each answer opens under its question. Works without JavaScript. */
.faq { padding-block: 14svh 4svh; }
.faq-list { margin-top: 32px; border-top: 1px solid rgba(238,227,208,.18); max-width: 860px; }
.faq details { border-bottom: 1px solid rgba(238,227,208,.18); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 22px 0;
               font-family: Italiana, Georgia, serif; font-size: clamp(23px, 2vw, 28px); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: Jost, sans-serif; font-size: 24px; color: var(--vela); text-align: center; transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 24px; max-width: 62ch; color: var(--humo); }

/* Legal page. */
.legal-page h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; margin: 0 0 .6em; }
.legal-page h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 1.6em 0 .4em; }
.legal-page p { max-width: 64ch; margin: 0 0 1em; color: var(--humo); }
.legal-page a { color: var(--vela); }

/* English site: notes under the video and the testimonials. */
.video-note, .translated { color: var(--humo); font-size: 13px; letter-spacing: .04em; margin: 12px 0 0; }
