/* Shared palette tokens keep every display mode consistent. */
:root {
    color-scheme: dark;
    --background: #101e26;
    --surface: #172c37;
    --surface-raised: #1b333f;
    --section: #142731;
    --text: #edf5f7;
    --muted: #b3c6ce;
    --accent: #f6b18d;
    --accent-ink: #172b35;
    --link: #f6b18d;
    --line: #66838f;
    --soft-line: #36515e;
    --chart: #9de1dd;
    --chart-fill: rgba(157, 225, 221, 0.12);
    --focus: #a8e8f3;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23edf5f7' stroke-width='2'/%3E%3C/svg%3E");
}

:root[data-theme="light"] {
    color-scheme: light;
    --background: #f5f8f9;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --section: #e6edf0;
    --text: #152c36;
    --muted: #475f6a;
    --accent: #a2432e;
    --accent-ink: #ffffff;
    --link: #8c3726;
    --line: #627c89;
    --soft-line: #c0cdd3;
    --chart: #146c75;
    --chart-fill: rgba(20, 108, 117, 0.1);
    --focus: #075a96;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23152c36' stroke-width='2'/%3E%3C/svg%3E");
}

:root[data-theme="medium"] {
    color-scheme: dark;
    --background: #344b59;
    --surface: #304754;
    --surface-raised: #3c5462;
    --section: #2a414e;
    --text: #f5f8fb;
    --muted: #d1dee4;
    --accent: #fac19f;
    --accent-ink: #192c35;
    --link: #fac19f;
    --line: #91a9b4;
    --soft-line: #6e8996;
    --chart: #b8f5ea;
    --chart-fill: rgba(184, 245, 234, 0.12);
    --focus: #c0f7ff;
}

* {
    box-sizing: border-box;
}
html {
    scroll-padding-top: 1.5rem;
}
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}
button,
input,
select,
textarea {
    font: inherit;
}
a {
    color: inherit;
    text-underline-offset: 0.25em;
}
button,
summary {
    cursor: pointer;
}
button {
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}
svg {
    display: block;
    width: 100%;
    height: auto;
}
p,
h1,
h2,
h3,
figure,
fieldset {
    margin: 0;
}
p + p {
    margin-top: 1rem;
}
h1,
h2,
h3 {
    line-height: 1.15;
}
h1,
h2 {
    font-weight: 400;
    letter-spacing: -0.045em;
}
h2 {
    font-size: 3.1rem;
}
h2 em,
h1 em {
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
h3 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}
button,
.button {
    min-height: 46px;
}
[hidden] {
    display: none !important;
}
:focus {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
}
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
}
::selection {
    background: var(--accent);
    color: var(--accent-ink);
}
.wrap {
    width: calc(100% - 6rem);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.section-space {
    padding-top: 6.75rem;
    padding-bottom: 6.75rem;
}
.eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
}
.eyebrow + h2 {
    margin-top: 1.5rem;
}
.text-link {
    display: inline-block;
    color: var(--link);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration-thickness: 1px;
}
.text-link:hover {
    text-decoration-thickness: 2px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 5px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
}
.primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.primary:hover {
    box-shadow:
        0 0 0 3px var(--background),
        0 0 0 4px var(--accent);
}
.secondary {
    color: var(--text);
    background: transparent;
    border-color: var(--line);
}
.secondary:hover {
    background: var(--section);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--accent-ink);
}
.skip-link:focus {
    top: 1rem;
}

/* Header and native three-position mode control. */
.site-header {
    border-bottom: 1px solid var(--soft-line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2.3rem;
    min-height: 98px;
    width: calc(100% - 6rem);
    max-width: 1390px;
    margin: 0 auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}
.brand img {
    flex-shrink: 0;
}
.brand span {
    font-size: 1.16rem;
    letter-spacing: -0.04em;
}
.brand strong {
    font-weight: 700;
}
.desktop-nav {
    margin-left: auto;
}
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.75rem;
}
nav a {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
}
nav a:hover {
    color: var(--text);
    text-decoration: underline;
}
.theme-switch {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    gap: 1px;
    flex-shrink: 0;
}
.theme-switch label,
.chart-switch label {
    position: relative;
    cursor: pointer;
}
.theme-switch input,
.chart-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.theme-switch span {
    display: block;
    border-radius: 3px;
    padding: 0.37rem 0.56rem;
    font-size: 0.875rem;
    color: var(--muted);
}
.theme-switch input:checked + span {
    color: var(--accent-ink);
    background: var(--accent);
}
.theme-switch input:focus + span,
.chart-switch input:focus + span {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}
.header-cta {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding: 0.4rem 0;
}
.header-cta:hover {
    color: var(--accent);
}
.mobile-menu {
    display: none;
}

/* Editorial hero with an original data-landscape illustration. */
.hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
}
.hero-topline .eyebrow {
    font-size: 0.8125rem;
}
.hero-aside {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    gap: 2.5rem;
    align-items: center;
    padding: 4rem 0 4.25rem;
}
.hero-grid > *,
.next-layout > *,
.about-section > *,
.practice-layout > * {
    min-width: 0;
}
h1 {
    font-size: 6.3rem;
    line-height: 1;
}
.hero-intro {
    margin-top: 2rem;
    font-size: 1.35rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
}
.hero-description {
    color: var(--muted);
    max-width: 30rem;
    margin-top: 1rem;
    font-size: 1.0625rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-visual {
    overflow: hidden;
    background: #172c37;
    border: 1px solid #66838f;
    border-radius: 8px;
    padding: 1.5rem 0 1rem;
    transform: rotate(-1deg);
}
.visual-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 1.5rem;
    font-size: 0.8125rem;
    color: #c4d8e0;
    letter-spacing: 0.025em;
}
.small-square {
    width: 7px;
    height: 7px;
    background: #f6b18d;
}
.hero-visual > img {
    width: 100%;
    display: block;
    margin-top: 0.6rem;
}
.hero-visual figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #466371;
    color: #c4d8e0;
    margin: 0 1.5rem;
    padding-top: 0.85rem;
    font-size: 0.8125rem;
}
.hero-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
    padding: 1.2rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}
.hero-bottom p {
    margin: 0;
}

.section-heading {
    max-width: 50rem;
}
.section-heading > p:last-child {
    max-width: 36rem;
    margin-top: 1.5rem;
    color: var(--muted);
}
.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin-top: 3.75rem;
}
.capability {
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
}
.capability h3 {
    margin: 1.75rem 0 1rem;
}
.capability > p {
    color: var(--muted);
}
.capability .capability-note {
    font-size: 0.875rem;
    color: var(--link);
    margin-top: 1.7rem;
}
.capability-icon {
    width: 44px;
    height: 40px;
    position: relative;
    color: var(--accent);
}
.repository-icon span {
    display: block;
    position: absolute;
    width: 38px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
}
.repository-icon span:nth-child(2) {
    top: 14px;
}
.repository-icon span:nth-child(3) {
    top: 28px;
}
.sharing-icon::before,
.sharing-icon::after {
    content: "";
    width: 29px;
    height: 1.5px;
    background: currentColor;
    position: absolute;
    transform-origin: left center;
    left: 8px;
    top: 20px;
    transform: rotate(-32deg);
}
.sharing-icon::after {
    transform: rotate(32deg);
}
.sharing-icon span {
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    position: absolute;
    background: var(--background);
}
.sharing-icon span:first-child {
    left: 0;
    top: 15px;
}
.sharing-icon span:nth-child(2) {
    right: 0;
    top: 0;
}
.sharing-icon span:nth-child(3) {
    right: 0;
    bottom: 0;
}
.analytics-icon {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}
.analytics-icon span {
    width: 9px;
    height: 14px;
    border: 1.5px solid currentColor;
}
.analytics-icon span:nth-child(2) {
    height: 25px;
}
.analytics-icon span:nth-child(3) {
    height: 36px;
}

/* Portfolio entries describe confirmed focus areas until products are supplied. */
.focus-section.section-space {
    padding-bottom: 3.75rem;
}
.portfolio-section.section-space {
    padding-top: 0;
}
.portfolio-heading {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: end;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}
.portfolio-intro {
    color: var(--muted);
    max-width: 32rem;
}
.portfolio-status {
    font-size: 0.875rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}
.portfolio-list {
    margin-top: 3rem;
    border-bottom: 1px solid var(--line);
}
.portfolio-item {
    display: grid;
    grid-template-columns: 76px 1.25fr 0.8fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}
.portfolio-item > * {
    min-width: 0;
}
.portfolio-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.portfolio-symbol .sharing-icon span {
    background: var(--surface);
}
.portfolio-description h3 {
    font-size: 1.65rem;
    margin: 0.7rem 0 1rem;
}
.portfolio-description > p:not(.eyebrow) {
    color: var(--muted);
}
.portfolio-description .portfolio-uses {
    font-size: 0.875rem;
}
.portfolio-actions {
    padding-top: 0.2rem;
}
.portfolio-actions summary {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}
.portfolio-actions ul {
    font-size: 0.875rem;
    color: var(--muted);
    padding-left: 1.2rem;
    margin: 0.65rem 0 1.25rem;
}
.portfolio-actions li + li {
    margin-top: 0.5rem;
}
.portfolio-actions .text-link {
    margin-top: 1.1rem;
}

/* The demonstration has matching chart, textual summary, and table. */
.practice-section {
    background: var(--section);
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}
.practice-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 4rem;
    align-items: center;
}
.practice-copy h2 {
    font-size: 3.6rem;
}
.practice-copy > p:not(.eyebrow) {
    margin-top: 1.5rem;
    max-width: 24rem;
    color: var(--muted);
}
.practice-copy .demo-disclaimer {
    font-size: 0.875rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}
.practice-copy .text-link {
    margin-top: 1.6rem;
}
.data-panel {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    padding: 1.8rem;
    border-radius: 8px;
    min-width: 0;
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.panel-eyebrow {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}
.panel-heading h3 {
    font-size: 1.25rem;
}
.sample-badge {
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 0.8125rem;
    line-height: 1.3;
    border-radius: 3px;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}
.demo-controls {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr auto;
    gap: 0.75rem;
    border-top: 1px solid var(--soft-line);
    padding: 1.2rem 0;
}
.control-field label,
.chart-switch legend {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
select {
    appearance: none;
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 11px 8px;
    padding-right: 2.25rem;
}
select,
input[type="text"],
textarea {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    width: 100%;
    padding: 0.7rem 0.8rem;
    line-height: 1.5;
}
select {
    min-height: 46px;
    padding-right: 2.25rem;
}
.control-field select {
    font-size: 0.875rem;
}
.chart-switch {
    padding: 0;
    border: 0;
    min-width: 0;
}
.chart-switch label {
    display: inline-block;
}
.chart-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    min-height: 46px;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 3px;
}
.chart-switch input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--soft-line);
}
.metrics p {
    font-size: 0.8125rem;
    color: var(--muted);
}
.metrics strong {
    display: block;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.03em;
}
.chart-figure {
    margin-top: 1.7rem;
}
.chart-grid {
    fill: none;
    stroke: var(--soft-line);
    stroke-width: 1;
}
.chart-area {
    fill: var(--chart-fill);
}
.chart-line {
    fill: none;
    stroke: var(--chart);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart-point {
    fill: var(--surface-raised);
    stroke: var(--chart);
    stroke-width: 3;
}
.chart-bar {
    fill: var(--chart);
}
.chart-label {
    fill: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.chart-figure figcaption {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}
.panel-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--soft-line);
    padding-top: 1rem;
    margin-top: 1.4rem;
}
.panel-bottom details {
    flex: 1;
    min-width: 0;
}
.panel-bottom summary {
    font-size: 0.875rem;
    color: var(--text);
    padding: 0.6rem 0;
}
.download-button {
    background: transparent;
    color: var(--link);
    border: 0;
    padding: 0.6rem 0;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    white-space: nowrap;
}
.table-container {
    margin-top: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}
caption {
    text-align: left;
    margin-bottom: 0.7rem;
    color: var(--muted);
}
th,
td {
    border-bottom: 1px solid var(--soft-line);
    padding: 0.5rem 0.3rem;
    font-weight: 400;
}
thead th {
    font-weight: 600;
}

.about-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem 5rem;
}
.about-heading h2 {
    font-size: 3.2rem;
}
.about-copy {
    padding-top: 0.1rem;
    color: var(--muted);
}
.about-copy .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
}
.founder-profile {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.founder-profile h3 {
    font-size: 1.65rem;
    margin: 0.8rem 0;
}
.founder-profile p:not(.eyebrow) {
    color: var(--muted);
    max-width: 45rem;
}
.founder-profile .founder-status {
    color: var(--link);
    font-size: 0.875rem;
}
.licensing-section {
    background: var(--section);
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}
.licensing-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.licensing-layout > * {
    min-width: 0;
}
.licensing-copy > p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 1.5rem;
    max-width: 35rem;
}
.licensing-questions {
    margin: 2rem 0 0;
}
.licensing-questions > div {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    border-top: 1px solid var(--soft-line);
    padding: 1rem 0;
}
.licensing-questions dt {
    font-weight: 600;
}
.licensing-questions dd {
    margin: 0;
    color: var(--muted);
}
.licensing-panel {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem;
}
.licensing-panel h3 {
    font-size: 1.7rem;
    margin-top: 0.7rem;
}
.licensing-panel > p:not(.panel-eyebrow) {
    color: var(--muted);
    margin-top: 1.25rem;
}
.licensing-selection {
    margin-top: 1.5rem;
}
.licensing-selection label {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.55rem;
}
.licensing-panel .button {
    margin-top: 1.5rem;
}
.licensing-note {
    font-size: 0.875rem;
}
.faq-section.section-space {
    padding-top: 6.75rem;
}
.principles {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 1.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.principles h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}
.principles p {
    color: var(--muted);
}
.faq-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    padding-top: 0;
}
.faq-list {
    border-top: 1px solid var(--line);
}
.faq-list details {
    border-bottom: 1px solid var(--soft-line);
}
.faq-list summary {
    padding: 1.4rem 0.5rem 1.4rem 0;
    font-weight: 500;
}
.faq-list details p {
    padding: 0 1rem 1.5rem 1.2rem;
    color: var(--muted);
}
summary::marker {
    color: var(--accent);
}

/* The project builder stores no visitor content. */
.next-section {
    background: var(--section);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--soft-line);
    padding: 5rem 0;
}
.next-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}
.next-copy h2 {
    font-size: 3.6rem;
}
.next-copy > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 26rem;
    margin-top: 1.5rem;
}
.next-copy .brief-notice {
    font-size: 0.875rem;
}
.brief-panel {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem;
}
.field + .field {
    margin-top: 1.2rem;
}
.field > label,
.brief-result > label {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.55rem;
}
.field label span {
    color: var(--muted);
    font-size: 0.875rem;
}
textarea {
    resize: vertical;
    min-height: 8rem;
}
textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}
.field-help {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    color: var(--muted);
}
.brief-submit {
    width: 100%;
    margin-top: 1.5rem;
}
.brief-result h3 {
    font-size: 1.8rem;
}
.brief-result p {
    margin: 1rem 0;
    color: var(--muted);
}
.brief-result textarea {
    font-size: 0.9375rem;
}
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.text-button {
    background: none;
    border: 0;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    padding: 0.6rem;
}

.site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2rem;
}
.footer-top > p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--soft-line);
    color: var(--muted);
    font-size: 0.875rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-notices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}
.footer-notices summary {
    padding: 0.5rem 0;
}
.footer-notices p {
    margin: 0.5rem 0;
}

@media (min-width: 1500px) {
    .hero-grid {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    h1 {
        font-size: 6.7rem;
    }
}
@media (max-width: 1200px) {
    .header-inner {
        gap: 1.4rem;
    }
    nav ul {
        gap: 1rem;
    }
    .header-cta {
        display: none;
    }
    h1 {
        font-size: 5.5rem;
    }
    .hero-grid {
        gap: 2rem;
    }
    .hero-actions {
        gap: 1.2rem;
    }
    .capabilities {
        gap: 2.3rem;
    }
    .practice-layout {
        gap: 2.5rem;
        grid-template-columns: 0.65fr 1.35fr;
    }
    .practice-copy h2 {
        font-size: 3.1rem;
    }
    .data-panel {
        padding: 1.5rem;
    }
    .demo-controls {
        grid-template-columns: 1.3fr 0.7fr;
    }
    .chart-switch {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .chart-switch legend {
        float: left;
        margin-right: 0.75rem;
        margin-bottom: 0;
        padding-top: 0.6rem;
    }
    .chart-switch span {
        padding: 0.4rem 1.1rem;
    }
    .about-section {
        gap: 3rem;
    }
    .next-layout {
        gap: 3rem;
    }
}
@media (max-width: 900px) {
    .portfolio-heading {
        gap: 2rem;
    }
    .portfolio-item {
        grid-template-columns: 76px 1fr;
        gap: 1.5rem;
    }
    .portfolio-actions {
        grid-column: 2;
        padding-top: 0;
    }
    .licensing-layout {
        gap: 2rem;
    }
    .faq-section.section-space {
        padding-top: 4.5rem;
    }
    .wrap,
    .header-inner {
        width: calc(100% - 3rem);
    }
    .header-inner {
        min-height: 90px;
        gap: 1rem;
    }
    .brand span {
        font-size: 1.1rem;
    }
    .brand img {
        width: 36px;
        height: 36px;
    }
    .desktop-nav {
        display: none;
    }
    .theme-switch {
        margin-left: auto;
    }
    .mobile-menu {
        display: block;
        position: relative;
    }
    .mobile-menu > summary {
        display: flex;
        align-items: center;
        min-height: 44px;
        gap: 0.5rem;
        font-size: 0.875rem;
        list-style: none;
    }
    .mobile-menu > summary::marker {
        content: "";
    }
    .hamburger {
        display: inline-block;
        width: 18px;
        height: 14px;
        border-top: 1.5px solid;
        border-bottom: 1.5px solid;
        position: relative;
    }
    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        top: 5px;
        width: 100%;
        border-top: 1.5px solid;
    }
    .mobile-menu nav {
        position: absolute;
        z-index: 10;
        right: 0;
        top: 3rem;
        background: var(--surface);
        border: 1px solid var(--line);
        min-width: 14rem;
        border-radius: 5px;
        padding: 0.5rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }
    .mobile-menu ul {
        display: block;
    }
    .mobile-menu a {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--text);
    }
    .hero-topline {
        padding-top: 1.75rem;
    }
    .hero-aside {
        display: none;
    }
    .hero-grid {
        padding-top: 3.25rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }
    h1 {
        font-size: 4.5rem;
    }
    .hero-intro {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-actions {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .hero-visual {
        padding-top: 1rem;
    }
    .visual-kicker {
        margin: 0 1rem;
        font-size: 0.8125rem;
    }
    .hero-visual figcaption {
        margin: 0 1rem;
        display: block;
    }
    .hero-visual figcaption span {
        display: block;
    }
    .hero-bottom {
        font-size: 0.8125rem;
    }
    .section-space {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
    h2,
    .about-heading h2 {
        font-size: 2.7rem;
    }
    .capabilities {
        gap: 1.6rem;
    }
    .capability h3 {
        font-size: 1.2rem;
    }
    .practice-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .practice-copy {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
        align-items: start;
    }
    .practice-copy > .eyebrow {
        grid-column: 1 / -1;
    }
    .practice-copy h2 {
        grid-row: 2 / 5;
        margin-top: 0;
        font-size: 3rem;
    }
    .practice-copy > p:not(.eyebrow),
    .practice-copy .text-link {
        margin-top: 0;
    }
    .demo-controls {
        grid-template-columns: 1.4fr 0.8fr auto;
    }
    .chart-switch {
        display: block;
        grid-column: auto;
    }
    .chart-switch legend {
        float: none;
        margin: 0 0 0.4rem;
        padding-top: 0;
    }
    .chart-switch span {
        padding: 0.5rem 0.8rem;
    }
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-copy {
        max-width: 48rem;
    }
    .principles {
        gap: 1.5rem;
    }
    .faq-section {
        padding-top: 0;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .next-copy h2 {
        font-size: 3rem;
    }
    .next-layout {
        gap: 2rem;
    }
    .brief-panel {
        padding: 1.5rem;
    }
    .footer-top > p {
        max-width: 15rem;
    }
}
@media (max-width: 650px) {
    .portfolio-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2rem;
    }
    .portfolio-heading h2 br {
        display: none;
    }
    .portfolio-item {
        grid-template-columns: 54px 1fr;
        gap: 1.2rem;
        padding: 2rem 0;
    }
    .portfolio-symbol {
        width: 54px;
        height: 60px;
    }
    .portfolio-description h3 {
        font-size: 1.4rem;
    }
    .portfolio-description .eyebrow {
        font-size: 0.8125rem;
        letter-spacing: 0.07em;
    }
    .portfolio-actions {
        grid-column: 1 / -1;
    }
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    .founder-mark img {
        width: 54px;
        height: 54px;
    }
    .licensing-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .licensing-panel {
        padding: 1.5rem;
    }
    .licensing-questions > div {
        grid-template-columns: 4.5rem 1fr;
        gap: 0.75rem;
    }
    .faq-section.section-space {
        padding-top: 3.75rem;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 0.75rem 0;
        min-height: 108px;
        justify-content: space-between;
    }
    .brand {
        gap: 0.55rem;
    }
    .brand span {
        font-size: 1rem;
    }
    .header-inner > .brand {
        flex: 1;
    }
    .theme-switch {
        order: 3;
        margin: 0;
        padding: 2px;
        width: 100%;
        justify-content: center;
        border: 0;
    }
    .theme-switch span {
        padding: 0.25rem 1.35rem;
    }
    .theme-switch label {
        min-width: 4.2rem;
        text-align: center;
    }
    .mobile-menu {
        margin-left: 1rem;
    }
    .mobile-menu nav {
        top: 2.5rem;
    }
    .hero-topline .eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.07em;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
        gap: 3rem;
    }
    h1 {
        font-size: 4.65rem;
    }
    .hero-intro {
        font-size: 1.25rem;
    }
    .desktop-break {
        display: none;
    }
    .hero-description {
        max-width: 32rem;
    }
    .hero-actions {
        gap: 1.5rem;
    }
    .hero-visual {
        transform: none;
        max-width: 32rem;
        width: 100%;
        justify-self: center;
    }
    .hero-visual figcaption {
        display: flex;
    }
    .hero-bottom {
        flex-direction: column;
        gap: 0.3rem;
    }
    .section-space {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
    h2,
    .about-heading h2 {
        font-size: 2.4rem;
    }
    .section-heading h2 br {
        display: none;
    }
    .capabilities {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        margin-top: 2.5rem;
    }
    .capability {
        padding-top: 1.5rem;
    }
    .capability h3 {
        font-size: 1.4rem;
        margin-top: 1.25rem;
    }
    .capability .capability-note {
        margin-top: 1rem;
    }
    .practice-copy {
        display: block;
    }
    .practice-copy h2 {
        margin-top: 1.5rem;
        font-size: 2.6rem;
    }
    .practice-copy h2 br {
        display: none;
    }
    .practice-copy > p:not(.eyebrow),
    .practice-copy .text-link {
        margin-top: 1.5rem;
        max-width: none;
    }
    .data-panel {
        padding: 1.25rem;
    }
    .panel-heading {
        align-items: flex-start;
    }
    .panel-heading h3 {
        font-size: 1.125rem;
    }
    .demo-controls {
        grid-template-columns: 1.35fr 0.75fr;
    }
    .chart-switch {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .chart-switch legend {
        float: left;
        padding-top: 0.6rem;
        margin-right: 0.75rem;
    }
    .chart-switch span {
        padding: 0.5rem 1.1rem;
    }
    .metrics {
        gap: 0.6rem;
    }
    .metrics strong {
        font-size: 1.7rem;
    }
    .metrics p {
        font-size: 0.8125rem;
    }
    .chart-figure {
        margin-top: 1.25rem;
    }
    .panel-bottom {
        display: block;
    }
    .download-button {
        margin-top: 0.4rem;
    }
    .principles {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 0.75rem;
    }
    .faq-section {
        padding-top: 0;
    }
    .next-section {
        padding: 3.75rem 0;
    }
    .next-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .next-copy h2 {
        font-size: 3rem;
    }
    .next-copy h2 br {
        display: none;
    }
    .next-copy > p:not(.eyebrow) {
        max-width: none;
    }
    .footer-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer-top > p {
        max-width: none;
    }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }
    .footer-links {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .footer-notices {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
@media (max-width: 360px) {
    .wrap,
    .header-inner {
        width: calc(100% - 2rem);
    }
    h1 {
        font-size: 3.8rem;
    }
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.2rem;
    }
    .sample-badge {
        white-space: normal;
        max-width: 4rem;
    }
    .data-panel {
        padding: 1rem;
    }
    .demo-controls {
        grid-template-columns: 1fr;
    }
    .chart-switch {
        grid-column: auto;
    }
    .brief-panel {
        padding: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    :root {
        --background: #ffffff;
        --section: #ffffff;
        --surface: #ffffff;
        --surface-raised: #ffffff;
        --text: #152c36;
        --muted: #334b57;
        --accent: #8c3726;
        --link: #8c3726;
        --line: #7b929e;
        --soft-line: #c0cdd3;
        --chart: #146c75;
        --chart-fill: rgba(20, 108, 117, 0.1);
    }
    body {
        font-size: 11pt;
    }
    .wrap,
    .header-inner {
        width: 100%;
    }
    .desktop-nav,
    .theme-switch,
    .header-cta,
    .mobile-menu,
    .hero-actions,
    .demo-controls,
    .download-button,
    #brief-form,
    .result-actions {
        display: none !important;
    }
    .section-space,
    .next-section {
        padding: 2rem 0;
    }
    h1 {
        font-size: 48pt;
    }
    h2,
    .practice-copy h2,
    .about-heading h2,
    .next-copy h2 {
        font-size: 26pt;
    }
    .hero-visual {
        transform: none;
    }
    .hero-grid {
        gap: 2rem;
        padding: 2rem 0;
    }
    .practice-layout,
    .next-layout {
        grid-template-columns: 1fr;
    }
    .practice-copy h2 br {
        display: none;
    }
    .data-panel,
    .capability,
    .principles article,
    .portfolio-item,
    .founder-profile {
        break-inside: avoid;
    }
    .footer-notices {
        display: none;
    }
    textarea {
        color: #152c36;
    }
}
