/* Editor-workspace layer and shared navigation refinements. */
:root { --display: 'Funnel Display', var(--sans); }
h1, h2 { font-family: var(--display); }
.nav-btn { background: color-mix(in srgb, var(--nav) 90%, #000); }
.nav-btn:hover, .nav-btn[aria-expanded=true] { background: var(--surface-raised); color: var(--text); }
.hero { gap: 48px; padding-block: 84px 64px; }
.hero-copy { min-width: 0; }
.hero-intro { font-family: var(--mono); }
.hero h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: 1.08; }
.hero-title-ending { white-space: nowrap; }
.hero-cursor { display: inline-block; margin-left: .1em; color: #11C28A; font-family: var(--mono); font-weight: 400; letter-spacing: 0; animation: hero-cursor-blink 1s steps(1, end) infinite; }
@keyframes hero-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-cursor { animation: none; }
}
.hero-bio { max-width: 48ch; font-size: 1rem; line-height: 1.85; }
.hero .editor { box-shadow: none; }
.hero .editor-body { min-height: 295px; }
.hero .editor-status { flex-wrap: wrap; gap: 5px 14px; }
.hero .editor-tab { min-width: 0; }
.hero .editor-tab:focus-visible { outline-offset: -3px; }
.code-section {
    padding: 30px 0;
    border-top: 0;
}
.code-section:last-child { padding-bottom: 70px; }
/* The base page already reserves header space with scroll-padding-top. */
.code-section[id], .project-file[id], .service-definition[id] { scroll-margin-top: 0; }
.workspace-window {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    overflow: clip;
}
.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 49px;
    padding: 0 22px 0 0;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--line);
    font: 400 .8125rem/1.5 var(--mono);
}
.workspace-file {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    padding: 13px 22px;
    border-right: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    background: var(--surface);
    color: var(--text);
}
.file-type { color: var(--blue); font-family: var(--mono); font-size: .8125rem; }
.workspace-path { color: var(--subtle); overflow-wrap: anywhere; text-align: right; }
.workspace-content { padding: 34px; }
.workspace-content > *, .workspace-heading > *, .about-workbench > * { min-width: 0; }
.workspace-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 34px;
    margin: 8px 0 30px;
}
.workspace-heading h2,
.about-workbench h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.35;
}
.workspace-heading > p { max-width: 350px; color: var(--muted); font-size: .9375rem; justify-self: end; }
.workspace-status {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 22px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--subtle);
    font: 400 .75rem/1.6 var(--mono);
}
.workspace-note { margin-top: 25px; }
.workspace-note .text-link { font-size: .875rem; }
.workspace-window .section-label { margin-bottom: 12px; }

/* Equal, repeatable project files: two columns, any number of rows. */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.project-file {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    overflow: clip;
    scroll-margin-top: 110px;
    transition: border-color .16s;
}
.project-file:hover, .project-file:focus-within { border-color: var(--accent); }
.project-file-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font: 400 .75rem/1.5 var(--mono);
}
.project-file-tab > span { min-width: 0; overflow-wrap: anywhere; }
.project-category { margin-left: auto; color: var(--subtle); font-size: .75rem; }
.project-file-cover { aspect-ratio: 4 / 3; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.project-file-cover img { width: 100%; height: 100%; object-fit: contain; }
.project-file-content { display: flex; flex-direction: column; flex: 1; padding: 25px; }
.project-file-content h3 { font: 500 1.35rem/1.3 var(--sans); letter-spacing: -.02em; margin-bottom: 13px; }
.project-file-content > p { color: var(--muted); font-size: .9375rem; line-height: 1.8; margin-bottom: 25px; }
.project-file-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: auto; }
.project-properties { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; font: 400 .75rem/1.6 var(--mono); }
.project-properties dt { color: var(--subtle); font-size: .75rem; margin-bottom: 3px; }
.project-properties dd { margin: 0; color: var(--text); }
.project-properties .status-live { color: var(--accent); }
.project-properties .status-development { color: var(--blue); }
.project-file-footer .btn { min-height: 42px; padding: 10px 13px; font: 500 .8125rem/1.5 var(--mono); white-space: nowrap; }

/* Services are a readable source file with a real, linked file explorer. */
.services-workbench { display: grid; grid-template-columns: 200px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 5px; overflow: clip; }
.file-explorer { padding: 23px 16px; background: var(--bg); border-right: 1px solid var(--line); font: 400 .8125rem/1.7 var(--mono); }
.explorer-label { color: var(--text); margin: 0 8px 18px; }
.file-explorer a { display: flex; gap: 10px; padding: 12px 7px; border-left: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; }
.file-explorer a span { color: var(--blue); }
.file-explorer a:hover, .file-explorer a:focus-visible { background: var(--surface-raised); color: var(--accent); border-left-color: var(--accent); }
.service-definitions { min-width: 0; padding: 26px 25px; }
.code-declaration { font: 400 .875rem/1.8 var(--mono); color: var(--muted); }
.service-definition { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 16px; padding-top: 24px; scroll-margin-top: 115px; }
.definition-gutter { padding-top: 3px; color: var(--subtle); font: 400 .75rem/1.7 var(--mono); border-right: 1px solid var(--line); }
.definition-key { color: var(--blue); font: 400 .8125rem/1.7 var(--mono); margin-bottom: 12px; }
.service-definition h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 10px; }
.service-definition h3 + p { max-width: 590px; color: var(--muted); font-size: .9375rem; line-height: 1.85; }
.deliverable-list { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 7px; margin: 16px 0; font: 400 .75rem/1.7 var(--mono); color: var(--accent); }
.deliverable-list li { border-bottom: 1px solid var(--line); }
.closing-brace { display: block; color: var(--muted); font: 400 .875rem/1.8 var(--mono); margin-bottom: 5px; }

/* A real sequence: one shared brief, four stages, and a clear handover. */
.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 5px; overflow: clip; }
.workflow-steps > li { display: flex; flex-direction: column; min-width: 0; padding: 24px 20px; background: var(--bg); }
.workflow-steps > li + li { border-left: 1px solid var(--line); }
.workflow-step-number { display: block; margin-bottom: 24px; color: var(--accent); font: 500 .8125rem/1.5 var(--mono); }
.workflow-steps h3 { margin-bottom: 14px; font: 500 1.125rem/1.4 var(--sans); letter-spacing: -.025em; }
.workflow-steps p { margin-bottom: 26px; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.workflow-output { display: block; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font: 400 .75rem/1.7 var(--mono); }
.workflow-output > span { display: block; margin-bottom: 5px; color: var(--subtle); font-size: .6875rem; }
@media (max-width: 1000px) {
    .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workflow-steps > li:nth-child(3) { border-left: 0; }
    .workflow-steps > li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
    .workflow-steps { grid-template-columns: 1fr; }
    .workflow-steps > li { padding: 22px 18px; }
    .workflow-steps > li + li { border-left: 0; border-top: 1px solid var(--line); }
    .workflow-step-number { margin-bottom: 16px; }
    .workflow-steps p { margin-bottom: 20px; }
}

/* README and repositories share the editor frame without competing with content. */
.about-workbench { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 40px; }
.about-workbench > div:first-child { padding-top: 9px; }
.about-workbench > div + div { border-left: 1px solid var(--line); padding-left: 34px; }
.about-workbench .about-copy { font-size: 1rem; }
.about-workbench .collaborations { margin-top: 30px; }
.about-workbench .collaboration { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; }
.about-workbench .collaboration strong, .about-workbench .collaboration small { overflow-wrap: anywhere; }
.source-workspace .source-panel { padding: 0; border: 0; border-radius: 0; background: transparent; gap: 40px; }
.source-workspace .source-intro h2 { font-family: var(--display); font-size: 1.8rem; line-height: 1.35; }
.source-workspace .repo-row { padding-left: 17px; border-left: 1px solid var(--line); }
.source-workspace .repo-row:hover { border-left-color: var(--accent); }
.source-workspace .repo-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.source-workspace .repo-row h3, .source-workspace .repo-row p { overflow-wrap: anywhere; }

/* Direct contact channels: the whole card is a keyboard-accessible link. */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-cards > li { min-width: 0; }
.contact-card { display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.contact-card:hover, .contact-card:focus-visible { border-color: var(--accent); background: var(--surface-raised); }
.contact-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.contact-card-heading h3 { font: 500 1.125rem/1.4 var(--mono); letter-spacing: -.025em; }
.contact-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); }
.contact-card-value { color: var(--text); font: 400 .875rem/1.7 var(--mono); overflow-wrap: anywhere; margin-bottom: 10px; }
.contact-card-note { color: var(--muted); font-size: .875rem; line-height: 1.8; margin-bottom: 24px; }
.contact-card-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--accent); font: 500 .8125rem/1.6 var(--mono); }
.contact-card-arrow { width: 18px; height: 18px; }

/* Utility subdomains use the same open-file shell. Navbar remains untouched. */
.utility-main { padding-top: 65px; padding-bottom: 45px; }
.utility-workspace .workspace-content { padding: 40px; }
.utility-workspace .utility-intro { max-width: none; margin-bottom: 38px; }
.utility-workspace .utility-intro .lead { max-width: none; }
.utility-workspace .utility-intro h1 { font: 500 clamp(2.2rem, 4vw, 3.4rem)/1.2 var(--display); letter-spacing: -.06em; }
.utility-workspace .utility-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 0; }
.utility-workspace .utility-sidebar { border-right: 1px solid var(--line); padding-right: 28px; }
.utility-workspace .link-group:last-child { margin-bottom: 0; }
.utility-workspace .payment-card { border-radius: 5px; background: var(--bg); }
.utility-workspace .payment-card-head { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.utility-workspace .payment-card-head :is(h2, h3) { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.utility-workspace .payment-card .btn { font-family: var(--mono); font-size: .8125rem; }
.utility-workspace .bank-section { margin-bottom: 30px; }
.utility-workspace .utility-note:last-child { margin-bottom: 0; }

/* Links: a full-width introduction and grouped destination cards. */
.links-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.links-actions .btn { min-height: 46px; padding: 12px 18px; font: 500 .8125rem/1.6 var(--mono); gap: 10px; }
.links-actions .btn svg { width: 18px; height: 18px; color: var(--accent); }
.links-workspace .utility-status:empty { display: none; }
.links-directory { display: grid; gap: 32px; }
.links-directory .link-group { margin: 0; min-width: 0; }
.links-directory .link-group h2 { margin-bottom: 15px; font-size: .8125rem; }
.links-directory .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.links-directory .link-row { min-width: 0; min-height: 94px; padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); gap: 14px; }
.links-directory .link-row:hover, .links-directory .link-row:focus-visible { border-color: var(--accent); background: var(--surface-raised); }
.links-directory .link-symbol { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.links-directory .link-symbol svg { width: 20px; height: 20px; }
.links-directory .link-copy strong { font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.links-directory .link-copy small { font-size: .8125rem; line-height: 1.65; }
.links-directory .link-action { font-size: .6875rem; }
@media (max-width: 760px) {
    .links-directory .link-grid { grid-template-columns: 1fr; }
    .links-directory .link-row { min-height: 86px; }
}
@media (max-width: 620px) {
    .utility-workspace .utility-intro { margin-bottom: 30px; }
    .links-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .links-actions .btn { width: 100%; }
    .links-directory .link-row { padding: 15px 12px; gap: 12px; }
    .links-directory .link-symbol { width: 36px; height: 36px; }
}

/* Grouped skills are content, not buttons. Color complements the visible label. */
.skill-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; padding: 25px 0; border-top: 1px solid var(--line); }
.skill-group:first-child { padding-top: 6px; border-top: 0; }
.skill-group:last-child { padding-bottom: 6px; }
.skill-group h3 { font: 400 .875rem/1.7 var(--mono); color: var(--muted); padding-top: 9px; letter-spacing: -.02em; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-badge { --badge-ink: var(--badge-dark); display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; min-height: 40px; max-width: 100%; border: 1px solid color-mix(in srgb, var(--badge-ink) 30%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--badge-ink) 9%, var(--surface)); color: var(--badge-ink); font: 500 .8125rem/1.5 var(--sans); }
.skill-badge svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
[data-theme=light] .skill-badge { --badge-ink: var(--badge-light); }

/* Identical action rows for all payment methods, including the copy feedback. */
.utility-workspace .payment-card { padding: 24px; }
.utility-workspace .payment-card-head { gap: 12px; align-items: baseline; }
.utility-workspace .payment-type { font-size: .75rem; text-align: right; }
.utility-workspace .payment-address { min-height: 2.8em; font-size: .8125rem; }
.utility-workspace .payment-note { font-size: .875rem; line-height: 1.7; }
.utility-workspace .payment-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; gap: 8px; width: 100%; max-width: none; }
.utility-workspace .payment-actions > .btn { padding: 11px 9px; font-size: .8125rem; min-height: 46px; }
.payment-copy { display: grid; place-items: center; width: 44px; min-height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); }
.payment-copy:hover, .payment-copy:focus-visible, .payment-copy.is-copied { border-color: var(--accent); color: var(--accent); background: var(--surface-raised); }
.payment-copy svg { width: 19px; height: 19px; }
.payment-copy .check-icon, .payment-copy.is-copied .copy-icon { display: none; }
.payment-copy.is-copied .check-icon { display: block; }
.bank-intro { margin-bottom: 28px; }
.bank-intro > .payment-note { max-width: none; margin-top: 15px; margin-bottom: 0; }
.bank-payment-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.utility-workspace .bank-account { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; }
.utility-workspace .bank-account .payment-card-head { margin-bottom: 0; }
.utility-workspace .bank-details { flex: 1; grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(min-content, 1fr)); align-items: stretch; gap: 0; margin: 0; }
.utility-workspace .bank-detail { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; }
.utility-workspace .bank-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.utility-workspace .bank-detail dt { margin-bottom: 0; }
.utility-workspace .bank-detail dd { align-items: center; flex-wrap: nowrap; min-width: 0; min-height: 46px; font-variant-numeric: tabular-nums; }
.bank-detail dd > span { min-width: 0; }
.bank-detail .payment-copy { flex: 0 0 44px; }

/* A distinct closing note above a consistent, aligned copyright row. */
.site-footer { padding-block: 42px 24px; }
.site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; margin-bottom: 32px; }
.site-footer .footer-brand { min-width: 0; }
.site-footer .footer-name { display: inline-block; font-size: 1.2rem; line-height: 1.5; }
.site-footer .footer-tagline { max-width: 46ch; margin-top: 14px; font: 400 1rem/1.8 var(--sans); color: var(--muted); text-wrap: pretty; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 34px; min-width: 220px; }
.site-footer .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.7; }

@media (max-width: 1000px) {
    .bank-payment-layout { grid-template-columns: 1fr; gap: 30px; }
    .utility-workspace .bank-account { grid-column: auto; }
    .workspace-content { padding: 27px; }
    .workspace-heading { grid-template-columns: 1fr; gap: 15px; }
    .workspace-heading > p { max-width: 560px; justify-self: start; }
    .project-file-content { padding: 21px; }
    .project-file-footer { align-items: flex-start; flex-direction: column; }
    .project-file-footer .btn { align-self: stretch; }
    .services-workbench { grid-template-columns: 180px minmax(0, 1fr); }
    .file-explorer { padding: 20px 11px; font-size: .75rem; }
    .service-definitions { padding: 23px 20px; }
    .about-workbench { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 27px; }
    .utility-workspace .workspace-content { padding: 28px; }
    .skill-group { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
    .utility-workspace .payment-address { min-height: 0; }
}
@media (max-width: 950px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 64px 44px; }
    .hero h1 { font-size: clamp(3rem, 7vw, 4.25rem); }
    .hero-bio { max-width: 60ch; }
    .hero .editor { width: 100%; max-width: 640px; }
    .hero .editor-body { min-height: 285px; padding: 22px; }
    .hero .editor-tab { font-size: .8125rem; }
}
@media (max-width: 900px) {
    .contact-cards { grid-template-columns: 1fr; gap: 16px; }
    .contact-card { padding: 22px; }
}
@media (max-width: 760px) {
    .workspace-content { padding: 24px; }
    .services-workbench { grid-template-columns: 1fr; }
    .file-explorer { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; column-gap: 16px; padding: 16px 20px; }
    .explorer-label { flex-basis: 100%; margin: 0 0 7px; }
    .file-explorer a { border-left: 0; padding: 8px 0; }
    .about-workbench { grid-template-columns: 1fr; gap: 28px; }
    .about-workbench > div + div { padding: 0; border-left: 0; }
    .source-workspace .source-panel { grid-template-columns: 1fr; gap: 30px; }
    .utility-workspace .utility-layout { grid-template-columns: 1fr; gap: 35px; }
    .utility-workspace .utility-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 22px; }
    .workspace-status { padding-inline: 18px; font-size: .6875rem; }
    .site-footer .footer-top { gap: 28px; grid-template-columns: 1fr; }
    .site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; min-width: 0; }
    .site-footer .footer-tagline { max-width: 50ch; }
}
@media (max-width: 620px) {
    main.container, .site-footer > .container { width: calc(100% - 32px); }
    .hero { padding-block: 48px 32px; }
    .hero h1 { font-size: clamp(2.8rem, 9.6vw, 3.6rem); margin-bottom: 24px; }
    .hero-bio { font-size: .9375rem; }
    .hero-actions { gap: 20px; margin-top: 26px; }
    .hero .editor-body { padding: 20px 13px; }
    .project-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 22px; }
    .workspace-toolbar { padding-right: 14px; gap: 10px; }
    .workspace-file { padding: 12px 16px; font-size: .8125rem; gap: 9px; }
    .workspace-path { font-size: .6875rem; }
    .workspace-content, .utility-workspace .workspace-content { padding: 22px 18px; }
    .workspace-heading h2, .about-workbench h2 { font-size: 1.65rem; }
    .project-file-content { padding: 21px 18px; }
    .project-category { font-size: .6875rem; }
    .workspace-status { flex-wrap: wrap; gap: 3px 18px; }
    .workspace-status > span:last-child { color: var(--muted); }
    .code-section { padding-block: 23px; }
    .code-section:last-child { padding-bottom: 30px; }
    .service-definitions { padding: 22px 16px; }
    .service-definition { grid-template-columns: 1fr; gap: 0; }
    .definition-gutter { display: none; }
    .utility-workspace .utility-intro h1 { font-size: 2.3rem; }
    .utility-main { padding-top: 45px; }
    .skill-group { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
    .skill-group h3 { padding-top: 0; }
    .skill-badges { gap: 9px; }
    .skill-badge { padding: 8px 12px; }
    .about-workbench .collaboration { grid-template-columns: 36px minmax(0, 1fr); }
    .about-workbench .collaboration .role { grid-column: 2; margin: -8px 0 0; }
    .utility-workspace .payment-grid { grid-template-columns: 1fr; }
    .utility-workspace .payment-card { display: flex; flex-direction: column; padding: 22px 18px; gap: 0; }
    .utility-workspace .payment-card-head { margin-bottom: 22px; }
    .utility-workspace .qr-container { width: min(200px, 100%); margin-bottom: 22px; }
    .utility-workspace .payment-address, .utility-workspace .payment-note { text-align: left; }
    .utility-workspace .payment-actions { margin-top: auto; align-self: stretch; }
    .utility-workspace .bank-detail { grid-template-columns: 1fr; gap: 8px; }
    .site-footer { padding-top: 32px; }
    .site-footer .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
    .site-footer .footer-links a { min-height: 44px; }
    .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
    .hero .file-icon { display: none; }
    .hero .editor-tab { font-size: .75rem; padding-inline: 7px; }
    .hero .editor-status { font-size: .625rem; }
    .hero .editor-body { font-size: .75rem; }
    .workspace-path { display: none; }
    .project-file-footer { flex-direction: column; align-items: stretch; }
    .project-file-footer .btn { align-self: stretch; }
    .project-file-tab { padding-inline: 12px; gap: 7px; font-size: .6875rem; }
    .project-category { display: none; }
    .project-file-content h3 { font-size: 1.25rem; }
    .workspace-content, .utility-workspace .workspace-content { padding-inline: 14px; }
    .service-definitions { padding-inline: 12px; }
    .service-definition { grid-template-columns: 1fr; }
    .definition-gutter { display: none; }
    .skill-badge { padding-inline: 10px; gap: 7px; font-size: .75rem; }
    .utility-workspace .payment-card { padding-inline: 14px; }
    .utility-workspace .bank-account .payment-card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Keep editor chrome and small navigation labels consistent at every width. */
.hero-intro,
.hero-footnote,
.editor-titlebar,
.editor-title,
.workspace-toolbar,
.workspace-file,
.workspace-path,
.file-type,
.hero .editor-tab,
.hero .file-icon,
.hero .editor-status,
.workspace-status,
.project-file-tab,
.project-category,
.section-label,
.mega-heading,
.file-explorer,
.links-directory .link-group h2,
.utility-workspace .payment-type { font-size: 12px; text-transform: uppercase; }
