@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    --paper: #f7f4ee;
    --paper-deep: #eee8dc;
    --white: #fffdf9;
    --ink: #263b34;
    --ink-soft: #50645b;
    --sage: #bdc7b4;
    --sage-light: #e3e7dc;
    --clay: #b7795d;
    --clay-light: #ead2c4;
    --line: rgba(38, 59, 52, 0.16);
    --shadow: 0 18px 50px rgba(50, 53, 43, 0.09);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --page-width: 1180px;
    --page-gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
[hidden] { display: none !important; }
.page-shell { width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width)); margin-inline: auto; }
.muted-text { color: var(--ink-soft); }

/* Shared header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 238, 0.93); border-bottom: 1px solid rgba(38, 59, 52, 0.08); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--clay); color: var(--clay); border-radius: 50%; font-size: 20px; line-height: 1; }
.brand-wordmark, .footer-brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.04em; font-weight: 600; }
.brand-wordmark span, .footer-brand span { font-style: italic; color: var(--clay); }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 48px); }
.nav-home { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.nav-home:hover, .nav-home[aria-current="page"] { color: var(--ink); }
.family-menu-toggle { min-height: 46px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 18px 0 20px; border-radius: 3px; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.family-menu-toggle:hover { background: transparent; color: var(--ink); }
.toggle-label { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
.menu-glyph { width: 18px; height: 13px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-glyph span { height: 1px; width: 100%; background: currentColor; transition: transform 180ms ease; }
.family-menu-toggle[aria-expanded="true"] .menu-glyph span:first-child { transform: translateY(6px) rotate(45deg); }
.family-menu-toggle[aria-expanded="true"] .menu-glyph span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Shared slide-out family menu */
.family-menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 34, 29, 0.48); backdrop-filter: blur(3px); }
.family-drawer { position: fixed; z-index: 41; inset: 0 0 0 auto; width: min(520px, 100%); height: 100dvh; background: var(--white); padding: clamp(24px, 5vw, 42px); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; box-shadow: -20px 0 70px rgba(16, 31, 25, 0.16); transform: translateX(100%); transition: transform 250ms ease; }
.family-drawer[aria-hidden="false"] { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.drawer-head .eyebrow { margin-top: 0; }
.drawer-head h2 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); line-height: 1.15; font-weight: 500; letter-spacing: -0.04em; margin: 8px 0 0; }
.drawer-close, .lightbox-close { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.drawer-close:hover, .lightbox-close:hover { background: var(--paper-deep); }
.drawer-intro { color: var(--ink-soft); font-size: 13px; margin: 18px 0 20px; }
.family-menu-list { display: grid; grid-template-columns: 1fr; gap: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.family-menu-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 6px; text-decoration: none; border-bottom: 1px solid var(--line); }
a.family-menu-item { cursor: pointer; }
a.family-menu-item:hover { background: var(--paper); }
.family-menu-number { font-family: var(--serif); color: var(--clay); font-size: 15px; }
.family-menu-name { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.family-menu-state { color: #8b9188; font-size: 10px; font-weight: 600; text-align: right; }
.family-menu-item.is-live .family-menu-state { color: var(--ink-soft); }
.drawer-foot { margin-top: auto; padding-top: 24px; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.drawer-foot span { color: var(--clay); margin-right: 6px; }

/* Typography & common elements */
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--clay); font-size: 10px; line-height: 1.4; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700; margin: 0 0 18px; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.045em; }
.button { min-height: 49px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; text-decoration: none; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid transparent; cursor: pointer; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-dark:hover { background: transparent; color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.loading-message { color: var(--ink-soft); font-size: 13px; }

/* Homepage */
.home-hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr); align-items: center; gap: clamp(30px, 7vw, 90px); padding-block: clamp(58px, 8vw, 98px) clamp(72px, 9vw, 114px); }
.home-hero-copy { padding-block: 8px; }
.home-hero h1 { max-width: 610px; font-size: clamp(42px, 5.3vw, 72px); line-height: 1.04; margin: 0 0 22px; }
.home-hero h1 em { color: var(--clay); font-weight: 500; }
.hero-description { max-width: 470px; font-size: 15px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 29px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.family-note { display: flex; align-items: center; gap: 13px; margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); width: min(320px, 100%); font-size: 12px; line-height: 1.55; }
.family-note strong { font-size: 12px; }
.note-sparkle { color: var(--clay); font-size: 25px; }
.family-note .muted-text { font-size: 11px; }
.home-hero-art { min-height: 400px; aspect-ratio: 0.95; max-height: 490px; width: 100%; position: relative; overflow: hidden; background: #dce1d5; display: grid; place-items: center; isolation: isolate; }
.home-hero-art::before, .home-hero-art::after { content: ""; position: absolute; border: 1px solid rgba(38, 59, 52, 0.16); border-radius: 50%; inset: 8%; z-index: -1; }
.home-hero-art::after { inset: 14%; border-color: rgba(38, 59, 52, 0.12); }
.art-ring { position: absolute; border: 1px solid rgba(183, 121, 93, 0.62); border-radius: 50%; }
.art-ring-one { inset: 22% 15%; transform: rotate(-34deg); }
.art-ring-two { inset: 17% 22%; transform: rotate(33deg); }
.art-sun { position: absolute; right: 13%; top: 10%; color: var(--clay); font-size: 35px; }
.art-caption { position: absolute; color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-align: center; }
.art-caption-top { top: 9%; left: 0; right: 0; }
.art-caption-bottom { bottom: 9%; left: 0; right: 0; }
.art-center { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.art-paw { font-size: clamp(40px, 5vw, 62px); margin-bottom: 4px; filter: saturate(0.55); }
.art-script { font-family: var(--serif); font-size: clamp(32px, 4vw, 47px); font-style: italic; color: var(--clay); }
.art-family { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; letter-spacing: 0.14em; margin-top: 10px; }
.family-section { padding-block: 28px clamp(78px, 9vw, 120px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 33px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 49px); line-height: 1.14; margin: 0; }
.section-intro { max-width: 345px; margin: 0 0 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.animal-card { min-width: 0; display: block; text-decoration: none; color: inherit; background: rgba(255, 253, 249, 0.58); border: 1px solid rgba(38, 59, 52, 0.1); transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
a.animal-card { cursor: pointer; }
a.animal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(38, 59, 52, 0.24); }
.animal-card-visual { position: relative; aspect-ratio: 1.07; display: grid; place-items: center; overflow: hidden; background: var(--sage-light); }
.animal-card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
a.animal-card:hover .animal-card-visual img { transform: scale(1.04); }
.animal-visual-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.5), transparent 28%), linear-gradient(140deg, #e2e6dc, #d5ded3); color: #6f8173; font-size: 8px; font-weight: 700; text-align: center; letter-spacing: 0.13em; line-height: 1.6; }
.animal-visual-placeholder .placeholder-sparkle { font-size: 28px; color: var(--clay); }
.animal-card-visual:not(.has-placeholder) .animal-visual-placeholder { display: none; }
.animal-number { position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--ink-soft); padding: 4px 7px; font-size: 9px; letter-spacing: 0.09em; }
.animal-card-info { position: relative; min-height: 98px; padding: 16px 39px 17px 15px; }
.animal-card-info h3 { font-size: 20px; line-height: 1.2; margin: 0 0 6px; overflow-wrap: anywhere; }
.animal-card-info p { margin: 0; color: #79847c; font-size: 10px; line-height: 1.5; }
.animal-card-arrow { position: absolute; right: 14px; bottom: 20px; color: var(--clay); font-size: 17px; }
.animal-card.is-coming-soon { background: rgba(255, 253, 249, 0.28); }
.animal-card.is-coming-soon .animal-card-info h3 { color: #69776d; }
.coming-soon-note { margin: 29px 0 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.coming-soon-note span { color: var(--clay); margin-right: 6px; }

/* Lady page */
.pet-hero { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(38px, 7vw, 86px); padding-block: clamp(36px, 5vw, 62px) clamp(72px, 8vw, 100px); }
.pet-hero-copy { padding-block: 6px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(34px, 5vw, 56px); color: var(--ink-soft); font-size: 11px; text-decoration: none; }
.breadcrumb:hover { color: var(--clay); }
.pet-hero h1 { font-size: clamp(64px, 8vw, 104px); line-height: 0.98; margin: 0 0 20px; }
.title-period { color: var(--clay); }
.pet-intro { max-width: 430px; font-size: 14px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 27px; }
.pet-facts { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 17px; margin: 0 0 27px; width: min(320px, 100%); font-size: 11px; line-height: 1.55; }
.pet-facts strong { font-size: 11px; }
.fact-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--clay); color: var(--clay); font-size: 18px; }
.pet-hero-photo { position: relative; margin: 0; min-width: 0; aspect-ratio: 0.95; max-height: 580px; background: #dfe4d9; display: grid; place-items: center; overflow: hidden; }
.pet-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pet-hero-photo.has-no-image > img { display: none; }
.hero-photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 30px; text-align: center; color: var(--ink-soft); background: radial-gradient(circle at 74% 21%, rgba(255,255,255,.5), transparent 28%), radial-gradient(circle at 24% 82%, rgba(183,121,93,.12), transparent 32%), linear-gradient(135deg, #e4e7de, #d0dacf); }
.hero-photo-placeholder .placeholder-sparkle { font-size: 44px; color: var(--clay); }
.hero-photo-placeholder strong { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); font-weight: 500; }
.hero-photo-placeholder > span:last-child { font-size: 11px; max-width: 260px; }
.hero-photo-placeholder code { font-size: 10px; overflow-wrap: anywhere; }
.pet-hero-photo figcaption { position: absolute; z-index: 2; bottom: 17px; left: 17px; padding: 9px 11px; background: rgba(255,253,249,.92); color: var(--ink-soft); font-size: 8px; font-weight: 700; letter-spacing: 0.14em; }
.photo-stamp { position: absolute; z-index: 2; right: -12px; top: 26px; display: grid; place-items: center; width: 68px; height: 68px; color: var(--white); background: var(--clay); border-radius: 50%; font-family: var(--serif); font-size: 35px; box-shadow: 0 8px 20px rgba(38,59,52,.12); }
.pet-story-band { background: var(--sage-light); }
.story-inner { min-height: 145px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 68px); padding-block: 28px; text-align: center; }
.story-inner p { max-width: 630px; font-family: var(--serif); font-size: clamp(20px, 3vw, 31px); line-height: 1.5; letter-spacing: -0.025em; margin: 0; }
.story-inner em { color: var(--clay); }
.story-ornament { font-size: 22px; color: var(--clay); flex: 0 0 auto; }
.gallery-section { padding-block: clamp(68px, 9vw, 108px) clamp(75px, 10vw, 120px); }
.gallery-heading { align-items: end; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-tile { position: relative; padding: 0; aspect-ratio: 1.08; border: 0; background: var(--sage-light); cursor: zoom-in; overflow: hidden; text-align: left; }
.gallery-tile:nth-child(3n + 2) { background: #eadfd1; }
.gallery-tile:nth-child(3n) { background: #e4e3d8; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-placeholder-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 20px; color: var(--ink-soft); background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.48), transparent 30%), linear-gradient(145deg, #e6e8df, #d7dfd4); text-align: center; }
.gallery-tile:nth-child(3n + 2) .gallery-placeholder-content { background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.45), transparent 30%), linear-gradient(145deg, #eee4d8, #e3d4c3); }
.gallery-tile:nth-child(3n) .gallery-placeholder-content { background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.45), transparent 30%), linear-gradient(145deg, #e8e8de, #d9d9ca); }
.gallery-placeholder-content .placeholder-sparkle { font-size: 29px; color: var(--clay); }
.gallery-placeholder-content strong { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.gallery-placeholder-content span:last-child { font-size: 10px; }
.gallery-tile:not(.is-placeholder) .gallery-placeholder-content { display: none; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,249,.94); color: var(--ink); font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.gallery-tile:hover .gallery-zoom, .gallery-tile:focus-visible .gallery-zoom { opacity: 1; transform: translateY(0); }
.gallery-edit-note { font-size: 10px; color: #79847c; margin: 19px 0 0; }
.gallery-edit-note code { overflow-wrap: anywhere; }
.pet-bottom-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(42px, 6vw, 64px); border-top: 1px solid var(--line); padding-top: 26px; }
.back-to-family { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.back-to-family > span:first-child { color: var(--clay); font-size: 24px; }
.back-to-family small, .back-to-family strong { display: block; }
.back-to-family small { color: var(--ink-soft); font-size: 8px; letter-spacing: 0.13em; }
.back-to-family strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }

/* Photo lightbox */
.lightbox-dialog { width: min(100vw, 1100px); max-width: 100vw; max-height: 100dvh; height: 100dvh; padding: clamp(14px, 3vw, 30px); margin: 0 auto; border: 0; background: #18251f; color: var(--white); overflow: hidden; }
.lightbox-dialog::backdrop { background: rgba(13, 22, 18, 0.93); }
.lightbox-inner { height: 100%; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; }
.lightbox-topbar, .lightbox-bottombar { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.lightbox-topbar { min-height: 45px; }
.lightbox-topbar p { margin: 0; font-family: var(--serif); font-size: 18px; }
.lightbox-close { width: 42px; height: 42px; color: var(--white); border-color: rgba(255,255,255,.35); font-size: 29px; flex: 0 0 auto; }
.lightbox-close:hover { background: rgba(255,255,255,.13); }
.lightbox-stage { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; justify-items: center; gap: clamp(8px, 2vw, 25px); flex: 1; min-height: 0; padding-block: 13px; touch-action: pan-y; }
.lightbox-arrow { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-arrow:hover { background: rgba(255,255,255,.12); }
.lightbox-arrow:disabled { opacity: .35; cursor: default; }
.lightbox-media { height: 100%; width: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; }
.lightbox-media img { max-width: 100%; max-height: calc(100dvh - 145px); width: auto; height: auto; object-fit: contain; }
.lightbox-placeholder { width: min(680px, 100%); min-height: min(65dvh, 550px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 24px; background: linear-gradient(145deg, #e6e8df, #d4ddd2); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.lightbox-placeholder .placeholder-sparkle { font-size: 40px; color: var(--clay); }
.lightbox-placeholder strong { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.lightbox-placeholder span:last-child { max-width: 340px; font-size: 12px; line-height: 1.7; }
.lightbox-placeholder code { font-size: 11px; }
.lightbox-bottombar { min-height: 34px; color: rgba(255,255,255,.66); font-size: 10px; }
#lightbox-count { font-variant-numeric: tabular-nums; letter-spacing: .1em; }

/* Shared footer */
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { min-height: 148px; padding-block: 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 30px; }
.footer-brand { color: var(--white); text-decoration: none; }
.footer-inner p { grid-column: 2; margin: 0; color: rgba(255,255,255,.7); font-size: 10px; }
.back-to-top { justify-self: end; color: var(--white); font-size: 10px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px; }
.footer-inner small { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.5); font-size: 9px; }

@media (min-width: 1500px) {
    :root { --page-width: 1260px; }
}
@media (max-width: 900px) {
    .home-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 32px; }
    .home-hero-art { min-height: 340px; }
    .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .pet-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; }
    .pet-hero h1 { font-size: clamp(60px, 9vw, 82px); }
    .section-heading { gap: 25px; }
}
@media (max-width: 640px) {
    :root { --page-gutter: 20px; }
    html { scroll-padding-top: 75px; }
    .header-inner { min-height: 68px; }
    .brand-mark { width: 32px; height: 32px; font-size: 17px; }
    .brand-wordmark { font-size: 20px; }
    .desktop-nav { gap: 0; }
    .nav-home { display: none; }
    .family-menu-toggle { min-height: 44px; min-width: 48px; padding: 0 13px; gap: 10px; }
    .toggle-label { font-size: 11px; }
    .family-drawer { padding: 24px 20px max(20px, env(safe-area-inset-bottom)); }
    .drawer-head h2 { font-size: 32px; }
    .family-menu-item { min-height: 59px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; }
    .family-menu-name { font-size: 16px; }
    .family-menu-state { font-size: 9px; }
    .home-hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding-block: 53px 65px; }
    .home-hero h1 { font-size: clamp(42px, 11vw, 59px); line-height: 1.06; }
    .hero-description { font-size: 13px; max-width: 430px; }
    .family-note { margin-top: 31px; }
    .home-hero-art { aspect-ratio: 1.13; min-height: 0; max-height: 410px; width: 100%; }
    .art-paw { font-size: 47px; }
    .art-script { font-size: 39px; }
    .art-family { font-size: 33px; }
    .family-section { padding-block: 5px 75px; }
    .section-heading { display: block; margin-bottom: 24px; }
    .section-heading h2 { font-size: 37px; }
    .section-intro { margin-top: 14px; max-width: 440px; }
    .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .animal-card-visual { aspect-ratio: .96; }
    .animal-card-info { min-height: 87px; padding: 13px 30px 12px 11px; }
    .animal-card-info h3 { font-size: 17px; margin-bottom: 5px; }
    .animal-card-info p { font-size: 9px; }
    .animal-card-arrow { right: 9px; bottom: 17px; font-size: 15px; }
    .animal-number { top: 7px; left: 7px; padding: 4px 5px; font-size: 8px; }
    .animal-visual-placeholder { font-size: 7px; }
    .animal-visual-placeholder .placeholder-sparkle { font-size: 24px; }
    .pet-hero { grid-template-columns: 1fr; gap: 27px; padding-block: 26px 51px; }
    .breadcrumb { margin-bottom: 30px; }
    .pet-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
    .pet-hero-copy .eyebrow { margin-bottom: 11px; }
    .pet-hero h1 { font-size: clamp(65px, 17vw, 88px); margin-bottom: 15px; }
    .pet-intro { font-size: 13px; margin-bottom: 23px; }
    .pet-facts { margin-bottom: 24px; }
    .pet-hero-copy > .button { align-self: stretch; }
    .pet-hero-photo { grid-row: 1; aspect-ratio: .94; width: 100%; max-height: none; }
    .pet-hero-photo figcaption { left: 12px; bottom: 12px; font-size: 7px; }
    .photo-stamp { width: 55px; height: 55px; right: 12px; top: 12px; font-size: 29px; }
    .story-inner { min-height: 125px; gap: 14px; }
    .story-inner p { font-size: 21px; }
    .story-ornament { font-size: 16px; }
    .gallery-section { padding-block: 62px 74px; }
    .gallery-heading .section-intro { margin-top: 12px; }
    .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gallery-tile { aspect-ratio: .9; }
    .gallery-placeholder-content { gap: 6px; padding: 10px; }
    .gallery-placeholder-content .placeholder-sparkle { font-size: 22px; }
    .gallery-placeholder-content strong { font-size: 18px; }
    .gallery-placeholder-content span:last-child { font-size: 9px; }
    .gallery-zoom { opacity: 1; transform: none; right: 8px; bottom: 8px; width: 30px; height: 30px; }
    .gallery-edit-note { line-height: 1.7; }
    .pet-bottom-navigation { align-items: flex-start; flex-direction: column; gap: 23px; margin-top: 36px; }
    .pet-bottom-navigation .button { width: 100%; }
    .lightbox-dialog { padding: max(11px, env(safe-area-inset-top)) 11px max(11px, env(safe-area-inset-bottom)); }
    .lightbox-topbar { min-height: 42px; }
    .lightbox-topbar p { font-size: 16px; }
    .lightbox-close { width: 38px; height: 38px; }
    .lightbox-stage { position: relative; display: flex; justify-content: center; gap: 6px; padding-block: 10px; }
    .lightbox-media { height: 100%; width: calc(100% - 68px); }
    .lightbox-media img { max-width: 100%; max-height: calc(100dvh - 120px); }
    .lightbox-arrow { width: 31px; height: 38px; flex: 0 0 31px; font-size: 25px; border-radius: 3px; }
    .lightbox-placeholder { min-height: min(57dvh, 430px); padding: 18px 12px; }
    .lightbox-placeholder strong { font-size: 23px; }
    .lightbox-placeholder span:last-child { font-size: 10px; }
    .lightbox-bottombar { font-size: 9px; }
    .footer-inner { grid-template-columns: 1fr auto; gap: 10px 15px; padding-block: 28px 22px; }
    .footer-inner p { grid-column: 1 / -1; grid-row: 2; line-height: 1.7; max-width: 310px; }
    .back-to-top { grid-column: 2; grid-row: 1; }
    .footer-inner small { grid-row: 3; padding-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
