:root {
    --ink: #101a16;
    --forest: #123c32;
    --forest-dark: #0a2922;
    --paper: #f4f0e6;
    --paper-deep: #e9e2d3;
    --white: #fffdf8;
    --sage: #c9d5c5;
    --lime: #ddff57;
    --line: rgba(16, 26, 22, 0.22);
    --line-light: rgba(255, 255, 255, 0.2);
    --muted: #5f6964;
    --sans: "Aptos", "Segoe UI", Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --shell: min(1240px, calc(100vw - 64px));
    --header-height: 84px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 28px);
    background: var(--ink);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

main {
    overflow: clip;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
figure {
    margin-top: 0;
}

::selection {
    background: var(--lime);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    color: var(--white);
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header[data-scrolled] {
    background: rgba(244, 240, 230, 0.96);
    color: var(--ink);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 36px rgba(10, 41, 34, 0.08);
}

/* A backdrop-filter here would make the header the containing block for the
   fixed mobile navigation (collapsing it to zero height), so it is only
   applied where the navigation is inline. */
@media (min-width: 821px) {
    .site-header[data-scrolled] {
        backdrop-filter: blur(14px);
    }
}

body.nav-open .site-header {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: var(--line);
    box-shadow: none;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--ink);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.04em;
    transition: transform 320ms var(--ease);
}

.brand:hover .brand-mark {
    transform: rotate(-9deg);
}

.brand-copy {
    display: grid;
    line-height: 1.12;
}

.brand-copy strong {
    font-size: 14px;
    letter-spacing: -0.01em;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0.66;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    position: relative;
    color: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-nav > a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms var(--ease);
}

.site-nav > a:not(.nav-contact):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    min-height: 44px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header:not([data-scrolled]) .nav-contact:hover {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
}

.site-header[data-scrolled] .nav-contact {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}

.site-header[data-scrolled] .nav-contact:hover {
    background: var(--ink);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* Type & controls */
.eyebrow {
    margin-bottom: 24px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--lime);
}

.button {
    min-height: 52px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 220ms var(--ease), background 180ms ease, color 180ms ease;
}

.button span {
    font-size: 18px;
    line-height: 1;
}

.button:hover {
    transform: translateY(-3px);
}

.button--lime {
    background: var(--lime);
    color: var(--ink);
}

.button--lime:hover {
    background: var(--white);
}

.button--ink {
    background: var(--ink);
    color: var(--white);
}

.button--ink:hover {
    background: var(--forest);
    transform: translateY(-2px);
}

.button--large {
    min-height: 62px;
    padding-inline: 24px;
    font-size: 15px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.text-link span {
    font-size: 17px;
    transition: transform 180ms var(--ease);
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

.text-link--light {
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    min-height: 820px;
    padding: 160px 0 92px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--forest);
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10px;
    background: linear-gradient(90deg, var(--lime) 0 34%, var(--paper) 34% 67%, var(--sage) 67%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: clamp(56px, 8vw, 120px);
}

.hero-copy h1 {
    max-width: 820px;
    margin-bottom: 30px;
    font-size: clamp(62px, 7vw, 104px);
    font-weight: 760;
    letter-spacing: -0.075em;
    line-height: 0.91;
}

.hero-copy h1 em {
    color: var(--lime);
    font-family: var(--serif);
    font-weight: 500;
}

.hero-intro {
    max-width: 680px;
    margin-bottom: 34px;
    color: rgba(255, 253, 248, 0.77);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-proof {
    margin-top: 64px;
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--line-light);
}

.hero-proof div {
    display: grid;
    gap: 1px;
}

.hero-proof strong {
    font-size: 13px;
    letter-spacing: 0.01em;
}

.hero-proof span {
    color: rgba(255, 253, 248, 0.56);
    font-size: 11px;
}

.portrait-block {
    position: relative;
    margin: 0;
}

.portrait-frame {
    position: relative;
    z-index: 2;
    padding: 12px;
    background: var(--paper);
    box-shadow: 28px 30px 0 var(--forest-dark);
    transform: rotate(1.6deg);
}

.portrait-frame img {
    width: 100%;
    height: auto; /* let aspect-ratio win over the intrinsic height attribute */
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 45%;
    filter: saturate(0.82) contrast(1.02);
}

.portrait-block figcaption {
    position: relative;
    z-index: 3;
    margin-top: 22px;
    padding-left: 4px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 253, 248, 0.65);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portrait-stamp {
    position: absolute;
    z-index: 4;
    right: -42px;
    bottom: 38px;
    width: 114px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    gap: 0;
    background: var(--lime);
    color: var(--ink);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.55;
    text-align: center;
    transform: rotate(8deg);
}

.hero-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(221, 255, 87, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit--one {
    width: 560px;
    height: 560px;
    right: -190px;
    top: -120px;
}

.hero-orbit--two {
    width: 270px;
    height: 270px;
    right: 30%;
    bottom: -170px;
}

.marquee {
    padding: 19px 0 17px;
    overflow: hidden;
    background: var(--lime);
    color: var(--ink);
}

.marquee-track {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.marquee-track i {
    width: 5px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    background: var(--ink);
    border-radius: 50%;
}

/* Sections */
.section {
    padding: clamp(100px, 11vw, 152px) 0;
}

.section--paper {
    background: var(--paper);
}

.section--ink {
    background: var(--ink);
    color: var(--white);
}

.section--sage {
    background: var(--sage);
}

.section-heading {
    margin-bottom: 76px;
}

.section-heading h2,
.approach-intro h2,
.journey-copy h2,
.contact-grid h2 {
    margin-bottom: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 730;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 80px;
}

.section-heading--split > p {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 17px;
}

.section-heading--light {
    max-width: 920px;
}

.section-heading--light h2 {
    color: var(--white);
}

/* Work */
.work-list {
    border-bottom: 1px solid var(--line);
}

.work-card {
    position: relative;
    padding: 52px 0 56px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(28px, 4vw, 60px);
    border-top: 1px solid var(--line);
}

.work-index {
    padding-top: 4px;
    color: var(--forest);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
}

.work-meta {
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.work-meta span + span::before {
    content: "•";
    margin-right: 20px;
}

.work-main h3 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(30px, 3.25vw, 48px);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.work-lede {
    max-width: 720px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 16px;
}

.work-detail {
    padding-left: clamp(24px, 3vw, 44px);
    border-left: 1px solid var(--line);
}

.detail-label,
.education-note > span {
    margin-bottom: 18px;
    color: var(--forest);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid rgba(16, 26, 22, 0.1);
    font-size: 13px;
    line-height: 1.5;
}

.plain-list li::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: var(--forest);
    font-weight: 900;
}

.tag-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.work-card--featured::before {
    content: "Current";
    position: absolute;
    top: -13px;
    right: 0;
    padding: 5px 10px;
    background: var(--forest);
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Expertise */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.expertise-card {
    position: relative;
    min-height: 360px;
    padding: clamp(32px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    transition: background 240ms ease, color 240ms ease;
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.035);
}

.expertise-number {
    width: 38px;
    height: 38px;
    margin-bottom: 60px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--lime);
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
}

.expertise-card h3 {
    margin-bottom: 16px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.expertise-card > p:not(.expertise-stack) {
    max-width: 580px;
    margin-bottom: 28px;
    color: rgba(255, 253, 248, 0.66);
}

.expertise-stack {
    margin: auto 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line-light);
    color: rgba(255, 253, 248, 0.52);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.04em;
}

.expertise-card--accent {
    background: var(--lime);
    color: var(--ink);
}

.expertise-card--accent:hover {
    background: #e5ff78;
}

.expertise-card--accent .expertise-number {
    color: var(--ink);
}

.expertise-card--accent > p:not(.expertise-stack),
.expertise-card--accent .expertise-stack {
    color: rgba(16, 26, 22, 0.72);
}

.expertise-card--accent .expertise-stack {
    border-color: rgba(16, 26, 22, 0.23);
}

.expertise-card--wide {
    grid-column: 1 / -1;
    min-height: 300px;
}

/* Approach */
.approach-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(70px, 10vw, 150px);
}

.approach-intro h2 {
    margin-bottom: 34px;
}

.approach-intro > p:last-child {
    max-width: 600px;
    color: rgba(16, 26, 22, 0.7);
    font-size: 17px;
}

.principle-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
    border-top: 1px solid rgba(16, 26, 22, 0.3);
}

.principle-list li {
    padding: 29px 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    border-bottom: 1px solid rgba(16, 26, 22, 0.3);
}

.principle-list > li > span {
    padding-top: 4px;
    color: var(--forest);
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
}

.principle-list h3 {
    margin-bottom: 7px;
    font-size: 23px;
    letter-spacing: -0.03em;
}

.principle-list p {
    margin: 0;
    color: rgba(16, 26, 22, 0.68);
    font-size: 14px;
}

/* Journey */
.journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
    gap: clamp(72px, 11vw, 160px);
}

.journey-copy h2 {
    margin-bottom: 36px;
}

.journey-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.journey-copy .journey-lede {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.55;
}

.learning-resource {
    margin-top: 32px;
    padding: 22px 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.learning-resource > span {
    display: block;
    margin-bottom: 8px;
    color: var(--forest);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.learning-resource p {
    margin: 0;
}

.learning-resource p + p {
    max-width: 490px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.learning-resource .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.learning-target {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(16, 26, 22, 0.18);
    background: var(--lime);
}

.learning-target > span {
    display: block;
    margin-bottom: 12px;
    color: var(--forest);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.learning-target h3 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.learning-target > p {
    margin: 0;
    color: rgba(16, 26, 22, 0.76);
    font-size: 13px;
    line-height: 1.55;
}

.learning-target .learning-target-stack {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 26, 22, 0.2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.education-note {
    margin-top: 36px;
}

.education-note p {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.timeline {
    border-top: 1px solid var(--line);
}

.timeline article {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.timeline time {
    padding-top: 4px;
    color: var(--forest);
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
}

.timeline h3 {
    margin-bottom: 5px;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Contact & footer */
.contact-section {
    padding: clamp(100px, 12vw, 170px) 0;
    background: var(--forest);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: end;
    gap: clamp(64px, 10vw, 150px);
}

.contact-grid h2 {
    max-width: 760px;
}

.contact-copy > p {
    margin-bottom: 34px;
    color: rgba(255, 253, 248, 0.73);
    font-size: 18px;
}

.contact-copy .button {
    width: 100%;
}

.contact-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.contact-links a {
    color: rgba(255, 253, 248, 0.74);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.contact-links a:hover {
    color: var(--lime);
}

.site-footer {
    padding: 28px 0;
    background: var(--ink);
    color: rgba(255, 253, 248, 0.58);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.footer-inner p {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-inner a:hover {
    color: var(--lime);
}

/* Legal & 404 */
.legal-hero,
.not-found {
    min-height: 520px;
    padding: 170px 0 100px;
    display: grid;
    align-items: center;
    background: var(--forest);
    color: var(--white);
}

.legal-shell h1,
.not-found h1 {
    margin-bottom: 22px;
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 730;
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.legal-shell > p:last-child,
.not-found-inner > p:not(.eyebrow) {
    color: rgba(255, 253, 248, 0.7);
    font-size: 19px;
}

.legal-content {
    max-width: 760px;
}

.legal-updated {
    margin-bottom: 56px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-content h2 {
    margin: 48px 0 12px;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.legal-content p:not(.legal-updated, .legal-back) {
    color: var(--muted);
    font-size: 16px;
}

.legal-content a {
    color: var(--forest);
}

.legal-back {
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.not-found {
    min-height: 100vh;
}

.not-found-inner > p:not(.eyebrow) {
    margin-bottom: 34px;
}

/* Portfolio assistant */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.chat-toggle {
    min-height: 66px;
    padding: 10px 13px 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 18px 48px rgba(10, 41, 34, 0.24);
    cursor: pointer;
    transition: transform 220ms var(--ease), box-shadow 220ms ease;
}

.chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(10, 41, 34, 0.3);
}

.chat-toggle-pulse {
    position: relative;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--forest);
}

.chat-toggle-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid var(--forest);
    border-radius: inherit;
    animation: chat-pulse 2.2s ease-out infinite;
}

.chat-toggle-copy {
    display: grid;
    text-align: left;
    line-height: 1.05;
}

.chat-toggle-copy small {
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.chat-toggle-copy strong {
    font-size: 13px;
    font-weight: 850;
}

.chat-toggle-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-size: 18px;
    transition: transform 220ms var(--ease);
}

.chat-is-open .chat-toggle-icon {
    transform: rotate(45deg);
}

.chat-panel {
    width: min(430px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 120px));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(10, 41, 34, 0.36);
    animation: chat-enter 260ms var(--ease) both;
}

.chat-header {
    min-height: 86px;
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--forest);
    color: var(--white);
}

.chat-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.chat-header h2 {
    margin: 0 0 3px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.chat-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.status-dot {
    width: 6px;
    height: 6px;
    margin-right: 5px;
    display: inline-block;
    border-radius: 50%;
    background: var(--lime);
}

.chat-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.chat-consent,
.chat-declined {
    margin: auto;
    padding: 38px 34px;
}

.chat-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--forest);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.chat-consent h3,
.chat-declined h3 {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
}

.chat-consent p,
.chat-declined p {
    color: var(--muted);
    font-size: 14px;
}

.chat-consent a,
.chat-declined a {
    color: var(--forest);
}

.chat-consent-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-primary-button,
.chat-secondary-button {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--forest);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.chat-primary-button {
    background: var(--forest);
    color: var(--white);
}

.chat-secondary-button {
    background: transparent;
    color: var(--forest);
}

.chat-primary-button:disabled,
.chat-secondary-button:disabled,
.chat-send-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.chat-error {
    margin: 20px 0 0;
    padding: 12px;
    border-left: 3px solid #a13e2f;
    background: #f6e3de;
    color: #6d281f !important;
}

.chat-interface {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    min-height: 0;
    padding: 22px 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-message {
    width: fit-content;
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-message--assistant {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background: var(--paper-deep);
}

.chat-message--user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--forest);
    color: var(--white);
}

.chat-message--error {
    color: #6d281f;
    background: #f6e3de;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 92%;
}

.chat-suggestion {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--forest);
    border-radius: 999px;
    background: transparent;
    color: var(--forest);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.chat-suggestion:hover,
.chat-suggestion:focus-visible {
    background: var(--forest);
    color: var(--white);
    outline: none;
}

@media (pointer: coarse) {
    .chat-suggestion { min-height: 44px; }
}

.chat-typing {
    min-width: 60px;
    display: flex;
    gap: 4px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forest);
    animation: chat-dot 1s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 120ms; }
.chat-typing span:nth-child(3) { animation-delay: 240ms; }

.chat-composer {
    margin: 0 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}

.chat-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.chat-composer input {
    min-width: 0;
    height: 42px;
    padding: 0 8px 0 12px;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.chat-composer input::placeholder {
    color: #77817c;
}

.chat-send-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.chat-disclaimer {
    margin: 8px 14px 12px;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

@keyframes chat-enter {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chat-pulse {
    0% { opacity: 0.6; transform: scale(0.7); }
    80%, 100% { opacity: 0; transform: scale(1.65); }
}

@keyframes chat-dot {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* Responsive */
@media (max-width: 1080px) {
    :root {
        --shell: min(1240px, calc(100vw - 48px));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
        gap: 60px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-proof div {
        grid-template-columns: 140px 1fr;
    }

    .portrait-stamp {
        right: -20px;
    }

    .section-heading--split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-heading--split > p {
        max-width: 700px;
    }

    .work-card {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .work-detail {
        grid-column: 2;
        padding: 28px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .approach-grid,
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 72px;
    }

    .approach-intro,
    .journey-copy {
        max-width: 760px;
    }

}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 36px, 1240px);
        --header-height: 72px;
    }

    .brand-copy {
        display: none;
    }

    .menu-toggle {
        min-width: 78px;
        min-height: 44px;
        padding: 8px 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .menu-label {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .menu-lines {
        width: 22px;
        display: grid;
        gap: 5px;
    }

    .menu-lines i {
        display: block;
        width: 100%;
        height: 1px;
        background: currentColor;
        transition: transform 180ms ease;
    }

    .menu-toggle[aria-expanded="true"] .menu-lines i:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-lines i:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 0;
        padding: 36px 18px 48px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        color: var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 240ms var(--ease);
    }

    .site-nav[data-open] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav > a {
        padding: 17px 2px;
        border-bottom: 1px solid var(--line);
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .site-nav > a:not(.nav-contact)::after {
        display: none;
    }

    .site-nav .nav-contact {
        margin-top: 28px;
        padding: 15px 20px;
        justify-content: space-between;
        background: var(--forest);
        border-color: var(--forest);
        color: var(--white);
        font-size: 18px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-proof {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-proof div {
        grid-template-columns: 1fr;
    }

    .portrait-block {
        width: min(380px, 70%);
        margin-inline: 0;
    }

    .marquee-track {
        justify-content: flex-start;
        overflow: hidden;
    }

    .marquee-track span:nth-of-type(n + 4),
    .marquee-track i:nth-of-type(n + 4) {
        display: none;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card {
        min-height: 330px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-copy {
        max-width: 620px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .chat-widget {
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    :root {
        --shell: min(100% - 28px, 1240px);
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 76px;
    }

    .hero-copy h1 {
        font-size: clamp(50px, 16vw, 72px);
        line-height: 0.94;
    }

    .hero-intro {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions .text-link {
        padding: 8px 0;
    }

    .hero-proof {
        margin-top: 46px;
        grid-template-columns: 1fr;
    }

    .hero-proof div {
        grid-template-columns: 128px 1fr;
    }

    .portrait-block {
        width: min(240px, 66%);
        margin-inline: 0;
    }

    .portrait-frame {
        padding: 8px;
        box-shadow: 14px 16px 0 var(--forest-dark);
    }

    .portrait-frame img {
        aspect-ratio: 4 / 5;
    }

    .portrait-stamp {
        right: -8px;
        bottom: 30px;
        width: 88px;
        font-size: 7px;
    }

    .portrait-block figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .marquee-track span:nth-of-type(n + 3),
    .marquee-track i:nth-of-type(n + 3) {
        display: none;
    }

    .section-heading {
        margin-bottom: 52px;
    }

    .section-heading h2,
    .approach-intro h2,
    .journey-copy h2,
    .contact-grid h2 {
        font-size: clamp(42px, 13.5vw, 62px);
    }

    .work-card {
        padding: 42px 0;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .work-main,
    .work-detail {
        grid-column: 1;
    }

    .work-index {
        padding: 0;
    }

    .work-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .work-meta span + span::before {
        display: none;
    }

    .work-main h3 {
        font-size: 34px;
    }

    .expertise-card {
        min-height: 0;
        padding: 32px 26px;
    }

    .expertise-number {
        margin-bottom: 44px;
    }

    .approach-grid,
    .journey-grid {
        gap: 56px;
    }

    .principle-list li {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-hero,
    .not-found {
        min-height: 440px;
        padding-top: 135px;
    }

    .chat-widget {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .site-footer {
        padding-bottom: 96px;
    }

    .chat-panel {
        width: 100%;
        height: min(680px, calc(100dvh - 88px));
        min-height: 390px;
        border-radius: 18px;
    }

    .chat-toggle {
        min-height: 58px;
        padding: 9px;
    }

    .chat-is-open .chat-toggle-copy,
    .chat-is-open .chat-toggle-pulse {
        display: none;
    }

    .chat-toggle-icon {
        width: 40px;
        height: 40px;
    }

    .chat-consent,
    .chat-declined {
        padding: 28px 24px;
    }

    .chat-consent h3,
    .chat-declined h3 {
        font-size: 34px;
    }

    .chat-message {
        max-width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .marquee,
    .contact-section,
    .chat-widget,
    .site-footer {
        display: none;
    }

    .hero,
    .section,
    .section--ink,
    .section--sage {
        padding: 32px 0;
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
    }

    .portrait-block {
        max-width: 280px;
    }
}

/* ==========================================================================
   Additions 2026-08: selected build card, applied-AI card, contact actions,
   case-study page, enquiry invitation and note form
   ========================================================================== */

/* Work: independent build card */
.work-card--build {
    background: linear-gradient(90deg, rgba(221, 255, 87, 0.28), rgba(221, 255, 87, 0) 46%);
    margin-inline: calc(-1 * clamp(16px, 2.5vw, 32px));
    padding-inline: clamp(16px, 2.5vw, 32px);
}

.work-card--build::before {
    content: "Selected build";
    position: absolute;
    top: -13px;
    right: clamp(16px, 2.5vw, 32px);
    padding: 5px 10px;
    background: var(--ink);
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.work-index--build {
    font-style: normal;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.work-title-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 260ms var(--ease);
}

.work-title-link:hover,
.work-title-link:focus-visible {
    background-size: 100% 2px;
}

/* Expertise: applied AI card */
.expertise-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
    margin-bottom: 28px;
}

.expertise-card--accent .expertise-columns > p {
    max-width: none;
    margin: 0;
    color: rgba(16, 26, 22, 0.76);
}

.expertise-link {
    color: var(--ink);
    font-weight: 800;
    text-decoration-thickness: 2px;
}

/* Contact actions */
.contact-actions {
    display: grid;
    gap: 14px;
}

.contact-actions .button {
    width: 100%;
    cursor: pointer;
}

.contact-copy .contact-links a[data-enquiry-email] {
    word-break: break-all;
}

/* ---------- Case study page ---------- */
.project-hero {
    padding: 150px 0 72px;
    background: var(--forest);
    color: var(--white);
}

.breadcrumb ol {
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    list-style: none;
    color: rgba(255, 253, 248, 0.6);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 10px;
    opacity: 0.5;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--lime);
}

.project-hero h1 {
    max-width: 900px;
    margin-bottom: 26px;
    font-size: clamp(46px, 6.4vw, 92px);
    font-weight: 760;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.project-summary {
    max-width: 760px;
    margin-bottom: 44px;
    color: rgba(255, 253, 248, 0.78);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.6;
}

.project-facts {
    margin: 0;
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
    border-top: 1px solid var(--line-light);
}

.project-facts div {
    display: grid;
    gap: 6px;
}

.project-facts dt {
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    color: rgba(255, 253, 248, 0.82);
    font-size: 13px;
    line-height: 1.5;
}

/* Signature: the grounding chain */
.project-flow {
    padding: 56px 0 64px;
    background: var(--ink);
    color: var(--white);
}

.project-flow-title {
    margin-bottom: 40px;
    color: var(--lime);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.flow-chain {
    position: relative;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
}

.flow-chain::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, rgba(221, 255, 87, 0.15), rgba(221, 255, 87, 0.7) 50%, rgba(221, 255, 87, 0.15));
}

.flow-step {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
}

.flow-step-index {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--lime);
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
}

.flow-step:last-child .flow-step-index {
    background: var(--lime);
    color: var(--ink);
    font-style: normal;
    font-weight: 900;
}

.flow-step-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.flow-step-note {
    color: rgba(255, 253, 248, 0.6);
    font-size: 12px;
    line-height: 1.5;
}

/* Body layout */
.project-body {
    padding: clamp(72px, 9vw, 120px) 0 clamp(60px, 7vw, 96px);
    background: var(--paper);
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(200px, 0.28fr) minmax(0, 0.72fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: start;
}

.project-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.project-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.project-toc li {
    border-bottom: 1px solid var(--line);
}

.project-toc a {
    display: flex;
    gap: 12px;
    padding: 12px 2px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease;
}

.project-toc a span {
    color: var(--forest);
    font-family: var(--serif);
    font-style: italic;
}

.project-toc a:hover {
    color: var(--forest);
}

.project-content {
    max-width: 720px;
}

.project-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.project-section .eyebrow {
    margin-bottom: 20px;
}

.project-section > p:not(.eyebrow):not(.project-ledger-intro) {
    color: rgba(16, 26, 22, 0.8);
    font-size: 17px;
    line-height: 1.7;
}

.project-section h2:not(.visually-hidden) {
    margin-bottom: 20px;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.project-ledger-intro {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 15px;
}

.ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.ledger-column {
    padding: 26px 26px 30px;
}

.ledger-column--verified {
    background: var(--white);
    border-right: 1px solid var(--line);
}

.ledger-column--next {
    background: var(--paper-deep);
}

.ledger-column h3 {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ledger-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
}

.ledger-column--verified .ledger-mark {
    background: var(--lime);
    color: var(--ink);
}

.ledger-column--next .ledger-mark {
    border: 1px solid var(--muted);
    color: var(--muted);
}

.ledger-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ledger-column li {
    padding: 9px 0;
    border-top: 1px solid rgba(16, 26, 22, 0.1);
    font-size: 13.5px;
    line-height: 1.5;
}

.ledger-column--next li {
    color: rgba(16, 26, 22, 0.66);
}

.plain-list--roomy li {
    padding: 13px 0 13px 24px;
    font-size: 15px;
}

.tag-row--list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-row--list li {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
}

.lesson-list {
    margin: 0;
    display: grid;
    gap: 22px;
}

.lesson-list div {
    padding-left: 22px;
    border-left: 3px solid var(--lime);
}

.lesson-list dt {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lesson-list dd {
    margin: 0;
    color: rgba(16, 26, 22, 0.74);
    font-size: 15px;
    line-height: 1.65;
}

.project-note {
    padding: 18px 20px;
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.project-cta {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--forest);
    color: var(--white);
}

.project-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: end;
    gap: clamp(56px, 9vw, 140px);
}

.project-cta-grid h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(40px, 5.2vw, 70px);
    font-weight: 730;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

/* ---------- Chat: invitation card ---------- */
.chat-invite {
    align-self: flex-start;
    width: 100%;
    max-width: 96%;
    padding: 16px 16px 14px;
    border: 1px solid rgba(18, 60, 50, 0.28);
    border-left: 4px solid var(--lime);
    border-radius: 14px;
    background: var(--white);
    animation: chat-enter 220ms var(--ease) both;
}

.chat-invite-text {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}

.chat-invite-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.chat-invite-actions .chat-primary-button,
.chat-invite-actions .chat-secondary-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
}

.chat-invite-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
}

/* ---------- Chat: note form layer ---------- */
.chat-enquiry {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

.chat-enquiry-scroll {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 20px 26px;
}

.chat-enquiry-head {
    margin-bottom: 18px;
}

.chat-enquiry-head h3 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.02;
    outline-offset: 6px;
}

.chat-enquiry-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.enquiry-form {
    display: grid;
    gap: 16px;
}

.enquiry-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.enquiry-field label,
.enquiry-fieldset legend {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.enquiry-optional {
    color: var(--muted);
    font-weight: 600;
}

.enquiry-required {
    color: #9a3b2c;
    font-weight: 900;
}

.enquiry-field input[type="text"],
.enquiry-field input[type="url"],
.enquiry-field input[type="email"],
.enquiry-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 26, 22, 0.35);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
}

.enquiry-field textarea {
    min-height: 108px;
    resize: vertical;
}

.enquiry-field input:focus-visible,
.enquiry-field textarea:focus-visible {
    outline: 3px solid var(--forest);
    outline-offset: 1px;
}

.enquiry-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

.enquiry-fieldset legend {
    padding: 0;
    margin-bottom: 8px;
}

.enquiry-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.enquiry-choice {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid rgba(16, 26, 22, 0.22);
    border-radius: 8px;
    background: var(--white);
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}

.enquiry-choice:has(input:checked) {
    border-color: var(--forest);
    background: rgba(18, 60, 50, 0.08);
}

.enquiry-choice:has(input:focus-visible) {
    outline: 3px solid var(--forest);
    outline-offset: 1px;
}

.enquiry-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--forest);
}

.enquiry-field--check {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
}

.enquiry-field--check input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--forest);
}

.enquiry-field--check label {
    min-height: 24px;
    padding-top: 1px;
    font-weight: 650;
    line-height: 1.45;
}

.enquiry-field--check .enquiry-error {
    grid-column: 1 / -1;
}

.enquiry-field--check a {
    color: var(--forest);
}

.enquiry-hint {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.enquiry-error {
    margin: 0;
    color: #8f2f21;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.enquiry-error::before {
    content: "! ";
    font-weight: 900;
}

.is-invalid,
.enquiry-field input.is-invalid,
.enquiry-field textarea.is-invalid {
    border-color: #a13e2f;
    box-shadow: 0 0 0 1px #a13e2f;
}

.enquiry-fieldset.is-invalid {
    box-shadow: none;
    border-left: 3px solid #a13e2f;
    padding-left: 10px;
}

.enquiry-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.enquiry-required-note {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.enquiry-actions .chat-primary-button {
    min-width: 132px;
}

.enquiry-summary {
    padding: 12px 14px;
    border-left: 3px solid #a13e2f;
    background: #f6e3de;
    color: #6d281f;
    font-size: 13px;
    line-height: 1.5;
    outline-offset: 2px;
}

.enquiry-summary-title {
    margin: 0 0 6px;
    font-weight: 800;
}

.enquiry-summary ul {
    margin: 0;
    padding-left: 18px;
}

.enquiry-summary a {
    color: inherit;
}

.enquiry-done h3 {
    margin-bottom: 10px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.enquiry-done p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.enquiry-done-ref {
    font-size: 12px !important;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 1080px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .project-toc {
        position: static;
    }

    .project-toc ol {
        columns: 2;
        column-gap: 32px;
    }

    .project-toc li {
        break-inside: avoid;
    }

    .project-content {
        max-width: 760px;
    }

    .project-cta-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 820px) {
    .work-card--build {
        margin-inline: 0;
        padding-inline: 0;
        background: linear-gradient(180deg, rgba(221, 255, 87, 0.28), rgba(221, 255, 87, 0) 60%);
    }

    .work-card--build::before {
        right: 0;
    }

    .expertise-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-hero {
        padding: 120px 0 56px;
    }

    .project-facts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flow-chain {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 4px;
    }

    .flow-chain::before {
        top: 12px;
        bottom: 12px;
        left: 20px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(221, 255, 87, 0.15), rgba(221, 255, 87, 0.7) 50%, rgba(221, 255, 87, 0.15));
    }

    .flow-step {
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-areas: "index label" "index note";
        column-gap: 16px;
        row-gap: 4px;
        padding: 12px 0;
    }

    .flow-step-index { grid-area: index; }
    .flow-step-label { grid-area: label; align-self: center; }
    .flow-step-note { grid-area: note; }

    .ledger-grid {
        grid-template-columns: 1fr;
    }

    .ledger-column--verified {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .project-toc ol {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .chat-enquiry-scroll {
        padding: 18px 16px 22px;
    }

    .chat-enquiry-head h3,
    .enquiry-done h3 {
        font-size: 26px;
    }

    .enquiry-choices {
        grid-template-columns: 1fr;
    }

    .chat-invite {
        max-width: 100%;
    }

    .project-hero h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .project-section > p:not(.eyebrow):not(.project-ledger-intro) {
        font-size: 16px;
    }

    .ledger-column {
        padding: 20px 18px 24px;
    }
}

@media (max-width: 360px) {
    .chat-invite-actions .chat-primary-button,
    .chat-invite-actions .chat-secondary-button {
        width: 100%;
        justify-content: center;
    }

    .enquiry-actions .chat-primary-button,
    .enquiry-actions .chat-secondary-button {
        width: 100%;
    }
}

/* Legal page lists */
.legal-content .legal-list {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 16px;
}

.legal-content .legal-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content .legal-list strong {
    color: var(--ink);
}

.legal-content h2 {
    scroll-margin-top: calc(var(--header-height) + 24px);
}
