:root {
    color-scheme: light;
    --ink: #101820;
    --ink-soft: #26343d;
    --paper: #f5f3eb;
    --white: #fffefa;
    --muted: #617079;
    --line: #ced3cc;
    --teal: #00a896;
    --teal-dark: #007b70;
    --coral: #f15b4c;
    --yellow: #f7c948;
    --blue: #3d6bb3;
}

.email-contact h3 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.email-contact ul {
    margin: 0 0 28px;
    padding-left: 20px;
}

.email-contact li {
    margin: 8px 0;
}

.email-address {
    overflow-wrap: anywhere;
    font-family: ui-monospace, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px clamp(24px, 5vw, 72px);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    text-decoration: none;
}

.wordmark > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.86rem;
    font-weight: 800;
}

.wordmark small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 28px;
}

nav a,
.contact-link {
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

nav a {
    color: rgba(255, 255, 255, 0.72);
}

nav a:hover,
nav a:focus-visible {
    color: var(--white);
}

.contact-link {
    justify-self: end;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--teal);
}

.hero {
    position: relative;
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
    grid-template-rows: 1fr auto;
    overflow: hidden;
    padding: 156px clamp(24px, 7vw, 112px) 56px;
    color: var(--white);
    background: var(--ink);
}

.hero::before {
    position: absolute;
    top: 21%;
    right: -5%;
    width: min(39vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.hero::after {
    position: absolute;
    top: 34%;
    right: 4%;
    width: min(23vw, 320px);
    aspect-ratio: 1;
    border: 1px solid var(--teal);
    content: "";
    transform: rotate(45deg);
}

.data-particles {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: 0.085;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to right, #000, transparent 74%);
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 920px;
}

.kicker,
.section-number {
    margin: 0 0 24px;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.68);
}

.kicker span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(0, 168, 150, 0.15);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 930px;
    margin-bottom: 28px;
    font-size: 7.4rem;
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 span {
    display: block;
    margin-bottom: 14px;
    color: var(--yellow);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.16em;
    line-height: 1;
    text-transform: none;
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 32px;
    color: #bdc7ca;
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 18px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: var(--ink);
    background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: var(--white);
    background: var(--teal-dark);
}

.text-link {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.query-line {
    position: absolute;
    z-index: 2;
    right: clamp(24px, 5vw, 72px);
    bottom: 174px;
    display: grid;
    width: min(39vw, 500px);
    min-height: 88px;
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 7px 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 3px solid var(--coral);
    background: rgba(16, 24, 32, 0.82);
    box-shadow: 10px 10px 0 rgba(0, 168, 150, 0.18);
}

.line-number {
    color: #67757c;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
}

.query-line code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #d5dddf;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.86rem;
}

.query-line code b {
    color: var(--yellow);
}

.query-status {
    grid-column: 2;
    color: #819096;
    font-size: 0.7rem;
}

.query-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--teal);
}

.hero-facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 72px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-facts div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 24px 20px 0 0;
}

.hero-facts dt {
    color: var(--teal);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 2.2rem;
    font-weight: 800;
}

.hero-facts dd {
    margin: 0;
    color: #aab6ba;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.skill-ribbon {
    display: flex;
    align-items: stretch;
    color: var(--ink);
    background: var(--yellow);
}

.ribbon-label {
    display: grid;
    min-width: 150px;
    place-items: center;
    padding: 15px 20px;
    color: var(--white);
    background: var(--coral);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.skill-ribbon ul {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px 24px;
    margin: 0;
    padding: 15px 24px;
    list-style: none;
}

.skill-ribbon li {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
}

.skill-ribbon li::before {
    margin-right: 10px;
    color: var(--coral);
    content: "+";
}

.section {
    padding: 112px clamp(24px, 7vw, 112px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(130px, 0.35fr) minmax(300px, 1fr) minmax(260px, 0.65fr);
    align-items: end;
    gap: clamp(24px, 5vw, 72px);
    margin-bottom: 64px;
}

.section-number {
    align-self: start;
    color: var(--teal-dark);
}

h2 {
    margin-bottom: 0;
    font-size: 4.8rem;
    line-height: 0.96;
    letter-spacing: 0;
}

.section-heading > p:last-child {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 1rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.model-card {
    position: relative;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.model-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 7px;
    background: var(--teal);
    content: "";
}

.model-many::before,
.model-poly::before {
    background: var(--coral);
}

.card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.model-tag {
    order: 2;
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
}

.model-many .model-tag,
.model-poly .model-tag {
    color: var(--coral);
}

.model-card h3,
.performance-item h3 {
    margin-bottom: 16px;
    font-size: 1.75rem;
    line-height: 1.1;
}

.model-card > p,
.star-copy > p {
    max-width: 560px;
    color: var(--muted);
    font-size: 0.95rem;
}

.diagram {
    position: relative;
    flex: 1;
    margin: 26px 0 24px;
}

.diagram-pair {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(70px, 0.65fr) minmax(110px, 1fr);
    align-items: center;
}

.table-node {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--line);
}

.table-node strong {
    padding: 9px 11px;
    color: var(--white);
    background: var(--ink-soft);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
}

.table-node span {
    display: flex;
    min-height: 35px;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
}

.key,
.foreign {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--yellow);
}

.foreign {
    background: var(--teal);
}

.node-stack {
    box-shadow: 4px 4px 0 var(--white), 5px 5px 0 var(--ink), 9px 9px 0 var(--white), 10px 10px 0 var(--ink);
}

.relation-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 5px;
    color: var(--coral);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.82rem;
}

.relation-line span,
.mini-line {
    height: 1px;
    background: var(--coral);
}

.rule,
.performance-item code {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    color: var(--teal-dark);
    background: #e7f4ef;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
}

.diagram-trio {
    display: grid;
    grid-template-columns: minmax(72px, 0.8fr) minmax(20px, 0.35fr) minmax(96px, 1.15fr) minmax(20px, 0.35fr) minmax(72px, 0.8fr);
    align-items: center;
}

.compact strong {
    padding: 8px;
    text-align: center;
}

.compact span,
.bridge-node span {
    justify-content: center;
    padding: 5px;
    text-align: center;
}

.bridge-node {
    border-color: var(--teal-dark);
    box-shadow: 5px 5px 0 rgba(0, 168, 150, 0.25);
}

.bridge-node strong {
    color: var(--ink);
    background: var(--teal);
    text-align: center;
}

.poly-diagram {
    display: grid;
    grid-template-columns: minmax(70px, 0.7fr) minmax(20px, 0.25fr) minmax(100px, 1fr) minmax(20px, 0.25fr) minmax(82px, 0.8fr);
    align-items: center;
}

.poly-line {
    height: 1px;
    background: var(--coral);
}

.poly-targets {
    display: grid;
    gap: 14px;
}

.model-star {
    min-height: 460px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(460px, 1.3fr);
    align-items: center;
    gap: 64px;
    background: #eef4f1;
}

.model-star::before {
    width: 100px;
    background: var(--yellow);
}

.star-copy {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
}

.star-diagram {
    position: relative;
    display: grid;
    min-height: 340px;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    grid-template-rows: repeat(3, minmax(70px, 1fr));
    align-items: center;
    justify-items: center;
}

.star-node {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(120px, 90%);
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--line);
}

.star-node small {
    color: var(--coral);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.58rem;
    font-weight: 800;
}

.star-node strong {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
}

.star-node span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.6rem;
}

.fact-node {
    width: min(140px, 96%);
    min-height: 108px;
    grid-column: 2;
    grid-row: 2;
    color: var(--white);
    background: var(--ink);
    box-shadow: 7px 7px 0 var(--teal);
}

.fact-node small {
    color: var(--yellow);
}

.dim-date { grid-column: 2; grid-row: 1; }
.dim-product { grid-column: 3; grid-row: 2; }
.dim-customer { grid-column: 2; grid-row: 3; }
.dim-store { grid-column: 1; grid-row: 2; }

.star-connector {
    position: absolute;
    z-index: 1;
    width: 1px;
    height: 39%;
    background: var(--coral);
    transform-origin: center;
}

.connector-one { transform: translateY(-35%) rotate(0deg); }
.connector-two { transform: translateX(58%) rotate(90deg); }
.connector-three { transform: translateY(35%) rotate(0deg); }
.connector-four { transform: translateX(-58%) rotate(90deg); }

.performance {
    color: var(--white);
    background: var(--ink-soft);
}

.section-heading-light .section-number {
    color: var(--yellow);
}

.section-heading-light > p:last-child {
    color: #aeb9bd;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.performance-item {
    position: relative;
    min-height: 390px;
    padding: 34px clamp(20px, 3vw, 40px) 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.performance-item:last-child {
    border-right: 0;
}

.performance-item::before {
    position: absolute;
    top: -4px;
    left: 0;
    width: 70px;
    height: 7px;
    background: var(--teal);
    content: "";
}

.performance-item.coral::before { background: var(--coral); }
.performance-item.yellow::before { background: var(--yellow); }

.performance-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.performance-title > span {
    order: 2;
    color: #7d8b91;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.74rem;
}

.performance-summary {
    min-height: 78px;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.08rem;
    font-weight: 700;
}

.performance-item > p:not(.performance-summary) {
    color: #aeb9bd;
    font-size: 0.88rem;
}

.performance-item code {
    margin-top: 32px;
    color: var(--ink);
    background: var(--teal);
}

.performance-item.coral code { background: var(--coral); }
.performance-item.yellow code { background: var(--yellow); }

.reporting {
    background: #e9f1ed;
}

.reporting-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.2fr);
    align-items: stretch;
    gap: clamp(36px, 6vw, 90px);
}

.reporting-tools {
    border-top: 1px solid var(--ink);
}

.reporting-tool {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    min-height: 112px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.reporting-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.reporting-mark.yellow { color: var(--ink); background: var(--yellow); }
.reporting-mark.blue { background: var(--blue); }
.reporting-mark.coral { background: var(--coral); }
.reporting-mark.teal { background: var(--teal-dark); }

.reporting-tool h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.reporting-tool p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.report-workbench {
    min-width: 0;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 12px 12px 0 var(--teal);
}

.workbench-bar {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 16px;
    color: #aeb9bd;
    background: var(--ink);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 700;
}

.workbench-bar span:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.workbench-bar i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--teal);
}

.workbench-bar span:last-child {
    color: var(--yellow);
}

.workbench-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
    grid-template-rows: auto 1fr;
    min-height: 390px;
    padding: 24px;
}

.workbench-kpis {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workbench-kpis div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 15px 14px;
    border-right: 1px solid var(--line);
}

.workbench-kpis div:first-child { padding-left: 0; }
.workbench-kpis div:last-child { border-right: 0; }

.workbench-kpis small,
.chart-head small {
    color: var(--muted);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.58rem;
    font-weight: 700;
}

.workbench-kpis strong {
    margin: 2px 0;
    font-size: 1.35rem;
}

.workbench-kpis span {
    color: var(--teal-dark);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 800;
}

.report-chart {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px 24px 4px 0;
    border-right: 1px solid var(--line);
}

.chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.chart-bars {
    display: flex;
    min-height: 190px;
    flex: 1;
    align-items: end;
    justify-content: space-between;
    gap: 7px;
    padding-top: 22px;
    border-bottom: 1px solid var(--ink);
    background-image: linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 100% 25%;
}

.chart-bars i {
    width: min(26px, 10%);
    height: var(--bar-height);
    background: var(--blue);
}

.chart-bars i:nth-child(5),
.chart-bars i:nth-child(6) {
    background: var(--teal);
}

.chart-bars i:last-child {
    background: var(--coral);
}

.report-table {
    align-self: stretch;
    padding: 26px 0 0 22px;
}

.report-row {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr;
    gap: 8px;
    align-items: center;
    min-height: 45px;
    border-bottom: 1px solid var(--line);
    font-size: 0.66rem;
}

.report-row-head {
    min-height: 30px;
    color: var(--muted);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.56rem;
    text-transform: uppercase;
}

.report-row i {
    color: var(--teal-dark);
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 800;
}

.report-row:last-child i {
    color: var(--coral);
}

.workbench-query {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    background: #f1f3ef;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
}

.workbench-query span {
    color: var(--coral);
    font-weight: 800;
}

.workbench-query code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
}

.reporting-principle {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(300px, 1.2fr);
    gap: clamp(36px, 6vw, 90px);
    margin: 52px 0 0 calc(40% + clamp(36px, 6vw, 90px));
    padding-top: 18px;
    border-top: 1px solid var(--ink);
    color: var(--muted);
    font-size: 0.84rem;
}

.reporting-principle span {
    color: var(--ink);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-practice {
    color: var(--white);
    background: var(--blue);
}

.ai-balance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.ai-side {
    min-height: 420px;
    padding: 36px clamp(24px, 4vw, 56px) 30px 0;
}

.ai-side + .ai-side {
    padding-right: 0;
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.ai-side-heading {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.ai-side-heading > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 800;
}

.ai-dangers .ai-side-heading > span {
    color: var(--white);
    background: var(--coral);
}

.ai-side-heading small,
.ai-thesis > span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-side h3 {
    max-width: 420px;
    margin-bottom: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.ai-side ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-side li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    min-height: 54px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
}

.ai-side li b {
    color: var(--yellow);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
}

.ai-dangers li b {
    color: #ffb5aa;
}

.ai-guardrail {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(520px, 1.3fr);
    margin-top: 48px;
    color: var(--ink);
    background: var(--yellow);
}

.ai-thesis {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    padding: 34px clamp(24px, 4vw, 50px);
    border-right: 1px solid rgba(16, 24, 32, 0.28);
}

.ai-thesis > span {
    color: var(--coral);
}

.ai-thesis p {
    margin-bottom: 0;
    font-size: 1.7rem;
    line-height: 1.12;
}

.ai-thesis strong {
    font-weight: 800;
}

.ai-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-flow li {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 28px 18px;
    border-right: 1px solid rgba(16, 24, 32, 0.18);
}

.ai-flow li:last-child {
    border-right: 0;
}

.ai-flow b {
    margin-bottom: 18px;
    color: var(--coral);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.64rem;
}

.ai-flow span {
    margin-bottom: 5px;
    font-size: 0.92rem;
    font-weight: 800;
}

.ai-flow small {
    color: rgba(16, 24, 32, 0.68);
    font-size: 0.67rem;
}

.profile {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1fr) minmax(250px, 0.75fr);
    align-items: center;
    gap: clamp(32px, 6vw, 90px);
    background: var(--white);
}

.profile-portrait {
    position: relative;
    display: block;
    width: min(280px, 100%);
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--ink);
    background: var(--blue);
    box-shadow: 14px 14px 0 var(--yellow);
    cursor: pointer;
    isolation: isolate;
}

.profile-portrait::before,
.profile-portrait::after {
    position: absolute;
    z-index: 5;
    width: 14px;
    height: 14px;
    background: var(--coral);
    content: "";
}

.profile-portrait::before { top: 14px; right: 14px; }
.profile-portrait::after { bottom: 14px; left: 14px; border-radius: 50%; }

.profile-portrait > img,
.portrait-doodle,
.portrait-doodle img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.profile-portrait img {
    object-fit: cover;
}

.portrait-photo {
    z-index: 0;
}

.portrait-doodle {
    z-index: 1;
    background: var(--white);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 680ms cubic-bezier(0.65, 0, 0.2, 1);
}

.profile-portrait:not(.suppress-preview):hover .portrait-doodle,
.profile-portrait.is-doodle .portrait-doodle {
    clip-path: inset(0);
}

.portrait-scan {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    opacity: 0;
    background: var(--teal);
    box-shadow: 0 0 16px 4px rgba(0, 168, 150, 0.42);
    pointer-events: none;
}

.profile-portrait:not(.suppress-preview):hover .portrait-scan,
.profile-portrait.is-doodle .portrait-scan {
    animation: portrait-scan 680ms cubic-bezier(0.65, 0, 0.2, 1) both;
}

.portrait-modes {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 12px;
    display: flex;
    gap: 1px;
    padding: 3px;
    color: var(--white);
    background: rgba(16, 24, 32, 0.9);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.54rem;
    text-transform: uppercase;
}

.portrait-modes b {
    padding: 5px 7px;
    opacity: 0.5;
}

.portrait-modes b:first-child,
.profile-portrait:not(.suppress-preview):hover .portrait-modes b:last-child,
.profile-portrait.is-doodle .portrait-modes b:last-child {
    color: var(--ink);
    opacity: 1;
    background: var(--yellow);
}

.profile-portrait:not(.suppress-preview):hover .portrait-modes b:first-child,
.profile-portrait.is-doodle .portrait-modes b:first-child {
    color: var(--white);
    opacity: 0.5;
    background: transparent;
}

.profile-portrait:focus-visible {
    outline: 4px solid var(--teal);
    outline-offset: 5px;
}

@keyframes portrait-scan {
    0% { left: 0; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: calc(100% - 2px); opacity: 0; }
}

.profile-copy .section-number {
    margin-bottom: 18px;
}

.profile-copy h2 {
    margin-bottom: 28px;
    font-size: 4rem;
}

.profile-copy > p:not(.section-number) {
    margin-bottom: 28px;
    color: var(--muted);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
    color: var(--ink);
    background: var(--yellow);
}

.principles {
    margin: 0;
    border-top: 1px solid var(--line);
}

.principles div {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.principles dt {
    margin-bottom: 4px;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.principles dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(24px, 7vw, 112px);
    color: #aeb9bd;
    background: var(--ink);
    font-size: 0.75rem;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 144px;
    }

    h1 {
        font-size: 5.5rem;
    }

    h2 {
        font-size: 4rem;
    }

    .query-line {
        right: 7vw;
        bottom: 166px;
        width: 42vw;
    }

    .section-heading {
        grid-template-columns: 0.35fr 1fr;
    }

    .section-heading > p:last-child {
        grid-column: 2;
    }

    .model-star {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 30px;
    }

    .profile {
        grid-template-columns: minmax(180px, 0.55fr) 1fr;
    }

    .reporting-layout {
        grid-template-columns: minmax(250px, 0.7fr) minmax(430px, 1.3fr);
        gap: 38px;
    }

    .reporting-principle {
        margin-left: calc(35% + 38px);
    }

    .ai-guardrail {
        grid-template-columns: minmax(220px, 0.6fr) minmax(470px, 1.4fr);
    }

    .ai-flow li {
        padding-right: 13px;
        padding-left: 13px;
    }

    .principles {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 18px 20px;
    }

    .wordmark small,
    .contact-link {
        font-size: 0.68rem;
    }

    .hero {
        min-height: 690px;
        min-width: 0;
        padding: 130px 20px 32px;
    }

    .hero-content,
    .query-line,
    .hero-facts {
        min-width: 0;
        max-width: 100%;
    }

    .hero::before {
        top: 30%;
        right: -33%;
        width: 86vw;
    }

    .hero::after {
        top: 39%;
        right: -18%;
        width: 56vw;
    }

    h1 {
        font-size: 3.65rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .query-line {
        position: relative;
        right: auto;
        bottom: auto;
        grid-column: 1;
        width: 100%;
        margin-top: 42px;
    }

    .hero-facts {
        margin-top: 34px;
    }

    .hero-facts div {
        display: block;
        padding-top: 16px;
    }

    .hero-facts dt {
        font-size: 1.5rem;
    }

    .hero-facts dd {
        max-width: 90px;
        font-size: 0.6rem;
    }

    .skill-ribbon {
        display: block;
    }

    .ribbon-label {
        min-height: 40px;
    }

    .skill-ribbon ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        padding: 18px 20px;
    }

    .section {
        padding: 78px 20px;
    }

    .section-heading {
        display: block;
        margin-bottom: 40px;
    }

    .section-heading h2 {
        margin-bottom: 22px;
        font-size: 3rem;
    }

    .model-grid,
    .performance-grid,
    .reporting-layout,
    .profile {
        grid-template-columns: 1fr;
    }

    .reporting-layout {
        gap: 42px;
    }

    .report-workbench {
        box-shadow: 8px 8px 0 var(--teal);
    }

    .reporting-principle {
        display: block;
        margin: 42px 0 0;
    }

    .reporting-principle span {
        display: block;
        margin-bottom: 8px;
    }

    .ai-balance,
    .ai-guardrail {
        grid-template-columns: 1fr;
    }

    .ai-side {
        min-height: 0;
        padding: 32px 0 30px;
    }

    .ai-side + .ai-side {
        padding: 32px 0 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.34);
        border-left: 0;
    }

    .ai-thesis {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid rgba(16, 24, 32, 0.28);
    }

    .ai-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-flow li {
        min-height: 150px;
        border-bottom: 1px solid rgba(16, 24, 32, 0.18);
    }

    .ai-flow li:nth-child(2) {
        border-right: 0;
    }

    .ai-flow li:nth-child(3),
    .ai-flow li:nth-child(4) {
        border-bottom: 0;
    }

    .model-card {
        min-height: 400px;
        padding: 24px 20px;
    }

    .model-star {
        display: block;
    }

    .star-copy {
        min-height: 250px;
    }

    .star-diagram {
        min-height: 330px;
    }

    .performance-item {
        min-height: 0;
        padding: 34px 0 38px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .performance-item:last-child {
        border-bottom: 0;
    }

    .performance-summary {
        min-height: 0;
    }

    .profile {
        gap: 54px;
    }

    .profile-portrait {
        width: min(260px, calc(100% - 16px));
    }

    .profile-copy h2 {
        font-size: 3rem;
    }

    .principles {
        grid-column: 1;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .contact-link {
        max-width: 76px;
        text-align: right;
    }

    h1 {
        font-size: 3.2rem;
    }

    .workbench-stage {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .workbench-kpis strong {
        font-size: 1.05rem;
    }

    .report-chart {
        padding-right: 0;
        border-right: 0;
    }

    .report-table {
        padding: 24px 0 0;
    }

    .ai-flow {
        grid-template-columns: 1fr;
    }

    .ai-flow li {
        min-height: 112px;
        border-right: 0;
        border-bottom: 1px solid rgba(16, 24, 32, 0.18);
    }

    .ai-flow li:nth-child(3) {
        border-bottom: 1px solid rgba(16, 24, 32, 0.18);
    }

    .diagram-pair {
        grid-template-columns: minmax(88px, 1fr) minmax(48px, 0.45fr) minmax(88px, 1fr);
    }

    .diagram-trio,
    .poly-diagram {
        margin-right: -9px;
        margin-left: -9px;
    }

    .table-node strong {
        font-size: 0.66rem;
    }

    .table-node span {
        font-size: 0.58rem;
    }

    .rule {
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .data-particles {
        opacity: 0.72;
    }
}

.contact {
    --signal-stage: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr);
    gap: clamp(52px, 8vw, 128px);
    overflow: hidden;
    color: var(--white);
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.contact::before {
    position: absolute;
    top: 0;
    left: clamp(24px, 7vw, 112px);
    width: 86px;
    height: 6px;
    background: var(--coral);
    content: "";
}

.contact-intro,
.contact-form {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.contact .section-number {
    margin-bottom: 20px;
    color: var(--yellow);
}

.contact h2 {
    margin: 0 0 26px;
    max-width: 660px;
    font-size: clamp(3.2rem, 4.8vw, 5rem);
    line-height: 0.94;
}

.contact-intro > p:not(.section-number) {
    max-width: 540px;
    margin: 0;
    color: #b9c4c8;
    font-size: 1rem;
}

.contact-signal {
    margin-top: 54px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(16, 24, 32, 0.78);
}

.signal-header,
.signal-query {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
    padding: 0 14px;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
}

.signal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #aeb9bd;
}

.signal-state {
    color: var(--yellow);
    font-weight: 800;
}

.signal-state i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: currentColor;
}

.signal-track {
    position: relative;
    display: grid;
    min-height: 126px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    padding: 18px 10px 14px;
}

.signal-line {
    position: absolute;
    top: 51px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: rgba(255, 255, 255, 0.23);
}

.signal-line::after {
    display: block;
    width: calc(var(--signal-stage) * 33.333%);
    height: 3px;
    background: var(--teal);
    box-shadow: 0 0 15px rgba(0, 168, 150, 0.7);
    content: "";
    transition: width 320ms ease;
}

.signal-packet {
    position: absolute;
    z-index: 3;
    top: 44px;
    left: calc(12.5% - 7px);
    width: 15px;
    height: 15px;
    border: 2px solid var(--yellow);
    background: var(--ink);
    box-shadow: 0 0 0 4px rgba(247, 201, 72, 0.13);
    transform: rotate(45deg);
}

.signal-node {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    justify-content: space-between;
    color: #718087;
    text-align: center;
    transition: color 220ms ease;
}

.signal-node i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--ink);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.54rem;
    font-style: normal;
}

.signal-node b {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.signal-node.is-active {
    color: var(--white);
}

.signal-node.is-active i {
    border-color: var(--teal);
    color: var(--ink);
    background: var(--teal);
}

.signal-query {
    justify-content: flex-start;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.signal-query span {
    color: var(--teal);
    font-weight: 800;
}

.signal-query code {
    overflow: hidden;
    color: #aeb9bd;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-form {
    align-self: start;
    padding: clamp(28px, 4vw, 52px);
    color: var(--ink);
    background: var(--white);
    box-shadow: 14px 14px 0 var(--yellow);
}

.contact-form::before {
    display: block;
    width: 56px;
    height: 5px;
    margin-bottom: 30px;
    background: var(--teal);
    content: "";
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-topics {
    display: grid;
    margin: 0 0 34px;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
}

.contact-topics legend {
    width: 100%;
    margin-bottom: 11px;
    color: var(--muted);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-topics label {
    min-width: 0;
    cursor: pointer;
}

.contact-topics input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-topics span {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-right: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.contact-topics label:last-child span {
    border-right: 1px solid var(--line);
}

.contact-topics input:checked + span {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

.contact-topics input:focus-visible + span {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-field {
    position: relative;
    display: block;
    min-width: 0;
}

.contact-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--ink);
    border-radius: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

.contact-field input {
    height: 46px;
}

.contact-field textarea {
    min-height: 144px;
    padding: 12px 42px 12px 0;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #97a1a5;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 2px 0 var(--teal);
}

.contact-message {
    margin-top: 28px;
}

.contact-message small {
    position: absolute;
    right: 0;
    bottom: 12px;
    color: var(--muted);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.58rem;
}

.turnstile-check {
    min-height: 0;
    margin-top: 24px;
}

.turnstile-check .cf-turnstile {
    width: 100%;
}

.turnstile-check iframe {
    max-width: 100%;
}

.contact-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
}

.contact-submit {
    display: inline-flex;
    min-width: 210px;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 18px;
    border: 0;
    color: var(--white);
    background: var(--teal-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    color: var(--ink);
    background: var(--yellow);
}

.contact-submit:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.82;
}

.contact-submit i {
    font-size: 1.05rem;
    font-style: normal;
}

.contact-submit-row p {
    max-width: 145px;
    margin: 0;
    color: var(--muted);
    font-size: 0.66rem;
}

.contact-result {
    min-height: 24px;
    margin: 18px 0 -12px;
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.contact.is-sending .signal-packet {
    animation: transmit-packet 1.2s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.contact.is-sending .signal-state i {
    animation: signal-blink 600ms ease-in-out infinite alternate;
}

.contact.is-sending .contact-submit i {
    animation: submit-arrow 700ms ease-in-out infinite;
}

.contact.is-sent .signal-packet {
    left: calc(87.5% - 7px);
    border-color: var(--white);
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(0, 168, 150, 0.18), 0 0 24px rgba(0, 168, 150, 0.85);
}

.contact.is-sent .signal-packet::before,
.contact.is-sent .signal-packet::after {
    --burst-rotation: 0deg;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 1px;
    background: var(--yellow);
    content: "";
    animation: delivery-burst 700ms ease-out both;
}

.contact.is-sent .signal-packet::after {
    --burst-rotation: 90deg;
}

.contact.is-sent .signal-state,
.contact.is-sent .contact-result {
    color: var(--teal);
}

.contact.is-sent .contact-submit {
    color: var(--ink);
    background: var(--yellow);
}

.contact.is-error .signal-state,
.contact.is-error .contact-result {
    color: var(--coral);
}

.contact.is-error .contact-form::before {
    background: var(--coral);
}

@keyframes transmit-packet {
    0% { left: calc(12.5% - 7px); }
    28% { left: calc(37.5% - 7px); }
    60% { left: calc(62.5% - 7px); }
    100% { left: calc(87.5% - 7px); }
}

@keyframes signal-blink {
    to { opacity: 0.35; }
}

@keyframes submit-arrow {
    50% { transform: translateX(5px); }
}

@keyframes delivery-burst {
    from { opacity: 0.9; transform: translate(-50%, -50%) rotate(var(--burst-rotation)) scale(0.25); }
    to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--burst-rotation)) scale(1.2); }
}

@media (max-width: 980px) {
    .contact {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        display: grid;
        grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
        column-gap: 44px;
    }

    .contact-intro .section-number,
    .contact-intro h2,
    .contact-intro > p {
        grid-column: 1;
    }

    .contact-signal {
        grid-row: 1 / span 3;
        grid-column: 2;
        align-self: end;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .contact {
        gap: 48px;
    }

    .contact-intro {
        display: block;
    }

    .contact h2 {
        font-size: 3.3rem;
    }

    .contact-signal {
        margin-top: 38px;
    }

    .contact-form {
        margin-right: 8px;
        padding: 28px 20px;
        box-shadow: 8px 8px 0 var(--yellow);
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-submit-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-submit-row p {
        max-width: none;
    }
}

@media (max-width: 420px) {
    .contact-topics {
        grid-template-columns: 1fr;
    }

    .contact-topics span,
    .contact-topics label:last-child span {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .contact-topics label:last-child span {
        border-bottom: 1px solid var(--line);
    }

    .signal-query code {
        max-width: 245px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact.is-sending .signal-packet,
    .contact.is-sending .signal-state i,
    .contact.is-sending .contact-submit i,
    .contact.is-sent .signal-packet::before,
    .contact.is-sent .signal-packet::after {
        animation: none;
    }

    .signal-line::after,
    .signal-node {
        transition: none;
    }

    .portrait-doodle {
        transition: none;
    }

    .profile-portrait:not(.suppress-preview):hover .portrait-scan,
    .profile-portrait.is-doodle .portrait-scan {
        animation: none;
    }
}
