/* elmersson.ai — shared stylesheet · v4
   Direction: one bold colour field, edge to edge. Type the size of the page.
   Strong asymmetric composition, overlapping elements, confident motion.
   Display + body: Bricolage Grotesque (one family, full weight range).
   One HTML file per language; this stylesheet is shared. */

:root {
  --field:        #1f2f9c;   /* deep cobalt — the whole ground (swap this one line for teal/green) */
  --field-deep:   #182579;   /* a touch deeper, for subtle layered fills */
  --cream:        #f6f3ea;   /* near-white type */
  --cream-2:      #aab0d6;   /* muted type (blue-tinted) */
  --amber:        #e6a435;   /* the one accent — used sparingly */
  --rule:         rgba(246, 243, 234, 0.26);
  --rule-faint:   rgba(246, 243, 234, 0.13);

  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", sans-serif;
  --font-tight: "Bricolage Grotesque", "Arial Narrow", -apple-system, sans-serif;

  --maxw: 80rem;
  --measure: 36rem;
  --pad-x: clamp(1.35rem, 5vw, 5.5rem);
  --ease: cubic-bezier(0.16, 0.7, 0.2, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--field); }

/* ---------- base ---------- */
html { font-size: 100%; scroll-behavior: smooth; background: var(--field); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--field);
  /* faint dot grid — print-registration texture so it isn't a flat field */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23f6f3ea' fill-opacity='0.07'/%3E%3C/svg%3E");
  background-position: 0 0;
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.22rem);
  line-height: 1.58;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* horizontal clipping is on <html> instead — leaving body un-clipped lets
     position: sticky work on the topbar (iOS Safari has bugs when an ancestor
     has overflow-x: clip). */
}

p { max-width: var(--measure); margin-bottom: 1.05em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.1em; line-height: 1.5; }

/* tracked label */
.kicker {
  font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-2); line-height: 1.5;
}

/* ---------- shell ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cream); color: var(--field);
  padding: 0.6rem 1rem; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; z-index: 30;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.38s; }

/* clip-mask line reveal (used by the big name + the big email) */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.js .line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.js .in .line:nth-child(1) > span { transition-delay: 0.05s; }
.js .in .line:nth-child(2) > span { transition-delay: 0.17s; }
.js .in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- top bar — sticky across the whole page ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--field);
  border-bottom: 1px solid var(--rule-faint);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding-block: clamp(0.7rem, 1.8vw, 1.1rem);
}
.topbar .id { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.topbar .id .mark {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--amber); overflow: hidden; flex-shrink: 0;
}
.topbar .id .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar .id b { font-weight: 700; font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; }
.langnav { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.langnav a { color: var(--cream-2); text-decoration: none; padding: 0.2rem 0.15rem; transition: color 0.3s ease; }
.langnav a:hover { color: var(--cream); }
.langnav a[aria-current="true"],
.langnav a[aria-current="page"] { color: var(--field); background: var(--amber); padding: 0.2rem 0.45rem; }
.langnav .sep { color: var(--rule); }

/* ---------- decorative graphics: rings, medallion, bands ---------- */
.ring {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0.55;
  aspect-ratio: 1;
  /* small rings drift slowly around their position */
  animation: ring-drift 22s ease-in-out infinite;
  will-change: transform;
}
.ring.thick {
  border-width: clamp(3px, 0.6vw, 6px); opacity: 0.45;
  /* the big ring breathes instead — solid circles don't show drift very well at scale */
  animation: ring-breathe 11s ease-in-out infinite;
}
.ring.faint { opacity: 0.32; }

/* mobile: shrink the rings (and pull them tighter against the edge) so they
   stay as subtle accents rather than dominating the phone viewport */
@media (max-width: 48rem) {
  .hero .ring-1   { width: clamp(11rem, 52vw, 16rem); right: -5rem;   top: 14%;  }
  .hero .ring-2   { width: clamp(4.5rem, 16vw, 6.5rem); left: -2.25rem; bottom: 10%; }
  .section.work .ring-w    { width: clamp(8rem, 34vw, 12rem); left: -3.5rem; top: 28%; }
  .section.contact .ring-c { width: clamp(10rem, 48vw, 15rem); right: -4.5rem; bottom: -3rem; }
}

@keyframes ring-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(24px, -18px); }
  50%  { transform: translate(-14px, 28px); }
  75%  { transform: translate(-26px, -10px); }
  100% { transform: translate(0, 0); }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50%      { transform: scale(1.045); opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .ring.thick { animation: none; }
}

/* a flat amber "seal" disc with the dark line-art portrait sitting on it — a stamp, not a negative photo. */
.medallion {
  width: clamp(118px, 17vw, 188px); aspect-ratio: 1;
  border-radius: 50%; background: var(--amber);
  overflow: hidden; flex-shrink: 0; display: block;
}
.medallion img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%; display: block;
}
/* large variant for the hero profile card — uses the photo's natural aspect, capped at 360px tall */
.medallion.profile-photo {
  width: auto;
  height: clamp(280px, 52vw, 460px);
  aspect-ratio: 431 / 577;
  border-radius: clamp(10px, 1.3vw, 16px);
}
/* phones: hero photo goes side-to-side within the wrap's padding */
@media (max-width: 36rem) {
  .medallion.profile-photo {
    width: 100%;
    height: auto;
    max-width: none;
  }
}

.keyband { background: var(--amber); color: var(--field); }
.keyband .wrap {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; align-items: baseline;
  padding-block: clamp(0.65rem, 1.8vw, 1rem);
  font-weight: 700; font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.78rem);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.keyband .dot { opacity: 0.45; }

/* ---------- hero (v6 — profile card: photo + name + facts) ---------- */
.hero { position: relative; overflow: hidden; min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-content {
  margin-block: auto;
  padding-top: clamp(2.25rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
.profile-photo { margin: 0 auto; }
.profile-body { min-width: 0; }

.hero .ring-1 { width: clamp(22rem, 44vw, 42rem); right: clamp(-22rem, -16vw, -9rem); top: 8%; opacity: 0.45; animation-duration: 12s; }
.hero .ring-2 { width: clamp(9rem, 16vw, 16rem); left: clamp(-7rem, -4vw, -3rem); bottom: 6%; animation-duration: 18s; }

@media (min-width: 56rem) {
  .hero-content {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .profile-photo { margin: 0; }
}

.nameplate {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--cream);
  text-transform: none;
  text-wrap: balance;
}

.statement {
  font-weight: 500;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  line-height: 1.4; letter-spacing: -0.002em;
  color: var(--cream);
  max-width: 36ch;
  margin-top: clamp(0.75rem, 2vw, 1.1rem);
}

/* the profile facts list */
.profile {
  display: grid; gap: 0;
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  max-width: 38rem;
}
.profile .row {
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
/* no closing rule under the last row — the icon-only LinkedIn entry looks cleaner without one */
.profile dt {
  font-family: var(--font);
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.22rem;
}
.profile dd {
  color: var(--cream); font-size: 1rem; line-height: 1.45; margin: 0;
}
.profile dd a {
  color: var(--cream); text-decoration: none;
  border-bottom: 1px solid var(--amber); padding-bottom: 1px;
  transition: color 0.3s ease;
}
.profile dd a:hover { color: var(--amber); }
.profile dd .roles { display: grid; gap: 0.32rem; }
.profile dd .roles li { line-height: 1.45; }

/* icon-only link (LinkedIn brand mark) — no underline, colour shifts to amber on hover */
a.icon-link {
  display: inline-flex; border: 0; padding: 0; line-height: 0;
  color: var(--cream); transition: color 0.3s ease;
}
a.icon-link:hover, a.icon-link:focus-visible { color: var(--amber); }
.icon-li { width: 28px; height: 28px; display: block; color: currentColor; }

/* tight spacing in the hero — small gap between name and statement,
   icon row left as it was. */
.profile-body .statement {
  margin-top: 0;
  margin-bottom: clamp(0.4rem, 1vw, 0.7rem);
}
.profile-body .social-row {
  margin: 0 0 clamp(0.4rem, 1vw, 0.7rem);
  max-width: none;
}
.profile-body .social-row + .profile { margin-top: 0; }

/* phones: give the LinkedIn icon more breathing room above (from the statement)
   and below (before the data list's first overline) */
@media (max-width: 36rem) {
  .profile-body .statement  { margin-bottom: clamp(1rem, 4vw, 1.6rem); }
  .profile-body .social-row { margin-bottom: clamp(1rem, 4vw, 1.6rem); }
}
@media (min-width: 36rem) {
  .profile .row {
    grid-template-columns: 8rem minmax(0, 1fr);
    column-gap: 1.5rem; align-items: baseline;
  }
  .profile dt { margin-bottom: 0; }
}

/* ---------- big sections ---------- */
.section { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section + .section { padding-top: clamp(0.5rem, 1.5vw, 1.25rem); }   /* small so the big numeral's tight line-height isn't clipped by section overflow */
.section.contact { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.section > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }

.section.work .ring-w { width: clamp(14rem, 28vw, 26rem); left: clamp(-14rem, -14vw, -6rem); top: 30%; animation-duration: 26s; animation-direction: reverse; }
.section.contact .ring-c { width: clamp(20rem, 40vw, 36rem); right: clamp(-20rem, -14vw, -8rem); bottom: -8rem; animation-duration: 24s; }

.section .num {
  font-family: var(--font-tight); font-weight: 800;
  font-size: clamp(3rem, 13vw, 9.5rem);
  line-height: 0.76; color: var(--amber);
  letter-spacing: -0.02em;
  margin-bottom: 0.32em;
}
.section .head-label {
  display: block; margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem);
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--rule);
  /* uses .kicker */
}
@media (min-width: 60rem) {
  .section > .wrap { grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); align-items: start; }
  .section .num { grid-column: 1; margin: 0; }
  .section .inner { grid-column: 2; }
}

.intro { font-size: 1.12em; line-height: 1.46; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); max-width: 28ch; font-weight: 500; }
.bio { max-width: var(--measure); }
.bio .prose p + p { margin-top: 1.1em; }

/* "what I do" — big stacked statements */
.do-list { display: grid; gap: clamp(1.8rem, 4.5vw, 3rem); }
.do-item { max-width: 46rem; }
.do-item .lead-line {
  font-weight: 700;
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.3rem);
  line-height: 1.18; letter-spacing: -0.012em; color: var(--cream);
  margin-bottom: 0.5rem; text-wrap: balance;
}
.do-item p { max-width: var(--measure); color: var(--cream-2); }
.do-item p strong, .bio strong { color: var(--cream); font-weight: 600; }

.note {
  margin-top: clamp(1.8rem, 4.5vw, 3rem); padding-top: 1.1rem;
  border-top: 1px solid var(--rule); max-width: var(--measure);
}
.note .kicker { display: block; margin-bottom: 0.5rem; color: var(--amber); }
.note p { color: var(--cream-2); }

/* ---------- selected work ---------- */
.work-list { display: grid; gap: 0; }
.work-entry { padding-block: clamp(2rem, 5vw, 3.2rem); border-top: 1px solid var(--rule-faint); }
.work-entry:first-of-type { border-top: 0; padding-top: 0.4rem; }
.work-entry .meta {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; align-items: baseline;
  font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-2); margin-bottom: 0.9rem;
}
.work-entry .meta .ref { color: var(--amber); }
.work-entry .meta .name { color: var(--cream); }
.work-entry h3 {
  font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2.3vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--cream);
  max-width: 17ch; margin-bottom: 0.95rem; text-wrap: balance;
}
.work-entry p { max-width: var(--measure); color: var(--cream-2); }
.work-entry .more {
  display: inline-block; margin-top: 0.65rem;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); position: relative; padding-bottom: 4px;
}
.work-entry .more .arr { color: var(--amber); }
.work-entry .more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber);
  transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.work-entry .more:hover::after, .work-entry .more:focus-visible::after { transform: scaleX(1); }

/* image at the bottom of a case study (Dennis GEO uses this) — thumbnail-sized */
.work-entry .case-image {
  margin: clamp(1rem, 2.4vw, 1.4rem) 0 clamp(0.75rem, 1.8vw, 1.1rem);
  max-width: 20rem;
}
.work-entry .case-image a {
  display: block; line-height: 0;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.work-entry .case-image a:hover { transform: translateY(-2px); }
.work-entry .case-image img {
  width: 100%; height: auto; display: block;
  background: var(--field-deep);
}
@media (min-width: 56rem) {
  .work-entry:nth-child(2) { padding-left: clamp(2rem, 7vw, 6rem); }   /* gentle zigzag */
}

/* ---------- contact ---------- */
.contact .intro { color: var(--cream); }
.bigmail {
  display: block;
  font-family: var(--font-tight); font-weight: 800;
  font-size: clamp(1.8rem, 1rem + 5vw, 5.4rem);
  line-height: 0.92; letter-spacing: -0.03em; color: var(--cream);
  text-decoration: none; word-break: break-word;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(1.5rem, 4vw, 2.4rem);
}
.bigmail .line > span { transition-delay: 0s; }
.bigmail:hover { color: var(--amber); transition: color 0.3s ease; }
/* on narrow phones the desktop clamp pushed the last char of "dennis@elmersson.ai"
   onto a second line; tighten just for ≤36rem so it fits in one row again. */
@media (max-width: 36rem) {
  .bigmail { font-size: clamp(1.4rem, 6.5vw, 1.95rem); }
}

.contact-meta { display: grid; gap: 0.9rem; max-width: var(--measure); }
.phone {
  font-weight: 600; font-size: 1.22rem; color: var(--cream);
  text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px;
  justify-self: start; transition: color 0.3s ease;
}
.phone:hover { color: var(--amber); }
.contact-meta .coffee { font-size: 1.08em; line-height: 1.5; color: var(--cream); max-width: var(--measure); }
.contact-meta .no-funnel {
  margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--rule-faint);
  font-size: 0.92rem; line-height: 1.6; color: var(--cream-2); max-width: var(--measure);
}

/* ---------- colophon ---------- */
.colophon { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(2.5rem, 6vw, 4rem); }
.colophon .inner {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (min-width: 50rem) {
  .colophon .inner {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3rem);
  }
}
.colophon .medallion.mark-large { width: 120px; }
.colophon .colophon-text { min-width: 0; }
.colophon { font-size: 0.88rem; line-height: 1.7; color: var(--cream-2); }
.colophon .who { color: var(--cream); max-width: 54rem; margin-bottom: 1rem; }
.colophon .who b { font-weight: 600; }
.colophon a { color: var(--cream-2); text-decoration: none; border-bottom: 1px solid var(--rule-faint); transition: color 0.3s ease, border-color 0.3s ease; }
.colophon a:hover { color: var(--cream); border-bottom-color: var(--amber); }
.colophon .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1rem; max-width: none; }
.colophon .links .sep { color: var(--amber); }
.colophon .fineprint { font-size: 0.78rem; opacity: 0.85; max-width: none; }

/* ---------- focus / a11y ---------- */
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 1px; }

/* ---------- print ---------- */
@media print {
  html, body { background: #fff; color: #000; }
  :root { --cream: #000; --cream-2: #333; --amber: #555; --rule: #999; --rule-faint: #ccc; }
  .js .reveal, .js .line > span { opacity: 1 !important; transform: none !important; }
  .langnav, .skip { display: none; }
  a { text-decoration: underline; }
  .hero { min-height: 0; }
  .section .num { position: static; }
  .section .inner { padding-left: 0 !important; }
}

/* ---------- alert / availability strip (homepage only) ---------- */
.alert {
  background: var(--amber); color: var(--field);
  font-family: var(--font); font-weight: 500;
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.95rem);
}
.alert .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.45rem 1.4rem;
  padding-block: clamp(0.6rem, 1.4vw, 0.9rem);
}
.alert .alert-label {
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.alert a {
  color: var(--field); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
  transition: opacity 0.3s ease;
}
.alert a:hover, .alert a:focus-visible { opacity: 0.65; }
.alert .arr { padding-left: 0.35em; }

/* ---------- inline link inside body prose (the "more about Tertium Quid" cue) ---------- */
.do-item p a.inline-link {
  font-weight: 600; color: var(--cream); text-decoration: none;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 1px;
  transition: color 0.3s ease;
}
.do-item p a.inline-link:hover,
.do-item p a.inline-link:focus-visible { color: var(--amber); }
.do-item p a.inline-link .arr { padding-left: 0.15em; color: var(--amber); }

/* ---------- subpage hero (text-only, no profile photo) ---------- */
.hero-sub { min-height: auto; }
.hero-sub .wrap { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-content.sub {
  margin-block: 0;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  display: block;
}
.hero-content.sub .overline {
  display: block;
  margin-bottom: clamp(0.65rem, 1.5vw, 1rem);
  color: var(--amber);
}
.hero-content.sub .nameplate {
  font-family: var(--font-tight);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0;
}
.hero-content.sub .statement {
  margin-top: clamp(0.85rem, 2vw, 1.3rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
  max-width: 38ch;
}
.hero-content.sub .prose p { max-width: 44ch; color: var(--cream); }
.hero-content.sub .prose strong { color: var(--cream); font-weight: 600; }
.hero-content.sub .prose p + p { margin-top: 0.85em; }

/* ---------- photo cell: wraps the hero photo + partner-badge sticker ---------- */
.photo-cell {
  position: relative;
  display: inline-block;       /* sizes to the photo */
  width: max-content;
}
@media (max-width: 56rem) {
  .photo-cell { margin: 0 auto; }   /* center under the topbar on tablet & smaller */
}
@media (max-width: 36rem) {
  .photo-cell { display: block; width: 100%; margin: 0; }   /* side-to-side on phones */
}

/* ---------- partner-badge: round amber sticker, centred on the photo's top-left ---------- */
.partner-badge {
  position: absolute; z-index: 30;
  top: 0; left: 0;
  width: clamp(118px, 12vw, 150px); aspect-ratio: 1;
  border-radius: 50%; background: var(--amber);
  color: var(--field); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
  padding: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 700;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  transition: box-shadow 0.4s var(--ease);
  animation: badge-pulse 3.4s ease-in-out infinite;
  will-change: transform;
}
.partner-badge:hover, .partner-badge:focus-visible {
  animation-play-state: paused;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1.08);
  box-shadow: 0 0 0 6px rgba(230, 164, 53, 0.18);
}
.partner-badge .b-top {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 0.18em;
}
.partner-badge .b-main {
  font-family: var(--font-tight); font-weight: 800;
  font-size: clamp(1.05rem, 1.3vw, 1.32rem);
  letter-spacing: -0.01em; text-transform: uppercase;
  line-height: 1.02;
}
.partner-badge .b-divider {
  display: block; width: 1.3rem; height: 1.5px;
  background: currentColor; opacity: 0.5;
  margin: clamp(0.4rem, 0.8vw, 0.55rem) 0;
}
.partner-badge .b-cta {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.partner-badge .b-arrow { padding-left: 0.1em; }

@keyframes badge-pulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
  50%      { transform: translate(-50%, -50%) rotate(-4deg) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-badge { animation: none; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
}
@media (max-width: 48rem) {
  /* on phones: anchor to the photo's BOTTOM-LEFT corner with a small overhang
     into the cobalt field on both the left and bottom edges. side-to-side
     photo means the left overhang has to stay smaller than the page padding
     (~22px on smallest phones) or horizontal scroll comes back. */
  .partner-badge {
    width: clamp(96px, 26vw, 118px);
    top: auto; bottom: -1.4rem; left: -0.6rem;
    transform: rotate(-4deg) scale(1);
    animation-name: badge-pulse-inset;
  }
  .partner-badge:hover, .partner-badge:focus-visible {
    transform: rotate(-4deg) scale(1.08);
  }
}
@keyframes badge-pulse-inset {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(-4deg) scale(1.06); }
}

/* ---------- legal-page: aviso legal / legal notice ---------- */
.legal-page .num {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
}
.legal-page h2 {
  margin: clamp(2rem, 4vw, 3rem) 0 0.6rem;
  font-family: var(--font-tight);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: -0.005em;
  color: var(--cream);
}
.legal-page p,
.legal-page dl {
  max-width: 56rem;
}
.legal-page .profile {
  margin: 0.6rem 0 0.4rem;
}
.legal-page .fineprint {
  margin-top: clamp(2rem, 4vw, 3rem);
  opacity: 0.75;
}
