.page-shell { max-width: 1500px; margin: auto; }
.page-hero { padding: 86px 8vw 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; margin: 0 0 28px; font: 400 clamp(42px, 5.4vw, 72px)/1.13 var(--reading); letter-spacing: -.035em; }
.page-lead { max-width: 740px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.8; }
.content-section { padding: 68px 8vw; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 38px; }
.section-heading h2, .split-copy h2 { margin: 0; font: 400 clamp(28px, 3vw, 39px)/1.24 var(--reading); letter-spacing: -.02em; }
.section-heading > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding-block: 8px; color: var(--accent); font-size: 14px; text-decoration: underline; text-decoration-color: #a9bccd; text-underline-offset: 5px; }
.text-link:hover { color: var(--secondary); text-decoration-color: currentColor; }
.text-link span { font-size: 18px; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; }
.index-card { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 24px; }
.index-card h3 { margin: 0 0 15px; font: 400 26px/1.3 var(--reading); }
.index-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.index-card .text-link { margin-top: auto; }
.split-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8vw; }
.split-copy h2 { margin-bottom: 25px; }
.split-copy > p, .prose p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.prose p:first-child { margin-top: 0; }
.detail-list { margin: 0; }
.detail-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-list dt { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.detail-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.soft-section { background: var(--secondary-soft); }
.topic-block { display: grid; grid-template-columns: 35px 1fr; gap: 20px; padding: 35px 0; border-top: 1px solid var(--line); scroll-margin-top: 108px; }
.topic-block:first-child { padding-top: 0; border-top: 0; }
.topic-block.unnumbered { display: block; }
.topic-block > span { padding-top: 7px; color: #7a8590; font-size: 13px; }
.topic-block h3 { margin: 0 0 20px; font: 400 29px/1.3 var(--reading); }
.topic-block p { max-width: 800px; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.topic-block h4 { margin: 26px 0 9px; font-size: 14px; font-weight: 600; }
.jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.jump-links a { padding-block: 4px; color: var(--accent); border-bottom: 1px solid #a9bccd; font-size: 14px; }
.jump-links a:hover { color: var(--secondary); border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { padding-top: 20px; border-top: 1px solid #bdc8cf; }
.process-step > span { color: var(--secondary); font-size: 13px; }
.process-step h3 { margin: 22px 0 12px; font: 400 25px/1.3 var(--reading); }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.experiment-panel { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.experiment-panel h3 { margin: 0 0 22px; font-size: 16px; font-weight: 600; }
.experiment-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.experiment-row span { color: var(--muted); font-size: 12px; }
.experiment-row p { margin: 0; }
.table-scroll { overflow-x: auto; }
.metric-table { width: 100%; border-collapse: collapse; min-width: 590px; font-size: 14px; text-align: left; }
.metric-table caption { text-align: left; padding-bottom: 22px; color: var(--muted); font-size: 13px; }
.metric-table th { padding: 15px 18px; background: #e7efe8; font-size: 13px; font-weight: 600; }
.metric-table td { padding: 22px 18px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.8; }
.metric-table td:first-child { width: 20%; color: var(--ink); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 0; cursor: pointer; font-size: 16px; }
.faq-list details p { max-width: 780px; margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.founder-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8vw; align-items: center; }
.founder-portrait { width: 100%; max-height: 490px; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.founder-feature h2 { margin: 0 0 22px; font: 400 clamp(34px, 4vw, 48px)/1.2 var(--reading); }
.founder-feature p { color: var(--muted); line-height: 1.9; }
.contact-address { display: inline-block; max-width: 100%; margin: 8px 0 22px; color: var(--accent); font-size: clamp(18px, 2.4vw, 29px); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #a9bccd; text-underline-offset: 7px; }
.contact-compose { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.contact-compose label { display: block; margin-bottom: 14px; font-size: 14px; }
.contact-compose select { width: 100%; padding: 13px; border: 1px solid #aab5bf; border-radius: 4px; background: white; color: var(--ink); font-size: 14px; }
.button-link { display: inline-block; padding: 8px 0; color: var(--accent); background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.button-link:hover { color: var(--secondary); background: transparent; text-decoration-color: currentColor; }
.contact-compose .button-link { margin-top: 20px; }
.contact-compose p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.next-page { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 35px 8vw; border-bottom: 1px solid var(--line); }
.next-page p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.next-page a { font: 400 clamp(23px, 2.5vw, 32px)/1.4 var(--reading); }
.next-page .next-page-arrow { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: var(--secondary); font: 32px var(--display); }
.next-page .next-page-arrow:hover { color: var(--secondary); background: transparent; text-decoration: none; }
.global-footer { padding: 48px 8vw 24px; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; padding-bottom: 40px; }
.footer-brand img { width: 220px; height: 28px; object-fit: cover; object-position: center 47.8%; filter: brightness(0); opacity: .8; }
.footer-top p { max-width: 310px; font-size: 13px; line-height: 1.85; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.footer-links > span { margin-bottom: 5px; color: var(--ink); font-weight: 600; }
.footer-links a:hover { color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom a { color: var(--accent); }
@media (max-width: 1000px) { .index-grid { gap: 28px; } .index-card h3 { font-size: 24px; } .process-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
 .page-hero { padding: 48px 6vw 38px; }
 .page-hero h1 { font-size: 43px; }
 .page-lead { font-size: 16px; }
 .content-section { padding: 44px 6vw; }
 .section-heading, .split-section, .founder-feature { grid-template-columns: 1fr; gap: 24px; }
 .section-heading h2, .split-copy h2 { font-size: 30px; }
 .index-grid { grid-template-columns: 1fr; gap: 30px; }
 .index-card h3 { font-size: 26px; }
 .topic-block { grid-template-columns: 22px 1fr; gap: 12px; }
 .topic-block h3 { font-size: 26px; }
 .experiment-panel, .contact-compose { padding: 22px; }
 .experiment-row { grid-template-columns: 1fr; gap: 7px; }
 .process-flow { gap: 26px; }
 .process-step h3 { font-size: 23px; }
 .process-step p { font-size: 13px; }
 .founder-portrait { max-height: 410px; }
 .next-page { padding: 30px 6vw; }
 .global-footer { padding: 38px 6vw 22px; }
 .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
 .footer-top > div:first-child { grid-column: 1 / -1; }
 .footer-bottom { flex-wrap: wrap; }
}

.model-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; }
.model-preview { border-top: 1px solid var(--line); padding-top: 30px; }
.model-preview-art { display: flex; align-items: center; height: 110px; margin-bottom: 22px; }
.model-preview h3 { margin: 0 0 14px; font: 400 30px/1.3 var(--reading); }
.model-preview p { max-width: 480px; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.serafina-model-logo { width: 120px; height: 120px; object-fit: contain; }
/* Display the original Spark artwork without its transparent outer margins. */
.spark-model-logo { position: relative; overflow: hidden; width: min(100%, 300px); aspect-ratio: 1735 / 444; }
.spark-model-logo img { position: absolute; width: 115.274%; max-width: none; height: auto; left: -7.32%; top: 50%; transform: translateY(-50%); }
.model-story { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 8vw; padding: 50px 0; border-top: 1px solid var(--line); scroll-margin-top: 105px; }
.model-story:first-child { border-top: 0; padding-top: 0; }
.model-story:last-child { padding-bottom: 0; }
.model-identity > p { margin: 24px 0 8px; color: var(--secondary); font-size: 13px; }
.model-identity h2 { margin: 0; font: 400 43px/1.2 var(--reading); }
.model-identity .spark-model-logo { margin-top: 24px; margin-bottom: 42px; }
.model-description h3 { margin: 0 0 22px; font: 400 28px/1.3 var(--reading); }
.model-description > p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.model-facts { margin: 28px 0; }
.model-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.model-facts dt { color: var(--muted); }
.model-facts dd { margin: 0; }
@media (min-width: 701px) and (max-width: 900px) {
 .menu-toggle { display: grid; gap: 6px; place-content: center; width: 42px; height: 42px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; cursor: pointer; }
 .menu-toggle span { display: block; width: 21px; height: 1px; background: currentColor; transition: transform .2s; }
 .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
 .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
 .site-nav { position: fixed; z-index: 9; inset: 86px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 25px 6vw; background: var(--paper); visibility: hidden; transform: translateY(-12px); opacity: 0; transition: opacity .2s, transform .2s, visibility .2s; }
 .site-nav.is-open { visibility: visible; transform: none; opacity: 1; }
 .site-nav a, .site-nav .nav-contact { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
}
@media (max-width: 700px) {
 .model-previews, .model-story { grid-template-columns: 1fr; gap: 32px; }
 .model-preview-art { height: 100px; }
 .model-story { padding-block: 36px; }
 .model-identity .spark-model-logo { margin-block: 10px 25px; }
 .model-description h3 { font-size: 26px; }
 .model-facts > div { grid-template-columns: 1fr; gap: 5px; }
}

/* Text links share one hover treatment; keyboard focus retains its outline. */
a:hover { color: var(--secondary); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 5px; }
.site-nav a:hover { border-bottom-color: transparent; }
.contact-address:hover, .footer-bottom a:hover { color: var(--secondary); background: transparent; text-decoration: underline; }
.brand:hover, .footer-brand:hover { text-decoration: none; }

.next-page a, .next-page a:hover, .next-page a:focus-visible { text-decoration: none; }
