:root {
  --primary-color: #d9212b;
  --primary-dark: #b81922;
  --ink: #20252c;
  --text-color: #535c66;
  --muted: #737d88;
  --bg-color: #fff;
  --surface: #f7f5f2;
  --line: #e8e5e1;
  --shadow: 0 12px 32px rgba(31, 38, 46, 0.08);
  --shadow-hover: 0 18px 40px rgba(31, 38, 46, 0.13);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-family: 'Inter', sans-serif; font-size: clamp(16px, 1.1vw, 18px); color: var(--text-color); background: var(--bg-color); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(217, 33, 43, 0.35); outline-offset: 3px; }

.container { width: min(90%, 1200px); margin-inline: auto; }
.skip-link { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 300; padding: 0.65rem 1rem; transform: translateY(-160%); border-radius: 6px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }

.navbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(32, 37, 44, 0.06); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); }
.nav-container { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-img { width: 184px; height: 58px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-item { position: relative; padding: 0.5rem 0; color: var(--text-color); text-decoration: none; font-size: clamp(14px, 0.94vw, 16px); font-weight: 600; transition: color 160ms ease; }
.nav-item::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--primary-color); content: ''; transition: transform 160ms ease; }
.nav-item.active, .nav-item:hover { color: var(--primary-color); }
.nav-item.active::after, .nav-item:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--ink); }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { position: absolute; left: 0; content: ''; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.hero-section { overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; background: radial-gradient(ellipse at 85% 20%, rgba(217, 33, 43, 0.06), transparent 36%), linear-gradient(135deg, #f1f2f3, #e7e9ec 68%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: center; gap: clamp(3rem, 7vw, 6rem); }
.hero-content { max-width: 640px; }
.hero-brand-lockup { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.65rem; }
.hero-brand-logo-link { display: block; flex: 0 0 auto; }
.hero-brand-logo { width: clamp(190px, 22vw, 280px); height: auto; object-fit: contain; }
.hero-brand { color: var(--primary-color); font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
.eyebrow { margin-bottom: 1rem; color: var(--primary-color); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-centered { text-align: center; }
.home-page .hero-brand { font-size: clamp(0.95rem, 1.8vw, 1.35rem); font-weight: 800; white-space: nowrap; }
.home-page .eyebrow { font-size: clamp(0.85rem, 1vw, 0.95rem); font-weight: 800; }
.home-page .purpose-label { font-size: 0.84rem; font-weight: 800; }
.hero-title { max-width: 14ch; margin-bottom: 1.25rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(48px, 5vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.16; }
.hero-subtitle { max-width: 54ch; margin-bottom: 2rem; color: var(--text-color); font-size: clamp(1.02rem, 1.5vw, 1.14rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0.7rem 1.3rem; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-family: 'Inter', sans-serif; font-size: clamp(14px, 0.94vw, 16px); font-weight: 600; transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-2px); }
.primary-btn { background: var(--primary-color); color: #fff; box-shadow: 0 6px 15px rgba(217, 33, 43, 0.18); }
.primary-btn:hover { background: var(--primary-dark); box-shadow: 0 9px 20px rgba(217, 33, 43, 0.24); }
.secondary-btn { border-color: #d8d3cd; background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.secondary-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

.hero-art { display: grid; min-height: 440px; place-items: center; }
.hero-book-cover { display: block; width: min(100%, 520px); max-height: 540px; border-radius: 6px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(31, 38, 46, 0.2)); }

section { padding: clamp(4rem, 7vw, 6rem) 0; }
.section-title { margin-bottom: 0.75rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 3vw, 40px); line-height: 1.3; text-align: center; }
.section-intro { max-width: 620px; margin: 0 auto 2.5rem; color: var(--muted); text-align: center; }
.featured-section { background: var(--surface); }
.grid { display: grid; gap: 1.5rem; }
.featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.5rem; }
.card, .service-card, .product-card { overflow: hidden; border: 1px solid rgba(32, 37, 44, 0.07); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(31, 38, 46, 0.04); transition: transform 180ms ease, box-shadow 180ms ease; }
.card:hover, .service-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card { padding: 0.8rem; }
.publication-image, .product-image { width: 100%; height: 280px; border-radius: 8px; background: var(--surface); object-fit: contain; }
.card h3 { margin: 1.1rem 0 0.3rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(20px, 2vw, 26px); }
.card p { padding-bottom: 0.3rem; color: var(--muted); font-size: 0.92rem; }
.about-section { background: #fff; }
.about-section .container { max-width: 780px; }
.about-section .container > p:not(.eyebrow) { margin-top: 1rem; color: var(--text-color); font-size: clamp(16px, 1.1vw, 18px); text-align: justify; }
.about-contact-section { background: var(--surface); }
.about-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.about-contact-card { padding: 1.5rem; border: 1px solid rgba(32, 37, 44, 0.07); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(31, 38, 46, 0.04); }
.about-contact-card h3 { margin-bottom: 0.5rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; }
.about-contact-card p { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.about-contact-card p + p { margin-top: 0.4rem; }
.about-contact-card a { color: inherit; text-decoration: none; }
.about-contact-card a:hover { color: var(--primary-color); }
.about-social-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.about-social-links a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: color 160ms ease; }
.about-social-links a:hover { color: var(--primary-color); }
.about-social-links svg { flex: 0 0 auto; }
.purpose-section { background: var(--surface); }
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.purpose-card, .value-card { border: 1px solid rgba(32, 37, 44, 0.07); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(31, 38, 46, 0.04); }
.purpose-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.purpose-label { display: inline-block; margin-bottom: 1rem; color: var(--primary-color); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.purpose-card h3 { max-width: 24ch; margin-bottom: 0.75rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.4; }
.purpose-card h3 .no-wrap { white-space: nowrap; }
.purpose-card p, .value-card p { color: var(--muted); font-size: 0.94rem; }
.values-heading { margin: 2.75rem 0 1.25rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 3vw, 40px); text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.value-card { min-height: 170px; padding: 1.35rem; }
.value-number { display: inline-block; margin-bottom: 0.8rem; color: var(--primary-color); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; }
.value-card h4 { margin-bottom: 0.4rem; color: var(--ink); font-size: 1rem; }
.gallery-section { background: #fff; }
.gallery-carousel { max-width: 980px; margin: 2.5rem auto 0; }
.gallery-frame { position: relative; height: clamp(300px, 52vw, 540px); overflow: hidden; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 450ms ease, visibility 450ms ease; }
.gallery-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.gallery-slide::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 24, 30, 0.72)); content: ''; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-caption { position: absolute; z-index: 1; right: clamp(1rem, 4vw, 2.5rem); bottom: clamp(1rem, 4vw, 2.5rem); left: clamp(1rem, 4vw, 2.5rem); color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.gallery-control { position: absolute; z-index: 2; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(20, 24, 30, 0.45); color: #fff; cursor: pointer; font-size: 1.5rem; transition: background 160ms ease, transform 160ms ease; backdrop-filter: blur(6px); }
.gallery-control:hover { transform: translateY(-50%) scale(1.06); background: rgba(20, 24, 30, 0.75); }
.gallery-previous { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-footer { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; }
.gallery-dots { display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.gallery-dot { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.gallery-dot::before { width: 9px; height: 9px; border-radius: 50%; background: #d3d0cb; content: ''; transition: width 180ms ease, background 180ms ease; }
.gallery-dot.is-active::before { width: 24px; border-radius: 5px; background: var(--primary-color); }
.gallery-count { color: var(--muted); font-size: 0.82rem; }
.services-section { background: var(--surface); }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; counter-reset: service; }
.service-card { position: relative; min-height: 190px; padding: 1.6rem; }
.service-card { counter-increment: service; }
.service-card::before { display: block; margin-bottom: 1.2rem; color: var(--primary-color); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; content: '0' counter(service); }
.service-card h2, .service-card h3 { margin-bottom: 0.55rem; color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.service-card p { color: var(--muted); font-size: 0.92rem; }
.service-list { display: grid; gap: 0.55rem; margin-top: 0.85rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.service-list li::marker { color: var(--primary-color); }

.products-section { min-height: 65vh; background: linear-gradient(180deg, #fbfaf8, #fff 20rem); }
.products-section .section-title { margin-bottom: 0.55rem; }
.products-section .section-intro { margin-bottom: 2rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin: 2rem 0 1.5rem; }
.filter-select { min-height: 48px; padding: 0.65rem 0.9rem; border: 1px solid #dedbd6; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.filter-select { min-width: 230px; }
.filter-select:focus { border-color: var(--primary-color); outline: 3px solid rgba(217, 33, 43, 0.12); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.product-card { display: flex; flex-direction: column; padding: 0.8rem; }
.product-preview { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--surface); cursor: zoom-in; }
.product-card h3 { margin-top: 1rem; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; }
.product-card p { margin-top: 0.45rem; color: var(--muted); font-size: 0.9rem; }
.product-card p strong { color: var(--text-color); font-weight: 600; }
.book-viewer { position: fixed; inset: 0; width: min(92vw, 850px); max-width: none; max-height: 92vh; margin: auto; padding: 3.5rem 1.25rem 1rem; overflow: auto; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background: #171a1f; color: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4); }
.book-viewer::backdrop { background: rgba(10, 13, 18, 0.82); backdrop-filter: blur(5px); }
.book-viewer-image { width: 100%; max-height: min(72vh, 900px); object-fit: contain; }
.book-viewer-title { padding-top: 0.9rem; color: #e0e2e5; text-align: center; }
.book-viewer-close { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.no-results { padding: 2rem; color: var(--muted); text-align: center; }
.hidden { display: none !important; }

.site-footer { padding: 3.5rem 0 1rem; background: #20252c; color: #d7dbe0; }
.footer-container { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.7fr)); gap: clamp(1.25rem, 4vw, 3rem); padding-bottom: 2.5rem; }
.footer-brand h3 { margin-bottom: 0.75rem; color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
.footer-brand p { max-width: 38ch; color: #afb6be; font-size: 0.92rem; }
.footer-links h4, .footer-contact h4 { margin-bottom: 0.9rem; color: #fff; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: 0.35rem; }
.footer-links a, .footer-contact a { color: #c3c9d0; text-decoration: none; transition: color 160ms ease; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-social-links { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.footer-social-links a { display: inline-flex; color: #c3c9d0; transition: color 160ms ease; }
.footer-social-links a:hover { color: #fff; }
.footer-social-links svg { display: block; }
.footer-contact p { margin-top: 0.45rem; font-size: 0.9rem; }
.footer-contact .contact-detail { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact .contact-detail svg { flex: 0 0 18px; margin-top: 0.2rem; }
.footer-contact .contact-detail span { min-width: 0; overflow-wrap: anywhere; }
.footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #afb6be; font-size: 0.82rem; text-align: center; }

.contact-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.65rem; }
.contact-buttons a { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(32, 37, 44, 0.08); border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform 160ms ease, box-shadow 160ms ease; }
.contact-buttons a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

@media (max-width: 760px) {
  .nav-container { min-height: 72px; }
  .logo-img { width: 154px; height: 50px; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 0.5rem 5% 1rem; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 18px rgba(31, 38, 46, 0.08); }
  .nav-links.show { display: flex; flex-direction: column; }
  .nav-item { padding: 0.75rem 0; }
  .nav-item::after { right: auto; width: 2rem; }
  .hero-brand-lockup { gap: 0.75rem; }
  .hero-brand-logo { width: clamp(145px, 40vw, 190px); }
}

@media (max-width: 900px) {
  .nav-container { gap: 1rem; }
  .nav-links { gap: clamp(0.75rem, 2vw, 1.5rem); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 2rem; }
  .hero-art { min-height: 320px; }
  .featured-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 5rem; }
  section { padding: clamp(3rem, 12vw, 4rem) 0; }
  .nav-container { min-height: 72px; }
  .logo-img { width: 154px; height: 50px; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 0.5rem 5% 1rem; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 18px rgba(31, 38, 46, 0.08); }
  .nav-links.show { display: flex; flex-direction: column; }
  .nav-item { padding: 0.75rem 0; }
  .nav-item::after { right: auto; width: 2rem; }
  .hero-section { padding: 3.75rem 0 3rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-title { max-width: 16ch; }
  .hero-art { min-height: 330px; }
  .hero-book-cover { width: min(100%, 440px); max-height: 440px; }
  .featured-grid, .services-grid { grid-template-columns: 1fr; }
  .purpose-grid, .values-grid { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .gallery-frame { height: clamp(260px, 72vw, 380px); }
  .gallery-footer { flex-wrap: wrap; }
  .gallery-dots { min-width: 0; max-width: 100%; flex: 1 1 100%; flex-wrap: wrap; gap: 0.25rem; }
  .gallery-count { flex: 1 1 100%; text-align: center; }
  .gallery-control { width: 40px; height: 40px; }
  .gallery-previous { left: 0.65rem; }
  .gallery-next { right: 0.65rem; }
  .service-card { min-height: 0; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .container { width: 88%; }
  .logo-img { width: min(154px, 48vw); }
  .hero-brand-lockup { gap: 0.5rem; }
  .hero-brand-logo { width: clamp(100px, 38vw, 150px); }
  .home-page .hero-brand { font-size: clamp(0.75rem, 3.8vw, 0.95rem); white-space: normal; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-select { width: 100%; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .contact-buttons { right: 0.75rem; bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
