/* ============================================
   DESIGN TOKENS
   Palette: warm beige · burnished gold · rich brown
   3D signboard letter effect on headings.
   ============================================ */
:root {
    /* ── Primary palette ── */
    --ink:           #2C1810;
    --ink-soft:      #5C4033;
    --brown-deep:    #3B1F12;
    --brown-deep-2:  #291208;
    --brown-mid:     #7B4B2A;
    --brown-soft:    #A67B5B;
    --beige:         #F5E6D3;
    --beige-dim:     #EBD9C4;
    --cream:         #FDF8F0;
    --cream-dim:     #F5EDE0;
    --maroon:        #6B1C23;
    --maroon-deep:   #4A0E14;
    --gold:          #C8A45A;
    --gold-deep:     #A8843A;
    --gold-light:    #D4B76A;
    --white:         #FFFFFF;
    --line:          rgba(59,31,18,0.14);
    --line-deep:     rgba(245,230,211,0.16);
    --glow-gold:     rgba(200,164,90,.22);
    --glow-brown:    rgba(123,75,42,.16);

    /* ── Signboard 3D vars ── */
    --sign-fill:     #FFFFFF;
    --sign-stroke:   #6B1C23;
    --sign-shadow:   #4A0E14;
    --sign-depth:    3px;

    --font-display:  'Fraunces', serif;
    --font-body:     'Inter', sans-serif;
    --font-mono:     'IBM Plex Mono', monospace;

    /* type scale — fluid, tied to a 1.2 ratio at rest */
    --fs-xs:  .78rem;
    --fs-sm:  .88rem;
    --fs-base: 1rem;
    --fs-md:  1.15rem;
    --fs-lg:  clamp(1.5rem, 2.4vw, 1.9rem);
    --fs-xl:  clamp(1.9rem, 3.2vw, 2.5rem);
    --fs-2xl: clamp(2.4rem, 4.4vw, 3.6rem);

    /* space scale */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(59,31,18,.08);
    --shadow-md: 0 20px 40px -24px rgba(59,31,18,.30);
    --shadow-lg: 0 30px 60px -20px rgba(59,31,18,.40);

    --ease-out: cubic-bezier(.16,.84,.44,1);
    --ease-breathe: cubic-bezier(.37,0,.63,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--gold); color: var(--brown-deep); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Regular headings (clean, highly readable) */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .5em;
    -webkit-text-stroke: 0;
    text-shadow: none;
    text-transform: none;
    letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); font-weight: 600; }

/* Signboard styles removed. Using clean Fraunces instead. */
.signboard-text {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--maroon);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    /* Reset signboard on eyebrows */
    -webkit-text-stroke: 0;
    text-shadow: none;
    font-weight: 500;
}
.eyebrow::before {
    content: '';
    width: 14px; height: 1px;
    background: var(--maroon);
    display: inline-block;
}

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253,248,240,0.88);
    backdrop-filter: blur(10px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, var(--gold-light), var(--brown-deep) 72%);
    box-shadow: 0 0 0 4px rgba(200,164,90,.15);
}
.brand-text {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
    color: var(--maroon);
    letter-spacing: -0.01em;
    transition: color .2s var(--ease-out);
}
.brand-text:hover {
    color: var(--maroon-deep);
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    position: relative;
    font-family: var(--font-body);
    font-size: .93rem; font-weight: 500; color: var(--brown-deep);
    padding: 6px 0;
    transition: color .2s var(--ease-out);
}
.main-nav a:not(.cta-nav)::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--maroon);
    transition: width .25s var(--ease-out);
}
.main-nav a:not(.cta-nav):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active {
    color: var(--maroon);
}
.main-nav a.cta-nav {
    background: var(--maroon); color: var(--white);
    padding: 10px 20px; border-radius: var(--radius-pill);
    transition: background .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.main-nav a.cta-nav:hover {
    background: var(--gold-deep); color: var(--brown-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-weight: 600; font-size: .95rem;
    padding: 13px 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-primary {
    background: var(--maroon); color: var(--white); box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--maroon-deep); transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline { border-color: var(--brown-mid); color: var(--brown-mid); background: transparent; }
.btn-outline:hover {
    background: var(--brown-deep); color: var(--white);
    transform: translateY(-2px);
    border-color: var(--brown-deep);
}
.btn-coral { background: var(--gold-deep); color: var(--brown-deep); }
.btn-coral:hover {
    background: var(--gold); transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--brown-deep);
}
.btn-block { width: 100%; text-align: center; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============ HERO + BREATHING SIGNATURE ============ */
.hero {
    position: relative; overflow: hidden;
    padding: var(--sp-9) 0 var(--sp-8);
    background: linear-gradient(170deg, var(--cream) 0%, var(--beige) 50%, var(--beige-dim) 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: -20% -10% auto auto;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(200,164,90,.14), transparent 70%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy .lede { font-size: var(--fs-md); max-width: 46ch; color: var(--ink-soft); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.hero-tags span {
    font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .03em;
    background: var(--beige); color: var(--brown-deep); padding: 7px 14px; border-radius: var(--radius-pill);
    border: 1px solid rgba(59,31,18,.10);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero headings: dark maroon text with a soft warm glow spreading to the sides */
.hero h1, .hero-copy h1,
.a-hero h1, .c-hero h1,
.a-hero-inner h1, .c-hero-inner h1 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    -webkit-text-stroke: 0;
    text-shadow:
        0 1px 0 rgba(255,255,255,.5),
        24px 0 30px rgba(200,164,90,.32),
        -24px 0 30px rgba(200,164,90,.32),
        0 0 50px rgba(200,164,90,.22);
    text-transform: none;
    letter-spacing: -0.01em;
}
.hero h1:hover, .hero-copy h1:hover,
.a-hero h1:hover, .c-hero h1:hover {
    transform: none;
}

.breathe-wrap { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.breathe-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(200,164,90,.3);
}
.breathe-ring.r1 { width: 360px; height: 360px; animation: breathe 7.5s var(--ease-breathe) infinite; }
.breathe-ring.r2 {
    width: 280px; height: 280px; animation: breathe 7.5s var(--ease-breathe) infinite .35s;
    border-color: rgba(107,28,35,.20);
}
.breathe-ring.r1::after, .breathe-ring.r2::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 1px dashed rgba(200,164,90,.15);
    animation: rotate-slow 40s linear infinite;
}
.breathe-orb {
    position: relative;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, var(--gold), var(--brown-mid) 55%, var(--brown-deep) 100%);
    box-shadow: 0 30px 70px -20px rgba(59,31,18,.55), inset 0 0 40px rgba(255,255,255,.08);
    animation: breathe 7.5s var(--ease-breathe) infinite;
    display: flex; align-items: center; justify-content: center;
    color: var(--cream); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-align: center;
}
.breathe-orb .pulse-line {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: .55;
}
.breathe-orb .pulse-line path {
    fill: none; stroke: var(--cream); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 240; stroke-dashoffset: 240;
    animation: draw-pulse 3.5s var(--ease-out) infinite;
}
.breathe-orb .orb-label { position: relative; z-index: 1; }
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes draw-pulse {
    0%   { stroke-dashoffset: 240; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -240; }
}
@media (prefers-reduced-motion: reduce) {
    .breathe-ring, .breathe-orb, .breathe-ring::after, .pulse-line path { animation: none; }
}

/* Floating credential badges around the signature */
.hero-badges { position: absolute; inset: 0; pointer-events: none; }
.hero-badge {
    position: absolute; pointer-events: auto;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
    padding: 9px 16px 9px 10px; box-shadow: var(--shadow-md);
    font-size: var(--fs-xs); font-weight: 600; color: var(--brown-deep);
    animation: float-badge 5s var(--ease-breathe) infinite;
}
.hero-badge .badge-icon {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: var(--beige); display: flex; align-items: center; justify-content: center;
    color: var(--brown-mid);
}
.hero-badge .badge-icon svg { width: 14px; height: 14px; }
.hero-badge.b1 { top: 6%; left: -4%; animation-delay: 0s; }
.hero-badge.b2 { bottom: 12%; right: -6%; animation-delay: .8s; }
.hero-badge.b3 { top: 46%; right: -10%; animation-delay: 1.6s; }
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-badge { animation: none; }
}
@media (max-width: 1040px) {
    .hero-badge.b3 { display: none; }
}
@media (max-width: 860px) {
    .hero-badge.b1 { left: 2%; }
    .hero-badge.b2 { right: 2%; }
}

/* ============ SECTIONS ============ */
section { padding: var(--sp-8) 0; }
.section-alt { background: var(--white); }
.section-deep { background: var(--brown-deep); color: var(--cream); }
.section-deep p { color: rgba(245,230,211,.78); }
.section-deep .eyebrow { color: var(--gold-light); }
.section-deep .eyebrow::before { background: var(--gold-light); }
.section-deep h1,
.section-deep h2,
.section-deep h3 {
    color: var(--cream);
}
.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ CARD GRIDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: var(--sp-6);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(123,75,42,.25); }
.card .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--maroon); }

.stat-row { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
.stat b {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--brown-deep);
    display: block;
    letter-spacing: -.02em;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.stat span { font-size: var(--fs-sm); color: var(--ink-soft); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    border: 1px solid var(--line-deep); padding: 9px 18px; border-radius: var(--radius-pill);
    font-size: var(--fs-sm); background: rgba(255,255,255,.04); color: var(--cream);
    transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.section-deep .chip:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
section:not(.section-deep) .chip { border-color: var(--line); background: var(--white); color: var(--ink); }

.banner {
    background: var(--beige); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-7);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(200,164,90,.25);
}
.banner::before {
    content: '';
    position: absolute; right: -40px; top: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,90,.22), transparent 70%);
}

/* ============ TIMELINE / LIST STYLES ============ */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: none; }
.list-clean li::before {
    content: '✓'; position: absolute; left: 0; top: 12px; color: var(--gold-deep); font-weight: 700;
}

/* ============ FORMS ============ */
.form-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-7);
    box-shadow: var(--shadow-sm);
}
label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 7px; color: var(--brown-deep); }
input, select, textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: var(--fs-base); background: var(--cream); margin-bottom: 20px;
    transition: border-color .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white);
    box-shadow: 0 0 0 4px rgba(200,164,90,.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notice { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: var(--fs-sm); }
.notice-success { background: #E8DECA; color: var(--brown-deep); border: 1px solid var(--gold); }
.notice-error { background: #F5D5CE; color: var(--maroon-deep); border: 1px solid var(--maroon); }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
    border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--white);
    transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-item .media { aspect-ratio: 4/3; overflow: hidden; background: var(--beige); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item .cap { padding: 13px 15px; font-size: var(--fs-sm); color: var(--ink-soft); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }

/* ============ CLINIC TOGGLE CARDS (contact/appointment) ============ */
.clinic-card {
    border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-5); background: var(--white);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.clinic-card.inactive { opacity: .45; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.on { background: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,90,.22); }
.status-dot.off { background: var(--maroon); }

/* ============ ADMIN PANEL (settings/gallery upload) ============ */
.admin-box {
    background: var(--white); border: 1px dashed var(--brown-mid); border-radius: var(--radius-md);
    padding: var(--sp-5); margin-bottom: var(--sp-8);
}
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: var(--radius-pill); transition: .2s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .2s; }
input:checked + .slider { background: var(--brown-deep); }
input:checked + .slider:before { transform: translateX(22px); }

/* ============ FOOTER ============ */
.site-footer { background: var(--brown-deep-2); color: var(--cream); padding-top: var(--sp-8); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.footer-col a { display: block; margin-bottom: 9px; opacity: .82; transition: opacity .2s ease; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--white) !important;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.tagline { font-style: italic; opacity: .8; }
.keywords { font-size: .8rem; opacity: .55; }
.footer-bottom { border-top: 1px solid var(--line-deep); padding: 20px 0; font-size: .82rem; opacity: .68; }

/* ============ ANIMATED COUNTERS ============ */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.counter-card {
    text-align: center; padding: var(--sp-6) var(--sp-4);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.counter-icon {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--beige); color: var(--brown-mid);
    display: flex; align-items: center; justify-content: center;
}
.counter-icon svg { width: 22px; height: 22px; }
.counter-num {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 500;
    color: var(--brown-deep); letter-spacing: -.02em; display: flex; align-items: baseline; justify-content: center; gap: 2px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.counter-num .suffix { font-size: 1.5rem; color: var(--gold-deep);
    -webkit-text-stroke: 0;
    text-shadow: none;
}
.counter-label { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 4px; }
.section-deep .counter-card { background: rgba(255,255,255,.04); border-color: var(--line-deep); }
.section-deep .counter-num { color: var(--cream); }
.section-deep .counter-label { color: rgba(245,230,211,.72); }

/* ============ PROFILE HEADER (doctor / about page) ============ */
.profile-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); align-items: center; }
.profile-photo-frame {
    position: relative; width: 100%; max-width: 320px; aspect-ratio: 1/1.05; margin: 0 auto;
}
.profile-photo-frame .frame-ring {
    position: absolute; inset: 0; border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
    border: 1.5px dashed rgba(200,164,90,.3); animation: rotate-slow 60s linear infinite;
}
.profile-photo-frame .frame-shape {
    position: absolute; inset: 14px;
    border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
    background: linear-gradient(155deg, var(--gold), var(--brown-deep) 75%);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.profile-photo-frame .frame-shape img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-photo-frame .frame-shape .placeholder-icon { width: 40%; height: 40%; color: var(--cream); opacity: .85; }
.profile-photo-frame .frame-dot {
    position: absolute; bottom: 6%; right: 2%;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--maroon); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    font-family: var(--font-mono); font-size: .68rem; text-align: center; line-height: 1.15;
}
@media (prefers-reduced-motion: reduce) { .profile-photo-frame .frame-ring { animation: none; } }

.credential-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.credential-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .03em;
    background: var(--beige); color: var(--brown-deep); padding: 8px 15px; border-radius: var(--radius-pill);
}
.credential-pill svg { width: 13px; height: 13px; }

/* ============ ICON GRID (expertise / symptoms) ============ */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.icon-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: var(--sp-5); display: flex; gap: 14px; align-items: flex-start;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(123,75,42,.25); }
.icon-badge {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--beige); color: var(--brown-mid);
    display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 21px; height: 21px; }
.icon-card h4 {
    font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin: 0 0 4px;
    color: var(--brown-deep);
    -webkit-text-stroke: 0;
    text-shadow: none;
    text-transform: none;
}
.icon-card p { font-size: var(--fs-sm); margin: 0; color: var(--ink-soft); }
.section-deep .icon-card { background: rgba(255,255,255,.04); border-color: var(--line-deep); }
.section-deep .icon-card h4 { color: var(--cream); }
.section-deep .icon-badge { background: rgba(255,255,255,.09); color: var(--gold-light); }

/* ============ TIMELINE (professional experience) ============ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
    background: var(--line);
}
.timeline-item { position: relative; padding-bottom: var(--sp-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -28px; top: 4px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--gold-deep);
}
.timeline-item.current::before { background: var(--maroon); border-color: var(--maroon); }
.timeline-item h4 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 4px;
    color: var(--brown-deep);
    -webkit-text-stroke: 0;
    text-shadow: none;
    text-transform: none;
}
.timeline-item p { margin: 0; font-size: var(--fs-sm); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .breathe-wrap { height: 260px; order: -1; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .icon-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; }
    .profile-photo-frame { margin: 0 auto; }
    .credential-row { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .main-nav {
        position: fixed; top: 62px; left: 0; right: 0; background: var(--cream);
        flex-direction: column; align-items: flex-start; padding: 22px 24px; gap: 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .3s var(--ease-out); z-index: 90;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .banner { padding: var(--sp-5); }
    .counter-grid { grid-template-columns: 1fr 1fr; }
}