/* ==========================================================================
   MPA — Marketing for Public Adjusters
   Design system derived from Identidad_Coorporativa/Web/Web-Reference21.jpg
   Palette: official Pantone board + mockup orange accent
   ========================================================================== */

:root {
  /* Pantone board */
  --sage:        #B8B68F;
  --sage-deep:   #A6A47C;
  --cream:       #EBE6D2;
  --cream-soft:  #F1EDDD;
  --taupe:       #DBD3C6;
  --sand:        #DECCA6;
  --tan:         #D0C0A7;
  /* Mockup accent + neutrals */
  --orange:      #F84C1C;
  --orange-deep: #E03E10;
  --ink:         #1E1D1B;
  --gray-head:   #595955;
  --gray-body:   #6E6E68;
  --gray-soft:   #9A9A92;
  --silver-hi:   #F7F7F5;
  --silver:      #E9E9E6;
  --silver-lo:   #DCDCD8;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-hero:    "Avenir Next", "Montserrat", "Helvetica Neue", sans-serif;
  --font-body:    "Hanken Grotesk", "Helvetica Neue", sans-serif;

  --radius-panel: 28px;
  --radius-card:  20px;
  --shadow-card:  0 18px 40px -18px rgba(30, 29, 27, .25);
  --shadow-hover: 0 28px 56px -20px rgba(30, 29, 27, .32);
  --wrap: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--silver);
  -webkit-font-smoothing: antialiased;
}

/* Page background: the official silver-satin sheen (Identidad_Coorporativa/backgroud.jpg).
   z-index -1 keeps it behind content WITHOUT forcing a stacking context on main,
   so mix-blend-mode images can melt into it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/assets/img/bg-sheen.jpg") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}

main, header, footer { position: relative; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* --------------------------------------------------------------------------
   Type voices
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: 1px;
}

.h-mega {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 95%;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: linear-gradient(95deg, rgba(184,182,143,.93) 0%, rgba(195,193,157,.93) 40%, rgba(231,229,210,.93) 78%, rgba(242,240,228,.93) 100%);
  box-shadow: 0 1px 0 rgba(30,29,27,.06);
}

.site-header { position: relative; z-index: 100; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 84px;
}

/* Brand card — breaks out of the bar and floats over the hero, letters level */
.logo-card {
  display: block;
  width: 100px;
  height: 100px;
  position: absolute;
  top: 14px;
  left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  z-index: 60;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease;
  filter: drop-shadow(0 22px 38px rgba(30, 29, 27, .45)) drop-shadow(0 6px 12px rgba(30, 29, 27, .25));
}

.logo-card img { width: 100%; height: 100%; object-fit: contain; }

.logo-card:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 28px 46px rgba(30, 29, 27, .5)) drop-shadow(0 8px 14px rgba(30, 29, 27, .28));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a:not(.pill) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.site-nav a:not(.pill)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.site-nav a:not(.pill):hover::after { transform: scaleX(1); }

/* Dropdown (e.g. Social Media → its articles) */
.nav-item { position: relative; }

.nav-caret {
  font-size: 10px;
  margin-left: 6px;
  color: var(--orange-deep);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: rgba(241, 237, 221, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 30px 60px -20px rgba(30, 29, 27, .4);
  padding: 12px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
}

/* bridge so the cursor can travel from link to panel without closing it */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  padding: 11px 4px;
  border-bottom: 1px solid rgba(30, 29, 27, .1);
  transition: color .2s ease, padding-left .2s ease;
}

.nav-dropdown a:hover { color: var(--orange-deep); padding-left: 10px; }

.nav-dropdown a.nav-dd-all {
  border-bottom: 0;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }

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

/* Every button on the site: 3D pill — gloss on top, real shadow, presses flat */
.pill {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(180deg, #FF7E54 0%, var(--orange) 42%, var(--orange-deep) 100%);
  border: 0;
  border-radius: 999px;
  padding: 15px 40px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow:
    0 7px 16px rgba(30, 29, 27, .32),
    0 2px 4px rgba(30, 29, 27, .22),
    inset 0 -2px 3px rgba(0, 0, 0, .18);
}

/* light reflection across the top */
.pill::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 12%;
  right: 12%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.pill:hover {
  background: linear-gradient(180deg, #FF8A62 0%, var(--orange) 45%, var(--orange-deep) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(30, 29, 27, .34),
    0 3px 6px rgba(30, 29, 27, .22),
    inset 0 -2px 3px rgba(0, 0, 0, .18);
}

.pill:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .25);   /* shadow gone, pressed in */
}

.pill:active::before { opacity: .35; }

.pill--3d { padding: 15px 46px; }   /* header CONTACT US: extra side air */

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

.hero {
  position: relative;
  /* the studio photo IS the section — full bleed, natural ratio, no cropping */
  aspect-ratio: 2500 / 2127;
  width: 100%;
  overflow: hidden;
  background: #EFEEEB;
}

.hero img.hero-dino {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  /* clear the 100px logo card floating in from the header */
  padding-top: clamp(120px, 11vw, 160px);
}

.hero-eyebrow {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 21px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #62625E;
  margin-bottom: 14px;
}

/* Headline as an SVG block: every line is justified flush left AND right
   (textLength), exactly like the mockup's stacked composition. */
.hero-title { margin: 0; }

.hero-title svg {
  display: block;
  width: min(46vw, 620px);
  height: auto;
  overflow: visible;
}

.hero-title text {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: 122px;
  fill: #5C5C58;
}

.hero-title text.accent {
  font-weight: 700;
  font-size: 196px;
  fill: var(--orange);
}

/* --------------------------------------------------------------------------
   Sage wedge divider
   -------------------------------------------------------------------------- */

/* Straight sage bands — slightly translucent so the sheen shows through */
.wedge {
  height: 120px;
  background: linear-gradient(90deg, rgba(230,228,207,.8) 0%, rgba(184,182,143,.8) 55%, rgba(166,164,124,.8) 100%);
  position: relative;
  z-index: 0;
}

.wedge--flip {
  background: linear-gradient(90deg, rgba(166,164,124,.8) 0%, rgba(184,182,143,.8) 45%, rgba(230,228,207,.8) 100%);
}

/* Hero band: pulled up so it hides the photo's bottom seam */
.wedge--hero {
  margin-top: -60px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(230,228,207,.9) 0%, rgba(184,182,143,.9) 55%, rgba(166,164,124,.9) 100%);
}

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */

.manifesto { padding: clamp(70px, 10vw, 130px) 0 60px; }

.manifesto .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(330px, 4.6fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.manifesto h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  text-transform: uppercase;
  color: var(--gray-head);
  margin-bottom: 34px;
  text-align: left;
}

.manifesto p {
  color: var(--gray-body);
  text-align: justify;
  hyphens: auto;
  margin-bottom: 22px;
  max-width: 60ch;
}

.manifesto-ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.content-index {
  position: sticky;
  top: 28px;          /* follows the reader down the page */
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 38px 70px -22px rgba(30, 29, 27, .52), 0 10px 24px -8px rgba(30, 29, 27, .28);
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px) saturate(1.15);   /* glass over the silver sheen */
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

/* gloss highlight on top, like the CONTACT US button */
.content-index::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.content-index-head {
  background: rgba(184, 182, 143, .72);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #34331F;
  padding: 28px 32px;
  border-bottom: 3px solid var(--orange);
}

.content-index-head::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 14px;
}

.content-index-body {
  background: linear-gradient(170deg, rgba(222,204,166,.62) 0%, rgba(208,192,167,.62) 100%);
  padding: 22px 32px 30px;
}

.content-index-body a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 16.5px;
  font-weight: 600;
  color: #443E2F;
  line-height: 1.5;
  padding: 16px 0;
  border-bottom: 1px solid rgba(74, 68, 53, .2);
  transition: color .2s ease, transform .25s ease;
}

.content-index-body a .ci-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
  min-width: 40px;
  line-height: 1;
}

.content-index-body a:last-child { border-bottom: 0; }

.content-index-body a:hover {
  color: var(--orange-deep);
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Newsletter band
   -------------------------------------------------------------------------- */

.newsletter { padding: 60px 0; }

.newsletter-panel {
  background: rgba(235, 230, 210, .86);
  border-radius: var(--radius-panel);
  padding: clamp(40px, 5vw, 70px) clamp(30px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  box-shadow: var(--shadow-card);
}

.newsletter-panel .eyebrow { margin-bottom: 18px; display: block; }

.newsletter-panel h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}

.newsletter-form { display: flex; gap: 14px; flex-wrap: wrap; }

.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: #FBF9F2;
  border: 1px solid rgba(30,29,27,.14);
  border-radius: 14px;
  padding: 16px 22px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248,76,28,.15);
}

.newsletter-form .pill::after { content: " →"; }

.newsletter-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--gray-body);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; padding: 28px 0 64px; }

/* --------------------------------------------------------------------------
   Article cards
   -------------------------------------------------------------------------- */

.cards-section {
  padding: clamp(70px, 9vw, 120px) 0;
}

/* Home "Latest strategies": Down-Bloque-2 full-bleed at its natural ratio —
   the section is sized BY the image, so it spans green bar to green bar uncropped */
#latest.cards-section {
  aspect-ratio: 1920 / 1633;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(244,241,228,.62) 0%, rgba(239,235,219,.5) 100%),
    url("/assets/img/cards-bg.jpg") center / cover no-repeat;
}

.cards-section--transparent { background: none; }

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gray-head);
  margin-bottom: 44px;
}

.section-heading .accent { font-weight: 800; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: rgba(235, 230, 210, .88);
  border-radius: var(--radius-card);
  padding: 34px 30px 28px;
  box-shadow: 0 12px 30px -16px rgba(30,29,27,.18);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card .eyebrow { margin-bottom: 16px; }

.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 95%;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color .2s ease;
}

.card:hover h3 { color: var(--orange-deep); }

.card p {
  font-size: 16px;
  color: var(--gray-body);
  margin-bottom: 26px;
}

.card .read-time {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-soft);
}

/* --------------------------------------------------------------------------
   Video cards
   -------------------------------------------------------------------------- */

.videos { padding: clamp(70px, 9vw, 120px) 0 40px; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card { display: block; }

.video-thumb {
  position: relative;
  aspect-ratio: 9 / 13.5;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 55%, #8E8C66 100%);
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}

.video-card:hover .video-thumb {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 72px; height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--orange) 0%, var(--orange) 100%);
  box-shadow: 0 10px 30px -6px rgba(30,29,27,.4);
  -webkit-mask:
    radial-gradient(circle, #000 99%, transparent 100%);
}

.video-thumb::before {
  content: "";
  position: absolute;
  top: 50%; left: calc(50% + 3px);
  transform: translate(-50%, -50%);
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  z-index: 1;
}

.video-card figcaption {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-head);
  padding: 16px 4px 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Contact block — form left, brand image right
   -------------------------------------------------------------------------- */

/* Form + basket sit directly on the satin page background */
.contact-section {
  padding: 0;
  margin: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 80px) clamp(28px, 7vw, 130px);
  overflow: hidden;
}

.contact-section .wrap {
  max-width: none;
  padding: 0 0 0 clamp(40px, 5vw, 100px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(54%, 900px);
  gap: clamp(20px, 2vw, 44px);
  align-items: center;
}

.contact-form-col {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 6vw, 110px) 0;
}

.contact-form-col .eyebrow { display: block; margin-bottom: 16px; }

.contact-form-col h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-sub { color: var(--gray-body); margin-bottom: 30px; max-width: 48ch; }

.contact-sub--lead {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  background: rgba(251, 249, 242, .9);
  border: 1px solid rgba(30, 29, 27, .16);
  border-radius: 14px;
  padding: 15px 20px;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 76, 28, .15);
}

.contact-form .pill { align-self: flex-start; margin-top: 6px; }

.form-sent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--orange-deep);
  padding: 30px 0;
}

/* Transparent PNG — big, resting on the panel floor, skull rising to the top */
.contact-img {
  margin: 0;
  text-align: right;
  align-self: end;
}

.contact-img img {
  width: min(138%, 1060px);
  max-width: none;
  height: auto;
  display: inline-block;
  margin-left: -22%;
  margin-right: -13%;   /* compensates the PNG's internal transparent padding,
                           leaving a small breathing gap to the viewport edge */
  margin-bottom: -3%;
  filter: drop-shadow(0 34px 56px rgba(30, 29, 27, .3));
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */

.article-hero {
  padding: clamp(60px, 8vw, 100px) 0 0;
}

.article-hero .eyebrow { margin-bottom: 20px; display: inline-block; }

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 95%;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 20ch;
  margin-bottom: 24px;
}

.article-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin-bottom: 40px;
}

.article-meta a {
  color: var(--orange-deep);
  border-bottom: 1.5px solid rgba(224, 62, 16, .35);
  transition: border-color .2s ease;
}

.article-meta a:hover { border-bottom-color: var(--orange-deep); }

/* Audio edition: small skull button + title, under the article meta */
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -18px 0 38px;
}

.audio-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -8px rgba(30, 29, 27, .4);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.audio-btn:hover { transform: scale(1.07); box-shadow: 0 14px 28px -8px rgba(30, 29, 27, .45); }
.audio-btn:active { transform: scale(.96); }

.audio-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* orange play badge over the skull */
.audio-glyph {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF7E54 0%, var(--orange) 50%, var(--orange-deep) 100%);
  box-shadow: 0 4px 10px -2px rgba(30, 29, 27, .4);
}

.audio-glyph::before {
  content: "";
  position: absolute;
  top: 50%; left: calc(50% + 1px);
  transform: translate(-50%, -50%);
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.audio-player.is-playing .audio-glyph::before {
  border: 0;
  width: 7px;
  height: 9px;
  border-left: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: translate(-50%, -50%);
}

.audio-player.is-playing .audio-btn { animation: audio-pulse 2s ease-in-out infinite; }

@keyframes audio-pulse {
  0%, 100% { box-shadow: 0 10px 22px -8px rgba(30,29,27,.4), 0 0 0 0 rgba(248,76,28,.35); }
  50%      { box-shadow: 0 10px 22px -8px rgba(30,29,27,.4), 0 0 0 10px rgba(248,76,28,0); }
}

.audio-text { display: flex; flex-direction: column; }

.audio-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

.audio-hint {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin-top: 3px;
}

.article-hero-img {
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: clamp(40px, 5vw, 70px);
}

.article-hero-img img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

/* 70/30: article body left, sticky index + more articles right */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  margin-bottom: 70px;
}

.article-body {
  background: rgba(235, 230, 210, .88);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  padding: clamp(36px, 5vw, 70px);
}

.article-body .prose { max-width: 75ch; margin: 0 auto; }

.article-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.article-aside .content-index { position: static; }

.article-aside .content-index-head { font-size: 14px; padding: 20px 24px; }
.article-aside .content-index-body { padding: 14px 24px 20px; }
.article-aside .content-index-body a { font-size: 14.5px; padding: 12px 0; gap: 12px; }
.article-aside .content-index-body a .ci-num { font-size: 17px; min-width: 30px; }

.aside-articles {
  background: rgba(235, 230, 210, .86);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}

.aside-articles h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-head);
  margin-bottom: 6px;
}

.aside-articles a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 29, 27, .12);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  transition: color .2s ease;
}

.aside-articles a:last-child { border-bottom: 0; }
.aside-articles a:hover { color: var(--orange-deep); }

.aside-articles a span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 44px 0 18px;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 34px 0 14px;
}

.prose p { color: #4D4C46; margin-bottom: 20px; }

.prose ul, .prose ol { margin: 0 0 22px 24px; color: #4D4C46; }
.prose li { margin-bottom: 10px; }

.prose a { color: var(--orange-deep); font-weight: 600; border-bottom: 1.5px solid rgba(224,62,16,.35); }
.prose a:hover { border-bottom-color: var(--orange-deep); }

.prose blockquote {
  border-left: 4px solid var(--orange);
  background: rgba(248,76,28,.06);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 28px 0;
  font-weight: 600;
  color: var(--ink);
}

.prose strong { color: var(--ink); }

.prose hr { border: 0; border-top: 1px solid rgba(30,29,27,.12); margin: 36px 0; }

.prose img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 34px 0;
  box-shadow: 0 18px 40px -18px rgba(30, 29, 27, .3);
}

/* inline WhatsApp CTA buttons woven into the article body */
.prose .cta-inline {
  text-align: center;
  margin: 38px 0;
}

/* --------------------------------------------------------------------------
   Listing pages
   -------------------------------------------------------------------------- */

.listing-head { padding: clamp(60px, 8vw, 100px) 0 50px; }

/* Category hero: full image at natural ratio (no crop) — title over the light top
   zone, category chips pinned to the bottom of the image */
.listing-head--hero {
  aspect-ratio: 1920 / 1633;
  background:
    linear-gradient(180deg, rgba(244,241,228,.55) 0%, rgba(239,235,219,.35) 100%),
    var(--listing-hero) center / cover no-repeat;
  display: flex;
}

.listing-head--hero .wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.listing-head--hero h1 {
  margin-top: auto;          /* with the chips' auto margin below, centers the
                                title block in the middle of the image */
}

/* soft white halo so title and intro stay readable over the skeleton */
.listing-head--hero h1,
.listing-head--hero p {
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 0 22px rgba(255,255,255,.9), 0 0 46px rgba(255,255,255,.7);
}

/* intro line in solid black over hero images */
.listing-head--hero p {
  color: var(--ink);
  font-weight: 600;
}

.listing-head--hero .cat-nav {
  margin-top: auto;          /* pushes the chips to the image's footer */
  margin-bottom: 80px;       /* clear of the sage band overlapping below */
}

.listing-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 95%;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.02;
  color: var(--gray-head);
}

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

.listing-head p { color: var(--gray-body); max-width: 60ch; margin-top: 18px; }

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.cat-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(30,29,27,.18);
  color: var(--gray-head);
  transition: all .22s ease;
}

.cat-nav a:hover, .cat-nav a.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.listing-grid { padding-bottom: 90px; }

.empty-state {
  background: rgba(235, 230, 210, .86);
  border-radius: var(--radius-panel);
  padding: 70px 40px;
  text-align: center;
  color: var(--gray-body);
  box-shadow: var(--shadow-card);
}

.empty-state strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--gray-head);
  margin-bottom: 10px;
}

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

.site-footer { padding: 80px 0 0; }

/* Full-bleed footer: the sage panel runs edge to edge */
.site-footer .wrap { max-width: none; padding: 0; }

.footer-panel {
  position: relative;
  background: linear-gradient(120deg, rgba(184,182,143,.92) 0%, rgba(166,164,124,.92) 100%);
  border-radius: 0;
  padding: clamp(60px, 7vw, 84px) 0 0;
  color: #3F3E33;
}

/* Centered brand badge straddling the footer's top edge — half in, half out */
.footer-logo-badge {
  position: absolute;
  top: -50px;                 /* half of its 100px height sits outside */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  z-index: 2;
  filter: drop-shadow(0 22px 38px rgba(30, 29, 27, .45)) drop-shadow(0 6px 12px rgba(30, 29, 27, .25));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.footer-logo-badge:hover { transform: translateX(-50%) scale(1.05); }

.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; }

/* content stays aligned with the site grid */
.footer-grid,
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: 50px;
}

.footer-brand p { font-size: 15.5px; max-width: 34ch; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #34331FCC;
}

.footer-col a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 0;
  transition: color .2s ease, padding-left .25s ease;
}

.footer-col a:hover { color: var(--orange-deep); padding-left: 5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(63,62,51,.25);
  padding: 22px 0 26px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3F3E33B3;
}

/* --------------------------------------------------------------------------
   Floating menu (FAB) — always visible, bottom right, like DM305's system
   -------------------------------------------------------------------------- */

.fab-menu {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.fab-main:hover { transform: scale(1.06); }
.fab-main:active { transform: scale(.95); }

.fab-circle {
  position: relative;
  width: 62px;
  height: 62px;
  display: block;
}

.fab-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-shadow: 0 12px 26px -8px rgba(30, 29, 27, .5), 0 4px 10px rgba(30, 29, 27, .3);
  border: 2px solid rgba(255, 255, 255, .65);
  transition: opacity .25s ease, transform .25s ease;
}

/* main button morphs into ✕ when the menu is open (DM305 behavior) */
.fab-x {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #34331F;
  background: linear-gradient(180deg, #C9C7A4 0%, var(--sage) 50%, #9A9876 100%);
  box-shadow: 0 12px 26px -8px rgba(30, 29, 27, .5), inset 0 -2px 3px rgba(0, 0, 0, .15);
  border: 2px solid rgba(255, 255, 255, .65);
  opacity: 0;
  transform: rotate(-90deg) scale(.6);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}

.fab-menu.open .fab-circle img { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab-menu.open .fab-x { opacity: 1; transform: rotate(0deg) scale(1); }

.fab-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #34331F;
  background: linear-gradient(180deg, #C9C7A4 0%, var(--sage) 55%, #A6A47C 100%);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 5px 12px -3px rgba(30, 29, 27, .4);
}

.fab-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  visibility: hidden;
}

.fab-menu.open .fab-panel { visibility: visible; }

/* each item: label pill on the left + sage circle on the right */
.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px) scale(.5);
  transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}

/* staggered pop-in, bottom item first (Buttonizer behavior) */
.fab-menu.open .fab-item { opacity: 1; transform: translateY(0) scale(1); }
.fab-menu.open .fab-item:nth-last-child(1) { transition-delay: 0s; }
.fab-menu.open .fab-item:nth-last-child(2) { transition-delay: .05s; }
.fab-menu.open .fab-item:nth-last-child(3) { transition-delay: .1s; }
.fab-menu.open .fab-item:nth-last-child(4) { transition-delay: .15s; }
.fab-menu.open .fab-item:nth-last-child(5) { transition-delay: .2s; }
.fab-menu.open .fab-item:nth-last-child(6) { transition-delay: .25s; }

.fab-item-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #34331F;
  background: linear-gradient(180deg, #CFCDAC 0%, var(--sage) 60%, #A6A47C 100%);
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(30, 29, 27, .4);
  white-space: nowrap;
}

.fab-item-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #34331F;
  background: linear-gradient(180deg, #C9C7A4 0%, var(--sage) 50%, #9A9876 100%);
  box-shadow: 0 7px 16px -4px rgba(30, 29, 27, .45), inset 0 -2px 3px rgba(0, 0, 0, .15);
  border: 2px solid rgba(255, 255, 255, .6);
  position: relative;
  overflow: hidden;
}

.fab-item-circle::before {
  content: "";
  position: absolute;
  top: 2px; left: 16%; right: 16%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

.fab-item:hover .fab-item-circle { transform: scale(1.1); }
.fab-item:hover .fab-item-label { background: linear-gradient(180deg, #FF7E54 0%, var(--orange) 50%, var(--orange-deep) 100%); color: #fff; }
.fab-item-circle { transition: transform .2s ease; }
.fab-item-label { transition: background .2s ease, color .2s ease; }

@media (max-width: 720px) {
  .fab-menu { right: 14px; bottom: 14px; }
  .fab-main img { width: 56px; height: 56px; }
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

/* Reveal styles only apply when JS confirmed itself (html.js) — content is never
   hidden for no-JS users, crawlers, or full-page screenshots. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .cards-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto .wrap { grid-template-columns: 1fr; }
  .content-index { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-img img { width: 100%; margin: 0; }
  .contact-section { margin-left: 0; }
  .contact-section .wrap { padding: 0 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 18px 32px 26px;
    box-shadow: 0 24px 40px -20px rgba(30,29,27,.35);
    display: none;
    z-index: 50;
  }
  .site-header { position: relative; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.pill) { padding: 10px 0; font-size: 17px; }
  .site-nav .pill { margin-top: 10px; }
  /* mobile: dropdown becomes an indented inline list */
  .nav-item { width: 100%; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 0 18px;
    min-width: 0;
  }
  .nav-toggle { display: block; }

  .newsletter-panel { grid-template-columns: 1fr; }
  .cards-grid, .videos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title svg { width: 78vw; }
  .logo-card { width: 84px; height: 84px; top: 12px; }

  /* mobile hero: headline block first, then the full photo at natural ratio */
  .hero {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, #FAFAF8 0%, #EFEFEC 100%);
  }
  .hero .wrap { order: 1; padding: 120px 32px 30px; }
  .hero img.hero-dino { order: 2; position: static; width: 100%; height: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .manifesto p { text-align: left; }
}
