@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;600;700;800&family=Libre+Baskerville:wght@400;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --ivory: #f4f0e6;
  --paper: #fffdf8;
  --ink: #17352d;
  --emerald: #0f5744;
  --emerald-dark: #0a3d31;
  --mint: #cfe0d7;
  --coral: #c96f57;
  --line: rgba(23, 53, 45, .18);
  --muted: #536b63;
  --shadow: 0 24px 70px rgba(23, 53, 45, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); line-height: 1.6; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 10px; color: white; background: var(--ink); }
.skip-link:focus { top: 16px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 105px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 18px; color: var(--emerald); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.kicker { color: var(--coral); font-weight: 800; }
.display, h1, h2, h3 { font-family: var(--serif); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(54px, 7vw, 104px); font-weight: 400; letter-spacing: -.055em; line-height: .94; }
h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
h3 { margin: 0; font-size: 28px; font-weight: 400; line-height: 1.15; }
.lede { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.section-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-intro > p { max-width: 530px; margin: 0 0 7px; color: var(--muted); font-size: 17px; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(244, 240, 230, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--emerald); font-size: 14px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 99px; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: white; background: var(--emerald); }
.nav-cta { color: white !important; background: var(--ink); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--coral) !important; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 99px; padding: 10px 15px; color: var(--ink); background: transparent; font-weight: 800; cursor: pointer; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 78px; align-items: center; padding: 78px 0 88px; }
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border: 1px solid var(--emerald); border-radius: 99px; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.button.primary { color: white; background: var(--emerald); }
.button.primary:hover { background: var(--emerald-dark); transform: translateY(-2px); }
.button.secondary { color: var(--emerald); background: transparent; }
.button.secondary:hover { background: var(--mint); }
.hero-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.portrait-card { position: relative; width: min(100%, 470px); margin-left: auto; padding: 18px; border-radius: 240px 240px 28px 28px; background: var(--emerald); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; aspect-ratio: 4/5; display: block; border-radius: 220px 220px 18px 18px; object-fit: cover; object-position: center 18%; }
.cms-case-image { width: 100%; aspect-ratio: 16/9; display: block; margin: -8px 0 22px; border-radius: 12px; object-fit: cover; }
.portrait-seal { position: absolute; left: -34px; bottom: 48px; width: 126px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); box-shadow: 0 12px 30px rgba(23, 53, 45, .2); text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-8deg); }

.proof-strip { background: var(--ink); color: white; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 30px 38px; border-right: 1px solid rgba(255,255,255,.16); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border: 0; }
.proof-item strong { display: block; color: var(--mint); font-family: var(--serif); font-size: 38px; font-weight: 400; }
.proof-item span { color: #dce7e2; font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 280px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.card-number { color: var(--coral); font-family: var(--serif); font-style: italic; }
.card h3 { margin: 36px 0 16px; }
.card p { margin: 0 0 26px; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 800; text-underline-offset: 5px; }
.card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-4px); }

.case-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.case-card { min-height: 330px; display: flex; flex-direction: column; padding: 34px; border-radius: 22px; color: white; background: var(--emerald); text-decoration: none; }
.case-card:nth-child(2) { color: var(--ink); background: var(--mint); }
.case-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-card h3 { margin: auto 0 18px; font-size: clamp(32px, 4vw, 48px); }
.case-card p { margin: 0; color: inherit; opacity: .85; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.process { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.process-step { counter-increment: process; padding: 32px 26px; border-right: 1px solid var(--line); }
.process-step:last-child { border: 0; }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 34px; color: var(--coral); font-family: var(--serif); font-size: 18px; }
.process-step strong { display: block; margin-bottom: 9px; font-family: var(--serif); font-size: 23px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.brand-card { min-height: 150px; display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.brand-card img { width: 100%; height: 104px; padding: 18px; object-fit: contain; }
.brand-card span { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
a.brand-card:hover { border-color: var(--emerald); transform: translateY(-3px); }

.cert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: var(--paper); }
.cert-card b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--emerald); font-family: var(--serif); }
.cert-card span { color: var(--muted); font-size: 12px; }
.cert-card strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.cert-card:hover { border-color: var(--coral); }

.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.insight { padding: 30px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: var(--paper); }
.insight small { color: var(--coral); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.insight h3 { margin: 22px 0 14px; }
.insight p { color: var(--muted); }
.insight:hover { background: var(--mint); }

.book-store { color: white; background: var(--ink); }
.book-store .eyebrow { color: var(--mint); }
.book-store .section-intro > p { color: #c9d7d2; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book-purchase-flow { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 0 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; overflow: hidden; background: #21463c; }
.book-purchase-flow article { padding: 22px; border-right: 1px solid rgba(255,255,255,.16); }
.book-purchase-flow article:last-child { border: 0; }
.book-purchase-flow b { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; color: var(--ink); background: var(--mint); }
.book-purchase-flow strong { display: block; font-family: var(--serif); font-size: 20px; }
.book-purchase-flow p { margin: 8px 0 0; color: #c9d7d2; font-size: 13px; }
.store-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed rgba(255,255,255,.3); border-radius: 16px; text-align: center; color: #c9d7d2; }
.book-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: #21463c; }
.book-cover { aspect-ratio: 4/5; background: #ede5d7; }
.book-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.book-card-copy { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.book-card h3 { margin-bottom: 10px; }
.book-card p { margin: 0; color: #c9d7d2; }
.book-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 22px; }
.book-price { font-family: var(--serif); font-size: 25px; }
.book-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.store-buy, .store-preview { border-radius: 99px; padding: 12px 17px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.store-buy { border: 0; color: white; background: var(--coral); }
.store-preview { border: 1px solid rgba(255,255,255,.45); color: white; background: transparent; }
.store-preview:hover, .store-preview:focus-visible { border-color: white; background: rgba(255,255,255,.08); }
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.payment-card, .order-check { padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #21463c; }
.payment-card small { color: var(--mint); font-weight: 800; text-transform: uppercase; }
.payment-card strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 26px; }
.payment-card p { white-space: pre-line; color: #c9d7d2; }
.service-payment-methods { margin-bottom: 18px; }
.service-payment-methods .payment-card { color: white; }
.service-payment-methods .copy-payment { min-height: 40px; border-color: var(--mint); color: white; }
.service-payment-methods .copy-payment:hover { color: var(--ink); background: var(--mint); }
.service-payment-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.service-payment-panel > div { padding: 18px 0; }
.service-payment-panel .contact-form { padding: 0; }
.copy-button { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 9px 13px; color: white; background: transparent; cursor: pointer; }
.order-check { margin-top: 14px; }
.order-check-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.order-check input { min-width: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 12px; color: white; background: #17352d; }
.order-check button { border: 0; border-radius: 99px; padding: 0 19px; color: var(--ink); background: var(--mint); font-weight: 800; }
.order-check-result a { color: white; font-weight: 800; }

.contact-section { color: white; background: var(--emerald); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-section .eyebrow { color: var(--mint); }
.contact-details { margin-top: 34px; display: grid; gap: 12px; }
.contact-details a { color: white; text-underline-offset: 6px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-row a { padding: 9px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; text-decoration: none; font-size: 12px; font-weight: 800; }
.contact-form { display: grid; gap: 14px; padding: 30px; border-radius: 22px; color: var(--ink); background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label, .store-order-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select, .store-order-form input, .store-order-form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; color: var(--ink); background: white; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 26px 0; color: #c9d7d2; background: var(--ink); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 25px; font-size: 12px; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-socials a { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; text-decoration: none; font-size: 12px; font-weight: 900; }
.footer-socials a:hover, .footer-socials a:focus-visible { border-color: var(--coral); color: white; background: var(--coral); transform: translateY(-2px); }

.page-hero { padding: 110px 0 82px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; font-size: clamp(52px, 7vw, 92px); }
.page-hero .lede { max-width: 760px; }
.content-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.content-grid aside { position: sticky; top: 110px; align-self: start; }
.content-grid article > *:first-child { margin-top: 0; }
.content-grid article h2 { margin: 55px 0 20px; font-size: 42px; }
.content-grid article h3 { margin: 34px 0 14px; }
.content-grid article p, .content-grid article li { color: var(--muted); font-size: 17px; }
.content-grid article li { margin-bottom: 8px; }
.toc { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.toc a { color: var(--emerald); font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.metric { padding: 20px; border-radius: 14px; background: var(--mint); }
.metric strong { display: block; font-family: var(--serif); font-size: 27px; }
.note { padding: 22px; border-left: 4px solid var(--coral); background: var(--paper); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; color: var(--muted); font-size: 13px; }

.store-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(8,31,25,.82); transition: .2s; }
.store-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.store-modal-card { position: relative; width: min(620px, 100%); max-height: 92vh; overflow: auto; padding: 30px; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.store-modal-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; }
.store-modal h2 { margin: 0 50px 7px 0; font-size: 38px; }
.store-order-form { display: grid; gap: 14px; }
.store-payment-details { white-space: pre-wrap; padding: 14px; border-radius: 10px; background: var(--ivory); }
.store-submit { border: 0; border-radius: 99px; padding: 14px; color: white; background: var(--emerald); font-weight: 800; cursor: pointer; }
.store-form-result { white-space: pre-line; padding: 12px; border-radius: 10px; background: var(--ivory); }
.store-form-result:empty { display: none; }

*:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.button, .card, .case-card, .brand-card { transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }

@media (max-width: 980px) {
  .shell { width: min(760px, calc(100% - 36px)); }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; inset: 78px 18px auto; display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { justify-content: center; }
  .hero, .section-intro, .contact-grid, .content-grid, .service-payment-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 54px; }
  .portrait-card { margin: 0 auto; width: min(85%, 430px); }
  .section-intro, .contact-grid, .content-grid, .service-payment-panel { gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .case-grid, .cert-list, .insight-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .book-purchase-flow { grid-template-columns: repeat(2,1fr); }
  .book-purchase-flow article:nth-child(2) { border-right: 0; }
  .book-purchase-flow article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid aside { position: static; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .shell { width: min(100% - 28px, 560px); }
  .nav { min-height: 70px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-links { top: 70px; }
  .section { padding: 76px 0; }
  .hero { padding: 58px 0 68px; }
  h1 { font-size: 52px; }
  h2 { font-size: 42px; }
  .lede { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .portrait-seal { left: -8px; width: 100px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-card { grid-template-columns: auto 1fr; }
  .cert-card > span:last-child { display: none; }
  .store-grid, .payment-grid { grid-template-columns: 1fr; }
  .book-purchase-flow { grid-template-columns: 1fr; }
  .book-purchase-flow article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .order-check-form, .form-row, .metric-row { grid-template-columns: 1fr; }
  .order-check button { min-height: 46px; }
  .footer-row { flex-direction: column; }
  .page-hero { padding: 80px 0 60px; }
  .content-grid article h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
