/* V62 — refined motion & visual hierarchy */
:root{--motion-ease:cubic-bezier(.22,.61,.36,1);--motion-fast:.34s;--motion-med:.72s}
.reveal-ready{opacity:0;transform:translateY(26px);transition:opacity var(--motion-med) var(--motion-ease),transform var(--motion-med) var(--motion-ease);transition-delay:var(--reveal-delay,0ms)}
.reveal-ready.reveal-in{opacity:1;transform:none}
.reveal-ready.reveal-side{transform:translateX(-26px)}
html[dir="rtl"] .reveal-ready.reveal-side{transform:translateX(26px)}
.reveal-ready.reveal-side.reveal-in{transform:none}
.reveal-ready.reveal-heritage{transform:translateY(42px) scale(.975);transition-duration:.84s}
.reveal-ready.reveal-heritage.reveal-in{transform:none}
.reveal-ready.reveal-media{transform:translateY(34px) scale(.985);transition-duration:.78s}
.reveal-ready.reveal-media.reveal-in{transform:none}

.home-paths-grid>a,.book-card,.book-text-card,.media-card,.just-gallery img,.dialog-grid img,.moment,.note-card{transition:transform var(--motion-fast) var(--motion-ease),box-shadow var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) var(--motion-ease)}
.home-paths-grid>a:hover,.book-card:hover,.book-text-card:hover,.media-card:hover,.moment:hover,.note-card:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(18,31,48,.11)}
.media-thumb,.cover-btn,.book-cover-thumb,.moment-thumb,.journey-photo,.photo-card{overflow:hidden}
.media-thumb img,.cover-btn img,.book-cover-thumb img,.moment-thumb img,.journey-photo img,.photo-card img,.just-gallery img{transition:transform .58s var(--motion-ease),filter .58s var(--motion-ease)}
.media-card:hover .media-thumb img{transform:scale(1.065)}
.book-card:hover .cover-btn img{transform:scale(1.075)}
.journey-photo:hover img,.photo-card:hover img,.just-gallery img:hover{transform:scale(1.055)}

/* Home — refined visual badges placed opposite the copy */
.home-paths-grid>a{position:relative;overflow:hidden;padding-top:30px!important;padding-inline-end:86px!important;min-height:156px}
.home-paths-grid .home-icon{position:absolute;top:24px;inset-inline-end:22px;inset-inline-start:auto;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:var(--icon-ink,#8a6739);background:linear-gradient(145deg,var(--icon-bg,#f4ead9),rgba(255,255,255,.88));border:1px solid var(--icon-line,#dfc69e);box-shadow:0 8px 20px rgba(28,40,55,.08);transition:transform .4s var(--motion-ease),box-shadow .4s ease,background .4s ease}
.home-paths-grid>a:hover .home-icon{transform:translateY(-4px) rotate(-2deg) scale(1.06);box-shadow:0 12px 26px rgba(28,40,55,.13)}
html[dir="rtl"] .home-paths-grid>a:hover .home-icon{transform:translateY(-4px) rotate(2deg) scale(1.06)}
.home-paths-grid .home-icon svg{width:30px;height:30px;display:block;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.home-icon-1{--icon-ink:#8d5d46;--icon-bg:#f3e7df;--icon-line:#dec2b4}.home-icon-2{--icon-ink:#55758b;--icon-bg:#e8f0f4;--icon-line:#c9d9e2}.home-icon-3{--icon-ink:#477b73;--icon-bg:#e4f0ed;--icon-line:#c2d9d3}.home-icon-4{--icon-ink:#75649a;--icon-bg:#eeeaf7;--icon-line:#d4cbe8}.home-icon-5{--icon-ink:#9a6b35;--icon-bg:#f5ead8;--icon-line:#e2c99f}.home-icon-6{--icon-ink:#6f7e49;--icon-bg:#edf0e2;--icon-line:#d5ddbd}.home-icon-7{--icon-ink:#8b5c6e;--icon-bg:#f3e7eb;--icon-line:#dfc8d1}.home-icon-8{--icon-ink:#4f6e83;--icon-bg:#e8eef3;--icon-line:#cbd8e1}.home-icon-9{--icon-ink:#715a4c;--icon-bg:#eee9e4;--icon-line:#d7c9be}

/* Career development — tiny complete documentary thumbnails; copy keeps full width */
.professional-timeline .moment-body{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:18px;align-items:start}
.professional-timeline .moment-thumb{order:2;width:78px;height:96px;padding:5px;border:1px solid rgba(180,140,80,.30);border-radius:4px;background:#faf7f1;box-shadow:0 6px 14px rgba(18,31,48,.06);cursor:pointer;justify-self:end;overflow:hidden}
.professional-timeline .moment-thumb img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.professional-timeline .moment-thumb:hover,.professional-timeline .moment-thumb:focus{transform:translateY(-3px) scale(1.035);box-shadow:0 10px 22px rgba(18,31,48,.12);outline:none;border-color:rgba(180,140,80,.55)}
html[dir="rtl"] .professional-timeline .moment-body{grid-template-columns:86px minmax(0,1fr)}
html[dir="rtl"] .professional-timeline .moment-thumb{order:0;justify-self:start}
.professional-timeline .moment-copy{min-width:0}

/* Books — preserve each supplied cover image in full, never crop */
.book-text-card.has-cover{display:grid!important;grid-template-columns:124px minmax(0,1fr);gap:24px;align-items:start}
.book-cover-thumb{margin:0;width:118px;min-height:150px;padding:7px;border:1px solid rgba(180,140,80,.25);background:#f4efe7;box-shadow:0 10px 24px rgba(18,31,48,.09);align-self:start;display:grid;place-items:center}
.book-cover-thumb img{display:block;width:100%;height:150px;object-fit:contain!important;aspect-ratio:auto!important;background:#fff}
.book-text-card:hover .book-cover-thumb img{transform:scale(1.035)}
.book-text-content{min-width:0}
html[dir="rtl"] .book-text-card.has-cover{grid-template-columns:minmax(0,1fr) 124px}
html[dir="rtl"] .book-cover-thumb{order:2}

/* Heritage & media — motion intentionally clearer */
.book-card .cover-btn{box-shadow:0 8px 18px rgba(18,31,48,.08);transition:transform .42s var(--motion-ease),box-shadow .42s ease}
.book-card:hover .cover-btn{transform:translateY(-5px);box-shadow:0 16px 32px rgba(18,31,48,.14)}
.media-card .media-thumb{box-shadow:0 8px 18px rgba(18,31,48,.08);transition:transform .42s var(--motion-ease),box-shadow .42s ease}
.media-card:hover .media-thumb{transform:translateY(-4px);box-shadow:0 15px 30px rgba(18,31,48,.13)}
.section>.wrap>.eyebrow,.books-chapter .eyebrow,.page-hero .eyebrow{transition:letter-spacing .4s ease}
.section:hover>.wrap>.eyebrow{letter-spacing:.08em}

@media(max-width:760px){
  .professional-timeline .moment-body,html[dir="rtl"] .professional-timeline .moment-body{grid-template-columns:1fr;gap:12px}
  .professional-timeline .moment-thumb,html[dir="rtl"] .professional-timeline .moment-thumb{order:0;width:72px;height:90px;justify-self:start}
  .book-text-card.has-cover,html[dir="rtl"] .book-text-card.has-cover{grid-template-columns:1fr!important;gap:16px}
  .book-cover-thumb,html[dir="rtl"] .book-cover-thumb{order:0!important;width:110px;min-height:140px}
  .book-cover-thumb img{height:140px}
  .home-paths-grid>a{padding-top:24px!important;padding-inline-end:76px!important;min-height:142px}
  .home-paths-grid .home-icon{width:44px;height:44px;top:20px;inset-inline-end:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .reveal-ready{opacity:1!important;transform:none!important}
}


/* V63 — unified motion standard based on Heritage / Media */
:root{--motion-standard:cubic-bezier(.2,.7,.25,1)}

/* Home: cleaner editorial symbols, visually separated from copy */
.home-paths-grid .home-icon{width:54px;height:54px;border-radius:18px;box-shadow:0 10px 24px rgba(18,31,48,.10)}
.home-paths-grid .home-icon svg{width:33px;height:33px;stroke-width:1.6}
.home-paths-grid>a:hover .home-icon{transform:translateY(-5px) scale(1.08);box-shadow:0 16px 30px rgba(18,31,48,.15)}

/* Career: restore natural full-width copy; thumbnail is a tiny side accessory only */
.professional-timeline .moment-body,
html[dir="rtl"] .professional-timeline .moment-body{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:20px!important;
  width:100%!important;
}
.professional-timeline .moment-copy{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
}
.professional-timeline .moment-copy p{max-width:760px!important}
.professional-timeline .moment-thumb{
  flex:0 0 64px!important;
  width:64px!important;
  height:82px!important;
  min-width:64px!important;
  padding:3px!important;
  margin:0!important;
  border:1px solid rgba(180,140,80,.24)!important;
  background:#fff!important;
  box-shadow:0 5px 14px rgba(18,31,48,.07)!important;
  overflow:hidden!important;
}
.professional-timeline .moment-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important;transition:transform .6s var(--motion-standard),filter .6s var(--motion-standard)}
.professional-timeline .moment-thumb:hover img{transform:scale(1.10)}
.professional-timeline .moment-thumb:hover{transform:translateY(-4px)!important;box-shadow:0 12px 24px rgba(18,31,48,.14)!important}
html[dir="rtl"] .professional-timeline .moment-body{flex-direction:row-reverse!important}

/* Unified image hover: same clear movement standard as Heritage/Media */
.journey-photo,.photo-card,.media-thumb,.video-thumb-link,.cover-btn,.book-cover-thumb,.just-gallery img,
.foundation-page img,.foundation-visual img,.hero-simple img,.moment figure img,.medicine-page img,.portfolio-card img{
  transition:transform .58s var(--motion-standard),box-shadow .58s var(--motion-standard),filter .58s var(--motion-standard)!important;
}
.journey-photo:hover img,.photo-card:hover img,
.video-thumb-link:hover img,.cover-btn:hover img,.book-cover-thumb:hover img,
.foundation-page img:hover,.foundation-visual img:hover,.hero-simple img:hover,
.moment figure img:hover,.medicine-page img:hover,.portfolio-card img:hover{
  transform:translateY(-3px) scale(1.055)!important;
  filter:saturate(1.03) contrast(1.015);
}
.video-thumb-link,.cover-btn,.book-cover-thumb,.journey-photo,.photo-card{overflow:hidden}

/* Medicine top video thumbnails should move like lower media cards */
.video-material,.video-card,.surgical-video,.featured-video,.thumb-row a{transition:transform .42s var(--motion-standard),box-shadow .42s var(--motion-standard)}
.video-material:hover,.video-card:hover,.surgical-video:hover,.featured-video:hover,.thumb-row a:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(18,31,48,.13)}
.thumb-row a:hover img,.video-material:hover img,.video-card:hover img,.surgical-video:hover img,.featured-video:hover img{transform:scale(1.06)!important}

/* Books: no extra framed panel around supplied cover artwork */
.book-cover-thumb{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:0!important;overflow:visible!important}
.book-cover-thumb img{background:transparent!important;box-shadow:0 8px 20px rgba(18,31,48,.10);object-fit:contain!important;height:150px!important}
.book-text-card:hover .book-cover-thumb img{transform:translateY(-3px) scale(1.07)!important;box-shadow:0 15px 28px rgba(18,31,48,.16)}

/* Heritage upper cards also respond to hover */
.heritage-page .entry-card,.heritage-page .quick-grid>a,.heritage-page .portfolio-card,
.heritage-intro-card,.heritage-feature-card{transition:transform .42s var(--motion-standard),box-shadow .42s var(--motion-standard)}
.heritage-page .entry-card:hover,.heritage-page .quick-grid>a:hover,.heritage-page .portfolio-card:hover,
.heritage-intro-card:hover,.heritage-feature-card:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(18,31,48,.12)}

/* Foundation copy gains the same calm reveal language */
.foundation-page .section>*{transition:transform .4s var(--motion-standard),opacity .4s ease}

@media(max-width:760px){
  .professional-timeline .moment-body,html[dir="rtl"] .professional-timeline .moment-body{display:block!important}
  .professional-timeline .moment-thumb,html[dir="rtl"] .professional-timeline .moment-thumb{width:60px!important;height:78px!important;min-width:60px!important;margin:0 0 12px 0!important}
  .home-paths-grid .home-icon{width:48px;height:48px}
}

/* V64 — final motion harmonization based on approved Heritage/Media timing */
:root{
  --motion-hover-duration:.58s;
  --motion-hover-ease:cubic-bezier(.2,.7,.25,1);
}

/* 1) Medicine & Science: top three video stills use exactly the same paced zoom as the rest */
.thumb-row a,
.thumb-row a img{
  transition:transform var(--motion-hover-duration) var(--motion-hover-ease),
             box-shadow var(--motion-hover-duration) var(--motion-hover-ease),
             filter var(--motion-hover-duration) var(--motion-hover-ease)!important;
}
.thumb-row a:hover{
  transform:translateY(-5px)!important;
  box-shadow:0 16px 32px rgba(18,31,48,.13)!important;
}
.thumb-row a:hover img{
  transform:scale(1.055)!important;
  filter:saturate(1.03) contrast(1.015)!important;
}

/* 2) Books: artwork sits directly on the parent card background; no inner frame/panel */
.book-cover-thumb{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
.book-cover-thumb img{
  width:auto!important;
  max-width:118px!important;
  height:auto!important;
  max-height:150px!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  transition:transform var(--motion-hover-duration) var(--motion-hover-ease),
             filter var(--motion-hover-duration) var(--motion-hover-ease)!important;
}
.book-cover-thumb:hover img,
.book-text-card:hover .book-cover-thumb:hover img{
  transform:translateY(-3px) scale(1.06)!important;
  filter:saturate(1.03) contrast(1.015)!important;
  box-shadow:none!important;
}
/* Keep card lift independent; image itself zooms only when the pointer is on the artwork */
.book-text-card:hover .book-cover-thumb img{box-shadow:none!important}

/* 3) Heritage: the three upper stream cards now use the same visible hover language */
.streams-grid .stream{
  transition:transform var(--motion-hover-duration) var(--motion-hover-ease),
             box-shadow var(--motion-hover-duration) var(--motion-hover-ease),
             border-color var(--motion-hover-duration) var(--motion-hover-ease)!important;
  transform-origin:center center;
}
.streams-grid .stream:hover{
  transform:translateY(-6px) scale(1.018)!important;
  box-shadow:0 18px 36px rgba(18,31,48,.12)!important;
}

/* 4) Universal image hover timing: normalize to the approved Heritage/Media pace */
.journey-photo img,.photo-card img,.just-gallery img,.foundation-page img,.foundation-visual img,
.hero-simple img,.medicine-page img,.portfolio-card img,.cover-btn img,.media-thumb img,
.video-thumb-link img,.moment figure img{
  transition:transform var(--motion-hover-duration) var(--motion-hover-ease),
             filter var(--motion-hover-duration) var(--motion-hover-ease)!important;
}

/* Foundation image gets the same obvious but calm response */
.foundation-page img:hover,.foundation-visual img:hover,.hero-simple img:hover{
  transform:translateY(-3px) scale(1.055)!important;
}

@media(max-width:760px){
  .book-cover-thumb img{max-width:110px!important;max-height:140px!important}
}


/* V66 — premium illustrated home icons */
.home-paths-grid>a{padding-inline-end:126px!important;min-height:172px}
.home-paths-grid .home-icon{width:94px;height:94px;top:50%;transform:translateY(-50%);inset-inline-end:20px;inset-inline-start:auto;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;display:block}
.home-paths-grid .home-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 10px rgba(66,48,25,.14));transition:transform .52s cubic-bezier(.2,.75,.25,1),filter .52s ease}
.home-paths-grid>a:hover .home-icon,html[dir="rtl"] .home-paths-grid>a:hover .home-icon{transform:translateY(-50%);box-shadow:none}
.home-paths-grid>a:hover .home-icon img{transform:translateY(-3px) scale(1.075);filter:drop-shadow(0 12px 14px rgba(66,48,25,.2))}
@media(max-width:700px){.home-paths-grid>a{padding-inline-end:94px!important;min-height:148px}.home-paths-grid .home-icon{width:68px;height:68px;inset-inline-end:14px}}
