/* ==========================================================
   Patricia Murijo — links page
   Measurements come from the Figma frame "Linktree paty 01" (402px wide).
   ========================================================== */

:root {
  --ink: #141414;
  --black: #000;
  --white: #fff;
  --paper: #f8f8f8;
  --backdrop: #201d18;
  --hero-fade: #25190f;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --tag: "Gloock", Georgia, serif;

  --gutter: 20px;
  --shadow-btn: drop-shadow(17.072px 11.951px 17.072px rgba(0, 0, 0, 0.08));
  --shadow-card: drop-shadow(0 2px 1.2px rgba(0, 0, 0, 0.08));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Mobile-first column; on wider screens it stays a centered phone-width column. */
.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

/* ---------- Shared type ---------- */

.heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28.748px;
  line-height: 0.94;
  text-align: center;
}
.heading--narrow { max-width: 340.581px; margin-inline: auto; }

.label {
  font-weight: 300;
  font-size: 14.694px;
  line-height: 1;
  letter-spacing: -0.2939px;
  text-align: center;
}
.label--light { color: var(--white); }

/* ---------- Buttons ---------- */

.buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-inline: var(--gutter);
}

.btn {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  line-height: 17.072px;
  filter: var(--shadow-btn);
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.85; }
.btn:focus-visible { outline-color: var(--ink); }

.btn__title {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  text-transform: uppercase;
}
.btn__sub {
  font-weight: 300;
  font-size: 14px;
}

.btn--outline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--black);
  filter: none;
}
.btn--outline:hover { opacity: 1; background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  aspect-ratio: 402 / 505;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  container-type: inline-size;
}

.hero picture { position: absolute; inset: 0; max-width: none; }

/* Photo crop from Figma: 438×730 placed at (-34.35, -136.27) inside 402×505 */
.hero__photo {
  position: absolute;
  left: -8.545%;
  top: -26.984%;
  width: 108.96%;
  max-width: none;
  height: 144.561%;
  object-fit: cover;
}

.hero__bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 8.373px 12px;
  background: var(--white);
  border-bottom: 0.644px solid var(--white);
}
.hero__bar img { width: 214.589px; max-width: 58%; height: auto; }

.hero__tag {
  padding: 0 8px 8px 0;
  font-family: var(--tag);
  font-size: 11.594px;
  white-space: nowrap;
}

.hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  height: 180px;
  padding-bottom: 28px; /* 8px spacer + 20px gap in Figma */
  background: linear-gradient(to bottom, rgba(37, 25, 15, 0) 32.692%, var(--hero-fade));
  color: var(--white);
  text-align: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: min(36px, 8.955cqi);
  line-height: 0.94;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  max-width: 211.904px;
  font-weight: 300;
  font-size: 19.166px;
  line-height: 1;
  letter-spacing: -0.3833px;
}

/* ---------- Partners ---------- */

.partners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 121px;
  padding: 20px var(--gutter);
  background: var(--black);
}

/* Infinite logo track: two identical lists side by side, slid left by one
   list's width (-50%) and restarted, so the loop is seamless. */
.partners__marquee {
  margin-inline: calc(var(--gutter) * -1); /* run edge to edge */
  overflow: hidden;
  container-type: inline-size;
}

.partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 16s linear infinite;
}

.partners__logos {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  min-width: 100cqi; /* each copy at least fills the column, so no gap shows */
  padding-right: 32px;
}
.partners__logos img { max-width: none; }

@keyframes partners-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; width: auto; justify-content: center; }
  .partners__logos { flex-wrap: wrap; justify-content: center; row-gap: 16px; min-width: 0; padding-inline: var(--gutter); }
  .partners__logos[aria-hidden="true"] { display: none; }
}

/* ---------- Content (light area) ---------- */

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services .heading { padding-block: 20px; }

/* ---------- Lumière ---------- */

.lumiere {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 20px;
}

.lumiere__intro {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-inline: var(--gutter);
}

.lumiere__card {
  display: flex;
  flex-direction: column;
  padding-inline: var(--gutter);
}

.lumiere__shot {
  filter: var(--shadow-card);
}
.lumiere__shot img {
  width: 100%;
  aspect-ratio: 297.786 / 196.405;
  object-fit: cover;
  object-position: left center;
  border-radius: 3.753px 3.753px 0 0;
}

/* ---------- Sobre mim ---------- */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-bottom: 20px;
}
.about .buttons { width: 100%; }

/* Tilted print: white 10px border, rotated -3.23deg */
.about__photo {
  width: min(366.627px, 91.2%);
  margin-block: 10px;
  padding: 10px;
  background: var(--white);
  rotate: -3.23deg;
  filter: var(--shadow-card);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 346.627 / 361.698;
  object-fit: cover;
  object-position: 66% 26.4%;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.about__body {
  padding-inline: 28px;
  font-size: 19.166px;
  line-height: 1.5;
  letter-spacing: -0.3833px;
}
.about__body p + p { margin-top: 1.5em; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  height: 199px;
  padding: 40px var(--gutter);
  background: var(--black);
  overflow: hidden;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31.943px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  color: var(--white);
  transition: opacity 0.2s ease;
}
.footer__social a:hover { opacity: 0.7; }

/* Edge-to-edge logo, intentionally overflowing the right edge as in Figma */
.footer__logo {
  position: absolute;
  top: 111.99px;
  left: 0.794%;
  width: 107.1%;
  max-width: none;
  height: auto;
}

/* ---------- Fade-in on scroll ----------
   Only content fades (marked with data-reveal); section backgrounds stay put.
   The "reveal-on" class is added by the script in <head>, so without JS
   (or with reduced motion) everything is simply visible. `translate` is used
   instead of `transform` so the tilted photo keeps its rotation. */
.reveal-on [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.reveal-on [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* "Sobre mim" photo: fades in tilted, then straightens to 0deg once mostly in view */
.reveal-on .about__photo[data-reveal] {
  transition: opacity 0.7s ease, translate 0.7s ease, rotate 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
}
.reveal-on .about__photo.is-straight { rotate: 0deg; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
