/*
 * Jose Cazorla Website
 * Design: Rocío Zanón de la Fuente
 * Development: Roberto Díaz Martín Junquera
 * © 2026
 */


:root {
  --ink: #0d0d0f;
  --paper: #f7f6f3;
  --white: #ffffff;
  --soft: #efede8;
  --line: rgba(13, 13, 15, .13);
  --muted: #686765;
  --accent: #111214;
  --accent-2: #c8b6a2;
  --accent-soft: rgba(200, 182, 162, .18);
  --footer: #0d0d0f;
  --error: #a22626;
  --max: 1220px;
  --gutter: clamp(20px, 4vw, 54px);
  --header-h: 92px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 70px rgba(0,0,0,.10);
  --shadow-soft: 0 12px 40px rgba(0,0,0,.07);
  --ease: cubic-bezier(.2,.75,.2,1);
  --font: Inter, Manrope, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
html.wheel-scroll-active { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% -10%, rgba(200,182,162,.20), transparent 31rem),
    linear-gradient(180deg, #fbfaf7 0, var(--paper) 34rem, #fff 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
main { flex: 1; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 420;
  line-height: .94;
  letter-spacing: -.055em;
}
.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 440;
  line-height: 1;
  letter-spacing: -.045em;
}
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; z-index: 1000; top: 14px; left: 14px;
  transform: translateY(-180%);
  padding: 10px 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* progress + header */
.scroll-progress {
  position: fixed; z-index: 300; top: 0; left: 0;
  width: 100%; height: 2px;
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--accent-2), var(--ink));
  pointer-events: none;
}
.site-header {
  position: sticky; z-index: 250; top: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251,250,247,.70);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  /*
   * Keep the sticky header's layout height stable. Changing its real height
   * while it is the scroll reference can make the scroll threshold oscillate
   * and produce an intermittent flash/jump in Chromium-based browsers.
   */
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(251,250,247,.90);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 35px rgba(0,0,0,.04);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  position: relative;
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 760;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.brand::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  width: 18px; height: 1px; background: currentColor;
  transition: width .35s var(--ease);
}
.brand:hover::after { width: 100%; }
.main-nav { position: relative; justify-self: center; }
.main-nav > .language-switcher { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 14px);
  margin: 0;
  padding: 5px;
  list-style: none;
}
.nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-link {
  position: relative;
  z-index: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(11px, .95vw, 15px);
  border-radius: 999px;
  color: #323235;
  font-size: .84rem;
  font-weight: 520;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color .42s ease,
    transform .62s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: #000;
}
.nav-link:hover {
  transform: scale(1.018);
}
.nav-indicator {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border: 1px solid rgba(13,13,15,.075);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 9px 30px rgba(0,0,0,.055);
  opacity: 0;
  transform: translateX(0);
  transition:
    transform .68s cubic-bezier(.16,1,.3,1),
    width .68s cubic-bezier(.16,1,.3,1),
    opacity .34s ease,
    box-shadow .55s ease;
  pointer-events: none;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
}
.language-button {
  position: relative; z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  padding: 5px;
  border: 0; border-radius: 50%;
  background: transparent;
  opacity: .56;
  transition:
    opacity .38s ease,
    transform .62s cubic-bezier(.16,1,.3,1),
    background .42s ease,
    box-shadow .62s cubic-bezier(.16,1,.3,1);
}
.language-button img { width: 24px; height: 24px; border-radius: 50%; }
.language-button:hover { opacity: 1; transform: scale(1.055); }
.language-button.is-active {
  opacity: 1;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.65);
}
.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block; width: 19px; height: 1.5px;
  background: var(--ink);
  transition: transform .32s var(--ease), opacity .22s ease;
}
.menu-toggle-lines { position: relative; margin: auto; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* buttons */
.button {
  --btn-bg: #fff;
  --btn-color: var(--ink);
  position: relative;
  isolation: isolate;
  min-height: 54px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 36px;
  overflow: hidden;
  padding: 0 20px;
  border: 1px solid rgba(13,13,15,.72);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: .72rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase;
  transition:
    transform .72s cubic-bezier(.16,1,.3,1),
    box-shadow .72s cubic-bezier(.16,1,.3,1),
    color .48s ease;
}
.button::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .72s cubic-bezier(.16,1,.3,1);
}
.button:hover { color: #fff; transform: scale(1.018); box-shadow: 0 14px 34px rgba(13,13,15,.08); }
.button:hover::before { transform: scaleX(1); }
.button-dark { --btn-bg: var(--ink); --btn-color: #fff; }
.button-dark::before { background: #fff; }
.button-dark:hover { color: var(--ink); }
.button-arrow {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: 1rem; line-height: 1;
  transition:
    transform .68s cubic-bezier(.16,1,.3,1),
    background .45s ease,
    color .45s ease;
}
.button:hover .button-arrow { transform: translateX(3px); }

/* hero */
.hero { position: relative; padding: clamp(54px, 7vw, 92px) 0 clamp(64px, 7vw, 94px); }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: min(52vw, 720px); aspect-ratio: 1;
  right: -22%; top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,182,162,.20), transparent 68%);
  filter: blur(4px);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .82fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
}

.hero-title {
  margin: 0 0 32px;
  font-size: clamp(3.9rem, 8vw, 7.6rem);
  font-weight: 430;
  letter-spacing: -.065em;
  line-height: .87;
}
.hero-title span { display: block; }
.hero-title .hero-title-secondary { color: #77736e; font-weight: 330; }
.hero-copy-body {
  max-width: 580px;
  padding-left: clamp(0px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.hero-lead { margin: 0 0 18px; font-size: clamp(1.08rem, 1.5vw, 1.34rem); font-weight: 560; line-height: 1.45; }
.hero-text { margin: 0 0 14px; color: #4e4e4f; font-size: clamp(.95rem, 1.25vw, 1.05rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 0.86;
  min-height: 0;
  justify-self: end;
  perspective: 1200px;
}
.hero-photo-shell {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 120px 18px 120px 18px;
  background: #cbc3ba;
  box-shadow: var(--shadow);
  transform: rotate(var(--photo-rotate, -1.4deg)) translate3d(var(--photo-x,0), var(--photo-y,0), 0);
  transition: transform .85s cubic-bezier(.16,1,.3,1);
}
.hero-photo-shell::before {
  content: ""; position: absolute; z-index: 2; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.10));
  pointer-events: none;
}
.hero-photo-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Jose's head stays visible; we crop a little from the bottom instead. */
  object-position: 50% 12%;
}






/* expertise */
.expertise { padding: 18px 0 clamp(72px, 9vw, 120px); }





.expertise-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--line), rgba(13,13,15,.08), var(--line));
  transform-origin: left;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  padding-top: 18px;
}
.service-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 305px;
  overflow: visible;
}

/*
  IMPORTANT:
  data-reveal lives on .service-card and also animates "transform".
  The hover zoom therefore lives on this INNER element instead.
  This is the same principle as the old Pliego site:
  the fixed container stays put and a child element scales smoothly.
*/
.service-card-zoom {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 24px 24px;
  border: 1px solid rgba(13,13,15,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.68);
  box-shadow:
    0 1px 0 rgba(255,255,255,.88) inset,
    0 6px 22px rgba(13,13,15,0);
  transform: scale(1);
  transform-origin: center center;
  transition: transform .62s ease;
}

.service-card:hover .service-card-zoom,
.service-card:focus-within .service-card-zoom {
  transform: scale(1.045);
}

/* Soft cursor-following light: retained, but it does not control the zoom. */
.service-card-zoom::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background:
    radial-gradient(
      330px circle at var(--mx) var(--my),
      rgba(199,181,160,.20),
      rgba(255,255,255,.06) 42%,
      transparent 72%
    );
  opacity: 0;
  transition: opacity .6s ease;
}

.service-card:hover .service-card-zoom::before,
.service-card:focus-within .service-card-zoom::before {
  opacity: 1;
}

/* Keep the elegant underline, but let it arrive gently. */
.service-card-zoom::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .62s ease;
}

.service-card:hover .service-card-zoom::after,
.service-card:focus-within .service-card-zoom::after {
  transform: scaleX(.82);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 16px rgba(13,13,15,.025);
  transition:
    transform .62s ease,
    border-color .55s ease,
    box-shadow .62s ease;
}

.service-card:hover .service-icon-wrap,
.service-card:focus-within .service-icon-wrap {
  transform: scale(1.035);
  border-color: rgba(13,13,15,.18);
  box-shadow: 0 10px 24px rgba(13,13,15,.06);
}

.service-icon {
  width: 26px;
  height: 26px;
  opacity: .82;
  transition: transform .62s ease, opacity .5s ease;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  transform: scale(1.04);
  opacity: 1;
}

.service-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 670;
}

.service-copy {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
  transition: color .55s ease;
}

.service-card:hover .service-copy,
.service-card:focus-within .service-copy {
  color: #555256;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  font-size: .66rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-link .button-arrow {
  width: 25px;
  height: 25px;
  font-size: .88rem;
  transition:
    transform .62s ease,
    background-color .55s ease,
    color .55s ease;
}

.service-card:hover .card-link .button-arrow,
.service-card:focus-within .card-link .button-arrow {
  transform: translateX(3px);
  background: var(--ink);
  color: #fff;
}



/* quote */
.quote-section { padding: 0 0 clamp(80px, 10vw, 138px); }
.quote-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
  background: var(--ink); color: #fff;
}
.quote-panel::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -180px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.02);
}
.quote-mark { font-family: Georgia,serif; font-size: clamp(4rem, 8vw, 7rem); line-height: .72; color: var(--accent-2); }
.quote-text { max-width: 920px; margin: 0; font-size: clamp(1.25rem, 2.6vw, 2.25rem); font-weight: 390; line-height: 1.3; letter-spacing: -.025em; }

/* about */
.about-hero { padding: clamp(52px, 7vw, 90px) 0 clamp(80px, 9vw, 120px); }
.about-topline { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 42px; }
.about-topline .section-title { max-width: 720px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(380px, 470px) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: start;
}
.about-photo-shell {
  position: sticky;
  top: 108px;
  width: min(100%, 470px);
  min-height: 0;
  overflow: hidden;
  justify-self: start;
  border-radius: 22px 72px 22px 22px;
  background: #c9c1b9;
  box-shadow: var(--shadow-soft);
}
.about-photo-shell img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
}
.about-copy { padding-top: 6px; }
.about-copy p { margin: 0 0 22px; font-size: clamp(.98rem, 1.45vw, 1.12rem); line-height: 1.64; }
.about-copy .about-opening { font-size: clamp(1.3rem,2vw,1.8rem); line-height: 1.42; letter-spacing: -.02em; }
.about-highlight {
  margin: 36px 0;
  padding: 28px 30px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.65);
}
.about-highlight p { margin: 0; font-size: clamp(1.15rem,1.8vw,1.5rem); font-weight: 520; }
.about-ending {
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(220px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
}

.about-quote-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 30px;
  border: 1px solid rgba(13, 13, 15, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 32px rgba(13, 13, 15, .045);
}

.about-quote-text {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.about-quote-text p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  color: #2e2e31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-style: italic;
  line-height: 1.62;
  letter-spacing: -.01em;
}

.about-quote-text p + p { margin-top: 8px; }

.about-quote-text p:first-child::before,
.about-quote-text p:last-child::after {
  display: inline;
  color: rgba(13,13,15,.20);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35em;
  font-style: normal;
  line-height: 0;
  vertical-align: -.06em;
}
.about-quote-text p:first-child::before { content: "“"; margin-right: .10em; }
.about-quote-text p:last-child::after { content: "”"; margin-left: .10em; }

.about-signature {
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 0;
}
.signature-image {
  width: min(100%, 320px);
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
}

/* contact */
.contact-page { padding: clamp(56px,7vw,88px) 0 clamp(88px,10vw,140px); }
.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px,8vw,110px); align-items: start; }
.contact-intro { position: sticky; top: 110px; }
.contact-intro p { max-width: 390px; margin: 22px 0 0; color: var(--muted); }
.contact-socials {
  width: min(100%, 390px);
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  transition: color .35s ease;
}
.contact-social-link span:first-child { color: var(--ink); font-weight: 650; }
.contact-social-link span:last-child { transition: transform .45s var(--ease); }
.contact-social-link:hover { color: var(--ink); }
.contact-social-link:hover span:last-child { transform: translateX(4px); }
.contact-form-card {
  padding: clamp(28px,5vw,54px);
  border: 1px solid var(--line); border-radius: 26px;
  background: rgba(255,255,255,.72); box-shadow: var(--shadow-soft);
}
.contact-form { display: grid; gap: 24px; }
.form-field { position: relative; }
.form-input, .form-textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid #b9b7b2;
  border-radius: 0;
  padding: 26px 0 10px;
  outline: none;
  background: transparent; color: var(--ink);
  font-size: 1.05rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-label {
  position: absolute; left: 0; top: 23px;
  color: #77746f;
  pointer-events: none;
  transition: top .22s var(--ease), font-size .22s, color .22s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: 4px; font-size: .72rem; color: #4a4947; letter-spacing: .08em; text-transform: uppercase;
}
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }

.form-status { min-height: 24px; margin: 2px 0 0; font-size: .82rem; }
.form-status.is-error { color: var(--error); }

/* coming soon */
.coming-page { padding: clamp(36px,5vw,70px) 0 clamp(80px,9vw,120px); }
.coming-card {
  position: relative; overflow: hidden;
  min-height: 640px;
  display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 50px;
  padding: clamp(38px,6vw,76px);
  border: 1px solid var(--line); border-radius: 28px;
  background: rgba(255,255,255,.68); box-shadow: var(--shadow-soft);
}
.coming-card::before {
  content:""; position:absolute; width:420px; height:420px; right:-110px; top:-130px; border-radius:50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
}
.coming-title { margin: 0 0 22px; font-size: clamp(3rem,6vw,6rem); line-height:.94; letter-spacing:-.055em; font-weight:420; }
.coming-copy { max-width: 500px; margin: 0; color: var(--muted); font-size: clamp(1rem,1.6vw,1.2rem); }
.coming-visual { position: relative; min-height: 420px; display: grid; place-items:center; }
.coming-visual img { width: min(100%, 590px); animation: float 5s ease-in-out infinite; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* footer */
.site-footer {
  margin-top: auto;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: var(--footer);
  color: #f4f2ef;
}
.site-footer .footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  min-height: 86px;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.56);
  font-size: .68rem;
  letter-spacing: .02em;
}
.site-footer .footer-left { justify-self: start; }
.site-footer .footer-center {
  justify-self: center;
  color: rgba(255,255,255,.94);
  font-size: .70rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-footer .footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-footer .footer-link {
  position: relative;
  color: rgba(255,255,255,.62);
  transition: color .45s ease;
}
.site-footer .footer-link:hover { color: #fff; }
.site-footer .footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.site-footer .footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 860px) {
  .site-footer .footer-inner {
    width: min(100% - 36px, var(--max));
    min-height: 76px;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .site-footer .footer-left { display: none; }
  .site-footer .footer-center { justify-self: start; }
  .site-footer .footer-right { justify-self: end; }
}

@media (max-width: 620px) {
  .site-footer .footer-inner {
    width: min(100% - 28px, var(--max));
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 20px 0;
    text-align: center;
  }
  .site-footer .footer-center,
  .site-footer .footer-right { justify-self: center; }
  .site-footer .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}

/* =========================================================
   FLUID PAGE NAVIGATION
   ========================================================= */

/*
  Internal links get a light curtain transition between HTML pages.
  It is intentionally subtle: movement is visible, but the site does
  not feel like a presentation or an SPA.
*/
.page-transition-layer {
  position: fixed;
  z-index: 99999;
  inset: 0;
  pointer-events: none;
  background: #f7f6f3;

  transform: scaleY(0);
  transform-origin: center bottom;

  transition:
    transform .58s cubic-bezier(.76, 0, .24, 1);
}

.page-transition-layer.is-covering {
  transform: scaleY(1);
  transform-origin: center bottom;
}

.page-transition-layer.is-covered {
  transform: scaleY(1);
  transform-origin: center top;
  transition: none;
}

.page-transition-layer.is-revealing {
  transform: scaleY(0);
  transform-origin: center top;
  transition:
    transform .66s cubic-bezier(.76, 0, .24, 1);
}

/* The old page recedes almost imperceptibly while the curtain arrives. */
html.page-is-leaving main {
  opacity: .94;
  transform: scale(.997);
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.16, 1, .3, 1);
}

/* Give interactive elements a slightly softer global response. */
.nav-link,
.language-button,
.button,
.card-link,
.footer-link {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-layer {
    display: none !important;
  }

  html.page-is-leaving main {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RECOMMENDED BOOKS
   Content comes from data/recommended-books.json.

   Interaction deliberately follows the Home cards:
   - reveal lives on the OUTER card;
   - hover scale lives on the INNER card;
   - cursor glow uses --mx / --my;
   - shop links reuse the global .button wipe animation.
   ========================================================= */

.recommended-books-section[hidden] {
  display: none !important;
}

.recommended-books-section {
  padding: clamp(64px, 8vw, 104px) 0 clamp(96px, 11vw, 150px);
}

.recommended-books-header {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.recommended-books-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
  font-weight: 430;
  line-height: .96;
  letter-spacing: -.05em;
}

.recommended-books-intro {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
}

.recommended-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

/*
  OUTER CARD
  data-reveal animates this element, exactly like .service-card on Home.
  Hover transforms never live here.
*/
.recommended-book-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: visible;
}

/*
  INNER CARD
  This is the book equivalent of .service-card-zoom.
*/
.recommended-book-card-zoom {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(13,13,15,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow:
    0 1px 0 rgba(255,255,255,.88) inset,
    0 8px 26px rgba(13,13,15,.025);
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform .62s ease,
    border-color .55s ease,
    box-shadow .62s ease;
}

.recommended-book-card:hover .recommended-book-card-zoom,
.recommended-book-card:focus-within .recommended-book-card-zoom {
  transform: scale(1.035);
  border-color: rgba(13,13,15,.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,.92) inset,
    0 20px 48px rgba(13,13,15,.075);
}

/* Same family of cursor-following light used by the Home cards. */
.recommended-book-card-zoom::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background:
    radial-gradient(
      380px circle at var(--mx) var(--my),
      rgba(199,181,160,.22),
      rgba(255,255,255,.07) 44%,
      transparent 72%
    );
  opacity: 0;
  transition: opacity .6s ease;
}

.recommended-book-card:hover .recommended-book-card-zoom::before,
.recommended-book-card:focus-within .recommended-book-card-zoom::before {
  opacity: 1;
}

/* Home-style underline, softened for the larger book cards. */
.recommended-book-card-zoom::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .62s ease;
}

.recommended-book-card:hover .recommended-book-card-zoom::after,
.recommended-book-card:focus-within .recommended-book-card-zoom::after {
  transform: scaleX(.84);
}

.recommended-book-card.is-featured .recommended-book-card-zoom {
  border-color: rgba(190,161,129,.42);
}

.recommended-book-media {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(
      circle at 76% 12%,
      rgba(200,182,162,.30),
      transparent 40%
    ),
    linear-gradient(145deg, #efede8, #f9f8f5);
  border-bottom: 1px solid var(--line);
}

.recommended-book-cover {
  width: 100%;
  height: 100%;
  max-width: 245px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(13,13,15,.17));
  transform: scale(1);
  transition:
    transform .62s ease,
    filter .62s ease;
}

.recommended-book-card:hover .recommended-book-cover,
.recommended-book-card:focus-within .recommended-book-cover {
  transform: scale(1.035);
  filter: drop-shadow(0 23px 30px rgba(13,13,15,.20));
}

.recommended-book-cover-placeholder {
  display: grid;
  place-items: center;
  width: min(66%, 185px);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(13,13,15,.11);
  border-radius: 8px 18px 8px 8px;
  background:
    linear-gradient(
      110deg,
      rgba(255,255,255,.90),
      rgba(255,255,255,.58)
    );
  color: rgba(13,13,15,.30);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .20em;
  box-shadow: 0 18px 30px rgba(13,13,15,.09);
  transition:
    transform .62s ease,
    box-shadow .62s ease;
}

.recommended-book-card:hover .recommended-book-cover-placeholder,
.recommended-book-card:focus-within .recommended-book-cover-placeholder {
  transform: scale(1.025);
  box-shadow: 0 23px 36px rgba(13,13,15,.12);
}

.recommended-book-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(23px, 2.6vw, 30px);
}

.recommended-book-featured {
  width: fit-content;
  margin: 0 0 11px;
  padding: 5px 8px;
  border: 1px solid rgba(190,161,129,.36);
  border-radius: 999px;
  background: rgba(200,182,162,.10);
  color: #7f6953;
  font-size: .60rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.recommended-book-title {
  margin: 0;
  font-size: clamp(1.32rem, 1.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -.026em;
}

.recommended-book-author {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.recommended-book-description {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.65;
  transition: color .55s ease;
}

.recommended-book-card:hover .recommended-book-description,
.recommended-book-card:focus-within .recommended-book-description {
  color: #555256;
}

.recommended-book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 25px;
}

/*
  Reuse .button from the Home hero.
  This keeps the white/black wipe, colour swap and circular arrow.
*/
.recommended-book-button {
  min-height: 46px;
  gap: 22px;
  padding: 0 14px 0 16px;
  font-size: .64rem;
}

.recommended-book-button .button-arrow {
  width: 25px;
  height: 25px;
  font-size: .88rem;
}

.recommended-books-affiliate {
  max-width: 760px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.58;
}

.recommended-books-affiliate[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .recommended-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .recommended-books-section {
    padding-top: 48px;
  }

  .recommended-books-grid {
    grid-template-columns: 1fr;
  }

  .recommended-book-card-zoom {
    border-radius: 20px;
  }

  .recommended-book-media {
    aspect-ratio: 4 / 5;
    padding: 26px;
  }

  .recommended-book-cover {
    max-width: 235px;
  }

  .recommended-book-links {
    flex-direction: column;
  }

  .recommended-book-button {
    width: 100%;
  }
}
