@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;700&display=swap");

:root {
    --site-bg: #fef9eb;
    --site-paper: #fffaf0;
    --site-surface: #ffffff;
    --site-ink: #15120e;
    --site-text: #221d18;
    --site-text-soft: #62584e;
    --site-muted: #e8dbc0;
    --site-accent: #f4c95d;
    --site-accent-deep: #d9a52f;
    --site-blue: #315b7a;
    --site-green: #4e6b59;
    --site-rose: #b1495a;
    --site-border: rgba(34, 29, 24, 0.16);
    --site-shadow: 0 18px 44px rgba(45, 35, 22, 0.12);
    --site-radius: 8px;
    --site-max-width: 1160px;
    --site-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --site-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --site-font-nav: "Product Sans", "Google Sans", Arial, Helvetica, sans-serif;
    --hero-axis: 50vw;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-width: 320px;
    margin: 0;
    color: var(--site-text);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.88), rgba(248, 239, 215, 0.95)),
        var(--site-bg);
    font-family: var(--site-font-body);
    letter-spacing: 0;
}

body.has-modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer,
.site-main {
    width: min(100% - 2rem, var(--site-max-width));
    min-width: 0;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    background: rgba(248, 239, 215, 0.86);
    backdrop-filter: blur(14px);
}

.site-logo {
    color: var(--site-ink);
    font-family: var(--site-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.contact-links a,
.project-card a {
    color: var(--site-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28em;
}

.site-nav a {
    color: var(--site-text);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.32em;
}

.site-main {
    padding: 0 0 4rem;
}

.site-messages {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-feedback {
    margin: 0 0 0.25rem;
}

.site-message {
    padding: 0.9rem 1rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.site-message.success {
    border-color: rgba(78, 107, 89, 0.32);
    background: rgba(78, 107, 89, 0.1);
}

.site-message.error {
    border-color: rgba(177, 73, 90, 0.34);
    background: rgba(177, 73, 90, 0.1);
}

.portfolio-hero {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: clamp(620px, 82svh, 760px);
    padding: 2rem 0 3rem;
    overflow: hidden;
    text-align: center;
}

.portfolio-hero::after {
    position: absolute;
    top: -4rem;
    right: -8rem;
    width: 30rem;
    height: 10rem;
    content: "";
    border: 1px solid rgba(34, 29, 24, 0.08);
    border-radius: 50%;
    transform: rotate(-9deg);
}

.hero-puzzle {
    width: 7.6rem;
    margin-bottom: 0.45rem;
    filter: drop-shadow(0 8px 16px rgba(34, 29, 24, 0.12));
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    margin: 0 0 0.55rem;
    padding: 0.35rem 1rem;
    border: 1px solid var(--site-ink);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: var(--site-ink);
    font-size: 0.82rem;
}

.portfolio-hero h1 {
    margin: 0;
    color: var(--site-ink);
    font-family: var(--site-font-display);
    font-size: 5.1rem;
    font-weight: 600;
    line-height: 0.9;
}

.portfolio-hero h1 span {
    display: block;
}

.portfolio-hero h1 span:last-child {
    margin-top: 0.55rem;
    font-size: 1.08rem;
    font-variant: small-caps;
}

.hero-profile,
.about-profile {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 34px rgba(45, 35, 22, 0.18);
}

.hero-profile {
    width: 8.2rem;
    height: 8.2rem;
    margin-top: 1.35rem;
    border: 4px solid var(--site-paper);
}

.hero-lede {
    margin: 1.2rem 0 0.45rem;
    font-family: var(--site-font-display);
    font-size: 1.25rem;
}

.hero-copy,
.section-copy,
.contact-intro p {
    max-width: 42rem;
    color: var(--site-text-soft);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-copy {
    margin: 0 auto 1.35rem;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.button-link,
.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    min-width: 11.8rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--site-ink);
    border-radius: 999px;
    background: var(--site-accent);
    color: var(--site-ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-link:hover,
.button-link:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
    transform: translateY(-2px);
    background: #ffd978;
    box-shadow: 0 10px 22px rgba(45, 35, 22, 0.16);
}

.button-link-secondary {
    background: rgba(255, 255, 255, 0.26);
}

.content-section {
    padding: 4.5rem 0;
    scroll-margin-top: 5.5rem;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--site-green);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.content-section h1,
.content-section h2,
.contact-page h1 {
    margin: 0;
    color: var(--site-ink);
    font-family: var(--site-font-display);
    font-size: 2.65rem;
    font-weight: 400;
    line-height: 1.04;
}

.content-section .section-kicker {
    margin-bottom: 1.2rem;
    font-family: var(--site-font-body);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.company-section {
    border-top: 1px solid var(--site-border);
}

.company-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0 1rem;
    contain: layout paint;
    cursor: grab;
    scrollbar-width: none;
    scroll-behavior: auto;
    touch-action: pan-y;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-overflow-scrolling: touch;
}

.company-carousel::-webkit-scrollbar {
    display: none;
}

.company-carousel.is-dragging {
    cursor: grabbing;
}

.company-track {
    display: flex;
    width: max-content;
    min-width: max-content;
}

.company-set {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
}

.company-logo-card,
.project-card,
.timeline-list li,
.contact-form {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.company-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13.5rem;
    flex: 0 0 13.5rem;
    aspect-ratio: 1;
    min-height: 0;
    padding: 1.15rem;
    overflow: hidden;
    text-decoration: none;
    -webkit-user-drag: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.company-logo-card:hover,
.company-logo-card:focus-visible {
    border-color: rgba(34, 29, 24, 0.3);
    box-shadow: 0 18px 34px rgba(45, 35, 22, 0.16);
    transform: translateY(-3px);
}

.company-logo-card img {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.company-logo-card:nth-child(2) img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    object-position: center 34%;
}

.company-logo-card-static {
    background: #fff;
}

.about-layout {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}

.about-profile {
    width: 18rem;
    height: 18rem;
    border: 6px solid var(--site-paper);
}

.about-copy {
    max-width: 48rem;
}

.about-copy p,
.project-card p,
.experience-list p,
.timeline-list p {
    color: var(--site-text-soft);
    line-height: 1.7;
}

.skills-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(232, 219, 192, 0.32));
    margin-inline: -1rem;
    padding-inline: 1rem;
}

.skills-experience {
    max-width: 58rem;
    margin: 0 auto;
    color: var(--site-text);
    font-size: 1rem;
    line-height: 1.65;
}

.skills-experience__nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2.2rem;
    border-bottom: 1px solid rgba(49, 91, 122, 0.2);
}

.tab-underline {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--site-blue), #90b2da);
    transition: left 420ms cubic-bezier(0.39, 0.575, 0.565, 1), width 420ms cubic-bezier(0.39, 0.575, 0.565, 1);
}

.skills-tab-button {
    position: relative;
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    color: var(--site-text);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease, transform 180ms ease;
}

.skills-tab-button:hover,
.skills-tab-button:focus-visible,
.skills-tab-button.is-active {
    color: var(--site-blue);
}

.skills-tab-button:hover,
.skills-tab-button:focus-visible {
    transform: translateY(-1px);
}

.skills-experience__content {
    position: relative;
}

.skills-panel {
    display: none;
    opacity: 0;
}

.skills-panel.is-active {
    display: block;
    animation: skillsPanelIn 500ms cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@keyframes skillsPanelIn {
    0% {
        opacity: 0;
        transform: translateY(44px);
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.35rem;
}

.skill-row + .skill-row {
    margin-top: 2rem;
}

.skill-rib {
    display: flex;
    justify-content: flex-end;
    border-right: 2px solid var(--site-blue);
}

.skill-rib span {
    align-self: flex-start;
    padding: 0.65rem 0.8rem;
    background: var(--site-blue);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.skill-content h3,
.experience-position h3,
.timeline-list h3,
.project-card h3 {
    margin: 0 0 0.7rem;
    color: var(--site-ink);
    font-size: 1.22rem;
}

.skill-content h3,
.experience-position h3 {
    font-family: var(--site-font-display);
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1.1;
}

.skill-tags,
.position-tags {
    padding: 0;
    margin: 0;
    list-style: none;
}

.skill-tags li {
    display: inline;
    color: var(--site-text-soft);
    font-weight: 500;
}

.skill-tags li::after {
    content: "•";
    margin: 0 0.35rem 0 0.5rem;
    color: var(--site-blue);
    font-size: 1.05rem;
}

.skill-tags li:last-child::after {
    display: none;
}

.experience-showcase {
    display: block;
}

.experience-positions {
    position: relative;
}

.experience-positions::before {
    position: absolute;
    top: 0;
    bottom: 1.8rem;
    left: 5.1rem;
    width: 2px;
    content: "";
    background: linear-gradient(to bottom, #90b2da, var(--site-blue));
}

.experience-year {
    z-index: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 3.8rem;
    height: 3.2rem;
    border: 1px solid rgba(49, 91, 122, 0.28);
    border-radius: 50%;
    background: #fffdf8;
    color: var(--site-blue);
    font-weight: 800;
}

.experience-position {
    position: relative;
    display: grid;
    grid-template-columns: 4.4rem 4rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 0 0 1.8rem;
    opacity: 0;
    transform: translateX(36px);
    animation: experienceIn 500ms cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.experience-position:nth-child(2) {
    animation-delay: 80ms;
}

.experience-position:nth-child(3) {
    animation-delay: 160ms;
}

.experience-position:nth-child(4) {
    animation-delay: 240ms;
}

@keyframes experienceIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--site-blue);
    color: #fff;
    font-weight: 800;
}

.experience-date {
    margin: -0.25rem 0 0.8rem;
    color: var(--site-blue);
    font-weight: 800;
}

.experience-position p:not(.experience-date) {
    margin: 0 0 0.9rem;
    color: var(--site-text-soft);
    line-height: 1.7;
}

.position-tags li {
    display: inline-block;
    margin: 0 0.35rem 0.45rem 0;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    background: #d7e2ef;
    color: #284c77;
    font-size: 0.95rem;
    font-weight: 700;
}

.timeline-list li {
    padding: 1.25rem;
}

.project-grid {
    display: grid;
    gap: 1.1rem;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.05fr);
    gap: 1.4rem;
    align-items: center;
    padding: 1rem;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 1px solid var(--site-border);
    object-fit: cover;
    object-position: center top;
}

.project-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-image-link img {
    display: block;
}

.project-card p {
    margin: 0 0 0.9rem;
}

.project-card a {
    color: var(--site-blue);
    font-weight: 800;
}

.timeline-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timeline-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--site-ink);
    color: #fff;
    font-weight: 800;
}

.timeline-list p {
    margin: 0;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
    padding-bottom: 1.5rem;
}

.contact-page {
    max-width: 62rem;
    margin: 0 auto;
}

.contact-links,
.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-links {
    margin-top: 1.2rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid var(--site-border);
    border-radius: 50%;
    background: #fffdf8;
    color: var(--site-ink);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
    border-color: rgba(34, 29, 24, 0.32);
    background: #ffe59b;
    box-shadow: 0 10px 22px rgba(45, 35, 22, 0.14);
    transform: translateY(-2px);
}

.social-icon-link img {
    width: 1.25rem;
    height: 1.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

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

.contact-form label,
.budget-field {
    display: grid;
    gap: 0.45rem;
    color: var(--site-ink);
    font-weight: 800;
}

.field-label-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.field-label-row label {
    display: inline;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(34, 29, 24, 0.22);
    border-radius: 6px;
    background: #fffdf8;
    color: var(--site-text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    justify-self: start;
}

.contact-form .budget-info-trigger {
    width: 1.55rem;
    min-width: 0;
    height: 1.55rem;
    min-height: 0;
    padding: 0;
    border-color: rgba(78, 107, 89, 0.42);
    background: #fffdf8;
    color: var(--site-green);
    font-size: 0.86rem;
    line-height: 1;
    box-shadow: none;
}

.contact-form .budget-info-trigger:hover,
.contact-form .budget-info-trigger:focus-visible {
    background: rgba(78, 107, 89, 0.12);
    box-shadow: none;
    transform: translateY(-1px);
}

.budget-info-modal[hidden] {
    display: none;
}

.budget-info-modal {
    z-index: 60;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.budget-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 18, 14, 0.44);
    backdrop-filter: blur(3px);
}

.budget-info-panel {
    z-index: 1;
    position: relative;
    width: min(100%, 34rem);
    max-height: min(82vh, 42rem);
    overflow: auto;
    padding: 1.45rem;
    border: 1px solid rgba(34, 29, 24, 0.18);
    border-radius: var(--site-radius);
    background: #fffdf8;
    box-shadow: 0 24px 70px rgba(21, 18, 14, 0.24);
}

.budget-info-panel h3 {
    margin: 0;
    color: var(--site-ink);
    font-family: var(--site-font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.05;
}

.budget-info-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(34, 29, 24, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--site-ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.budget-info-close:hover,
.budget-info-close:focus-visible {
    background: rgba(78, 107, 89, 0.12);
    transform: translateY(-1px);
}

.budget-info-list {
    display: grid;
    gap: 0.9rem;
    padding: 0;
    margin: 1.15rem 0 0;
    list-style: none;
}

.budget-info-list li {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--site-border);
}

.budget-info-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.budget-info-list strong {
    color: var(--site-ink);
    font-size: 0.98rem;
}

.budget-info-list span {
    color: var(--site-text-soft);
    font-weight: 500;
    line-height: 1.55;
}

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.errorlist {
    padding: 0;
    margin: 0.15rem 0 0;
    color: var(--site-rose);
    font-size: 0.9rem;
    list-style: none;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0 2.6rem;
    border-top: 1px solid var(--site-border);
    color: var(--site-text-soft);
}

.site-footer strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--site-ink);
    font-family: var(--site-font-display);
    font-size: 1.15rem;
}

.site-footer p {
    max-width: 31rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .site-header {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .portfolio-hero h1 {
        font-size: 3.8rem;
    }

    .timeline-list,
    .contact-section,
    .about-layout,
    .project-card {
        grid-template-columns: 1fr;
    }

    .company-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-profile {
        width: 14rem;
        height: 14rem;
    }

    .skill-row,
    .experience-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-rib {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 2px solid var(--site-blue);
    }

    .experience-positions::before {
        left: 4.55rem;
    }

    .experience-position {
        grid-template-columns: 4.1rem 3.2rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .experience-year {
        width: 3.6rem;
        height: 3.2rem;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer {
        width: min(100% - 1.25rem, var(--site-max-width));
    }

    .site-main {
        width: min(100% - 1.25rem, var(--site-max-width));
    }

    .portfolio-hero {
        min-height: 660px;
        padding-top: 1rem;
    }

    .hero-puzzle {
        width: 6rem;
    }

    .portfolio-hero h1 {
        font-size: 2.8rem;
    }

    .portfolio-hero h1 span:last-child {
        font-size: 0.95rem;
    }

    .hero-profile {
        width: 7rem;
        height: 7rem;
    }

    .content-section {
        padding: 3.1rem 0;
    }

    .company-strip {
        grid-template-columns: 1fr;
        max-width: 16rem;
    }

    .skills-experience__nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .skills-tab-button {
        flex: 0 0 auto;
        padding-right: 0.85rem;
        padding-left: 0.85rem;
        font-size: 0.9rem;
    }

    .skill-content h3,
    .experience-position h3 {
        font-size: 1.65rem;
    }

    .content-section h1,
    .content-section h2,
    .contact-page h1 {
        font-size: 2rem;
    }

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

    .button-link,
    .contact-form button {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* Figma hero recreation from frame 1:3, scaled from the 1440 x 1024 artboard. */
body {
    background: var(--site-bg);
}

.site-main {
    width: 100%;
    padding: 0 0 4rem;
}

.content-section {
    width: min(100% - 2rem, var(--site-max-width));
    margin-right: auto;
    margin-left: auto;
    scroll-margin-top: 5.75rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 100;
    width: min(calc(100vw - 2rem), var(--site-max-width));
    max-width: none;
    height: auto;
    margin: 0;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid rgba(34, 29, 24, 0.04);
    border-radius: 0;
    transform: translateX(-50%);
    background: rgba(254, 249, 235, 0.38);
    box-shadow: none;
    backdrop-filter: blur(8px);
    transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
    width: 100%;
    padding: 0.78rem max(1rem, calc((100vw - var(--site-max-width)) / 2));
    border-bottom-color: rgba(34, 29, 24, 0.1);
    background: rgba(254, 249, 235, 0.74);
    backdrop-filter: blur(12px);
}

.site-nav {
    width: 100%;
    height: auto;
    gap: 1.35rem;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d1818;
    font-family: var(--site-font-nav);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.2rem 0;
    border-radius: 0;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:first-child {
    font-weight: 500;
}

.site-nav a[aria-current="true"] {
    color: #000;
    font-weight: 600;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.3rem;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    opacity: 0.18;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #000;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
    opacity: 0.68;
    transform: scaleX(1);
}

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

.portfolio-hero {
    position: relative;
    display: block;
    width: 100%;
    height: 1024px;
    min-height: 1024px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fef9eb;
    color: #000;
    scroll-margin-top: 0;
}

.portfolio-hero::after {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 594px;
    overflow: visible;
    filter: none;
    transform: none;
    pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 594px;
    content: "";
    background-image: var(--hero-music-bg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 1440px auto;
    pointer-events: none;
}

.hero-bg::before {
    opacity: 0.08;
    -webkit-mask-image: radial-gradient(ellipse 94% 88% at 96% -4%, #000 0%, rgba(0, 0, 0, 0.9) 34%, rgba(0, 0, 0, 0.36) 64%, transparent 88%);
    mask-image: radial-gradient(ellipse 94% 88% at 96% -4%, #000 0%, rgba(0, 0, 0, 0.9) 34%, rgba(0, 0, 0, 0.36) 64%, transparent 88%);
}

.hero-bg::after {
    opacity: 0.024;
    filter: blur(18px);
    transform: scale(1.02);
    transform-origin: top right;
    -webkit-mask-image: radial-gradient(ellipse 100% 94% at 96% -4%, #000 0%, rgba(0, 0, 0, 0.7) 32%, rgba(0, 0, 0, 0.24) 64%, transparent 90%);
    mask-image: radial-gradient(ellipse 100% 94% at 96% -4%, #000 0%, rgba(0, 0, 0, 0.7) 32%, rgba(0, 0, 0, 0.24) 64%, transparent 90%);
}

@media (max-width: 1439px) {
    .hero-bg::before,
    .hero-bg::after {
        background-size: 100vw auto;
    }
}

.hero-pill {
    position: absolute;
    top: 107px;
    left: calc(var(--hero-axis) + 29.5px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 309px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0 18px 0 24px;
    border: 1px solid #000;
    border-radius: 60px;
    background: #fef9eb;
    color: #000;
    font-family: var(--site-font-display);
    font-size: 24px;
    font-weight: 300;
    line-height: 34px;
    transform: translateX(-50%);
}

.hero-pill img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.hero-brand {
    position: absolute;
    top: 137px;
    left: calc(var(--hero-axis) - 28px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 735px;
    height: 214px;
    transform: translateX(-50%);
}

.hero-puzzle {
    width: 177px;
    height: 170px;
    margin: 0 -34px 0 0;
    object-fit: cover;
    object-position: center;
    filter: none;
}

.hero-wordmark {
    flex: 0 0 auto;
    color: #000;
    font-family: var(--site-font-display);
    font-weight: 300;
    line-height: 0;
    text-align: left;
    white-space: nowrap;
}

.portfolio-hero h1 {
    margin: 0;
    color: #000;
    font-family: var(--site-font-display);
    font-size: 128px;
    font-weight: 300;
    line-height: 1;
}

.hero-wordmark p {
    margin: 12px 0 0 16px;
    color: #000;
    font-family: var(--site-font-display);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 6px;
    line-height: 1;
    text-transform: uppercase;
}

.hero-profile {
    position: absolute;
    top: 373px;
    left: var(--hero-axis);
    z-index: 2;
    width: 221px;
    height: 221px;
    margin: 0;
    border: 4px solid rgba(254, 249, 235, 0.95);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(29, 24, 24, 0.16);
    object-fit: cover;
    object-position: center;
    transform: translateX(-50%);
}

.hero-lede,
.hero-copy {
    position: absolute;
    left: var(--hero-axis);
    z-index: 2;
    width: 762px;
    max-width: none;
    margin: 0;
    color: #000;
    font-family: var(--site-font-display);
    font-size: 32px;
    font-weight: 300;
    line-height: 40px;
    text-align: center;
    transform: translateX(-50%);
}

.hero-lede {
    top: 594px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 93px;
}

.hero-lede a {
    display: inline-block;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.08em;
    transition: color 180ms ease, text-underline-offset 180ms ease, transform 180ms ease;
}

.hero-lede a:hover,
.hero-lede a:focus-visible {
    color: var(--site-green);
    text-underline-offset: 0.16em;
    transform: translateY(-1px);
}

.hero-copy {
    top: 701px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.hero-actions {
    position: absolute;
    top: 808px;
    left: var(--hero-axis);
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 762px;
    height: 60px;
    transform: translateX(-50%);
}

.hero-actions .button-link {
    width: 381px;
    min-width: 0;
    height: 60px;
    min-height: 0;
    padding: 0 20px;
    border: 1px solid #000;
    border-radius: 60px;
    background: #ffe59b;
    color: #000;
    box-shadow: none;
    font-family: var(--site-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-actions .button-link-secondary {
    background: #fef9eb;
    font-weight: 300;
}

.hero-actions .button-link:hover,
.hero-actions .button-link:focus-visible {
    transform: translateY(-2px);
    background: #ffd978;
    box-shadow: 0 10px 22px rgba(45, 35, 22, 0.16);
}

.hero-actions .button-link-secondary:hover,
.hero-actions .button-link-secondary:focus-visible {
    background: #fffaf0;
}

@media (max-width: 900px) {
    .site-header {
        top: 0;
        left: 50%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: calc(100% - 1rem);
        height: auto;
        padding: 0.85rem 0;
        transform: translateX(-50%);
    }

    .site-header.is-scrolled {
        width: 100%;
        padding: 0.7rem 0.75rem;
    }

    .site-nav {
        width: auto;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        height: auto;
    }

    .site-nav a {
        font-size: 15px;
        line-height: 24px;
    }

    .portfolio-hero {
        height: 760px;
        min-height: 760px;
    }

    .hero-bg {
        height: 390px;
        right: 0;
        left: 0;
    }

    .hero-bg::before,
    .hero-bg::after {
        height: 390px;
    }

    .hero-pill {
        top: 72px;
        left: 50%;
        width: 250px;
        height: 34px;
        font-size: 19px;
    }

    .hero-brand {
        top: 122px;
        left: 50%;
        width: min(100% - 1rem, 540px);
        height: 132px;
    }

    .hero-puzzle {
        width: 105px;
        height: 102px;
        margin: 0 -18px 0 0;
    }

    .portfolio-hero h1 {
        font-size: 74px;
    }

    .hero-wordmark p {
        margin-top: 7px;
        margin-left: 8px;
        font-size: 24px;
        letter-spacing: 4px;
    }

    .hero-profile {
        top: 286px;
        width: 145px;
        height: 145px;
    }

    .hero-lede,
    .hero-copy,
    .hero-actions {
        width: min(100% - 2rem, 560px);
    }

    .hero-lede {
        top: 455px;
        height: auto;
        font-size: 25px;
        line-height: 32px;
    }

    .hero-copy {
        top: 518px;
        height: auto;
        font-size: 23px;
        line-height: 30px;
    }

    .hero-actions {
        top: 622px;
        height: auto;
    }

    .hero-actions .button-link {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    .portfolio-hero {
        height: 690px;
        min-height: 690px;
    }

    .hero-brand {
        top: 114px;
        flex-direction: column;
        height: auto;
    }

    .hero-puzzle {
        width: 78px;
        height: 74px;
        margin: 0 0 -4px;
    }

    .hero-wordmark {
        text-align: center;
    }

    .portfolio-hero h1 {
        font-size: 56px;
    }

    .hero-wordmark p {
        margin-left: 0;
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero-profile {
        top: 278px;
        width: 124px;
        height: 124px;
    }

    .hero-lede {
        top: 428px;
        font-size: 22px;
        line-height: 28px;
    }

    .hero-copy {
        top: 488px;
        font-size: 20px;
        line-height: 26px;
    }

    .hero-actions {
        top: 586px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 620px) {
    .company-set {
        gap: 0.75rem;
        padding-right: 0.75rem;
    }

    .company-logo-card {
        width: 12rem;
        flex-basis: 12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .company-track {
        animation: none;
    }
}
