/* ============================================================
   Medz Web Services — "Ivory" homepage stylesheet
   Recreated from the Claude Design file "Medz Homepage A - Ivory",
   July 2026. Palette: bg #F4EFE5 · ink #1A1815 · amber #B87E0F
   (hover #8F6006) · bright amber #E6A817 (dark section) ·
   rose #C4707F (memorial, light bg) / #FDA4AF (dark section).
   Serif headings: Sentient. Pill buttons, 2px image radius.
   ============================================================ */

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: #F4EFE5; color: #1A1815;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: #B87E0F; color: #F4EFE5; }
a { color: #B87E0F; }
a:hover { color: #8F6006; }
img { max-width: 100%; }
/* width/height attributes are CLS hints only — layout is CSS-driven
   (without this, the height attribute defeats the aspect-ratio rules) */
.work-shot img, .about-portrait, .memorial-photo { height: auto; }

:focus-visible { outline: 2px solid #B87E0F; outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #1A1815; color: #F4EFE5; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

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

.rose { color: #C4707F; }
h1 em, h2 em { font-style: italic; color: #B87E0F; }

.kicker {
  font-size: 13px; letter-spacing: 0.24em; color: #B87E0F;
  text-transform: uppercase; margin-bottom: 22px;
}

/* ---------- fixed nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 8vw;
  background: transparent; border-bottom: 1px solid transparent;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
}
.site-nav.scrolled {
  padding: 16px 8vw;
  background: rgba(244,239,229,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,24,21,0.1);
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { display: block; }
.nav-word {
  font-family: 'Sentient', serif; font-weight: 700; font-size: 21px;
  color: #1A1815; letter-spacing: -0.01em;
}
.nav-right { display: flex; align-items: center; gap: 38px; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nlink {
  font-size: 15px; color: rgba(26,24,21,0.72); text-decoration: none;
  transition: color .2s;
}
.nlink:hover { color: #1A1815; }

/* pill buttons */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: #F4EFE5; background: #1A1815;
  border-radius: 99px; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-pill:hover {
  background: #B87E0F; color: #F4EFE5;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(26,24,21,0.5);
}
.btn-pill--nav { font-size: 14px; padding: 12px 22px; }
.btn-pill--big { font-size: 16px; padding: 18px 32px; }
.cta-arrow { font-size: 18px; line-height: 1; }

/* hamburger — hidden on desktop */
.nav-toggle { display: none; }
.mobile-only { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 170px 8vw 100px; box-sizing: border-box;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%;
  object-fit: cover; object-position: 50% 38%; opacity: 0.32;
  will-change: transform;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(244,239,229,0.08) 0%,
    rgba(244,239,229,0.02) 55%,
    rgba(244,239,229,0.4) 90%,
    #F4EFE5 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.hero-rule { z-index: 1; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.eyebrow-rule { width: 34px; height: 1px; background: #B87E0F; }
.eyebrow-text {
  font-size: 13px; letter-spacing: 0.26em; color: #B87E0F; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(46px, 6.8vw, 100px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0; color: #1A1815; max-width: 16ch; text-wrap: balance;
}
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-top: 52px; max-width: 1100px;
}
.hero-tagline {
  font-weight: 300; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55;
  color: rgba(26,24,21,0.7); margin: 0; max-width: 42ch;
}
.tagline-accent { color: #B87E0F; font-weight: 500; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: rgba(26,24,21,0.5); }
.hero-rule {
  position: absolute; left: 8vw; right: 8vw; bottom: 0; height: 1px;
  background: rgba(26,24,21,0.14);
}

/* ---------- shared section shells ---------- */
.section { padding: 110px 8vw; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.section--work { padding: 90px 8vw 110px; border-top: 1px solid rgba(26,24,21,0.12); }

.sec-head { margin-bottom: 56px; }
.sec-head--tight { margin-bottom: 14px; }
.sec-head h2 {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0; max-width: 22ch; text-wrap: balance;
}
.sec-sub {
  font-weight: 300; font-size: 18px; color: rgba(244,239,229,0.62); margin: 12px 0 0;
}

/* ---------- about ---------- */
.g-about { display: grid; grid-template-columns: 0.85fr 1fr; gap: 80px; align-items: start; }

/* about photos: crisp framed edges with a soft layered shadow
   (the prototype's radial fade masks are gone — Robert wants pop) */
.img-mask {
  overflow: hidden; border-radius: 2px;
  border: 1px solid rgba(26,24,21,0.1);
  box-shadow:
    0 30px 60px -28px rgba(26,24,21,0.38),
    0 12px 26px -14px rgba(26,24,21,0.22);
  transition: box-shadow .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
}
.img-mask:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 75px -30px rgba(26,24,21,0.45),
    0 16px 32px -14px rgba(26,24,21,0.25);
}
.img-mask img { filter: saturate(1.08) contrast(1.05); }
.about-portrait {
  width: 100%; display: block; aspect-ratio: 4/4.4;
  object-fit: cover; object-position: 50% 28%;
}
.img-caption {
  margin-top: 16px; font-size: 13px; letter-spacing: 0.12em;
  color: rgba(26,24,21,0.5); text-transform: uppercase;
}
.memorial { margin-top: 40px; }
.memorial-label {
  display: flex; align-items: center; gap: 11px; margin-bottom: 15px;
  font-size: 12px; letter-spacing: 0.22em; color: #C4707F; text-transform: uppercase;
}
.memorial-rule { width: 24px; height: 1px; background: #C4707F; }
.memorial-photo {
  width: 100%; display: block; aspect-ratio: 16/10;
  object-fit: cover; object-position: 50% 34%;
}
.memorial-caption {
  margin-top: 14px; font-weight: 300; font-size: 14px; line-height: 1.55;
  color: rgba(26,24,21,0.62);
}
.about-title {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 34px; max-width: 18ch; text-wrap: balance;
}
.about-copy {
  font-weight: 300; font-size: 17px; line-height: 1.75; color: rgba(26,24,21,0.8);
  display: flex; flex-direction: column; gap: 20px; max-width: 58ch;
}
.about-copy p { margin: 0; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.work-card { display: block; text-decoration: none; color: inherit; }
.work-shot {
  overflow: hidden; border-radius: 2px;
  box-shadow: 0 14px 30px -20px rgba(26,24,21,0.35);
  transition: box-shadow .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-shot { transform: translateY(-6px); }
.work-card:hover .work-shot {
  box-shadow: 0 30px 55px -22px rgba(26,24,21,0.45), 0 8px 20px -12px rgba(184,126,15,0.25);
}
.work-shot img {
  display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s;
}
.work-card:hover .work-shot img { transform: scale(1.035); filter: saturate(1.14) contrast(1.05); }
.work-arrow { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-arrow { transform: translateX(5px); }
.work-body { padding: 22px 0 0; }
.work-cat {
  font-size: 12px; letter-spacing: 0.14em; color: rgba(26,24,21,0.55);
  text-transform: uppercase; margin-bottom: 12px;
}
.work-blurb {
  font-family: 'Sentient', serif; font-weight: 500; font-size: 19px;
  line-height: 1.38; margin: 0 0 14px; color: #1A1815;
}
.work-link {
  font-size: 14px; color: #B87E0F;
  display: inline-flex; align-items: center; gap: 7px;
}
.work-link--muted { color: rgba(26,24,21,0.5); }

/* ---------- services (dark section) ---------- */
.section--dark { padding: 100px 8vw 110px; background: #1A1815; color: #F4EFE5; }
.dark-inner { max-width: 1400px; margin: 0 auto; }
.kicker--dark { color: #E6A817; }
.section--dark h2 { color: #F4EFE5; margin-bottom: 12px; }
.section--dark h2 em { color: #E6A817; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start;
}
.plan {
  border: 1px solid rgba(244,239,229,0.16); border-radius: 2px;
  padding: 40px 34px; display: flex; flex-direction: column; gap: 22px;
  min-height: 520px; box-sizing: border-box;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,0.55);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.plan:hover {
  transform: translateY(-6px);
  border-color: rgba(244,239,229,0.3);
  box-shadow: 0 34px 65px -30px rgba(0,0,0,0.7);
}
.plan--featured {
  position: relative; border-color: #E6A817; background: rgba(230,168,23,0.06);
  box-shadow: 0 24px 60px -30px rgba(230,168,23,0.3);
}
.plan--featured:hover {
  border-color: #E6A817;
  box-shadow: 0 38px 80px -32px rgba(230,168,23,0.45);
}
.plan-chip {
  position: absolute; top: -12px; left: 34px;
  background: #E6A817; color: #1A1815; font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px;
}
.plan-name {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,239,229,0.65);
}
.plan-price {
  font-family: 'Sentient', serif; font-weight: 400; font-size: 52px;
  color: #E6A817; margin-top: 12px;
}
.plan-price--custom { font-size: 42px; color: #F4EFE5; }
.plan-retainer {
  font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 14px;
  color: rgba(244,239,229,0.55); margin-top: 4px; letter-spacing: 0.01em;
}
.plan-retainer strong { color: rgba(244,239,229,0.8); font-weight: 500; }
.plan-blurb {
  font-style: italic; font-weight: 300; font-size: 15px;
  color: rgba(244,239,229,0.6); margin: 12px 0 0; line-height: 1.5;
}
.plan-rule { height: 1px; background: rgba(244,239,229,0.14); }
.plan-rule--amber { background: rgba(230,168,23,0.3); }
.plan-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 13px;
  font-size: 15px; color: rgba(244,239,229,0.85);
}
.plan-list li { display: flex; gap: 11px; }
.plan-list li > span { color: #E6A817; }
.plan-body { font-size: 15px; color: rgba(244,239,229,0.85); line-height: 1.6; margin: 0; }
.plan-foot {
  margin-top: auto; font-size: 13px; color: rgba(244,239,229,0.5); line-height: 1.5;
}
.plan-foot--rose {
  padding-top: 18px; border-top: 1px solid rgba(230,168,23,0.3);
  font-size: 13.5px; color: #FDA4AF;
}
.plan-link {
  margin-top: auto; font-size: 14px; color: #E6A817; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.pricing-note {
  text-align: center; margin-top: 46px; font-size: 17px; color: rgba(244,239,229,0.7);
}
.pricing-note a { color: #E6A817; text-decoration: none; }

/* ---------- testimonials ---------- */
.t-note {
  font-size: 14px; color: rgba(26,24,21,0.45); margin: 0 0 48px; font-style: italic;
}
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.t-col {
  border-top: 1px solid rgba(26,24,21,0.2); padding-top: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.t-label {
  font-size: 12px; letter-spacing: 0.14em; color: rgba(26,24,21,0.5);
  text-transform: uppercase;
}
.t-quote {
  font-family: 'Sentient', serif; font-weight: 400; font-size: 19px;
  line-height: 1.45; margin: 0; color: #1A1815;
}
.t-attr { font-size: 13px; color: rgba(26,24,21,0.55); }

/* ---------- book a consult ---------- */
.section--book { padding: 100px 8vw 110px; border-top: 1px solid rgba(26,24,21,0.12); }
.g-book {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.book-title {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -0.015em;
  margin: 0 0 26px; text-wrap: balance;
}
.book-lead {
  font-weight: 300; font-size: 18px; line-height: 1.65;
  color: rgba(26,24,21,0.75); margin: 0 0 28px; max-width: 42ch;
}
.contact-lines {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; color: rgba(26,24,21,0.7);
}
.contact-lines > div { display: flex; align-items: center; gap: 11px; }
.contact-lines a { color: #B87E0F; text-decoration: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #C4707F; flex: none; }
.cal-box {
  background: #FDFBF6; border: 1px solid rgba(26,24,21,0.14); border-radius: 2px;
  overflow: hidden; box-shadow: 0 30px 60px -40px rgba(26,24,21,0.4);
}

/* enquiry form (Netlify) inside the contact card */
.contact-card { padding: 38px 34px; }
.enquiry-form { display: flex; flex-direction: column; gap: 18px; }
.hidden-field { position: absolute; left: -9999px; margin: 0; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(26,24,21,0.55);
}
.form-row .opt { text-transform: none; letter-spacing: 0.02em; color: rgba(26,24,21,0.4); }
.form-row input, .form-row textarea {
  width: 100%; box-sizing: border-box;
  font-family: 'Outfit', sans-serif; font-size: 15px; color: #1A1815;
  background: #FFFFFF; border: 1px solid rgba(26,24,21,0.18); border-radius: 2px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: #B87E0F;
  box-shadow: 0 0 0 3px rgba(184,126,15,0.14);
}
.btn-submit {
  border: 0; cursor: pointer; font-family: 'Outfit', sans-serif;
  font-size: 15px; padding: 16px 28px; margin-top: 4px;
  align-self: flex-start;
}

/* ---------- footer ---------- */
.footer { padding: 56px 8vw; border-top: 1px solid rgba(26,24,21,0.12); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-id { font-size: 14px; color: rgba(26,24,21,0.7); line-height: 1.6; }
.footer-note {
  font-size: 13px; color: rgba(26,24,21,0.45); text-align: right; line-height: 1.6;
}

/* ============================================================
   Responsive — grids collapse ~900px, nav collapses ~760px
   ============================================================ */
@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .g-about { grid-template-columns: 1fr; gap: 56px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .plan { min-height: 0; }
  .t-grid { grid-template-columns: 1fr; }
  .g-book { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { overflow-x: clip; }
  .site-nav { padding: 14px 5vw; }
  .site-nav.scrolled { padding: 12px 5vw; }
  .nav-right { gap: 10px; }
  .btn-pill--nav { font-size: 13px; padding: 10px 18px; }

  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(244,239,229,0.97); border-bottom: 1px solid rgba(26,24,21,0.1);
    padding: 8px 6vw 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nlink {
    padding: 16px 0; font-size: 17px;
    border-bottom: 1px solid rgba(26,24,21,0.08);
  }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px;
    background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px; background: #1A1815;
    transition: transform .25s, opacity .25s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links .mobile-only { display: block; color: #B87E0F; }

  .hero { padding: 150px 5vw 70px; }
  .hero-rule { left: 5vw; right: 5vw; }
  .section, .section--work, .section--dark, .section--book { padding-left: 5vw; padding-right: 5vw; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .footer { padding: 44px 5vw; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}

@media (max-width: 430px) {
  /* not enough room for the standalone CTA next to the hamburger —
     "Get in Touch" lives inside the menu panel instead (.mobile-only) */
  .nav-right > .btn-pill--nav { display: none; }
  .contact-card { padding: 28px 20px; }
}

/* ============================================================
   Case-study pages (work/*.html) — same Ivory system
   ============================================================ */
.case-hero { padding: 170px 8vw 64px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.case-kicker-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
}
.case-kicker-row .kicker { margin-bottom: 0; }
.case-status { color: rgba(26,24,21,0.5); letter-spacing: 0.16em; }
.case-status--live { color: #4C7A3D; }
.case-hero h1 {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(42px, 5.6vw, 84px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; color: #1A1815; max-width: 16ch; text-wrap: balance;
}
.case-quote {
  font-family: 'Sentient', serif; font-weight: 400; font-style: italic;
  font-size: clamp(19px, 2vw, 26px); line-height: 1.4; color: rgba(26,24,21,0.75);
  margin: 26px 0 0; max-width: 34ch; text-wrap: balance;
}
.case-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.case-url { font-size: 14px; color: rgba(26,24,21,0.55); }
.case-shot { padding: 0 8vw; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.case-meta {
  padding: 44px 8vw 0; max-width: 1400px; margin: 0 auto; box-sizing: border-box;
}
.case-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 30px 0; border-top: 1px solid rgba(26,24,21,0.12); border-bottom: 1px solid rgba(26,24,21,0.12);
}
.case-meta-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,24,21,0.5); margin-bottom: 10px;
}
.case-meta-value { font-size: 16px; color: #1A1815; }
.case-meta-value--amber { color: #B87E0F; }
.case-story {
  padding: 80px 8vw 0; max-width: 1400px; margin: 0 auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 64px;
}
.g-story { display: grid; grid-template-columns: 0.4fr 1fr; gap: 48px; align-items: start; }
.case-story .kicker { padding-top: 6px; margin-bottom: 0; }
.case-story-text {
  font-weight: 300; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.6;
  color: rgba(26,24,21,0.82); max-width: 48ch;
}
.case-list {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px 32px;
  font-size: 16px; color: rgba(26,24,21,0.75);
}
.case-list li { display: flex; gap: 11px; }
.case-list li > span { color: #B87E0F; }
.case-result { padding: 84px 8vw 0; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.case-result-card {
  background: #FDFBF6; border: 1px solid rgba(26,24,21,0.12); border-radius: 2px;
  padding: clamp(36px, 5vw, 60px);
  box-shadow: 0 30px 60px -40px rgba(26,24,21,0.4);
}
.case-result-card h2 {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0; max-width: 22ch; text-wrap: balance;
}
.case-result-card p {
  font-weight: 300; font-size: 18px; line-height: 1.65;
  color: rgba(26,24,21,0.75); margin: 20px 0 0; max-width: 52ch;
}
.case-cta {
  padding: 96px 8vw 110px; max-width: 1400px; margin: 0 auto; box-sizing: border-box;
}
.case-cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; padding-bottom: 56px;
  border-bottom: 1px solid rgba(26,24,21,0.12);
}
.case-cta-band h2 {
  font-family: 'Sentient', serif; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 12px; max-width: 20ch; text-wrap: balance;
}
.case-cta-band p { font-weight: 300; font-size: 17px; color: rgba(26,24,21,0.7); margin: 0; }
.case-next { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.case-next a {
  font-size: 15px; color: rgba(26,24,21,0.7); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color .2s;
}
.case-next a:hover { color: #B87E0F; }

@media (max-width: 900px) {
  .case-meta-grid { grid-template-columns: 1fr 1fr; }
  .g-story { grid-template-columns: 1fr; gap: 16px; }
  .case-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .case-hero { padding: 140px 5vw 48px; }
  .case-shot, .case-meta, .case-story, .case-result, .case-cta { padding-left: 5vw; padding-right: 5vw; }
}

/* ============================================================
   Motion layer — soft entrances, magnetic headings, parallax.
   Hidden states are gated on the .js root class so the page is
   fully visible without JavaScript; reduced-motion gets no motion.
   ============================================================ */

/* soft entrances — one-shot keyframes rather than transitions, so
   hover transforms on the same elements never fight the entrance */
.js [data-fade] { opacity: 0; }
.js [data-fade].in-view {
  opacity: 1;
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) backwards;
}
.js [data-fade-delay="1"].in-view { animation-delay: .12s; }
.js [data-fade-delay="2"].in-view { animation-delay: .24s; }
.js .img-mask[data-fade].in-view img {
  animation: settleIn 1.3s cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settleIn {
  from { transform: scale(1.05); }
  to   { transform: none; }
}

/* magnetic headings — JS drives --mx/--my; transition gives the spring */
h1, .sec-head h2, .about-title, .book-title,
.case-result-card h2, .case-cta-band h2 {
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

/* underline sweep on the italic amber words when the heading is hovered */
h1 em, h2 em {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 96%;
  padding-bottom: 2px;
  transition: background-size .55s cubic-bezier(.2,.7,.2,1);
}
h1:hover em, h2:hover em { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  .js [data-fade] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .img-mask[data-fade] img { transform: none !important; animation: none !important; }
  h1, .sec-head h2, .about-title, .book-title { transform: none !important; }
  .hero-bg img { transform: none !important; }
}
