@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ink: #172130;
    --ink-soft: #596575;
    --paper: #faeae1;
    --surface: #fffaf7;
    --surface-soft: #f8eee9;
    --blue: #3457d5;
    --blue-dark: #233ea1;
    --coral: #df6c55;
    --green: #2c9a75;
    --line: #eadbd4;
    --line-strong: #d8c4bb;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Manrope', 'Segoe UI', sans-serif;
    --shadow: 0 22px 60px rgba(23, 33, 48, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
}

button,
a {
    color: inherit;
    font: inherit;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.025em;
}

.app-frame {
    min-height: 100vh;
}

.portfolio-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0 clamp(20px, 5vw, 72px);
    background: var(--paper);
    box-shadow: none;
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 2px solid var(--ink);
}

.social-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.social-banner a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.social-banner svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.social-banner a:hover,
.social-banner a:focus-visible {
    color: #fff;
    background: var(--blue);
    transform: translateY(-2px);
}

.newspaper-home {
    border-top: 1px solid var(--ink);
}

.newspaper-ribbon {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink);
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.newspaper-ribbon strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: none;
}

.newspaper-ribbon span:last-child {
    text-align: right;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.04em;
    box-shadow: 0 8px 20px rgba(52, 87, 213, .24);
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand-copy small {
    margin-top: 1px;
    color: var(--ink-soft);
    font-size: 10px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
    font-size: 12px;
    font-weight: 600;
}

.site-nav a {
    text-decoration: none;
}

.site-nav > a:not(.nav-cv-link) {
    transition: color .2s ease;
}

.site-nav > a:not(.nav-cv-link):hover {
    color: var(--blue);
}

.nav-cv-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

.nav-cv-link:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(50px, 8vw, 120px);
    min-height: 650px;
    align-items: center;
    padding: clamp(72px, 8vw, 118px) 0;
}

.hero-copy {
    max-width: 800px;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(44, 154, 117, .12);
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 28px;
    font-size: clamp(50px, 6vw, 84px);
    line-height: .98;
}

.hero-lede {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: #fff;
    background: var(--blue);
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary {
    border-color: var(--line-strong);
    background: var(--surface);
}

.button-secondary:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}

.hero-proof span,
.project-tags span {
    padding: 6px 10px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.capability-card {
    padding: clamp(26px, 3vw, 38px);
    color: #fff;
    background:
        radial-gradient(circle at 90% 5%, rgba(83, 115, 234, .6), transparent 30%),
        var(--ink);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.capability-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.capability-card .eyebrow {
    color: #aebdff;
}

.capability-number {
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
}

.capability-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 15px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.capability-item > span {
    color: #8ea3f4;
    font-size: 10px;
    font-weight: 700;
}

.capability-item h2 {
    margin-bottom: 7px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.capability-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
    line-height: 1.7;
}

.work-section {
    padding: clamp(70px, 8vw, 112px) clamp(20px, 4vw, 60px);
    background: var(--paper);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .6fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 46px;
}

.section-heading h2,
.cv-section h2,
.project-highlights h2 {
    margin-bottom: 0;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.03;
}

.section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

.section-heading-action > p {
    max-width: 470px;
    margin-bottom: 17px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

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

.project-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.project-card:hover {
    border-color: #b8c2d0;
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.project-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e7e9ec;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.025);
}

.project-image-pick-me-up {
    object-position: center 30%;
}

.project-image-food-template {
    object-position: center;
}

.project-image-walnut-lakes {
    object-position: center 44%;
}

.project-view {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    color: #fff;
    background: rgba(23, 33, 48, .88);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.project-card:hover .project-view,
.project-card:focus-visible .project-view {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 25px 27px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-meta span:last-child {
    color: var(--ink-soft);
    text-align: right;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.1;
}

.project-info > p {
    flex: 1;
    margin-bottom: 19px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.university-preview {
    padding: clamp(86px, 10vw, 142px) clamp(20px, 4vw, 60px);
    border-bottom: 1px solid var(--line-strong);
}

.services-section {
    padding: clamp(86px, 10vw, 142px) clamp(20px, 4vw, 60px);
    background: #f9e9df;
    border-bottom: 1px solid var(--ink);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--ink);
    border: 1px solid var(--ink);
}

.service-card {
    position: relative;
    display: flex;
    min-height: 345px;
    flex-direction: column;
    padding: clamp(25px, 3vw, 38px);
    background: #fffaf6;
}

.service-card-soon {
    background: #f3ddd1;
}

.service-number {
    position: absolute;
    top: 25px;
    right: 29px;
    color: var(--coral);
    font-family: var(--serif);
    font-size: 24px;
}

.service-card .eyebrow {
    margin-bottom: 21px;
}

.service-card h3 {
    margin-bottom: 13px;
    font-size: clamp(30px, 3vw, 43px);
    line-height: .98;
}

.service-card > p:not(.eyebrow) {
    flex: 1;
    max-width: 360px;
    margin-bottom: 25px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
}

.service-price {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
}

.service-note {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.university-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.university-preview-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.university-preview-card:hover {
    border-color: #b8c2d0;
    box-shadow: 0 16px 40px rgba(23, 33, 48, .09);
    transform: translateY(-5px);
}

.university-preview-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f5;
    border-bottom: 1px solid var(--line);
}

.university-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.university-preview-card:hover .university-preview-image img {
    transform: scale(1.025);
}

.university-preview-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 21px;
}

.university-preview-copy .project-meta {
    align-items: flex-start;
    margin-bottom: 11px;
}

.university-preview-copy .project-meta span:last-child {
    max-width: 70%;
}

.university-preview-copy h3 {
    margin-bottom: 9px;
    font-size: 23px;
    line-height: 1.1;
}

.university-preview-copy > p {
    flex: 1;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
}

.card-link b {
    font-size: 14px;
    font-weight: 400;
    transition: transform .2s ease;
}

.university-preview-card:hover .card-link b {
    transform: translateX(4px);
}

.cv-section {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
    margin: clamp(70px, 9vw, 128px) 0;
    padding: clamp(38px, 5vw, 68px);
    color: #fff;
    background: var(--blue);
    border-radius: 30px;
}

.cv-section .eyebrow {
    color: #c7d1ff;
}

.cv-copy > p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.8;
}

.cv-section .button-primary {
    color: var(--ink);
    background: #fff;
}

.cv-section .button-primary:hover {
    color: var(--blue);
    background: #f2f4ff;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 31px 0 34px;
    border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    margin-bottom: 4px;
    font-size: 12px;
}

.site-footer span,
.site-footer small {
    color: var(--ink-soft);
    font-size: 10px;
}

.site-footer small {
    grid-column: 1 / -1;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--blue);
}

/* University archive */

.university-hero {
    padding: 44px 0 clamp(70px, 9vw, 126px);
}

.university-hero .back-link {
    margin-bottom: clamp(54px, 8vw, 92px);
}

.university-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .7fr);
    gap: clamp(50px, 9vw, 140px);
    align-items: end;
}

.university-hero h1 {
    max-width: 850px;
    margin-bottom: 0;
    font-size: clamp(58px, 8vw, 112px);
    line-height: .91;
}

.university-hero-copy > p {
    margin-bottom: 33px;
    color: var(--ink-soft);
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.8;
}

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

.degree-facts > div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.degree-facts dt,
.university-facts dt {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.degree-facts dd {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
}

.university-index {
    margin-bottom: clamp(80px, 11vw, 154px);
    padding: clamp(28px, 4vw, 44px);
    color: #fff;
    background: var(--ink);
    border-radius: 26px;
}

.university-index .eyebrow {
    color: #aebdff;
}

.university-index ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.university-index li {
    min-width: 0;
}

.university-index a {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 14px 0;
    color: rgba(255, 255, 255, .78);
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.university-index a:hover {
    padding-left: 5px;
    color: #fff;
}

.university-index a span {
    color: #8ea3f4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

.university-case {
    scroll-margin-top: 28px;
    padding: 0 0 clamp(96px, 12vw, 170px);
}

.university-case + .university-case {
    padding-top: clamp(90px, 11vw, 154px);
    border-top: 1px solid var(--line);
}

.university-case-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .65fr);
    gap: 16px clamp(40px, 8vw, 120px);
    align-items: end;
    margin-bottom: 42px;
}

.university-case-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.university-case-meta span + span::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    margin: 0 13px 3px 0;
    background: var(--line-strong);
}

.university-case-heading h2 {
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    line-height: .95;
}

.university-case-heading > p {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.university-case-image {
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #eef1f5;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.university-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.university-case-body {
    display: grid;
    grid-template-columns: minmax(250px, .52fr) minmax(0, 1.35fr);
    gap: clamp(50px, 9vw, 145px);
    padding-top: clamp(48px, 7vw, 86px);
}

.university-facts {
    align-self: start;
    padding: 26px;
    background: var(--paper);
    border-radius: 22px;
}

.university-facts dl {
    margin: 0 0 20px;
}

.university-facts dl > div {
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.university-facts dd {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.university-facts dd a {
    color: var(--blue);
    text-decoration: none;
}

.university-facts dd a:hover {
    text-decoration: underline;
}

.university-story {
    max-width: 820px;
}

.university-story-lede {
    margin-bottom: clamp(42px, 6vw, 70px);
    font-family: var(--serif);
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.33;
    letter-spacing: -.018em;
}

.university-outcomes {
    display: grid;
    grid-template-columns: minmax(140px, .45fr) minmax(0, 1fr);
    gap: clamp(25px, 5vw, 70px);
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.university-outcomes h3 {
    margin: 0;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.university-outcomes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.university-outcomes li {
    position: relative;
    padding: 0 0 15px 22px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.65;
}

.university-outcomes li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--coral);
    border-radius: 50%;
}

.university-closing {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: clamp(45px, 8vw, 120px);
    align-items: center;
    margin-bottom: clamp(74px, 10vw, 130px);
    padding: clamp(40px, 6vw, 76px);
    color: #fff;
    background: var(--blue);
    border-radius: 30px;
}

.university-closing .eyebrow {
    color: #c7d1ff;
}

.university-closing h2 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.03;
}

.university-closing > div:last-child > p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    line-height: 1.8;
}

.university-closing .button-primary {
    color: var(--ink);
    background: #fff;
}

.university-closing .button-primary:hover {
    color: var(--blue);
}

/* Interactive project lab */

.games-page {
    background: #f2efe7;
}

.games-hero {
    max-width: 920px;
    padding: 44px 0 clamp(64px, 9vw, 118px);
}

.games-hero .back-link {
    margin-bottom: clamp(52px, 8vw, 86px);
}

.games-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(70px, 10vw, 142px);
    line-height: .86;
}

.games-hero > p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.8;
}

.play-lab {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 clamp(0px, 2vw, 28px);
}

.game-panel {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(23, 33, 48, .09);
}

.game-panel-heading {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(25px, 3vw, 38px);
    border-bottom: 1px solid var(--ink);
}

.game-panel-heading .eyebrow {
    margin-bottom: 15px;
}

.game-panel-heading h2 {
    margin-bottom: 13px;
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: .98;
}

.game-panel-heading p:last-child {
    max-width: 550px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
}

.game-stat-pair,
.race-score {
    display: flex;
    align-items: end;
    gap: 28px;
}

.game-stat-pair > div {
    display: grid;
    grid-template-columns: 10px auto;
    gap: 5px 8px;
    align-items: center;
}

.game-stat-pair strong,
.race-score strong {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.game-stat-pair small,
.race-score small {
    grid-column: 2;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-grid-plans .service-card {
    min-height: 520px;
}

.service-grid-plans .service-card > p:not(.eyebrow) {
    flex: 0;
    margin-bottom: 18px;
}

.service-plans {
    display: grid;
    gap: 0;
    margin-top: auto;
}

.service-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.service-plan strong,
.service-plan b {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
}

.service-plan b {
    color: var(--blue);
    text-align: right;
    white-space: nowrap;
}

.service-plan span {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.45;
}

.service-card-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.service-card-soon .service-card-heading-row {
    padding-right: 58px;
}

.service-coming-soon {
    color: var(--coral);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-dot {
    grid-row: 1 / span 2;
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.stat-dot-ladybird { background: #df554c; }
.stat-dot-greenfly { background: #70af4f; }

.ladybird-stage {
    position: relative;
    display: grid;
    min-height: 425px;
    place-items: center;
    padding: clamp(25px, 4vw, 52px);
    background: #e8f0e4;
}

.insect-grid {
    display: grid;
    width: min(100%, 410px);
    aspect-ratio: 1;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    padding: 9px;
    background: #cfdfc8;
    border: 1px solid #a7c099;
    border-radius: 8px;
}

.insect-cell {
    min-width: 0;
    min-height: 0;
    background: rgba(255, 255, 255, .23);
    border-radius: 2px;
}

.insect-cell.cell-ladybird {
    position: relative;
    background: #df554c;
    border-radius: 50%;
    box-shadow: inset 0 -2px 0 rgba(125, 28, 28, .22);
}

.insect-cell.cell-greenfly {
    background: #70af4f;
    border-radius: 50%;
    box-shadow: inset 0 -2px 0 rgba(39, 94, 30, .2);
}

.simulation-overlay {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    gap: 11px;
    padding: 9px 12px;
    color: #fff;
    background: rgba(23, 33, 48, .88);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.simulation-overlay span + span {
    color: #b5d8c8;
}

.game-controls {
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(22px, 3vw, 36px);
    background: #fff;
}

.control-copy {
    display: grid;
    gap: 4px;
}

.control-copy strong {
    font-size: 11px;
}

.control-copy span {
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.5;
}

.control-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 7px;
}

.game-button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.game-button:hover,
.game-button:focus-visible {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.game-button-primary {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.race-score {
    align-items: baseline;
    gap: 9px;
}

.race-score span,
.race-score small {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.race-score small {
    letter-spacing: 0;
}

.race-stage {
    position: relative;
    min-height: 425px;
    padding: 29px;
    outline: none;
    background: #dce8db;
}

.race-stage:focus-visible {
    box-shadow: inset 0 0 0 4px var(--blue);
}

.race-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 367px;
    overflow: hidden;
    background: #555c65;
    border: 10px solid #555c65;
    border-radius: 47% 53% 45% 54% / 50% 46% 54% 49%;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
}

.race-track-inner {
    position: absolute;
    inset: 24% 21%;
    background: #dce8db;
    border-radius: 47% 53% 45% 54% / 50% 46% 54% 49%;
}

.race-line {
    position: absolute;
    display: block;
    background: rgba(255,255,255,.8);
}

.race-line-one { top: 0; bottom: 73%; left: 27%; width: 2px; }
.race-line-two { top: 73%; bottom: 0; right: 27%; width: 2px; }
.race-line-three { top: 20%; left: 0; width: 24%; height: 2px; }
.race-line-four { right: 0; bottom: 20%; width: 24%; height: 2px; }

.race-finish {
    position: absolute;
    top: 7%;
    left: 27%;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    writing-mode: vertical-rl;
}

.race-car {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 31px;
    height: 18px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(23,33,48,.25);
    transform: translate(-50%, -50%);
    transition: left .15s ease, top .15s ease;
}

.race-car-one { background: #df6c55; }
.race-car-two { background: var(--blue); }

.race-car span {
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.race-message {
    position: absolute;
    right: 42px;
    bottom: 42px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(23,33,48,.88);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.driving-controls {
    flex-wrap: wrap;
}

.driving-pad {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(2, 34px);
    gap: 3px;
}

.driving-pad .game-button {
    min-height: 34px;
    padding: 0;
}

.pad-up { grid-column: 2; }
.pad-left { grid-column: 1; grid-row: 2; }
.pad-down { grid-column: 2; grid-row: 2; }
.pad-right { grid-column: 3; grid-row: 2; }

.game-launch-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid var(--line-strong);
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.game-launch-link:hover {
    text-decoration: underline;
}

.play-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 clamp(74px, 10vw, 130px);
    padding: clamp(30px, 5vw, 58px);
    color: #fff;
    background: var(--ink);
}

.play-callout .eyebrow {
    color: #aebdff;
}

.play-callout h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 57px);
    line-height: .98;
}

.card-game-link {
    display: block;
    margin-top: 8px;
    color: var(--coral);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.games-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: end;
    margin: clamp(80px, 10vw, 140px) 0;
    padding: clamp(38px, 5vw, 66px);
    background: var(--paper);
    border: 1px solid var(--ink);
}

.games-footer h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
}

/* Customer enquiry and recruiter pages */

.quote-hero,
.recruiter-hero {
    padding: 44px 0 clamp(70px, 9vw, 126px);
}

.quote-hero .back-link,
.recruiter-hero .back-link {
    margin-bottom: clamp(54px, 8vw, 92px);
}

.quote-hero h1 {
    max-width: 900px;
    margin-bottom: 25px;
    font-size: clamp(60px, 8vw, 112px);
    line-height: .9;
}

.quote-hero > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.8;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: clamp(34px, 7vw, 110px);
    align-items: start;
    margin-bottom: clamp(80px, 11vw, 150px);
}

.quote-form {
    padding: clamp(27px, 4vw, 48px);
    background: #fffaf6;
    border: 1px solid var(--ink);
}

.form-intro {
    margin-bottom: 35px;
}

.form-intro h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 53px);
    line-height: .98;
}

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

.form-field {
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 700;
}

.form-field label span {
    color: var(--ink-soft);
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.form-field textarea {
    min-height: 155px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 87, 213, .12);
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: #ad4235;
    font-size: 10px;
}

.form-submit {
    margin-top: 29px;
    cursor: pointer;
}

.form-success {
    margin: 18px 0 0;
    padding: 12px 14px;
    color: #23684f;
    background: #e7f3ed;
    font-size: 11px;
}

.form-success a {
    color: inherit;
    font-weight: 700;
}

.quote-aside {
    position: sticky;
    top: 28px;
    padding: 27px;
    background: #f4ddd2;
    border-top: 4px solid var(--ink);
}

.quote-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid rgba(23, 33, 48, .28);
}

.quote-price-row span {
    color: var(--ink-soft);
    font-size: 11px;
}

.quote-price-row strong {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
}

.quote-aside-note {
    margin: 18px 0 23px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.75;
}

.recruiter-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr);
    gap: clamp(45px, 8vw, 120px);
    align-items: end;
}

.recruiter-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(58px, 7.5vw, 105px);
    line-height: .9;
}

.recruiter-hero-grid > div:last-child > p {
    margin-bottom: 25px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

.recruiter-content {
    display: grid;
    grid-template-columns: minmax(250px, .55fr) minmax(0, 1.3fr);
    gap: clamp(45px, 9vw, 140px);
    padding: clamp(52px, 7vw, 92px) 0;
    border-top: 1px solid var(--ink);
}

.recruiter-profile-card {
    align-self: start;
    padding: 27px;
    background: #f4ddd2;
}

.recruiter-profile-card dl {
    margin: 0;
}

.recruiter-profile-card dl > div {
    padding: 15px 0;
    border-top: 1px solid rgba(23, 33, 48, .25);
}

.recruiter-profile-card dt {
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.recruiter-profile-card dd {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.recruiter-story {
    max-width: 780px;
}

.recruiter-story h2 {
    margin-bottom: 22px;
    font-size: clamp(36px, 4.5vw, 61px);
    line-height: .98;
}

.recruiter-story > p:not(.eyebrow) {
    max-width: 700px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.9;
}

.recruiter-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 clamp(76px, 10vw, 132px);
    padding: clamp(38px, 5vw, 64px);
    color: #fff;
    background: var(--ink);
}

.recruiter-contact .eyebrow {
    color: #aebdff;
}

.recruiter-contact h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 58px);
    line-height: .98;
}

.recruiter-contact .button-primary {
    color: var(--ink);
    background: #fff;
}

/* Metadata roast agent */

.roast-page {
    background: #f2efe7;
}

.roast-hero {
    max-width: 1020px;
    padding: 44px 0 clamp(68px, 9vw, 120px);
}

.roast-hero .back-link {
    margin-bottom: clamp(52px, 8vw, 88px);
}

.roast-hero h1 {
    max-width: 980px;
    margin-bottom: 26px;
    font-size: clamp(54px, 7.5vw, 104px);
    line-height: .91;
}

.roast-hero > p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

.roast-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: clamp(32px, 7vw, 110px);
    align-items: start;
    margin-bottom: clamp(60px, 9vw, 120px);
}

.roast-window {
    overflow: hidden;
    color: #e9eefb;
    background: #111927;
    border: 1px solid #31415d;
    box-shadow: 12px 12px 0 rgba(23, 33, 48, .12);
}

.roast-window-bar {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 8px;
    padding: 0 17px;
    background: #1c2940;
    border-bottom: 1px solid #31415d;
    font-size: 10px;
}

.roast-window-bar strong {
    margin-left: 8px;
    color: #d7e0fa;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 500;
}

.agent-status {
    margin-left: auto;
    color: #86d4bb;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .08em;
}

.window-light {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.window-light-red { background: #df6c55; }
.window-light-yellow { background: #e5b35e; }
.window-light-green { background: #70c79d; }

.roast-window-body {
    padding: clamp(24px, 4vw, 44px);
}

.roast-window-body > label {
    display: block;
    margin-bottom: 10px;
    color: #aebdff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.roast-window textarea {
    display: block;
    width: 100%;
    min-height: 265px;
    padding: 18px;
    color: #d7e0fa;
    background: #0b121e;
    border: 1px solid #31415d;
    border-radius: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    line-height: 1.75;
    outline: none;
    resize: vertical;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.roast-window textarea::placeholder {
    color: #63728f;
}

.roast-window textarea:focus {
    border-color: #8ea3f4;
    box-shadow: 0 0 0 3px rgba(142, 163, 244, .16), 0 0 32px rgba(52, 87, 213, .18);
}

.roast-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 15px 0 24px;
}

.consent-check {
    display: flex;
    align-items: start;
    gap: 9px;
    color: #9eacc4;
    font-size: 10px;
    line-height: 1.5;
}

.consent-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #86d4bb;
}

.character-count {
    flex: 0 0 auto;
    color: #63728f;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
}

.roast-submit:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.roast-error {
    margin: 18px 0 0;
    padding: 12px 14px;
    color: #ffd3c9;
    background: rgba(223, 108, 85, .16);
    border-left: 3px solid #df6c55;
    font-size: 11px;
}

.roast-aside {
    padding: 27px;
    background: #f4ddd2;
    border-top: 4px solid var(--ink);
}

.agent-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agent-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(23, 33, 48, .25);
}

.agent-steps li > span {
    color: var(--coral);
    font-family: var(--serif);
    font-size: 20px;
}

.agent-steps strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.agent-steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.65;
}

.roast-privacy {
    margin: 17px 0 0;
    padding-top: 17px;
    border-top: 1px solid rgba(23, 33, 48, .25);
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.65;
}

.roast-result {
    margin-bottom: clamp(76px, 10vw, 130px);
    padding: clamp(28px, 5vw, 54px);
    color: #fff;
    background: var(--ink);
    border-left: 5px solid var(--coral);
}

.roast-result-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.roast-result-heading .eyebrow {
    margin: 0;
    color: #aebdff;
}

.roast-result-heading > span {
    color: #86d4bb;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .1em;
}

.roast-result-copy {
    max-width: 820px;
    padding-top: 26px;
    color: rgba(255, 255, 255, .84);
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.35;
    white-space: pre-wrap;
}

/* Project case studies */

.project-page .site-header {
    margin-bottom: 0;
}

.project-hero {
    padding: 44px 0 clamp(60px, 8vw, 110px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 68px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--blue);
}

.project-hero-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .7fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: end;
    margin-bottom: 48px;
}

.project-hero-heading h1 {
    margin-bottom: 0;
    font-size: clamp(58px, 8vw, 112px);
    line-height: .9;
}

.project-hero-heading > p {
    max-width: 540px;
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
}

.project-hero-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.project-hero-image .project-image {
    transition: none;
}

.project-story {
    display: grid;
    grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
    gap: clamp(45px, 9vw, 140px);
    padding: clamp(65px, 8vw, 110px) 0;
    border-top: 1px solid var(--line);
}

.project-facts {
    align-self: start;
    padding: 26px;
    background: var(--paper);
    border-radius: 22px;
}

.project-facts dl {
    margin: 0;
}

.project-facts dl > div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.project-facts dt {
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.story-sections article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: clamp(20px, 4vw, 48px);
    padding: 0 0 45px;
}

.story-sections article + article {
    padding-top: 45px;
    border-top: 1px solid var(--line);
}

.story-number {
    color: var(--coral);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.story-sections h2 {
    margin-bottom: 15px;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.05;
}

.story-sections article div p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.9;
}

.project-highlights {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(350px, 1fr);
    gap: clamp(45px, 8vw, 120px);
    align-items: start;
    padding: clamp(46px, 6vw, 78px);
    color: #fff;
    background: var(--ink);
    border-radius: 30px;
}

.project-highlights .eyebrow {
    color: #aebdff;
}

.project-highlights ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: highlights;
}

.project-highlights li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 15px;
    padding: 19px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    counter-increment: highlights;
}

.project-highlights li::before {
    content: '0' counter(highlights);
    color: #8ea3f4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

.project-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: clamp(60px, 8vw, 100px) 0;
}

.project-pagination a {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    padding: 24px 27px;
    background: var(--paper);
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.project-pagination a:last-child {
    align-items: flex-end;
    text-align: right;
}

.project-pagination a:hover {
    color: #fff;
    background: var(--blue);
    transform: translateY(-4px);
}

.project-pagination span {
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-pagination a:hover span {
    color: rgba(255, 255, 255, .7);
}

.project-pagination strong {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
}

.missing-project {
    min-height: 65vh;
    padding: 100px 0;
}

.missing-project h1 {
    max-width: 800px;
    margin-bottom: 32px;
    font-size: clamp(48px, 7vw, 90px);
    line-height: .95;
}

#blazor-error-ui {
    position: fixed;
    z-index: 30;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 16px;
    color: #fff;
    background: var(--ink);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 12px;
}

#blazor-error-ui .reload {
    color: #fff;
}

#blazor-error-ui .dismiss {
    margin-left: 12px;
    cursor: pointer;
}

.reveal {
    animation: reveal-up .65s cubic-bezier(.2, .8, .2, 1) both;
}

.reveal-delay-1 {
    animation-delay: .12s;
}

.project-grid .reveal:nth-child(2n) {
    animation-delay: .1s;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Motion and interaction layer */

@view-transition {
    navigation: auto;
}

::selection {
    color: #fff;
    background: var(--blue);
}

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

.site-header {
    animation: masthead-in .8s cubic-bezier(.2, .8, .2, 1) both;
}

.newspaper-ribbon {
    animation: rule-draw .9s cubic-bezier(.2, .8, .2, 1) both;
}

.newspaper-ribbon span,
.newspaper-ribbon strong {
    animation: type-in .65s .2s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-copy h1 {
    text-wrap: balance;
    animation: headline-in .9s .12s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-copy .hero-lede {
    animation: soft-in .8s .28s ease both;
}

.hero-actions {
    animation: soft-in .8s .38s ease both;
}

.hero-proof {
    animation: soft-in .8s .5s ease both;
}

.hero-proof span {
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .25s ease;
}

.hero-proof span:hover {
    color: var(--blue);
    background: #eef1fb;
    border-color: #a9b6ee;
    transform: translateY(-3px);
}

.hero-agent {
    min-width: 0;
}

.hero-agent .metadata-widget {
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
}

.hero-agent .metadata-widget-heading {
    gap: 18px;
}

.hero-agent .metadata-widget-heading h2 {
    max-width: 470px;
    font-size: clamp(30px, 3.5vw, 52px);
}

.hero-agent .metadata-widget-heading p {
    max-width: 470px;
    font-size: 12px;
    line-height: 1.65;
}

.hero-agent .metadata-widget-response {
    max-height: 360px;
    overflow: auto;
}

.brand-mark {
    position: relative;
    overflow: hidden;
    transition: border-radius .35s ease, transform .35s ease;
}

.brand-mark::after {
    position: absolute;
    inset: -50% 30%;
    content: '';
    background: rgba(255,255,255,.55);
    transform: rotate(25deg) translateX(-180%);
    transition: transform .6s ease;
}

.brand:hover .brand-mark {
    border-radius: 50%;
    transform: rotate(-7deg) scale(1.05);
}

.brand:hover .brand-mark::after {
    transform: rotate(25deg) translateX(180%);
}

.site-nav > a:not(.nav-cv-link) {
    position: relative;
}

.site-nav > a:not(.nav-cv-link)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: '';
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.site-nav > a:not(.nav-cv-link):hover::after,
.site-nav > a:not(.nav-cv-link):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.button {
    position: relative;
    overflow: hidden;
}

.button::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.25) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .55s ease;
}

.button:hover::before,
.button:focus-visible::before {
    transform: translateX(130%);
}

.button span {
    display: inline-block;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.button:hover span,
.button:focus-visible span {
    transform: translateX(4px);
}

.capability-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.capability-card::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 260px;
    height: 260px;
    content: '';
    border: 1px solid rgba(174,189,255,.26);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(174,189,255,.06), 0 0 0 56px rgba(174,189,255,.04);
    animation: orbit-breathe 6s ease-in-out infinite;
}

.capability-card > * {
    position: relative;
    z-index: 1;
}

.capability-item {
    position: relative;
    transition: padding-left .35s cubic-bezier(.2, .8, .2, 1), background .35s ease;
}

.capability-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -38px;
    width: 3px;
    content: '';
    background: var(--coral);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.capability-item:hover {
    padding-left: 8px;
}

.capability-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.project-card,
.university-preview-card {
    position: relative;
    isolation: isolate;
}

.project-card::after,
.university-preview-card::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    content: '';
    border: 1px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.project-card:hover::after,
.university-preview-card:hover::after,
.project-card:focus-visible::after,
.university-preview-card:focus-visible::after {
    border-color: rgba(52,87,213,.65);
    box-shadow: inset 0 0 0 3px rgba(52,87,213,.08);
}

.project-info h3,
.university-preview-copy h3 {
    transition: color .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.project-card:hover .project-info h3,
.university-preview-card:hover .university-preview-copy h3 {
    color: var(--blue);
    transform: translateX(4px);
}

.service-card {
    overflow: hidden;
    transition: background .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.service-card::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    content: '';
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.service-card:hover {
    z-index: 1;
    background: #fff;
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card .service-price {
    transition: color .25s ease, letter-spacing .35s ease;
}

.service-card:hover .service-price {
    color: var(--blue);
    letter-spacing: .01em;
}

.text-link {
    position: relative;
}

.text-link::after {
    position: absolute;
    right: 20px;
    bottom: -6px;
    left: 0;
    height: 1px;
    content: '';
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.form-field input,
.form-field select,
.form-field textarea {
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    background: #fffdfb;
    border-color: #8e99aa;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    transform: translateY(-2px);
}

@supports (animation-timeline: view()) {
    .reveal {
        animation-name: reveal-up;
        animation-timeline: view();
        animation-range: entry 8% cover 28%;
    }
}

@keyframes masthead-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rule-draw {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes type-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headline-in {
    from {
        opacity: 0;
        letter-spacing: .035em;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        letter-spacing: -.025em;
        transform: translateY(0);
    }
}

@keyframes soft-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-breathe {
    0%, 100% { transform: scale(.94) rotate(0deg); opacity: .65; }
    50% { transform: scale(1.06) rotate(18deg); opacity: 1; }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 72px 0 82px;
    }

    .capability-card {
        max-width: 720px;
    }

    .section-heading,
    .project-hero-heading,
    .project-story,
    .project-highlights,
    .university-hero-grid,
    .university-case-heading,
    .university-case-body,
    .university-closing {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 22px;
    }

    .project-hero-heading {
        gap: 24px;
    }

    .project-story {
        gap: 46px;
    }

    .project-facts {
        max-width: 620px;
    }

    .project-highlights {
        gap: 38px;
    }

    .university-preview-grid,
    .university-index ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .university-case-heading {
        gap: 22px;
    }

    .university-case-body {
        gap: 48px;
    }

    .university-facts {
        max-width: 620px;
    }

    .play-lab {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .game-panel {
        box-shadow: 6px 6px 0 rgba(23, 33, 48, .09);
    }

    .games-footer,
    .quote-layout,
    .recruiter-hero-grid,
    .recruiter-content,
    .roast-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 14px;
    }

    .portfolio-shell {
        padding: 0 16px;
    }

    .site-header {
        min-height: 74px;
    }

    .newspaper-ribbon {
        grid-template-columns: 1fr 1fr;
        gap: 7px 12px;
        font-size: 8px;
    }

    .newspaper-ribbon strong {
        grid-row: 2;
        grid-column: 1 / -1;
        text-align: center;
        font-size: 11px;
    }

    .newspaper-ribbon span:last-child {
        text-align: right;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .brand-copy small,
    .site-nav > a:not(.nav-cv-link) {
        display: none;
    }

    .nav-cv-link {
        min-height: 38px;
        padding: 7px 13px;
    }

    .hero {
        min-height: 0;
        padding: 58px 0 66px;
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 65px);
    }

    .hero-actions .button {
        width: 100%;
    }

    .capability-card {
        border-radius: 22px;
    }

    .work-section {
        margin: 0 -4px;
        padding: 62px 16px;
        border-radius: 24px;
    }

    .project-grid,
    .university-preview-grid,
    .university-index ol {
        grid-template-columns: 1fr;
    }

    .project-view {
        opacity: 1;
        transform: none;
    }

    .cv-section {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 68px 0;
        padding: 34px 24px;
        border-radius: 22px;
    }

    .university-preview {
        padding: 72px 0;
    }

    .university-preview-copy h3 {
        font-size: 27px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-footer small {
        grid-column: auto;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .project-hero {
        padding-top: 28px;
    }

    .back-link,
    .university-hero .back-link {
        margin-bottom: 48px;
    }

    .project-hero-heading h1 {
        font-size: clamp(54px, 17vw, 84px);
    }

    .project-hero-image {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .project-story {
        padding: 64px 0;
    }

    .story-sections article {
        grid-template-columns: 34px 1fr;
        gap: 14px;
    }

    .project-highlights {
        min-width: 0;
        padding: 36px 24px;
        border-radius: 22px;
    }

    .project-pagination {
        grid-template-columns: 1fr;
    }

    .project-pagination a:last-child {
        align-items: flex-start;
        text-align: left;
    }

    .university-hero {
        padding-top: 28px;
    }

    .university-hero h1 {
        font-size: clamp(52px, 16vw, 82px);
    }

    .university-index {
        margin-bottom: 88px;
        padding: 28px 23px;
        border-radius: 22px;
    }

    .university-case {
        padding-bottom: 92px;
    }

    .university-case + .university-case {
        padding-top: 84px;
    }

    .university-case-heading h2 {
        font-size: clamp(44px, 13vw, 68px);
    }

    .university-case-image {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .university-outcomes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .university-closing {
        gap: 28px;
        padding: 34px 24px;
        border-radius: 22px;
    }

    .games-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .services-section {
        margin: 0 -4px;
        padding: 72px 16px;
    }

    .service-card {
        min-height: 300px;
    }

    .games-hero {
        padding: 28px 4px 66px;
    }

    .games-hero h1 {
        font-size: clamp(66px, 21vw, 104px);
    }

    .play-lab {
        gap: 18px;
        padding: 0;
    }

    .game-panel-heading {
        min-height: auto;
        padding: 25px 21px;
    }

    .game-panel-heading h2 {
        font-size: clamp(35px, 11vw, 57px);
    }

    .ladybird-stage,
    .race-stage {
        min-height: 0;
        padding: 18px;
    }

    .race-track {
        min-height: 285px;
    }

    .game-controls {
        align-items: start;
        flex-direction: column;
        padding: 21px;
    }

    .control-actions {
        justify-content: start;
    }

    .simulation-overlay {
        right: 15px;
        bottom: 15px;
    }

    .race-message {
        right: 25px;
        bottom: 25px;
        max-width: 190px;
        line-height: 1.35;
    }

    .driving-controls {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .driving-controls .control-copy {
        grid-column: 1 / -1;
    }

    .play-callout {
        align-items: start;
        flex-direction: column;
        margin-bottom: 75px;
        padding: 34px 24px;
    }

    .games-footer {
        margin: 75px 0;
        padding: 33px 24px;
    }

    .quote-hero,
    .recruiter-hero {
        padding-top: 28px;
    }

    .quote-hero h1,
    .recruiter-hero h1 {
        font-size: clamp(52px, 16vw, 84px);
    }

    .quote-layout {
        gap: 32px;
    }

    .quote-form {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .quote-aside {
        position: static;
    }

    .recruiter-content {
        gap: 42px;
    }

    .recruiter-contact {
        align-items: start;
        flex-direction: column;
        padding: 34px 24px;
    }

    .roast-hero {
        padding-top: 28px;
    }

    .roast-hero h1 {
        font-size: clamp(48px, 15vw, 78px);
    }

    .roast-window-body {
        padding: 22px 18px;
    }

    .roast-options {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .roast-aside {
        padding: 24px 21px;
    }

    .roast-result {
        margin-bottom: 75px;
        padding: 30px 22px;
    }

    .roast-result-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
}

/* Free projects */

.free-projects-page {
    background: #f2efe7;
}

.free-projects-hero {
    max-width: 980px;
    padding: 44px 0 clamp(70px, 9vw, 125px);
}

.free-projects-hero .back-link {
    margin-bottom: clamp(54px, 8vw, 90px);
}

.free-projects-hero h1 {
    margin-bottom: 25px;
    font-size: clamp(62px, 8vw, 116px);
    line-height: .89;
}

.free-projects-hero > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.free-projects-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
    gap: 50px;
    align-items: end;
    padding: 25px 0 38px;
    border-top: 1px solid var(--ink);
}

.free-projects-intro h2 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: .98;
}

.free-projects-intro > p {
    max-width: 480px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

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

.free-projects-bottom {
    margin: clamp(78px, 10vw, 135px) 0;
    padding: clamp(35px, 5vw, 65px);
    color: #fff;
    background: var(--ink);
}

.free-projects-bottom .eyebrow {
    color: #aebdff;
}

.free-projects-bottom h2 {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(36px, 4.5vw, 62px);
    line-height: .98;
}

.free-projects-bottom .button-primary {
    color: var(--ink);
    background: #fff;
}

/* Front-page metadata agent */

.metadata-widget {
    position: relative;
    overflow: hidden;
    margin: clamp(55px, 7vw, 96px) 0;
    padding: clamp(27px, 4vw, 48px);
    color: #e9eefb;
    background: #111927;
    border: 1px solid #31415d;
    box-shadow: 10px 10px 0 rgba(23,33,48,.12);
}

.metadata-widget::before {
    position: absolute;
    top: -180px;
    right: -100px;
    width: 420px;
    height: 420px;
    content: '';
    border: 1px solid rgba(142,163,244,.22);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(142,163,244,.05), 0 0 0 70px rgba(142,163,244,.03);
    animation: orbit-breathe 8s ease-in-out infinite;
}

.metadata-widget > * {
    position: relative;
    z-index: 1;
}

.metadata-widget-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #31415d;
}

.metadata-widget .eyebrow {
    margin: 0;
    color: #aebdff;
}

.metadata-widget-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #86d4bb;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metadata-widget-status span {
    width: 7px;
    height: 7px;
    background: #86d4bb;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(134,212,187,.12);
}

.metadata-widget-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 31px 0 27px;
}

.metadata-widget-heading h2 {
    max-width: 700px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(34px, 4vw, 57px);
    line-height: .98;
}

.metadata-widget-heading p {
    max-width: 600px;
    margin: 0;
    color: #9eacc4;
    font-size: 12px;
    line-height: 1.75;
}

.metadata-widget-mark {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    color: #111927;
    background: #86d4bb;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 22px;
    transform: rotate(8deg);
}

.metadata-widget-chat {
    max-width: 940px;
    padding: 22px;
    background: #0b121e;
    border: 1px solid #31415d;
}

.metadata-widget-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    color: #63728f;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metadata-widget-context code {
    color: #86d4bb;
    font-family: inherit;
}

.metadata-widget-chat > label:not(.metadata-consent) {
    display: block;
    margin-bottom: 8px;
    color: #aebdff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.metadata-widget-input {
    display: flex;
    gap: 10px;
}

.metadata-widget-input input {
    min-width: 0;
    flex: 1;
    padding: 13px 14px;
    color: #d7e0fa;
    background: #111927;
    border: 1px solid #31415d;
    border-radius: 0;
    font: 12px var(--sans);
    outline: none;
}

.metadata-widget-input input:focus {
    border-color: #8ea3f4;
    box-shadow: 0 0 0 3px rgba(142,163,244,.16);
}

.metadata-widget-input .button {
    flex: 0 0 auto;
    cursor: pointer;
}

.metadata-widget-input .button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.metadata-consent {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-top: 13px;
    color: #63728f;
    font-size: 9px;
    line-height: 1.5;
}

.metadata-consent input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #86d4bb;
}

.metadata-widget-response {
    margin-top: 18px;
    padding: 18px;
    color: #fff;
    background: #1c2940;
    border-left: 3px solid #86d4bb;
}

.response-label {
    display: block;
    margin-bottom: 8px;
    color: #86d4bb;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .08em;
}

.metadata-widget-response p {
    margin: 0;
    color: rgba(255,255,255,.87);
    font-family: var(--serif);
    font-size: clamp(19px, 2.2vw, 28px);
    line-height: 1.35;
    white-space: pre-wrap;
}

.metadata-widget-error {
    margin: 16px 0 0;
    color: #ffc9be;
    font-size: 10px;
}

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

    .free-project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .free-projects-hero {
        padding-top: 28px;
    }

    .free-projects-hero h1 {
        font-size: clamp(54px, 17vw, 86px);
    }

    .free-projects-intro {
        gap: 22px;
    }

    .free-projects-bottom {
        margin: 75px 0;
        padding: 34px 24px;
    }

    .metadata-widget {
        margin: 50px 0;
        padding: 24px 18px;
    }

    .metadata-widget-heading {
        align-items: start;
        flex-direction: column;
    }

    .metadata-widget-mark {
        position: absolute;
        top: 28px;
        right: 0;
        width: 52px;
        height: 52px;
        font-size: 17px;
    }

    .metadata-widget-heading h2 {
        max-width: calc(100% - 50px);
        font-size: clamp(32px, 10vw, 48px);
    }

    .metadata-widget-context {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .metadata-widget-input {
        align-items: stretch;
        flex-direction: column;
    }

    .metadata-widget-input .button {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-copy h1,
    .hero-copy .hero-lede,
    .hero-actions,
    .hero-proof,
    .site-header,
    .newspaper-ribbon,
    .newspaper-ribbon span,
    .newspaper-ribbon strong {
        animation: none !important;
    }

    .capability-card::before,
    .button::before {
        display: none !important;
    }
}

/* Green terminal skin for the automatic console */
.metadata-widget {
    color: #8aff80;
    background: #07140b;
    border-color: #1f7a3a;
}
.metadata-widget .eyebrow,
.metadata-widget h2,
.metadata-widget p,
.metadata-widget-status,
.metadata-widget-context,
.metadata-widget-context code,
.metadata-widget-response,
.metadata-widget-response pre,
.metadata-widget .response-label { color: #8aff80; }
.metadata-widget-heading h2,
.metadata-widget-response pre { font-family: "Cascadia Mono", "Courier New", monospace; }
.metadata-widget-response { background: #020703; border-color: #1f7a3a; }
.metadata-widget-response pre { margin: 0; white-space: pre-wrap; line-height: 1.7; }
.terminal-stream {
    margin-top: 14px;
    color: #8aff80;
    font-family: "Cascadia Mono", "Courier New", monospace;
    line-height: 1.6;
}
.terminal-message {
    padding: 9px 0 11px;
    border-bottom: 1px solid rgba(138, 255, 128, .12);
}
.terminal-message + .terminal-message {
    margin-top: 5px;
}
.terminal-message:last-of-type {
    border-bottom: 0;
}
.metadata-widget-mark { color: #07140b; background: #8aff80; }
.metadata-widget-status span { background: #8aff80; box-shadow: 0 0 10px #8aff80; }
.terminal-cursor {
    display: inline-block;
    margin-left: 3px;
    color: #8aff80;
    animation: terminal-blink .8s steps(1, end) infinite;
}
.metadata-widget-response[aria-busy="false"] .terminal-cursor { opacity: .35; }
@keyframes terminal-blink {
    50% { opacity: 0; }
}
