/* Al-Madina — warm clinic light: white & peach gradients, navy ink, logo orange used with intent. Single light look. */
:root {
  --ink: #161A24;
  --ink-2: #4A4F5C;
  --ink-3: #8A8C93;
  --paper: #FFFFFF;
  --cream: #FFF8F3;
  --stone: #FBF1EA;
  --peach: #FCE6D8;
  --line: #EEDFD3;
  --line-2: #E3CDBD;
  --accent: #E2582A;
  --accent-2: #F08A4B;
  --accent-deep: #B8432A;
  --accent-soft: #FDEADF;
  --grad: linear-gradient(120deg, #B8432A 0%, #E2582A 50%, #F08A4B 100%);
  --g-peach: linear-gradient(180deg, #FFF6EF 0%, #FCE6D8 100%);
  --g-cream: linear-gradient(180deg, #FFFFFF 0%, #FFF6F0 100%);
  --wa: #25D366;
  --display: "Cairo", Tahoma, sans-serif;
  --body: "Cairo", Tahoma, sans-serif;
  --latin: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 600; line-height: 1.25; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.3; }
h1 strong, h2 strong { font-weight: 700; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.45; }
p { margin: 0; }
.hl { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 100px; position: relative; background: var(--g-cream); }
.section.peach { background: var(--g-peach); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.kicker { font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero .kicker.a1 { font-size: clamp(19px, 2vw, 26px); font-weight: 700; gap: 12px; }
.hero .kicker.a1::before { width: 34px; height: 3px; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.sec-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 56px; }
.sec-head .lead { margin-inline: auto; }
.sec-head.start { justify-items: start; text-align: start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; white-space: nowrap; position: relative; overflow: hidden; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(226, 88, 42, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(226, 88, 42, .4); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.btn-primary:hover::after { left: 120%; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; text-decoration: none; color: var(--accent-deep); transition: gap .3s var(--ease); }
.link:hover { gap: 16px; }
.link svg { width: 18px; height: 18px; }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header .bar { max-width: var(--wrap); margin-inline: auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15.5px; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; transition: color .25s, background .25s; }
.nav a:hover { color: var(--ink); background: var(--stone); }
.nav a.active { color: var(--accent-deep); background: var(--accent-soft); }
.header .btn { padding: 12px 24px; font-size: 15px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform-origin: right; transform: scaleX(var(--p, 0)); }
@media (max-width: 960px) { .nav, .header .btn { display: none; } .menu-btn { display: grid; } .brand img { height: 50px; } }

/* Mobile menu */
.overlay { position: fixed; inset: 0; z-index: 120; background: rgba(255, 248, 243, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay .top { display: flex; justify-content: space-between; align-items: center; }
.overlay .close { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 20px; cursor: pointer; }
.overlay nav { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 24px; padding: 12px; background: #fff; }
.overlay nav a { text-decoration: none; text-align: center; font-family: var(--display); font-size: 20px; padding: 14px; border-radius: 14px; color: var(--ink); transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease), background .2s; }
.overlay.open nav a { transform: none; opacity: 1; }
.overlay nav a:nth-child(2) { transition-delay: .05s; } .overlay nav a:nth-child(3) { transition-delay: .1s; } .overlay nav a:nth-child(4) { transition-delay: .15s; } .overlay nav a:nth-child(5) { transition-delay: .2s; }
.overlay nav a.active, .overlay nav a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.overlay .contact { display: grid; gap: 10px; text-align: center; color: var(--ink-2); font-size: 15.5px; }

/* Floating buttons */
.fab { position: fixed; z-index: 70; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 16px; display: flex; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(22,26,36,.2); transition: transform .3s var(--ease); position: relative; }
.fab a:hover { transform: translateY(-3px); }
.fab .call { background: var(--grad); color: var(--accent); }
.fab .wa { background: var(--wa); color: var(--wa); }
.fab svg { width: 24px; height: 24px; fill: #fff; }
.fab .call svg { fill: none; stroke: #fff; }
.fab a::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.8s ease-out infinite; }
.fab .wa::before { animation-delay: 1.4s; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Soft drifting orbs (2D) */
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orbs span:nth-child(1) { width: 420px; height: 420px; background: #F8B591; top: -140px; left: 2%; }
.orbs span:nth-child(2) { width: 320px; height: 320px; background: #FFD8C2; bottom: -100px; right: 26%; animation-duration: 22s; animation-delay: -6s; }
.orbs span:nth-child(3) { width: 220px; height: 220px; background: #F08A4B; top: 30%; right: -70px; opacity: .25; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(.95); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 90px; background: radial-gradient(900px 500px at 90% 10%, #FFE1CF 0%, transparent 60%), radial-gradient(700px 500px at 0% 100%, #FBE3D6 0%, transparent 60%), linear-gradient(180deg, #FFF8F3, #FFFFFF); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--line-2); }
.hero-facts div { padding-top: 18px; padding-inline-end: 16px; display: grid; gap: 2px; }
.hero-facts div + div { border-inline-start: 1px solid var(--line-2); padding-inline-start: 16px; }
.hero-facts small { color: var(--ink-3); font-size: 13px; }
.hero-facts strong { font-family: var(--display); font-weight: 500; font-size: 15.5px; line-height: 1.5; }
.hero-logo { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1 / 1.08; border-radius: 999px 999px 40px 40px; background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #FFF4EC 70%); box-shadow: 0 40px 90px rgba(184, 67, 42, .18), inset 0 0 0 1px rgba(226,88,42,.12); display: grid; place-items: center; }
.hero-logo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border-radius: inherit; border: 1.5px solid rgba(226,88,42,.35); z-index: -1; }
.hero-logo img { width: 74%; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-logo .badge { position: absolute; bottom: 34px; inset-inline-end: -28px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(22,26,36,.12); display: flex; gap: 12px; align-items: center; text-decoration: none; }
.hero-logo .badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-logo .badge svg { width: 18px; height: 18px; }
.hero-logo .badge small { display: block; font-size: 12px; color: var(--ink-3); }
.hero-logo .badge strong { font-family: var(--display); font-weight: 500; font-size: 14.5px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { order: -1; width: min(300px, 80%); }
  .hero-logo .badge { inset-inline-end: -14px; bottom: 18px; }
  .hero { padding-block: 32px 70px; }
}
@media (max-width: 560px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-2); } .hero-facts div { padding-block: 12px; } }

/* Marquee */
.marquee { background: var(--grad); color: #fff; overflow: hidden; padding-block: 20px; direction: ltr; }
.mq-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.mq-set { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
.mq-set span { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; direction: rtl; }
.mq-set i { font-style: normal; opacity: .6; font-size: 16px; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Orbit */
.journey { overflow: hidden; background: radial-gradient(55% 45% at 50% 62%, #FFE3D2 0%, transparent 70%), var(--g-cream); }
.orbit { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(226,88,42,.45); animation: spin 36s linear infinite; }
.orbit .ring::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(226,88,42,.18); }
.orbit .ring2 { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 60s linear infinite reverse; }
.orbit .ring2::after { content: ""; position: absolute; bottom: 10%; right: 10%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.orbit .core { position: absolute; inset: 29%; border-radius: 50%; background: #fff; box-shadow: 0 30px 70px rgba(184,67,42,.2), inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.orbit .core img { width: 62%; }
.orbit .node { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-family: var(--display); font-size: 15px; white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 12px 30px rgba(22,26,36,.08); }
.orbit .node b { font-family: var(--latin); font-weight: 600; color: var(--accent); font-size: 12px; }
.orbit .n1 { top: 9%; left: 50%; } .orbit .n2 { top: 50%; left: 91%; } .orbit .n3 { top: 91%; left: 50%; } .orbit .n4 { top: 50%; left: 9%; }
@media (max-width: 520px) { .orbit .n2 { left: 83%; } .orbit .n4 { left: 17%; } .orbit .node { font-size: 13px; padding: 7px 12px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Placeholder images (real photos replace these) */
.ph { position: relative; overflow: hidden; background: linear-gradient(150deg, #FCDCC9 0%, #F8EAE0 55%, #FFF7F1 100%); max-width: 100%; }
.ph .inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #A57E66; font-size: 14px; text-align: center; padding: 16px; transition: transform 1s var(--ease); }
.ph .inner svg { width: 36px; height: 36px; opacity: .7; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; z-index: 1; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ph.arch { border-radius: 999px 999px 22px 22px; }
.ph.soft { border-radius: 22px; }
.zoomable:hover .ph .inner, .zoomable:active .ph .inner, .zoomable:hover .ph img, .zoomable:active .ph img { transform: scale(1.1); }
.zoomable:hover .ph, .zoomable:active .ph { box-shadow: 0 26px 50px rgba(184,67,42,.2); }
.zoomable .ph { transition: box-shadow .6s var(--ease); }

/* Features */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.box { border-radius: 24px; border: 1px solid var(--line); background: #fff; padding: 30px; display: grid; gap: 14px; align-content: start; box-shadow: 0 20px 50px rgba(184,67,42,.06); }
.box .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.box .ico svg { width: 24px; height: 24px; }
.box p { color: var(--ink-2); }

/* Coverflow */
.cf-section { overflow: hidden; background: var(--g-peach); }
.coverflow { position: relative; height: 540px; perspective: 1400px; touch-action: pan-y; user-select: none; }
.cf-card { position: absolute; top: 0; left: 50%; width: min(330px, 76vw); margin-left: calc(min(330px, 76vw) / -2); height: 490px; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .8s var(--ease), opacity .8s var(--ease); box-shadow: 0 30px 60px rgba(184,67,42,.16); display: flex; flex-direction: column; cursor: pointer; }
.cf-card .ph { flex: 1; border-radius: 0; }
.cf-card .meta { padding: 18px 22px 22px; display: grid; gap: 6px; }
.cf-card .row { display: flex; justify-content: space-between; align-items: center; }
.cf-card h3 { font-size: 21px; }
.cf-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.cf-card .num { font-family: var(--latin); font-size: 12px; color: var(--ink-3); direction: ltr; }
.cf-card .go { font-family: var(--display); font-size: 14px; color: var(--accent-deep); display: inline-flex; gap: 6px; align-items: center; }
.cf-card .go svg { width: 16px; height: 16px; }
.cf-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 6px; }
.cf-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all .3s; }
.cf-btn:hover { background: var(--ink); color: #fff; }
.cf-btn svg { width: 20px; height: 20px; }
.cf-count { font-family: var(--latin); font-size: 14px; color: var(--ink-3); direction: ltr; min-width: 64px; text-align: center; }
.cf-count b { color: var(--ink); font-weight: 600; }

/* Pain finder */
.finder { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.finder > * { min-width: 0; }
.mouth-card { position: relative; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 50%, #FFE6D7, #FFF8F3 75%); padding: 28px; overflow: hidden; }
.mouth { width: 100%; max-width: 440px; margin-inline: auto; display: block; position: relative; }
.mouth .t { fill: #FFFFFF; stroke: #E8CDBB; stroke-width: 2; transition: fill .3s; }
.mouth .zone.on .t { fill: #FFD9C4; stroke: #E2582A; }
.mouth .gum { fill: none; stroke: #F4C6B6; stroke-width: 62; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.mouth .gz.on .gum { stroke: #EE9C84; }
.hot { cursor: pointer; }
.hot .core { fill: var(--accent); }
.hot .halo { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
.hot.on .core { fill: #fff; stroke: var(--accent); stroke-width: 4; }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.mouth-hint { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; font-family: var(--display); font-size: 14.5px; cursor: pointer; transition: all .25s; }
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill.on { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); }
.zone-card { border-radius: 26px; border: 1px solid var(--line); background: #fff; padding: 30px; display: grid; gap: 18px; box-shadow: 0 20px 50px rgba(184,67,42,.08); }
.zone-card .zh { display: flex; align-items: center; gap: 14px; }
.zone-card .zh .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex: none; color: #fff; }
.zone-card .zh .ico svg { width: 26px; height: 26px; }
.zone-card small { color: var(--ink-3); font-size: 13px; display: block; }
.zone-card h3 { font-size: 24px; }
.zone-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.zone-card li { display: flex; gap: 10px; align-items: baseline; }
.zone-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.zone-card .svc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.zone-card .svc-links a { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-deep); font-family: var(--display); font-size: 14.5px; transition: background .25s; }
.zone-card .svc-links a:hover { background: var(--accent-soft); }
.zone-card .note { color: var(--ink-3); font-size: 13px; }
.fade-swap { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }

/* Steps */
.steps { max-width: 640px; margin-inline: auto; display: grid; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; bottom: 30px; right: 29px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(226,88,42,.08)); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 6px 22px; padding-bottom: 42px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step .n { grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--latin); font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 0 0 6px #FFF6F0, 0 12px 26px rgba(226,88,42,.3); direction: ltr; }
.step h3 { font-size: 21px; padding-top: 6px; }
.step p { color: var(--ink-2); }

/* Doctors */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 6px 20px 16px; scroll-padding-inline: 20px; }
.rail::-webkit-scrollbar { display: none; }
.doc { flex: 0 0 clamp(220px, 24vw, 270px); scroll-snap-align: start; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.grid3 .doc { flex: initial; }
.doc:hover { transform: translateY(-6px); }
.doc .ph { aspect-ratio: 3 / 3.4; }
.avatar { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease); }
.avatar span { width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(226,88,42,.25); display: grid; place-items: center; color: var(--accent); }
.avatar svg { width: 48%; height: 48%; }
.zoomable:hover .avatar, .zoomable:active .avatar { transform: scale(1.1); }
.doc .meta { padding: 18px 20px 22px; display: grid; gap: 8px; justify-items: start; }
.doc h3 { font-size: 19px; }
.tag { display: inline-block; font-size: 12.5px; padding: 3px 12px; border-radius: 999px; color: var(--accent-deep); background: var(--accent-soft); }
.rail-nav { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.pending { display: inline-block; font-size: 12.5px; padding: 1px 10px; border-radius: 6px; border: 1px dashed #D9C2B0; color: var(--ink-3); font-family: var(--body); font-weight: 400; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 22px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--accent-2); box-shadow: 0 16px 40px rgba(184,67,42,.08); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-family: var(--display); font-weight: 500; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: 70px 28px; text-align: center; background: radial-gradient(500px 260px at 15% 0%, rgba(255,255,255,.25), transparent 70%), var(--grad); color: #fff; display: grid; gap: 16px; justify-items: center; }
.cta h2, .cta .kicker { color: #fff; }
.cta .kicker::before { background: #fff; }
.cta .lead { color: rgba(255,255,255,.9); }
.cta .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.cta .btn-line { border-color: #fff; color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--accent-deep); }
.cta .hero-actions { justify-content: center; }
.cta::after { content: ""; position: absolute; width: 360px; height: 440px; inset-inline-start: -100px; bottom: -260px; border-radius: 999px 999px 0 0; border: 1px solid rgba(255,255,255,.3); }

/* Footer */
.footer { background: #161A24; color: #BEBBB5; padding-block: 70px 110px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; color: #BEBBB5; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .chip { background: #fff; border-radius: 999px 999px 16px 16px; padding: 18px 20px 12px; display: inline-block; }
.footer .chip img { height: 58px; }
.footer .about p { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: all .3s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 17px; height: 17px; fill: #fff; }
.copy { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #8D8A84; font-size: 13.5px; }
.copy .en { font-family: var(--latin); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; direction: ltr; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; } }

/* Inner page heads */
.page-hero { position: relative; overflow: hidden; padding-block: 70px 60px; background: radial-gradient(800px 420px at 10% 0%, #FFE0CC 0%, transparent 65%), linear-gradient(180deg, #FFF4EC, #FFFFFF); }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 16px; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to left, rgba(255,246,240,.97) 40%, rgba(255,246,240,.25) 100%), var(--ph) center / cover no-repeat; }
@media (max-width: 600px) { .page-hero.has-photo::before { background: linear-gradient(rgba(255,246,240,.92), rgba(255,246,240,.92)), var(--ph) center / cover no-repeat; } }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Service cards (grid) */
.scard { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.scard:hover { transform: translateY(-6px); }
.scard .ph { aspect-ratio: 4 / 3.2; }
.scard .num { position: absolute; z-index: 2; bottom: 12px; left: 14px; font-family: var(--latin); font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 2px 10px; border-radius: 999px; direction: ltr; }
.scard .meta { padding: 20px 22px 24px; display: grid; gap: 8px; }
.scard p { color: var(--ink-2); font-size: 15px; }

/* Service view */
.svc-hero { position: relative; overflow: hidden; padding-block: 56px 80px; background: radial-gradient(800px 420px at 10% 0%, #FFE0CC 0%, transparent 65%), linear-gradient(180deg, #FFF4EC, #FFFFFF); }
.svc-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.svc-hero .copy { display: grid; gap: 20px; min-width: 0; }
.svc-hero .zoomable { display: block; }
.svc-hero .ph { aspect-ratio: 4 / 4.6; box-shadow: 0 30px 70px rgba(184,67,42,.16); }
@media (max-width: 900px) { .svc-hero .wrap { grid-template-columns: 1fr; gap: 36px; } .svc-hero .zoomable { order: -1; max-width: 360px; width: 100%; justify-self: center; } .svc-hero .ph { aspect-ratio: 4 / 3.4; } .svc-hero { padding-top: 30px; } }
.ba { position: relative; aspect-ratio: 4 / 2.6; max-width: 860px; margin-inline: auto; border-radius: 26px; overflow: hidden; user-select: none; touch-action: pan-y; box-shadow: 0 30px 70px rgba(184,67,42,.16); }
.ba-layer { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #A57E66; font-size: 15px; }
.ba-layer svg { width: 36px; height: 36px; opacity: .7; }
.ba-after { background: linear-gradient(150deg, #FFF8F2, #FCE9DC); padding-right: 45%; }
.ba-before { background: linear-gradient(150deg, #EAD8C8, #E2CBB7); clip-path: inset(0 0 0 var(--pos)); padding-left: 45%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--latin); letter-spacing: 2px; box-shadow: 0 10px 26px rgba(226,88,42,.4); }
.ba-tag { position: absolute; top: 16px; padding: 4px 14px; border-radius: 999px; font-size: 13px; background: #fff; pointer-events: none; }
.ba-tag.t-before { right: 16px; } .ba-tag.t-after { left: 16px; background: var(--ink); color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-cap { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two > * { min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.benefit { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.benefit p { color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--line); }
.info-item .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-item .ico svg { width: 20px; height: 20px; }
.info-item small { color: var(--ink-3); display: block; font-size: 13px; }
.info-item a { text-decoration: none; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--cream); color: var(--ink); width: 100%; transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.field .err { color: #B3261E; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .box { padding: 24px 20px; } .section { padding-block: 72px; } .sec-head { margin-bottom: 40px; } }

/* Views (page switching) */
[data-view] { animation: viewIn .6s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (JS applies only below the fold) */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* WordPress additions */
.ph.has-img::before { display: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-layer.has-img { padding: 0; }
.ba-layer.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry { color: var(--ink-2); font-size: 17.5px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { color: var(--ink); margin-top: 1.4em; }
.entry img { border-radius: 18px; height: auto; }
.entry a { color: var(--accent-deep); }
main { animation: viewIn .6s var(--ease); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ---------- v1.1: article, cases, gallery, lightbox ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-layout .entry { max-width: 72ch; }
.entry h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin-top: 1.6em; }
.entry h2:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-inline-start: 1.3em; display: grid; gap: 8px; }
.entry li::marker { color: var(--accent); }
.entry strong { color: var(--ink); }
.book-card { position: sticky; top: 100px; border-radius: 24px; border: 1px solid var(--line); background: #fff; padding: 26px; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(184,67,42,.1); }
.book-card h3 { font-size: 22px; font-weight: 600; }
.book-card p { color: var(--ink-2); font-size: 15px; }
.book-phone { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--latin); font-weight: 600; padding-top: 4px; }
.book-phone svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .book-card { position: static; } }

.ccard { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ccard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(184,67,42,.14); }
.ccard .split { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 2.6; gap: 2px; background: #fff; }
.ccard .half { position: relative; overflow: hidden; background: linear-gradient(150deg, #FCDCC9, #FFF7F1); }
.ccard .half:first-child { background: linear-gradient(150deg, #EAD8C8, #F3E6DA); }
.ccard .half img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ccard:hover .half img, .ccard:active .half img { transform: scale(1.08); }
.ccard .lbl { position: absolute; top: 10px; right: 10px; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.9); }
.ccard .lbl.dark { background: var(--ink); color: #fff; right: auto; left: 10px; }
.ccard .meta { padding: 18px 20px 22px; display: grid; gap: 8px; justify-items: start; }
.ccard h3 { font-size: 18.5px; }
.ccard.is-empty { pointer-events: none; }
.ph-mini { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #A57E66; font-size: 13px; }
.ph-mini svg { width: 28px; height: 28px; opacity: .65; }
[data-filter-grid] .ccard[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-i { display: grid; gap: 0; padding: 10px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; }
.chip-i small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--ink-3); }
a.chip-i:hover { border-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px; display: block; text-align: inherit; font: inherit; }
.g-item .ph { width: 100%; height: 100%; border-radius: 22px; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(4) { grid-row: span 2; }
div.g-item { cursor: default; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .g-item:nth-child(4) { grid-row: auto; } }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.v-item { padding: 0; border: 0; background: none; cursor: pointer; display: grid; gap: 10px; text-align: inherit; font: inherit; color: var(--ink); }
.v-item .ph { aspect-ratio: 16 / 10; border-radius: 20px; }
.v-item .ph .inner { font-family: var(--display); }
.v-title { font-family: var(--display); font-weight: 500; }
.play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--grad); box-shadow: 0 12px 30px rgba(226,88,42,.4); transition: transform .3s var(--ease); }
.play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.v-item:hover .play { transform: scale(1.1); }
.v-item .ph .inner { padding-bottom: 90px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(16, 18, 24, .92); display: grid; place-items: center; padding: 60px 70px; }
.lb[hidden] { display: none; }
.lb-stage { max-width: min(1100px, 100%); max-height: 100%; display: grid; place-items: center; width: 100%; height: 100%; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lbIn .4s var(--ease); }
.lb-stage iframe { width: min(1000px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lb-close, .lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 20px; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { right: 14px; top: 50%; margin-top: -25px; }
.lb-next { left: 14px; top: 50%; margin-top: -25px; }
.lb-cap { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline: 20px; text-align: center; color: #EDE6DF; font-family: var(--display); }
@media (max-width: 600px) { .lb { padding: 70px 12px; } .lb-nav { top: auto; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); margin: 0; } }
.gallery.simple { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 280px; }
.gallery.simple .g-item { grid-column: auto; grid-row: auto; }

/* ================= v1.2 ================= */
.nav a { padding: 9px 12px; font-size: 15px; }
@media (max-width: 1180px) { .nav, .header .btn { display: none; } .menu-btn { display: grid; } }

/* Hero: entrance + rotator + counters */
.hero .a1, .hero .a2, .hero .a3, .hero .a4, .hero .a5 { animation: heroIn 1s var(--ease) both; }
.hero .a2 { animation-delay: .12s; } .hero .a3 { animation-delay: .26s; } .hero .a4 { animation-delay: .4s; } .hero .a5 { animation-delay: .55s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.rotator { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rot { display: inline-grid; height: 1.6em; overflow: hidden; vertical-align: bottom; }
.rot b { grid-area: 1 / 1; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 0 14px; border-radius: 999px; line-height: 1.6em; animation: rot 12.5s infinite; opacity: 0; transform: translateY(100%); }
.rot b:nth-child(2) { animation-delay: 2.5s; } .rot b:nth-child(3) { animation-delay: 5s; } .rot b:nth-child(4) { animation-delay: 7.5s; } .rot b:nth-child(5) { animation-delay: 10s; }
@keyframes rot { 0% { opacity: 0; transform: translateY(100%); } 4%, 20% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; transform: translateY(-100%); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.stat { background: rgba(255,255,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 2px; align-content: start; box-shadow: 0 14px 34px rgba(184,67,42,.08); }
.stat strong { font-family: var(--latin); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; text-align: right; }
.stat strong.ico { color: var(--accent); -webkit-text-fill-color: initial; background: none; }
.stat strong.ico svg { width: 36px; height: 36px; }
.stat small { color: var(--ink-2); font-size: 14px; line-height: 1.5; font-family: var(--display); }
.h-chip { position: absolute; background: #fff; border-radius: 999px; padding: 10px 16px; font-family: var(--display); font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(22,26,36,.12); display: inline-flex; align-items: center; gap: 8px; color: var(--ink); animation: float 7s ease-in-out infinite; white-space: nowrap; }
.h-chip svg { width: 18px; height: 18px; color: var(--accent); }
.h-chip.h1c { top: 12%; inset-inline-start: -30px; }
.h-chip.h2c { top: 46%; inset-inline-end: -36px; animation-delay: -3s; color: var(--accent-deep); }
@media (max-width: 900px) { .h-chip.h1c { inset-inline-start: -8px; } .h-chip.h2c { inset-inline-end: -8px; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: 1 / -1; } .h-chip { font-size: 12.5px; padding: 8px 12px; } }

/* Hero with real photos */
.hero.has-slides { min-height: min(88vh, 820px); display: grid; align-items: center; padding-block: 60px; background: #F6E9DF; }
.hero.has-slides .wrap { grid-template-columns: minmax(0, 620px) 1fr; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hs.on { opacity: 1; }
.hs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hs.on img { animation: kenburns 9s ease-out both; }
.hs:nth-child(even).on img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.14) translateX(-2%); } to { transform: scale(1.02) translateX(1%); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate(1%, 1%); } to { transform: scale(1.14) translate(-1%, -1%); } }
.hero-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(270deg, rgba(255,248,243,.97) 0%, rgba(255,248,243,.9) 36%, rgba(255,248,243,.35) 62%, rgba(255,248,243,0) 80%), linear-gradient(0deg, rgba(255,248,243,.6), transparent 30%); }
.hero-side { align-self: end; justify-self: end; display: grid; gap: 16px; justify-items: end; }
.hero-side .badge { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 20px 50px rgba(22,26,36,.16); display: flex; gap: 12px; align-items: center; text-decoration: none; }
.hero-side .badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-side .badge svg { width: 18px; height: 18px; }
.hero-side .badge small { display: block; font-size: 12px; color: var(--ink-3); }
.hero-side .badge strong { font-family: var(--display); font-weight: 500; font-size: 14px; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255,255,255,.7); cursor: pointer; padding: 0; overflow: hidden; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hs-dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: dotfill 6s linear both; transform-origin: right; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .hero.has-slides { min-height: auto; padding-block: 0 40px; display: block; }
  .hero.has-slides .hero-slides { position: relative; height: 56vw; max-height: 420px; }
  .hero.has-slides .hero-shade { top: auto; height: 120px; bottom: auto; background: none; }
  .hero.has-slides .wrap { grid-template-columns: 1fr; margin-top: -40px; }
  .hero.has-slides .hero-text { background: rgba(255,255,255,.96); border-radius: 26px; padding: 24px 20px; box-shadow: 0 20px 50px rgba(184,67,42,.12); }
  .hero-side { justify-self: stretch; justify-items: start; order: -1; position: absolute; top: -70px; inset-inline: 20px; }
  .hero-side .badge { display: none; }
}

/* Founder */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.f-photo { position: relative; width: min(440px, 100%); justify-self: center; }
.f-photo .ph { aspect-ratio: 4 / 5; box-shadow: 0 40px 90px rgba(184,67,42,.2); }
.f-photo::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border-radius: 999px 999px 40px 40px; border: 1.5px solid rgba(226,88,42,.35); z-index: 0; }
.f-photo .ph { position: relative; z-index: 1; }
.f-chip { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: 0 18px 44px rgba(22,26,36,.14); font-family: var(--display); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; animation: float 7s ease-in-out infinite; }
.f-chip b { font-family: var(--latin); font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-chip svg { width: 20px; height: 20px; color: var(--accent); }
.f-chip.c1 { top: 14%; inset-inline-end: -34px; }
.f-chip.c2 { bottom: 12%; inset-inline-start: -30px; animation-delay: -3.5s; max-width: 240px; }
.f-copy { display: grid; gap: 18px; justify-items: start; }
.f-copy h2 { font-size: clamp(34px, 4.4vw, 54px); }
.f-title { font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--accent-deep); margin-top: -8px; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: 50px; } .f-chip.c1 { inset-inline-end: -6px; } .f-chip.c2 { inset-inline-start: -6px; } }

/* Doctors rail: featured founder card first */
.doc .ph { aspect-ratio: 3 / 3.4; }
.doc .ph img { object-position: 50% 12%; }
.doc.featured { flex-basis: clamp(270px, 32vw, 360px); border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 24px 60px rgba(226,88,42,.18); }
.doc.featured h3 { font-size: 22px; }
.crown { font-family: var(--display); font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; }
.ph-note { position: absolute; bottom: 14px; inset-inline: 0; text-align: center; font-size: 13px; color: var(--ink-3); }

/* Reviews */
.reviews .review { flex: 0 0 clamp(270px, 30vw, 360px); scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 14px; align-content: start; box-shadow: 0 14px 40px rgba(184,67,42,.06); }
.stars { color: #F5A623; font-size: 18px; letter-spacing: 2px; }
.stars i { color: #E6DCD3; font-style: normal; }
.review blockquote { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.review figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; font-family: var(--display); font-weight: 500; }
.review .av { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; }
.review small { color: var(--ink-3); font-size: 12.5px; font-weight: 400; }

/* Blog */
.post-card .p-date { color: var(--ink-3); font-size: 13px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; text-decoration: none; font-family: var(--display); }
.pager .current { background: var(--grad); color: #fff; border-color: transparent; }
.med-note { margin-top: 30px; padding: 14px 18px; border-radius: 14px; background: var(--stone); color: var(--ink-2); font-size: 14.5px; }
.entry figure { margin: 0 0 24px; }

/* Booking form states */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-ok { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: 18px; background: #EFFAF2; border: 1px solid #BFE8CB; }
.form-ok[hidden] { display: none; }
.form-ok strong { font-family: var(--display); font-size: 20px; color: #17803A; }
.form-ok p { color: var(--ink-2); }
.booking-form button[disabled] { opacity: .7; cursor: wait; }

/* Offers */
.offer { position: relative; gap: 12px; }
.offer-tag { justify-self: start; background: var(--grad); color: #fff; font-family: var(--display); font-size: 13px; padding: 4px 14px; border-radius: 999px; }
.offer-end { color: var(--accent-deep); font-family: var(--display); }

/* Implant campaign */
.camp { grid-template-columns: 1.05fr .95fr !important; gap: 50px !important; align-items: start; }
.camp-copy { display: grid; gap: 18px; }
.camp-copy h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; }
.spots { background: #fff; border-radius: 22px; padding: 20px 22px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(184,67,42,.1); display: grid; gap: 12px; }
.spots-num { font-family: var(--display); font-size: 22px; }
.spots-num b { font-family: var(--latin); font-size: 46px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: 6px; }
.spots-num small { color: var(--ink-3); font-size: 15px; }
.spots-bar { height: 10px; border-radius: 10px; background: var(--stone); overflow: hidden; }
.spots-bar span { display: block; height: 100%; width: var(--done); background: var(--grad); border-radius: inherit; animation: barIn 1.6s var(--ease) both .3s; transform-origin: right; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spots-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.spots-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--line-2); }
.spots-dots i.on { border: 0; background: var(--grad); }
.spots.full .spots-num b { font-family: var(--display); font-size: 30px; }
.camp-form { position: sticky; top: 100px; }
@media (max-width: 900px) { .camp { grid-template-columns: 1fr !important; } .camp-form { position: static; } }
.hero-logo img, .footer .chip img { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { .rot b { animation: none !important; } .rot b:first-child { opacity: 1; transform: none; } .hero .a1, .hero .a2, .hero .a3, .hero .a4, .hero .a5 { animation: none !important; } }
.f-chip b { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 560px) { .hero-logo .badge { display: none; } .hero-logo { width: min(280px, 78%); } }

/* Header photo strip: moves by itself, pauses on hover, swipes on touch */
.hero-strip { overflow: hidden; direction: ltr; padding: 6px 0 30px; background: var(--g-cream); }
.hs-track { display: flex; width: max-content; animation: strip 70s linear infinite; }
.hero-strip:hover .hs-track, .hero-strip:focus-within .hs-track { animation-play-state: paused; }
.hs-card { margin: 0 9px; width: clamp(230px, 24vw, 330px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; flex: none; box-shadow: 0 18px 44px rgba(184, 67, 42, .12); }
.hs-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hs-card:hover img { transform: scale(1.06); }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .hs-card { width: 72vw; } .hs-track { animation-duration: 32s; } }
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .hs-track { animation: strip 40s linear infinite !important; } }
@media (prefers-reduced-motion: reduce) { .hs-track { animation: strip 60s linear infinite !important; } .hs-card img { transition: none; } }
