/* DR ARMARI — shared styles for all pages */

:root {
  --bg: #faf8f5;          /* warm off-white page background */
  --surface: #ffffff;     /* cards */
  --ink: #1d1f2b;         /* main text */
  --muted: #5d6070;       /* secondary text */
  --line: #e8e3dc;        /* borders */
  --accent: #26359a;      /* brand blue (from the current site) */
  --accent-dark: #1c2878;
  --accent-soft: #eef0fa;
  --radius: 18px;
  --max: 1200px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 11px 20px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { font: 600 1.45rem/1 var(--font-head); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.icon-link:hover { border-color: var(--ink); }
.icon-link svg { width: 19px; height: 19px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1240px) {
  .header__inner { gap: 12px; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.hero__facts li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}
.hero__facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 28px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 18px 40px -20px rgba(29, 31, 43, .35); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__more { margin-top: auto; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .card__more { gap: 10px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Team / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; padding: 0; list-style: none; }
.principles li { padding: 28px; border-radius: var(--radius); background: var(--accent-soft); }
.principles .num { font: 600 2rem/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 14px; }
.principles strong { font-weight: 600; font-size: 1.05rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.08rem; }
.cta-band .btn--primary { background: #fff; color: var(--accent); }
.cta-band .btn--primary:hover { background: var(--accent-soft); }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--accent); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .95rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: .85rem; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Inner pages
   ========================================================= */

/* Page hero: text + photo, shorter than the home hero */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
@media (min-width: 861px) { .page-hero .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero .hero__photo img { aspect-ratio: 5 / 4; object-position: center 30%; }
.page-hero--text { padding-bottom: 32px; }
.page-hero--text .hero__lead { max-width: 720px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* Three-up feature list (benefits) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.features li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section--white .features li { background: var(--bg); }
.features h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.features p { color: var(--muted); margin: 0; font-size: .98rem; }
.features .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; font-weight: 700; }

/* Procedures: photo cards in a 3-column grid */
.procedures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.procedure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.procedure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.procedure__body { padding: 22px 24px 26px; }
.procedure h3 { font-size: 1.3rem; }
.procedure p { color: var(--muted); margin: 0; font-size: .98rem; }
.procedure .meta { display: block; color: var(--accent); font-weight: 600; font-size: .88rem; margin-bottom: 10px; }
.procedure .btn { margin-top: 20px; }
@media (max-width: 960px) { .procedures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .procedures { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 2rem/1 var(--font-head); color: var(--accent); margin-bottom: 16px; }
.steps h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* Lab tests list */
.tests { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; list-style: none; }
.tests li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; font-weight: 500; }
.notice { display: flex; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--accent-soft); border-left: 4px solid var(--accent); }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--muted); }

/* Results gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--line); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.result-text { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.result-text div { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.result-text h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.result-text p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .result-text { grid-template-columns: 1fr; } }

/* Contact methods */
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.contact-item:hover { border-color: var(--accent); box-shadow: 0 14px 30px -20px rgba(38, 53, 154, .5); }
.contact-item .label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item .value { font-size: 1.2rem; font-weight: 600; }
.contact-item .icon-link { margin-bottom: 10px; border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) { .contact-list { grid-template-columns: 1fr; } }

/* Mobile: full-width buttons in heroes and CTA blocks */
@media (max-width: 520px) {
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
}

/* ---------- License (trust) block ---------- */
.hero__facts .hero__fact--license { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero__facts .hero__fact--license::before { background: #c9a96a; }
.hero__facts .hero__fact--license a { color: inherit; text-decoration: none; }
.hero__facts .hero__fact--license a::after { content: " →"; }

.license { background: #0d1633; color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.license__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.license__photo { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); transition: transform .3s; }
.license__photo:hover { transform: scale(1.015); }
.license__photo img { width: 100%; }
.license .eyebrow { color: #c9a96a; }
.license h2 { color: #fff; }
.license__lead { color: rgba(255, 255, 255, .8); font-size: 1.12rem; max-width: 560px; }
.license__facts { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; }
.license__facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(201, 169, 106, .35); background: rgba(255, 255, 255, .04); }
.license__facts strong { font-weight: 600; color: #c9a96a; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.license__facts span { color: #fff; }
.btn--light { background: #fff; color: #0d1633; }
.btn--light:hover { background: #f1e7d3; }
@media (max-width: 860px) {
  .license__grid { grid-template-columns: 1fr; }
  .license__photo { max-width: 420px; margin: 0 auto; }
}

/* ---------- Wide featured card (endocrinology) ---------- */
.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide img { width: 50%; aspect-ratio: auto; min-height: 320px; object-position: center 40%; }
.card--wide .card__body { justify-content: center; padding: 36px 40px; }
.card--wide h3 { font-size: 1.7rem; }
@media (max-width: 720px) {
  .card--wide { flex-direction: column; }
  .card--wide img { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .card--wide .card__body { padding: 24px 28px 28px; }
}

/* Endocrinology directions: 3 columns, longer titles */
.features.endo { grid-template-columns: repeat(3, 1fr); }
.features.endo li { display: flex; flex-direction: column; }
.features.endo .card__more { margin-top: 16px; text-decoration: none; }
@media (max-width: 960px) { .features.endo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features.endo { grid-template-columns: 1fr; } }
.card--wide .card__more { margin-top: 12px; }

/* Endocrinology page */
.page-hero .hero__photo--portrait { max-width: 440px; justify-self: center; width: 100%; }
.page-hero .hero__photo--portrait img { aspect-ratio: 3 / 4; object-position: center top; background: #0d1633; }
.license__facts.qualifications { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
@media (max-width: 720px) { .license__facts.qualifications { grid-template-columns: 1fr; } }
.card--wide img { object-position: center 15%; }

/* ---------- Top bar: where we work (every page) ---------- */
.topbar { background: #0d1633; color: rgba(255, 255, 255, .88); font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; min-height: 38px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 16px; height: 16px; color: #c9a96a; flex: none; }
.topbar__dot { width: 4px; height: 4px; border-radius: 50%; background: #c9a96a; }
@media (max-width: 620px) {
  .topbar { font-size: .8rem; }
  .topbar__inner { gap: 4px 12px; }
  .topbar__long, .topbar__dot { display: none; }
}

/* Footer: work format */
.footer__where { margin-top: 20px !important; gap: 6px !important; font-size: .92rem; }
.footer__where strong { color: var(--ink); font-weight: 600; }

/* Contacts: online / offline */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.where__item { padding: 32px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.where__item p { color: var(--muted); margin: 0; }
.where__item--dark { background: #0d1633; border-color: #0d1633; }
.where__item--dark h3 { color: #fff; }
.where__item--dark p { color: rgba(255, 255, 255, .8); }
@media (max-width: 720px) { .where { grid-template-columns: 1fr; } }

/* Top bar: bigger and more visible (client feedback) */
.topbar { font-size: 1.05rem; color: #fff; border-bottom: 3px solid #c9a96a; }
.topbar__inner { min-height: 58px; gap: 14px 36px; padding-top: 12px; padding-bottom: 12px; }
.topbar__item { gap: 10px; }
.topbar__item svg { width: 24px; height: 24px; }
.topbar strong { color: #c9a96a; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.topbar__dot { width: 6px; height: 6px; }
@media (max-width: 620px) {
  .topbar { font-size: .95rem; }
  .topbar__inner { flex-direction: column; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .topbar__item svg { width: 20px; height: 20px; }
}

/* ---------- Phone crops: keep faces whole (client feedback) ---------- */
@media (max-width: 860px) {
  /* Home hero: taller frame, anchored to the top so the head isn't cut */
  .hero__photo img { aspect-ratio: 4 / 4.6; object-position: center top; }
}
@media (max-width: 720px) {
  /* Endocrinologist wide card: portrait frame showing the whole face */
  .card--wide img { aspect-ratio: 4 / 4.4; object-position: center 12%; }
}
/* Service cards: anchor crops toward the top, where faces are */
.card img { object-position: center 22%; }
.card img[src*="card-weightloss"], .card img[src*="card-training"] { object-position: center 8%; }
.card--wide img { object-position: center 15%; }
@media (max-width: 720px) { .card--wide img { object-position: center 12%; } }
.card img[src*="card-injection"] { object-position: center 50%; }
.page-hero .hero__photo:not(.hero__photo--portrait) img { object-position: center 12%; }

/* =========================================================
   Animations
   ========================================================= */

/* First screen: text rises in one line after another, photo is revealed like a curtain */
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes photo-reveal {
  0%   { opacity: 0; filter: blur(14px) saturate(.6); transform: scale(1.12); }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
}
@keyframes frame-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); box-shadow: 0 0 0 rgba(13, 22, 51, 0); }
  to   { opacity: 1; transform: none; box-shadow: 0 40px 80px -40px rgba(13, 22, 51, .45); }
}
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes bar-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

.js .hero .hero__grid > div:first-child > *,
.js .page-hero .container > *:not(.hero__grid),
.js .page-hero .hero__grid > div:first-child > * {
  animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both;
}
.js .hero__grid > div:first-child > *:nth-child(1), .js .page-hero .container > *:nth-child(1) { animation-delay: .15s; }
.js .hero__grid > div:first-child > *:nth-child(2), .js .page-hero .container > *:nth-child(2) { animation-delay: .3s; }
.js .hero__grid > div:first-child > *:nth-child(3), .js .page-hero .container > *:nth-child(3) { animation-delay: .45s; }
.js .hero__grid > div:first-child > *:nth-child(4) { animation-delay: .6s; }
.js .hero__grid > div:first-child > *:nth-child(5) { animation-delay: .75s; }

/* Main photo: the frame floats up, the photo comes into focus, then a soft light passes over it once */
.js .hero__photo { position: relative; overflow: hidden; border-radius: 28px; animation: frame-in 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
.js .hero__photo img {
  animation: photo-reveal 1.8s cubic-bezier(.2, .7, .2, 1) .15s both,
             slow-zoom 14s ease-out 2s alternate infinite;
}
.js .hero__photo::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform: translateX(-120%) skewX(-18deg);
  animation: sheen 1.4s ease-in-out 1.4s both;
}
.js .topbar { animation: bar-in .6s ease-out both; }
.js .header { animation: rise-in .6s ease-out .05s both; }

/* Scroll-in: fade and rise; photos inside start slightly zoomed and settle */
.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s ease var(--delay, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal img, .js img.reveal, .js .reveal.license__photo img {
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms);
}
.js .reveal.is-visible img, .js img.reveal.is-visible, .js .reveal.is-visible.license__photo img { transform: scale(1); }
.js img.reveal { transform: translateY(34px) scale(1.06); }
.js img.reveal.is-visible { transform: none; }

/* Hover: photos in cards gently zoom */
.card, .procedure { overflow: hidden; }
.card img, .procedure img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .card.is-visible:hover img, .js .procedure.is-visible:hover img { transform: scale(1.06); }

/* Visitors who asked their device for less motion get no animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal img, .js .hero__photo img { transform: none; filter: none; opacity: 1; }
  .js .hero__photo::after { display: none; }
}
