/* ==========================================================================
   Fernanda Molas — Media Kit

   1. Design tokens   <- start here to restyle the whole site
   2. Base
   3. Shared pieces   (wrap, eyebrow, section title and header, pill, socials)
   4. Hero
   5. About
   6. What I do
   7. Brands
   8. Stats
   9. Contact
   10. Reduced motion
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Colors */
  --brown:  #3B1F16;
  --yellow: #F4EAA0;
  --cream:  #FFF8EC;
  --orange: #FF5A14;
  --blue:   #8FD6F5;
  --sky:    #CEF0FF;
  --hero-blue: #A2D3FC;                      /* "molas" in the hero */

  /* Fonts */
  --font-body:        "DM Sans", sans-serif;
  --font-display:     "Montserrat", sans-serif;  /* hero tags */
  --font-name:        "Figtree", sans-serif;     /* the name in the hero */
  --font-handwriting: "Oooh Baby", cursive;      /* "Media Kit" in the hero */

  /* Viewport height unit; switches to dvh where supported (see below) */
  --vh: 1vh;

  /* Hairlines, derived from the colors above */
  --line-on-dark:        color-mix(in srgb, var(--cream) 35%, transparent);
  --line-on-dark-soft:   color-mix(in srgb, var(--cream) 25%, transparent);
  --line-on-light:       color-mix(in srgb, var(--brown) 25%, transparent);
  --track:               color-mix(in srgb, var(--brown) 12%, transparent);
}

/* dvh follows the mobile browser's address bar as it shows and hides */
@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}

/* The Canva design uses the "Moontime" font for the handwriting. It is not
   bundled here. With a web license for it, put the file in assets/fonts/,
   uncomment the rule below and set:
     --font-handwriting: "Moontime", "Oooh Baby", cursive;

@font-face {
  font-family: "Moontime";
  src: url("../assets/fonts/moontime.woff2") format("woff2");
  font-display: swap;
}
*/


/* 2. Base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }
a, button { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--blue); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* 3. Shared pieces
   ========================================================================== */

.wrap { width: min(1320px, calc(100% - 88px)); margin-inline: auto; }

.section { padding: clamp(85px, 10vw, 150px) 0; }

.dark  { background: var(--brown); color: var(--yellow); }
.light { background: var(--cream); color: var(--brown); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.section-title {
  margin: 12px 0 32px;
  font-size: clamp(48px, 7vw, 106px);
  font-weight: 1000;
  line-height: .92;
  letter-spacing: -.085em;
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(43px, 6vw, 82px); margin-bottom: 0; }

/* Section header: eyebrow and title on the left, a short line of text on the right */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head p { max-width: 320px; font-size: 15px; line-height: 1.5; }

/* Yellow rounded band: a row of items separated by thin lines.
   Used for the summary in "lo que hago" and for the logos in "marcas" */
.band {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 25px;
  border-radius: 100px;
  padding: 42px 50px;
  background: var(--yellow);
  color: var(--brown);
}
.band-divider { flex: none; width: 1px; height: 48px; background: var(--brown); opacity: .35; }

.accent { color: var(--orange); }


.tiny { font-size: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 17px 25px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s, box-shadow .2s;
}
.pill:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--brown); }
.pill svg { width: 18px; height: 18px; }
.pill-orange { background: var(--orange); color: var(--cream); }

.socials { display: flex; align-items: center; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--brown);
  transition: transform .2s, background .2s;
}
.social:hover,
.social:focus-visible { background: var(--blue); transform: translateY(-3px); }
.social svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 44px, 1320px); }
  .band { gap: 16px; padding: 30px 24px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding: 75px 0; }
  .section-head { display: block; }
  .band { flex-wrap: wrap; justify-content: center; gap: 18px; border-radius: 36px; padding: 27px 14px; }
  .band-divider { display: none; }
}


/* 4. Hero
   ==========================================================================
   A poster that scales as one piece. Every size and position below is a
   multiple of --u, so the composition keeps its proportions on any screen.

   Landscape: the canvas is 100u wide and at least 56.25u tall (16:9), and
   --u is the largest value that fits both the width and the height.
   Portrait: the same pieces are stacked, name on top and photo below. */

.hero {
  --u: min(1vw, calc(1.7778 * var(--vh)), 20px);
  --name-size: calc(12.5 * var(--u));   /* "fernanda"; "molas" is twice this */

  position: relative;
  height: calc(100 * var(--vh));
  overflow: hidden;
  background: var(--brown);
  color: var(--yellow);
}
.hero-canvas { position: relative; width: calc(100 * var(--u)); height: 100%; margin-inline: auto; }

.hero-content {
  position: absolute;
  z-index: 2;
  top: 49.6%;
  left: calc(5.3 * var(--u));
  transform: translateY(-50%);
}

/* Name: two lines that overlap, "fernanda" sitting on top of "molas" */
.hero-heading { position: relative; font-size: var(--name-size); }
.hero-name {
  margin: 0;
  font-family: var(--font-name);
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}
.hero-first,
.hero-last { display: block; white-space: nowrap; }
.hero-first { position: relative; z-index: 1; margin-left: .012em; color: var(--yellow); letter-spacing: -.084em; }
.hero-last { margin: -.394em 0 0 -.026em; color: var(--hero-blue); font-size: 2em; letter-spacing: -.117em; }

/* "Media Kit", handwritten across the bottom of the name */
.hero-script {
  position: absolute;
  z-index: 2;
  top: 2.86em;
  left: 1.98em;
  margin: 0;
  font-family: var(--font-handwriting);
  font-size: .61em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: .01em currentColor;   /* thickens the thin strokes a touch */
  transform: rotate(-7deg);
  transform-origin: 0 100%;
}

/* Tags, with the social icons centered under them */
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: calc(56 * var(--u));
  margin-top: calc(4.1 * var(--u));
}
.hero-tags { display: flex; flex-wrap: wrap; gap: calc(1.6 * var(--u)); margin: 0; padding: 0; list-style: none; }
.hero-tag {
  border-radius: 999px;
  padding: .63em 1.7em;
  background: var(--yellow);
  color: var(--brown);
  font-family: var(--font-display);
  font-size: max(10px, calc(1.26 * var(--u)));
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: calc(2.2 * var(--u));
  margin: calc(3.6 * var(--u)) calc(1.8 * var(--u)) 0 0;   /* the right margin nudges the centered row left */
}
.hero-social { color: var(--yellow); transition: transform .2s, color .2s; }
.hero-social:hover,
.hero-social:focus-visible { color: var(--hero-blue); transform: translateY(-3px); }
.hero-social svg { display: block; width: auto; height: max(22px, calc(2.8 * var(--u))); }
/* Cutout photo, anchored to the bottom edge and slightly cropped by it.
   .hero-photo keeps the image's proportions, so the doodle can be placed in % */
.hero-figure { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-photo {
  position: absolute;
  bottom: calc(-3.35 * var(--u));
  left: calc(40.2 * var(--u));
  width: calc(73.2 * var(--u));
  aspect-ratio: 1436 / 1096;
}
.hero-spark { position: absolute; top: 16.7%; left: 69%; width: 5.2%; color: var(--yellow); }

/* Portrait screens (phones, tablets held upright) */
@media (max-aspect-ratio: 1/1) {
  .hero {
    --u: min(1vw, calc(.58 * var(--vh)));
    --name-size: calc(19.5 * var(--u));
  }
  .hero-canvas { display: flex; flex-direction: column; }
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: calc(9 * var(--u)) calc(6 * var(--u)) 0;
  }
  .hero-meta { align-items: flex-start; max-width: none; margin-top: calc(5 * var(--u)); }
  .hero-tags { gap: calc(2.2 * var(--u)); }
  .hero-tag { font-size: max(10px, calc(3.1 * var(--u))); }
  .hero-socials { gap: calc(6 * var(--u)); margin: calc(6 * var(--u)) 0 0; }
  .hero-social svg { height: calc(8 * var(--u)); }
  /* The photo takes whatever height is left under the text */
  .hero-figure { position: relative; inset: auto; flex: 1 1 0; min-height: 0; margin-top: calc(3 * var(--u)); }
  .hero-photo {
    bottom: 0;
    left: 50%;
    width: auto;
    height: min(106.4%, 117.6 * var(--u));
    transform: translate(-47.2%, 6%);   /* centers the cutout and hides its bottom edge */
  }
}


/* 5. About
   ========================================================================== */

.about { background: var(--yellow); color: var(--brown); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; align-items: center; }

.about-lede {
  max-width: 590px;
  margin: 0 0 25px;
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.about-copy { max-width: 560px; margin: 0 0 37px; font-size: 17px; line-height: 1.7; }

/* Follower cards: platform icon, platform name, then "54K followers" */
.stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; }
.stat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--brown);
  border-radius: 16px;
  padding: 14px 18px 14px 14px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--brown);
}
.stat-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--yellow);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-platform {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stat-figure { display: flex; align-items: baseline; column-gap: 7px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.stat-figure strong { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.049em; }

/* Photo framing. The photo is anchored by its bottom edge and pushed down,
   so the table with the food stays hidden below the frame.
   More --zoom moves her up in the frame; less shows more wall above her. */
.portrait-frame {
  --frame-h: 530px;
  --zoom: 1.5;          /* 1 = photo as wide as the frame's longer side */
  --crop-bottom: .26;   /* share of the photo hidden below the frame */
  --focus-x: 52%;       /* point of the photo that sits at the horizontal center */

  position: relative;
  height: var(--frame-h);
  overflow: hidden;
  border-radius: 46% 46% 18px 18px;
  background: var(--blue);
  box-shadow: 24px 24px 0 var(--cream);
}
/* Sized from the frame's longer side, so she sits at the same height
   whether the frame is wide (desktop) or tall and narrow (tablet, phone) */
.portrait-frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(max(100%, var(--frame-h)) * var(--zoom));
  height: auto;
  transform: translate(calc(-1 * var(--focus-x)), calc(100% * var(--crop-bottom)));
}

/* Narrower cards: "followers" goes under the number, in both cards at once */
@media (max-width: 1100px) {
  .stat-figure { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .about-grid { gap: 35px; }
  .portrait-frame { --frame-h: 420px; }
  .stats-row { gap: 14px; }
  .stat-chip { gap: 10px; padding: 14px 12px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-icon svg { width: 19px; height: 19px; }
  .stat-platform { font-size: 10px; letter-spacing: .1em; }
  .stat-figure { font-size: 13px; }
  .stat-figure strong { font-size: 30px; }
}
@media (max-width: 650px) {
  .about-grid { grid-template-columns: 1fr; }
  .about .section-title { letter-spacing: .045em; font-kerning: none; }
  .portrait-frame { --frame-h: 430px; width: 100%; max-width: 420px; margin: auto; box-shadow: 12px 12px 0 var(--cream); }
}
@media (max-width: 350px) {
  .stat-chip { gap: 8px; padding: 12px 10px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-icon svg { width: 16px; height: 16px; }
}


/* 6. What I do
   ========================================================================== */

/* No bottom padding: the brands section below has the same background and adds its own */
.work { padding: 95px 0 0; }

/* Summary band: one bold name per service */
.work-item {
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
}

/* Presentation videos: six vertical (9:16) cards.
   6 in a row on desktop, 3 per row on tablets, 2 per row on phones.
   Some cards sit a little lower (--stagger), so the set reads as a rhythm and not a table. */
.video-grid {
  --stagger: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 28px;
}
/* A card is the video frame plus a short title under it */
.video-card { margin: 0; }
.video-card:nth-child(even) { margin-top: var(--stagger); }
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: var(--brown);
  color: var(--yellow);
  transition: transform .3s;
}
.video-card:hover .video-frame { transform: translateY(-6px); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-title {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Visible while a card has no video file; the video covers it once it loads */
.video-number {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.06em;
  opacity: .2;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--yellow);
  color: var(--brown);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s, opacity .2s;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card.is-playing .video-play { opacity: 0; pointer-events: none; }

/* With more than one row, the stagger itself is the space between rows */
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .video-card:nth-child(even) { margin-top: 0; }
  .video-card:nth-child(3n + 2) { margin-top: var(--stagger); }   /* middle column */
}
@media (max-width: 650px) {
  .work-item { flex: 0 1 calc(50% - 9px); }
  .video-grid { --stagger: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .video-frame { border-radius: 14px; }
  .video-title { margin-top: 9px; font-size: 10px; letter-spacing: .12em; }
  .video-card:nth-child(3n + 2) { margin-top: 0; }
  .video-card:nth-child(even) { margin-top: var(--stagger); }      /* right column */
  .video-play { width: 46px; height: 46px; }
  .video-play svg { width: 18px; height: 18px; }
}


/* 7. Brands
   ========================================================================== */

.brands { padding: 95px 0; }
/* One logo per slot, all at one height. A long, thin wordmark (.brand-logo--wide)
   is shorter, so it looks the same size as the others instead of much bigger. */
.brand-logo { flex: 1 1 0; display: grid; place-items: center; min-width: 0; }
.brand-logo img { width: auto; max-width: 100%; height: clamp(34px, 4.2vw, 58px); object-fit: contain; }
.brand-logo--wide img { height: clamp(16px, 2vw, 28px); }

/* Phones: the logos stay in one row with the same thin lines between them,
   and each one shrinks to fit its slot */
@media (max-width: 650px) {
  .brands .band { flex-wrap: nowrap; gap: 12px; padding: 24px 18px; }
  .brands .band-divider { display: block; height: 30px; }
  .brand-logo img { height: auto; max-height: 26px; }
  .brand-logo--wide img { max-height: 12px; }
}


/* 8. Stats
   ==========================================================================
   Reading order: three totals, then one platform at a time (tabs), and inside
   each platform: performance numbers, who the audience is, how content does. */

.metrics { padding: 105px 0; background: var(--brown); color: var(--cream); }
.metrics .eyebrow,
.metrics .section-title { color: var(--yellow); }

/* Three headline numbers */
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(30px, 4vw, 48px) 0 clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.overview-item { min-width: 0; padding: clamp(24px, 3vw, 38px) clamp(16px, 2.5vw, 36px) clamp(26px, 3vw, 40px) 0; }
.overview-item + .overview-item { border-left: 1px solid var(--line-on-dark-soft); padding-left: clamp(20px, 3vw, 44px); }
.overview strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -.085em;
  white-space: nowrap;
}
.overview span,
.dash-kicker {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Platform tabs: each one also shows that platform's followers */
.platform-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(30px, 4vw, 44px); }
.platform-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px);
  background: transparent;
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.platform-tab:hover { border-color: var(--yellow); }
.platform-tab[aria-selected="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--brown); }
.platform-tab-name {
  display: flex;
  align-items: center;
  gap: .32em;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}
.platform-tab-name svg { flex: none; width: .78em; height: .78em; }
.platform-tab-followers { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: right; }
.platform-tab-followers strong { display: block; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.06em; }

/* Panel heading: only needed when the tabs are not working (no JavaScript, print) */
.platform + .platform { margin-top: clamp(40px, 5vw, 64px); }
.platform-title { margin: 0 0 22px; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; letter-spacing: -.06em; }
.tabs-on .platform-title { display: none; }

.dash-kicker { margin: 0 0 16px; color: var(--yellow); }

/* Performance numbers. The 1px gap over a tinted background draws the dividers;
   tiles grow to fill their row, so 7 numbers lay out as 4 + 3 with no empty cell */
.dash-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: clamp(30px, 4vw, 44px);
  border: 1px solid var(--line-on-dark-soft);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line-on-dark-soft);
}
.dash-metric {
  flex: 1 1 calc(25% - 1px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  background: var(--brown);
}
.dash-metric strong { font-size: clamp(26px, 2.9vw, 42px); font-weight: 900; line-height: 1.05; letter-spacing: -.065em; }
.dash-metric span { flex-basis: 100%; font-size: 12px; opacity: .8; }
/* Growth badge, next to the number */
.dash-metric em {
  border-radius: 30px;
  padding: 4px 9px;
  background: var(--yellow);
  color: var(--brown);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

/* Cream cards with the charts: 2 per row, or 3 with .dash-grid--3 */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  margin-bottom: clamp(30px, 4vw, 44px);
}
.dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform > .dash-grid:last-child { margin-bottom: 0; }
.dash-card { min-width: 0; border-radius: 16px; padding: clamp(20px, 2.2vw, 30px); background: var(--cream); color: var(--brown); }
.dash-card h4 { margin: 0 0 20px; font-size: 17px; letter-spacing: -.04em; }

/* Bar chart row: label, bar (--v sets its length), value */
.bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(60px, 2fr) 46px;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  font-size: 12px;
  font-weight: 700;
}
.bar-row:last-child { margin-bottom: 0; }
.bar-row .track { height: 8px; overflow: hidden; border-radius: 10px; background: var(--track); }
.bar-row .fill { display: block; width: var(--v); height: 100%; border-radius: 10px; background: var(--brown); }
.bar-row b { font-size: 12px; text-align: right; }
/* The biggest row of each chart is picked out in the accent color */
.bar-row.is-top .fill { background: var(--orange); }
.bar-row.is-top b { font-size: 14px; font-weight: 900; }

/* Donut chart (--p sets the dark slice); the number in the middle is that slice */
.ring-layout { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: conic-gradient(var(--brown) 0 var(--p), var(--yellow) var(--p) 100%);
}
.ring span {
  display: grid;
  place-items: center;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background: var(--cream);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.legend { flex: 1 1 110px; display: grid; gap: 11px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 9px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--brown); }
.legend div:nth-child(2) i { border: 1px solid var(--brown); background: var(--yellow); }
.legend b { margin-left: auto; padding-left: 12px; }

/* Countries: the main one large, the rest as a list */
.country-lead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-on-light);
  padding-bottom: 15px;
  font-weight: 800;
}
.country-lead strong { font-size: clamp(34px, 3.6vw, 50px); line-height: 1; letter-spacing: -.07em; }
.country-list { display: grid; grid-template-columns: 1fr auto; gap: 9px; font-size: 12px; }
.country-list b { text-align: right; }

.dash-note,
.source { font-size: 12px; line-height: 1.6; opacity: .7; }
.dash-note { margin: calc(-1 * clamp(18px, 2.6vw, 30px)) 0 clamp(30px, 4vw, 44px); }
.source { margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--line-on-dark); padding-top: 20px; }

@media (max-width: 1000px) {
  .dash-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid--3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dash-metric { flex-basis: calc(50% - 1px); }
  .overview strong { font-size: clamp(34px, 5vw, 55px); }
}
@media (max-width: 700px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-item { padding: 22px 12px 24px 0; }
  .overview-item:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-on-dark-soft); }
  .overview-item + .overview-item { border-left: 0; padding-left: 0; }
  .overview-item:last-child { border-left: 1px solid var(--line-on-dark-soft); padding-left: 16px; }
  .overview strong { font-size: clamp(34px, 9vw, 56px); }
  .overview-item:not(:first-child) strong { font-size: clamp(29px, 7.4vw, 44px); }
  .overview span { font-size: 10px; line-height: 1.4; letter-spacing: .08em; }
  .dash-grid,
  .dash-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .metrics { padding: 75px 0; }
  .platform-tabs { gap: 10px; }
  .platform-tab { flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 16px; padding: 14px 16px; }
  .platform-tab-name { font-size: 20px; }
  .platform-tab-followers { text-align: left; }
  .platform-tab-followers strong { display: inline; margin-right: 4px; font-size: 20px; }
}
@media (max-width: 350px) {
  .platform-tab { padding: 12px 14px; }
  .platform-tab-name { font-size: 17px; }
  .platform-tab-followers { font-size: 12px; }
  .platform-tab-followers strong { font-size: 17px; }
}

/* On paper there are no tabs: print both platforms, each under its name */
@media print {
  .platform-tabs { display: none; }
  .platform[hidden] { display: block; }
  .tabs-on .platform-title { display: block; }
}


/* 9. Contact
   ========================================================================== */

.contact { padding: 120px 0 35px; overflow: hidden; }
/* Sized so the longer line ("bien contada.") always fits on one line */
.contact .section-title { margin-bottom: 55px; font-size: clamp(40px, 14.2vw, 160px); }

.contact-main {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  border-bottom: 1px solid var(--yellow);
  padding-bottom: 85px;
}
.contact-email-label { margin-bottom: 14px; font-size: 13px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.contact-email {
  display: block;
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.296;
  letter-spacing: -.055em;
  word-break: break-word;
}

.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; }
.contact-sign { margin-bottom: 4px; color: var(--yellow); font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -.05em; }

@media (max-width: 650px) {
  .contact-main { flex-direction: column; align-items: start; padding-bottom: 60px; }
  .contact-bottom { flex-direction: column; align-items: center; text-align: center; }
}


/* 10. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
