:root {
    --ink: #251d25;
    --ink-soft: #5f5660;
    --plum: #5e274f;
    --plum-deep: #321429;
    --plum-light: #8c4e79;
    --gold: #d7a64a;
    --gold-soft: #f3dfb3;
    --cream: #fffaf2;
    --paper: #ffffff;
    --mist: #f4eee9;
    --line: #dfd5d9;
    --success: #4a7c59;
    --shadow: 0 20px 55px rgba(50, 20, 41, 0.12);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 8% 8%, rgba(215, 166, 74, 0.13), transparent 26rem),
        radial-gradient(circle at 96% 18%, rgba(140, 78, 121, 0.09), transparent 30rem);
    content: "";
    pointer-events: none;
}

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

a {
    color: inherit;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

h1,
h2,
h3 {
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

h1 span,
h2 span {
    color: var(--plum-light);
    font-style: italic;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.section {
    padding-block: 96px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--paper);
    background: var(--plum-deep);
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(94, 39, 79, 0.12);
    background: rgba(255, 250, 242, 0.94);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 40px), var(--shell));
    min-height: 78px;
    margin-inline: auto;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 45px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: var(--paper);
    background: var(--plum);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.brand-copy small {
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a[aria-current="page"] {
    color: var(--plum);
}

.main-navigation a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--gold);
    content: "";
}

.menu-button {
    display: none;
    width: 46px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin-block: 4px;
    border-radius: 2px;
    background: var(--plum-deep);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    min-height: 680px;
    padding-block: 86px;
    gap: clamp(46px, 8vw, 105px);
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--plum);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.hero h1,
.page-hero h1,
.case-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3.25rem, 7vw, 6.5rem);
    letter-spacing: -0.055em;
}

.hero-stack {
    margin-bottom: 20px;
    color: var(--plum);
    font-size: clamp(1rem, 2vw, 1.23rem);
    font-weight: 800;
    letter-spacing: 0.015em;
}

.hero-introduction {
    max-width: 700px;
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.signature-line {
    margin-bottom: 30px;
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-style: italic;
}

.button-row,
.project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
    color: var(--paper);
    background: var(--plum);
    box-shadow: 0 12px 26px rgba(94, 39, 79, 0.22);
}

.button-primary:hover {
    background: var(--plum-deep);
}

.button-secondary {
    border-color: var(--plum);
    color: var(--plum);
    background: transparent;
}

.button-light {
    color: var(--plum-deep);
    background: var(--cream);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--paper);
}

.button-small {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.78rem;
}

.hero-photo {
    position: relative;
    width: min(100%, 380px);
    margin: 0;
    justify-self: end;
}

.hero-photo::before {
    position: absolute;
    inset: -20px 20px 35px -20px;
    z-index: -1;
    border: 1px solid var(--gold);
    border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
    content: "";
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
    object-fit: cover;
    object-position: center 22%;
    box-shadow: var(--shadow);
}

.hero-photo figcaption {
    position: absolute;
    right: -20px;
    bottom: 18px;
    max-width: 240px;
    padding: 13px 17px;
    border-left: 4px solid var(--gold);
    color: var(--paper);
    background: var(--plum-deep);
    box-shadow: var(--shadow);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.proof-strip {
    border-block: 1px solid var(--line);
    background: var(--paper);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
    display: grid;
    min-height: 118px;
    align-content: center;
    padding: 20px 28px;
    border-left: 1px solid var(--line);
}

.proof-grid div:last-child {
    border-right: 1px solid var(--line);
}

.proof-grid strong {
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.proof-grid span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    align-items: end;
    margin-bottom: 46px;
    gap: 44px;
}

.section-heading h2,
.developer-edge h2,
.cta-section h2 {
    max-width: 740px;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    letter-spacing: -0.04em;
}

.section-heading > p,
.developer-edge > div:last-child p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.featured-grid {
    display: grid;
    gap: 28px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 12px 36px rgba(50, 20, 41, 0.07);
}

.project-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    min-height: 390px;
}

.project-media {
    display: grid;
    min-height: 320px;
    padding: clamp(18px, 2.4vw, 30px);
    overflow: hidden;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(94, 39, 79, 0.09), rgba(215, 166, 74, 0.12)),
        var(--mist);
}

.project-media img {
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 14px 30px rgba(50, 20, 41, 0.14);
    transition: transform 350ms ease;
}

a.project-media:hover img {
    transform: translateY(-3px);
}

.project-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 60px);
}

.project-kicker {
    margin-bottom: 15px;
    color: var(--plum-light);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.project-card-body > p:not(.project-kicker) {
    margin-bottom: 22px;
    color: var(--ink-soft);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 28px;
    gap: 8px;
    list-style: none;
}

.tag-list li,
.case-meta span {
    padding: 6px 11px;
    border: 1px solid #d9c9d2;
    border-radius: 999px;
    color: var(--plum);
    background: #fbf6f8;
    font-size: 0.72rem;
    font-weight: 800;
}

.project-actions > a:not(.button),
.text-link {
    color: var(--plum);
    font-size: 0.82rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.section-action {
    margin-top: 38px;
    text-align: right;
}

.text-link {
    font-size: 0.96rem;
}

.section-dark {
    color: #f7edf3;
    background: var(--plum-deep);
}

.section-heading-light h2,
.section-heading-light h3 {
    color: var(--paper);
}

.section-heading-light .eyebrow {
    color: var(--gold-soft);
}

.section-heading-light > p {
    color: #cabec7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.skills-grid article {
    min-height: 250px;
    padding: 34px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.skills-grid article:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.skills-grid span {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 900;
}

.skills-grid h3 {
    margin: 40px 0 14px;
    color: var(--paper);
    font-size: 1.55rem;
}

.skills-grid p {
    margin-bottom: 0;
    color: #cabec7;
    font-size: 0.88rem;
}

.developer-edge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
    align-items: center;
    gap: clamp(44px, 8vw, 100px);
}

.developer-edge .text-link {
    display: inline-block;
    margin-top: 22px;
}

.cta-section {
    padding-block: 74px;
    color: var(--paper);
    background: var(--plum);
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 40px;
}

.cta-section .eyebrow {
    color: var(--gold-soft);
}

.cta-section h2 {
    color: var(--paper);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.site-footer {
    padding-block: 32px;
    color: #cbbfc6;
    background: #21101c;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-grid div {
    display: grid;
}

.footer-grid strong {
    color: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
}

.footer-grid span,
.footer-grid p {
    font-size: 0.78rem;
}

.footer-grid p {
    margin-bottom: 0;
}

/* Projects */
.page-hero {
    max-width: 900px;
    padding-block: 90px 72px;
}

.page-hero h1 {
    margin-bottom: 24px;
}

.page-hero > p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.project-index {
    padding-bottom: 96px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
    min-height: 240px;
}

.compact-card .project-media {
    min-height: 100%;
    padding: 16px;
}

.compact-card .project-card-body {
    padding: 28px;
}

.compact-card h3 {
    font-size: 1.55rem;
}

.compact-card .tag-list {
    margin-bottom: 18px;
}

.compact-card .project-actions {
    margin-top: auto;
}

.subsection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 84px 0 30px;
    gap: 30px;
}

.subsection-heading h2 {
    max-width: 700px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.subsection-heading p {
    max-width: 470px;
    margin-bottom: 0;
    color: var(--ink-soft);
}

.education-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.education-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    padding: 28px;
    object-fit: contain;
    background:
        linear-gradient(145deg, rgba(94, 39, 79, 0.08), rgba(215, 166, 74, 0.12)),
        var(--mist);
}

.education-card > div {
    padding: clamp(32px, 5vw, 58px);
}

.education-card h3 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.education-card p {
    color: var(--ink-soft);
}

.minor-link-row {
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

/* About */
.about-intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(48px, 8vw, 110px);
}

.about-intro figure {
    position: sticky;
    top: 110px;
    margin: 0;
}

.about-intro img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 170px 170px var(--radius-lg) var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-copy .lead {
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.35;
}

.about-copy p:not(.eyebrow):not(.lead) {
    color: var(--ink-soft);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 58px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.experience-grid article {
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.experience-grid h3 {
    font-size: 1.45rem;
}

.experience-grid p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
}

.credential-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.credential-card h3 {
    margin-bottom: 9px;
    font-size: 1.35rem;
}

.credential-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

/* Case studies */
.case-hero {
    padding-block: 84px 56px;
}

.case-hero h1 {
    max-width: 980px;
    font-size: clamp(3rem, 7vw, 6rem);
}

.case-hero .case-lead {
    max-width: 820px;
    color: var(--ink-soft);
    font-size: 1.18rem;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    margin: 28px 0;
    gap: 8px;
}

.case-cover {
    overflow: hidden;
    margin-bottom: 70px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.case-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.case-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    justify-content: center;
    padding-bottom: 100px;
    gap: clamp(42px, 8vw, 100px);
}

.case-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    padding: 24px;
    border-top: 4px solid var(--gold);
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(50, 20, 41, 0.08);
}

.case-sidebar strong {
    display: block;
    margin-bottom: 12px;
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.case-sidebar ul {
    padding-left: 18px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.case-article section {
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.case-article section:last-child {
    border-bottom: 0;
}

.case-article h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.case-article h3 {
    margin: 28px 0 12px;
    font-size: 1.45rem;
}

.case-article p,
.case-article li {
    color: var(--ink-soft);
}

.case-article li + li {
    margin-top: 8px;
}

.callout {
    padding: 26px 28px;
    border-left: 4px solid var(--gold);
    background: var(--paper);
}

.callout p:last-child {
    margin-bottom: 0;
}

.next-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px;
    border-radius: var(--radius-md);
    color: var(--paper);
    background: var(--plum);
    text-decoration: none;
}

.next-project small {
    display: block;
    color: var(--gold-soft);
    letter-spacing: 0.12em;
}

.next-project strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

/* Recruiter summary, architecture, and portfolio guide */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

dialog {
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(33, 16, 28, 0.72);
    backdrop-filter: blur(6px);
}

.dialog-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--plum-deep);
    background: var(--cream);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.recruiter-dialog {
    width: min(calc(100% - 32px), 880px);
    max-height: min(88vh, 820px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--cream);
    box-shadow: 0 28px 90px rgba(33, 16, 28, 0.35);
}

.recruiter-shell {
    padding: clamp(28px, 5vw, 58px);
}

.recruiter-header,
.guide-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.recruiter-header h2,
.guide-header h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.recruiter-lead {
    max-width: 700px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.recruiter-evidence {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-block: 30px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.recruiter-evidence article {
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.recruiter-evidence span {
    color: #8b651e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.recruiter-evidence h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
}

.recruiter-evidence p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.evidence-grid article {
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.evidence-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.07rem;
}

.evidence-grid p {
    margin: 0;
    font-size: 0.84rem;
}

.architecture-diagram {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin: 28px 0 18px;
    gap: 28px;
}

.architecture-node {
    position: relative;
    display: grid;
    min-height: 124px;
    align-content: center;
    padding: 18px;
    border: 1px solid #d9c9d2;
    border-radius: 14px;
    background: var(--paper);
    text-align: center;
}

.architecture-node:not(:last-child)::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 7px);
    width: 14px;
    color: #8b651e;
    content: "→";
    font-size: 1.15rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.architecture-node strong {
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
}

.architecture-node span {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.diagram-note {
    font-size: 0.82rem;
    font-style: italic;
}

.walkthrough-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    margin: 28px 0 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    counter-reset: walkthrough;
    list-style: none;
}

.walkthrough-steps li {
    position: relative;
    min-height: 188px;
    padding: 64px 20px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    counter-increment: walkthrough;
}

.walkthrough-steps li::before {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper);
    background: var(--plum);
    content: counter(walkthrough, decimal-leading-zero);
    font-size: 0.68rem;
    font-weight: 900;
}

.walkthrough-steps strong {
    display: block;
    margin-bottom: 6px;
    color: var(--plum-deep);
    font-family: Georgia, "Times New Roman", serif;
}

.walkthrough-steps span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.quality-note {
    padding: 16px 18px;
    margin-top: 28px;
    border-left: 4px solid var(--gold);
    color: var(--ink-soft);
    background: var(--paper);
    font-size: 0.82rem;
}

.guide-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 11px 17px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--paper);
    background: var(--plum-deep);
    box-shadow: 0 15px 36px rgba(33, 16, 28, 0.28);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.guide-launcher:hover {
    background: var(--plum);
    transform: translateY(-2px);
}

.guide-dialog {
    width: min(calc(100% - 28px), 690px);
    max-height: min(90vh, 780px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--cream);
    box-shadow: 0 28px 90px rgba(33, 16, 28, 0.4);
}

.guide-shell {
    display: grid;
    max-height: min(90vh, 780px);
    grid-template-rows: auto auto minmax(170px, 1fr) auto auto auto;
    padding: clamp(22px, 4vw, 34px);
}

.guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    gap: 14px;
    border-top: 1px solid var(--line);
}

.guide-footer .guide-status {
    margin: 0;
}

.guide-close-action {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--plum-deep);
    background: var(--cream);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.guide-close-action:hover {
    border-color: var(--plum-light);
    background: var(--rose-pale);
}

.guide-header h2 {
    font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.guide-eyebrow {
    margin-bottom: 7px;
    color: var(--plum-light);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.guide-disclosure,
.guide-status {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.guide-disclosure {
    padding-bottom: 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.guide-messages {
    display: flex;
    min-height: 180px;
    padding: 20px 4px;
    overflow-y: auto;
    flex-direction: column;
    gap: 12px;
}

.guide-message {
    width: fit-content;
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 15px;
    font-size: 0.87rem;
}

.guide-message p {
    margin: 0;
}

.guide-message-assistant {
    align-self: flex-start;
    border: 1px solid var(--line);
    background: var(--paper);
}

.guide-message-user {
    align-self: flex-end;
    color: var(--paper);
    background: var(--plum);
}

.guide-sources {
    padding-top: 9px;
    margin-top: 9px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.7rem;
}

.guide-sources a {
    color: var(--plum);
    font-weight: 800;
    text-underline-offset: 3px;
}

.guide-prompts {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 12px;
    gap: 7px;
}

.guide-prompts button {
    padding: 7px 10px;
    border: 1px solid #d9c9d2;
    border-radius: 999px;
    color: var(--plum);
    background: #fbf6f8;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.guide-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.guide-form input {
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cdbbc5;
    border-radius: 999px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 0.86rem;
}

.guide-form input:focus,
.dialog-close:focus-visible,
.guide-close-action:focus-visible,
.guide-prompts button:focus-visible,
.guide-launcher:focus-visible {
    outline: 3px solid rgba(215, 166, 74, 0.55);
    outline-offset: 2px;
}

.guide-form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.guide-status {
    margin: 9px 0 0;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        gap: 50px;
    }

    .proof-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-grid div:nth-child(3),
    .skills-grid article:nth-child(3) {
        border-top: 1px solid var(--line);
    }

    .proof-grid div:nth-child(4),
    .skills-grid article:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .skills-grid article:nth-child(3),
    .skills-grid article:nth-child(4) {
        border-top-color: rgba(255, 255, 255, 0.16);
    }

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

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

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

    .architecture-node:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .shell,
    .nav-shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .section {
        padding-block: 70px;
    }

    .brand-copy {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--paper);
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 0;
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        padding: 13px 12px;
        border-radius: 8px;
    }

    .main-navigation a:hover,
    .main-navigation a[aria-current="page"] {
        background: var(--mist);
    }

    .main-navigation a[aria-current="page"]::after {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 64px 76px;
    }

    .hero-copy {
        order: 0;
    }

    .hero-photo {
        width: min(82%, 390px);
        margin-inline: auto;
        justify-self: center;
        order: 1;
    }

    .hero-photo figcaption {
        right: -10px;
    }

    .proof-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid div,
    .proof-grid div:last-child,
    .skills-grid article,
    .skills-grid article:last-child {
        min-height: auto;
        border-top: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .proof-grid div:first-child {
        border-top: 0;
    }

    .skills-grid article {
        min-height: 0;
        border-top-color: rgba(255, 255, 255, 0.16);
        border-right-color: rgba(255, 255, 255, 0.16);
    }

    .skills-grid h3 {
        margin-top: 16px;
    }

    .section-heading,
    .developer-edge,
    .cta-grid,
    .about-intro,
    .credentials-grid,
    .case-layout {
        grid-template-columns: 1fr;
    }

    .project-card-featured,
    .education-card {
        grid-template-columns: 1fr;
    }

    .project-media {
        min-height: 240px;
    }

    .compact-card {
        grid-template-columns: 1fr;
    }

    .compact-card .project-media {
        min-height: 210px;
    }

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

    .about-intro figure,
    .case-sidebar {
        position: static;
    }

    .about-intro figure {
        width: min(76%, 390px);
        margin-inline: auto;
    }

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

    .recruiter-evidence,
    .evidence-grid,
    .architecture-diagram,
    .walkthrough-steps {
        grid-template-columns: 1fr;
    }

    .architecture-node:not(:last-child)::after {
        top: calc(100% + 2px);
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    .architecture-node:nth-child(2)::after {
        display: block;
    }

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

@media (max-width: 460px) {
    .hero h1,
    .page-hero h1,
    .case-hero h1 {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .button-row .button {
        width: 100%;
    }

    .hero-photo {
        width: 90%;
    }

    .project-card-body,
    .education-card > div {
        padding: 26px 22px;
    }

    .guide-launcher {
        right: 12px;
        bottom: 12px;
    }

    .guide-dialog {
        width: calc(100% - 20px);
    }

    .guide-shell {
        padding: 20px 16px;
    }

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

    .guide-form .button {
        width: 100%;
    }

}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Curriculum case study */
.curriculum-units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.curriculum-units li {
    min-height: 0;
    padding: 20px 20px 20px 66px;
}

.curriculum-units li::before {
    top: 18px;
}

.curriculum-units li:last-child {
    grid-column: 1 / -1;
}

.architecture-diagram-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.architecture-diagram-six .architecture-node:nth-child(3)::after {
    display: none;
}

.artifact-list {
    display: grid;
    padding: 0;
    margin: 24px 0 0;
    gap: 12px;
    list-style: none;
}

.artifact-list li {
    display: grid;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    gap: 4px;
}

.artifact-list a {
    color: var(--plum);
    font-weight: 850;
    text-underline-offset: 4px;
}

.artifact-list span {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.resume-note {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.resume-note a {
    color: var(--plum);
    font-weight: 850;
    text-underline-offset: 4px;
}

/* Portfolio guide: rich answers and actions */
.guide-message p + p,
.guide-message ul + p,
.guide-message p + ul {
    margin-top: 8px;
}

.guide-message ul {
    padding-left: 18px;
    margin: 0;
}

.guide-message li + li {
    margin-top: 3px;
}

.guide-message a {
    color: var(--plum);
    font-weight: 800;
    text-underline-offset: 3px;
}

.guide-message-user a {
    color: inherit;
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 11px;
    gap: 8px;
}

.guide-message .guide-action {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--paper);
    background: var(--plum);
    font-size: 0.74rem;
    font-weight: 850;
    text-decoration: none;
}

.guide-message .guide-action:hover {
    color: var(--paper);
    background: var(--plum-deep);
}

.guide-message .guide-action:focus-visible {
    outline: 3px solid rgba(215, 166, 74, 0.55);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .curriculum-units,
    .architecture-diagram-six {
        grid-template-columns: 1fr;
    }

    .architecture-diagram-six .architecture-node:nth-child(3)::after {
        display: block;
    }
}

/* Hero: audience-specific recruiter paths */
.recruiter-paths {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
    gap: 10px 12px;
}

.recruiter-paths > span {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

/* Earlier practice projects and planning note */
.practice-list {
    display: grid;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.practice-list li {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr) auto;
    align-items: baseline;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    gap: 6px 24px;
}

.practice-list strong {
    color: var(--plum-deep);
}

.practice-list span {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.practice-links {
    display: flex;
    gap: 14px;
}

.practice-links a,
.planning-note a {
    color: var(--plum);
    font-weight: 850;
    text-underline-offset: 4px;
}

.planning-note {
    padding: 22px 24px;
    border-left: 4px solid var(--gold);
    color: var(--ink-soft);
    background: var(--paper);
}

@media (max-width: 760px) {
    .practice-list li {
        grid-template-columns: 1fr;
    }
}
