@layer reset, tokens, base, layout, components, utilities;

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        text-size-adjust: 100%;
    }

    body,
    h1,
    h2,
    h3,
    p,
    figure,
    blockquote,
    dl,
    dd {
        margin: 0;
    }

    ul,
    ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

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

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

@layer tokens {
    :root {
        color-scheme: light;
        --profile-bg: #f4efe9;
        --profile-surface: #fffdf9;
        --profile-surface-strong: #ebe1d7;
        --profile-text: #27221f;
        --profile-muted: #6f655f;
        --profile-line: #d7cbc1;
        --profile-accent: #a3472f;
        --profile-accent-deep: #79301f;
        --profile-accent-soft: #eed3c8;
        --profile-on-accent: #fffaf6;
        --profile-ink: #282421;
        --profile-on-ink: #f8f1e9;
        --profile-display: Georgia, "Times New Roman", ui-serif, serif;
        --profile-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --profile-radius-sm: 0.35rem;
        --profile-radius-md: 0.7rem;
        --profile-radius-lg: 1.15rem;
        --profile-card-shadow: none;
        --profile-shell: 76rem;
        --profile-section-space: clamp(5rem, 9vw, 9rem);
        --profile-gutter: clamp(1rem, 3vw, 2rem);
    }

    body[data-theme-palette="sage"] {
        --profile-accent: #52705b;
        --profile-accent-deep: #354e3d;
        --profile-accent-soft: #d8e2d9;
        --profile-surface-strong: #e2e6dc;
    }

    body[data-theme-palette="plum"] {
        --profile-accent: #7b4869;
        --profile-accent-deep: #573147;
        --profile-accent-soft: #ead5e2;
        --profile-surface-strong: #e8dfe4;
    }

    body[data-theme-palette="ink"] {
        --profile-accent: #3d5f76;
        --profile-accent-deep: #263f51;
        --profile-accent-soft: #d5e1e8;
        --profile-surface-strong: #dde4e7;
    }

    body[data-theme-mode="dark"] {
        color-scheme: dark;
        --profile-bg: #171513;
        --profile-surface: #201d1a;
        --profile-surface-strong: #2d2925;
        --profile-text: #f5eee7;
        --profile-muted: #c2b5aa;
        --profile-line: #49413b;
        --profile-accent-soft: #493027;
        --profile-ink: #0f0e0d;
        --profile-on-ink: #f5eee7;
    }

    body[data-theme-mode="dark"][data-theme-palette="sage"] {
        --profile-accent: #91b39b;
        --profile-accent-deep: #b2cbb8;
        --profile-accent-soft: #293a2e;
    }

    body[data-theme-mode="dark"][data-theme-palette="plum"] {
        --profile-accent: #c58eaf;
        --profile-accent-deep: #dcb5cc;
        --profile-accent-soft: #432b39;
    }

    body[data-theme-mode="dark"][data-theme-palette="ink"] {
        --profile-accent: #8fb5cd;
        --profile-accent-deep: #bad0dd;
        --profile-accent-soft: #293b47;
    }

    body[data-theme-font="modern"] {
        --profile-display: var(--profile-body);
    }

    body[data-theme-font="humanist"] {
        --profile-display: "Trebuchet MS", Candara, Calibri, ui-sans-serif, system-ui, sans-serif;
        --profile-body: "Trebuchet MS", Candara, Calibri, ui-sans-serif, system-ui, sans-serif;
    }

    body[data-theme-radius="sharp"] {
        --profile-radius-sm: 0;
        --profile-radius-md: 0;
        --profile-radius-lg: 0;
    }

    body[data-theme-radius="round"] {
        --profile-radius-sm: 0.85rem;
        --profile-radius-md: 1.4rem;
        --profile-radius-lg: 2.2rem;
    }

    body[data-theme-cards="raised"] {
        --profile-card-shadow: 0 1.4rem 3.5rem rgb(38 28 22 / 13%);
    }
}

@layer base {
    body {
        min-width: 20rem;
        margin: 0;
        overflow-x: hidden;
        background: var(--profile-bg);
        color: var(--profile-text);
        font-family: var(--profile-body);
        font-size: 1rem;
        line-height: 1.68;
        text-rendering: optimizeLegibility;
    }

    body::before {
        position: fixed;
        z-index: -1;
        inset: 0;
        background-image: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--profile-accent) 7%, transparent), transparent 30rem);
        content: "";
        pointer-events: none;
    }

    h1,
    h2,
    h3 {
        color: var(--profile-text);
        font-family: var(--profile-display);
        font-weight: 550;
        letter-spacing: -0.035em;
        line-height: 1.04;
        text-wrap: balance;
    }

    h1 {
        font-size: clamp(2.5rem, 4.1vw, 4.25rem);
    }

    h2 {
        font-size: clamp(2.1rem, 3.6vw, 3.5rem);
    }

    h3 {
        font-size: clamp(1.45rem, 2.4vw, 2rem);
    }

    p {
        text-wrap: pretty;
    }

    a {
        color: inherit;
    }

    address {
        font-style: normal;
    }

    :focus-visible {
        outline: 0.2rem solid var(--profile-accent);
        outline-offset: 0.25rem;
    }

    ::selection {
        background: var(--profile-accent);
        color: var(--profile-on-accent);
    }
}

@layer layout {
    .profile-shell {
        width: min(calc(100% - (2 * var(--profile-gutter))), var(--profile-shell));
        margin-inline: auto;
    }

    .profile-section {
        position: relative;
        padding-block: var(--profile-section-space);
    }

    .profile-section--tint {
        background: var(--profile-surface-strong);
    }

    .profile-section--ink {
        background: var(--profile-ink);
        color: var(--profile-on-ink);
    }

    .profile-section--ink h2,
    .profile-section--ink h3 {
        color: var(--profile-on-ink);
    }

    .profile-section-heading {
        max-width: 48rem;
        margin-bottom: clamp(2.5rem, 5vw, 4.6rem);
    }

    .profile-section-heading > p:last-child {
        max-width: 39rem;
        margin-top: 1.4rem;
        color: var(--profile-muted);
        font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    }

    .profile-section-heading--split {
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
        gap: clamp(2rem, 7vw, 7rem);
        align-items: end;
    }

    .profile-section-heading--split > p:last-child {
        margin: 0 0 0.45rem;
    }
}

@layer components {
    .profile-skip-link {
        position: fixed;
        z-index: 100;
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.7rem 1rem;
        transform: translateY(-180%);
        background: var(--profile-text);
        color: var(--profile-bg);
        font-weight: 750;
        text-decoration: none;
    }

    .profile-skip-link:focus {
        transform: none;
    }

    .profile-header {
        position: sticky;
        z-index: 40;
        top: 0;
        border-bottom: 1px solid transparent;
        background: color-mix(in srgb, var(--profile-bg) 90%, transparent);
        backdrop-filter: blur(1rem);
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }

    .profile-header[data-scrolled] {
        border-color: var(--profile-line);
        box-shadow: 0 0.45rem 1.5rem rgb(34 25 20 / 7%);
    }

    .profile-header__inner {
        min-height: 6rem;
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: space-between;
    }

    .profile-brand {
        min-width: 0;
        display: inline-flex;
        gap: 0.75rem;
        align-items: center;
        color: var(--profile-text);
        text-decoration: none;
    }

    .profile-brand__mark {
        width: 3rem;
        height: 3rem;
        flex: 0 0 auto;
    }

    .profile-brand__copy {
        min-width: 0;
        display: grid;
        line-height: 1.2;
    }

    .profile-brand__copy strong {
        overflow: hidden;
        font-family: var(--profile-display);
        font-size: 1.06rem;
        font-weight: 650;
        letter-spacing: -0.02em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-brand__copy span {
        overflow: hidden;
        color: var(--profile-muted);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .profile-nav__list {
        display: flex;
        gap: clamp(1rem, 2.5vw, 2.4rem);
        align-items: center;
    }

    .profile-nav__link {
        position: relative;
        display: inline-flex;
        padding-block: 0.5rem;
        color: var(--profile-muted);
        font-size: 0.78rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;
    }

    .profile-nav__link::after {
        position: absolute;
        right: 0;
        bottom: 0.12rem;
        left: 0;
        height: 1px;
        transform: scaleX(0);
        background: var(--profile-accent);
        content: "";
        transform-origin: right;
        transition: transform 180ms ease;
    }

    .profile-nav__link:hover,
    .profile-nav__link[aria-current="page"] {
        color: var(--profile-text);
    }

    .profile-nav__link:hover::after,
    .profile-nav__link[aria-current="page"]::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .profile-nav-toggle {
        min-height: 2.8rem;
        display: none;
        gap: 0.7rem;
        align-items: center;
        padding: 0.55rem 0.75rem;
        border: 1px solid var(--profile-line);
        border-radius: var(--profile-radius-sm);
        background: var(--profile-surface);
        color: var(--profile-text);
        font-size: 0.76rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .profile-nav-toggle__icon,
    .profile-nav-toggle__icon::before,
    .profile-nav-toggle__icon::after {
        width: 1.2rem;
        height: 1px;
        display: block;
        background: currentColor;
        content: "";
        transition: transform 180ms ease;
    }

    .profile-nav-toggle__icon::before {
        transform: translateY(-0.32rem);
    }

    .profile-nav-toggle__icon::after {
        transform: translateY(0.28rem);
    }

    .profile-nav-toggle[aria-expanded="true"] .profile-nav-toggle__icon {
        background: transparent;
    }

    .profile-nav-toggle[aria-expanded="true"] .profile-nav-toggle__icon::before {
        transform: rotate(45deg);
    }

    .profile-nav-toggle[aria-expanded="true"] .profile-nav-toggle__icon::after {
        transform: translateY(-1px) rotate(-45deg);
    }

    .profile-eyebrow {
        margin-bottom: 1rem;
        color: var(--profile-accent);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .profile-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 1.15rem 1.5rem;
        align-items: center;
    }

    .profile-button {
        min-height: 3.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.35rem;
        border: 1px solid var(--profile-accent);
        border-radius: var(--profile-radius-sm);
        background: var(--profile-accent);
        color: var(--profile-on-accent);
        font-size: 0.79rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-decoration: none;
        text-transform: uppercase;
        transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .profile-button:hover {
        transform: translateY(-2px);
        background: var(--profile-accent-deep);
    }

    .profile-text-link {
        display: inline-flex;
        gap: 0.3rem;
        align-items: center;
        color: var(--profile-text);
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-decoration-color: var(--profile-accent);
        text-decoration-thickness: 1px;
        text-transform: uppercase;
        text-underline-offset: 0.4rem;
    }

    .profile-hero {
        min-height: calc(100vh - 6rem);
        display: grid;
        align-items: center;
        padding-top: clamp(3.5rem, 7vw, 7rem);
        overflow: hidden;
    }

    .profile-hero::after {
        position: absolute;
        z-index: -1;
        width: clamp(14rem, 34vw, 32rem);
        aspect-ratio: 1;
        right: -8%;
        bottom: 4%;
        border: 1px solid color-mix(in srgb, var(--profile-accent) 38%, transparent);
        border-radius: 50%;
        content: "";
    }

    .profile-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.82fr);
        gap: clamp(2.5rem, 7vw, 7.5rem);
        align-items: center;
    }

    .profile-hero__content {
        position: relative;
        z-index: 1;
    }

    .profile-hero__content h1 {
        max-width: 20ch;
    }

    .profile-hero__body {
        max-width: 39rem;
        margin-block: 1.7rem 2rem;
        color: var(--profile-muted);
        font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    }

    .profile-hero__highlights {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin: -0.65rem 0 2rem;
        color: var(--profile-muted);
        font-size: 0.83rem;
        font-weight: 650;
    }

    .profile-hero__highlights li:not(:last-child)::after {
        margin-left: 1rem;
        color: var(--profile-accent);
        content: "·";
    }

    .profile-hero__media {
        position: relative;
        min-height: 34rem;
        border-radius: var(--profile-radius-lg);
        background: var(--profile-surface-strong);
        box-shadow: var(--profile-card-shadow);
    }

    .profile-hero__media::before {
        position: absolute;
        z-index: 2;
        inset: 0.75rem;
        border: 1px solid rgb(255 255 255 / 45%);
        border-radius: calc(var(--profile-radius-lg) * 0.75);
        content: "";
        pointer-events: none;
    }

    .profile-hero__media img {
        width: 100%;
        height: 100%;
        min-height: 34rem;
        position: absolute;
        inset: 0;
        object-fit: cover;
        border-radius: inherit;
        filter: saturate(0.88) contrast(1.02);
    }

    .profile-hero__media figcaption {
        position: absolute;
        z-index: 3;
        right: 1.4rem;
        bottom: 1.4rem;
        max-width: 18rem;
        padding: 0.7rem 0.9rem;
        border-radius: var(--profile-radius-sm);
        background: color-mix(in srgb, var(--profile-surface) 90%, transparent);
        color: var(--profile-muted);
        font-size: 0.75rem;
        backdrop-filter: blur(0.8rem);
    }

    .profile-credentials {
        padding-block: 0;
        border-block: 1px solid var(--profile-line);
        background: var(--profile-surface);
    }

    .profile-credentials__list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-credentials__item {
        min-width: 0;
        padding: clamp(1.5rem, 3vw, 2.5rem);
    }

    .profile-credentials__item + .profile-credentials__item {
        border-left: 1px solid var(--profile-line);
    }

    .profile-credentials dt {
        margin-bottom: 0.45rem;
        color: var(--profile-muted);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .profile-credentials dd {
        font-family: var(--profile-display);
        font-size: clamp(1.3rem, 2.2vw, 1.8rem);
        font-weight: 600;
        line-height: 1.18;
    }

    .profile-credentials__item p {
        margin-top: 0.45rem;
        color: var(--profile-muted);
        font-size: 0.78rem;
    }

    .profile-expertise {
        border-top: 1px solid var(--profile-line);
    }

    .profile-expertise__item {
        display: grid;
        grid-template-areas:
            "number meta body"
            "number title body";
        grid-template-columns: minmax(3rem, 0.18fr) minmax(14rem, 0.72fr) minmax(18rem, 1.1fr);
        gap: 0.7rem clamp(1.5rem, 4vw, 4.5rem);
        align-items: start;
        padding: clamp(2rem, 4vw, 3.25rem) 0;
        border-bottom: 1px solid var(--profile-line);
    }

    .profile-expertise__number {
        grid-area: number;
        color: var(--profile-accent);
        font-family: var(--profile-display);
        font-size: clamp(1.7rem, 3vw, 2.6rem);
        line-height: 1;
    }

    .profile-expertise__meta {
        grid-area: meta;
        margin: 0;
        color: var(--profile-muted);
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .profile-expertise__item h3 {
        grid-area: title;
        max-width: 16ch;
    }

    .profile-expertise__item > p:last-child {
        grid-area: body;
        max-width: 42rem;
        color: var(--profile-muted);
        font-size: clamp(1rem, 1.4vw, 1.1rem);
    }

    .profile-story {
        display: grid;
        grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
        gap: clamp(3rem, 8vw, 8rem);
        align-items: center;
    }

    .profile-story__media {
        position: relative;
    }

    .profile-story__media::after {
        position: absolute;
        z-index: -1;
        inset: 1rem -1rem -1rem 1rem;
        border: 1px solid var(--profile-accent);
        border-radius: var(--profile-radius-lg);
        content: "";
    }

    .profile-story__media img {
        width: 100%;
        min-height: 29rem;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border-radius: var(--profile-radius-lg);
    }

    .profile-story__copy {
        margin-top: 1.6rem;
        color: var(--profile-muted);
        font-size: clamp(1rem, 1.5vw, 1.12rem);
    }

    .profile-story__copy p + p {
        margin-top: 1rem;
    }

    .profile-story__quote {
        margin-block: 2rem;
        padding-left: 1.3rem;
        border-left: 2px solid var(--profile-accent);
        color: var(--profile-text);
        font-family: var(--profile-display);
        font-size: clamp(1.3rem, 2.4vw, 1.9rem);
        line-height: 1.32;
    }

    .profile-timeline-layout,
    .profile-faq-layout {
        display: grid;
        grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
        gap: clamp(3rem, 9vw, 9rem);
        align-items: start;
    }

    .profile-section-heading--sticky {
        position: sticky;
        top: 8rem;
        margin-bottom: 0;
    }

    .profile-timeline {
        border-top: 1px solid var(--profile-line);
    }

    .profile-timeline__item {
        display: grid;
        grid-template-columns: minmax(5rem, 0.33fr) minmax(0, 1fr);
        gap: 1.5rem;
        padding-block: 2.2rem;
        border-bottom: 1px solid var(--profile-line);
    }

    .profile-timeline__period {
        color: var(--profile-accent);
        font-family: var(--profile-display);
        font-size: 1.05rem;
        font-style: italic;
    }

    .profile-timeline__item h3 {
        margin-bottom: 0.75rem;
    }

    .profile-timeline__item div > p {
        color: var(--profile-muted);
    }

    .profile-featured {
        background: var(--profile-surface);
    }

    .profile-featured__lead {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
        border: 1px solid var(--profile-line);
        border-radius: var(--profile-radius-lg);
        overflow: hidden;
        background: var(--profile-bg);
        box-shadow: var(--profile-card-shadow);
    }

    .profile-featured__media {
        min-height: 32rem;
    }

    .profile-featured__media img {
        width: 100%;
        height: 100%;
        min-height: 32rem;
        object-fit: cover;
    }

    .profile-featured__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(2rem, 5vw, 4rem);
    }

    .profile-featured__meta,
    .profile-featured__list article > p {
        margin-bottom: 1rem;
        color: var(--profile-accent);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .profile-featured__content > p:not(.profile-featured__meta) {
        margin-block: 1.2rem 1.6rem;
        color: var(--profile-muted);
    }

    .profile-featured__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 1.5rem;
        border: 1px solid var(--profile-line);
        border-radius: var(--profile-radius-md);
        overflow: hidden;
    }

    .profile-featured__list li + li {
        border-left: 1px solid var(--profile-line);
    }

    .profile-featured__list article {
        height: 100%;
        padding: 1.6rem;
    }

    .profile-featured__list h3 {
        margin-bottom: 0.7rem;
        font-size: 1.35rem;
    }

    .profile-featured__list span {
        color: var(--profile-muted);
        font-size: 0.9rem;
    }

    .profile-quotes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        background: color-mix(in srgb, var(--profile-on-ink) 22%, transparent);
    }

    .profile-quote {
        min-height: 22rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: clamp(2rem, 4vw, 3.5rem);
        background: var(--profile-ink);
    }

    .profile-quote blockquote {
        color: var(--profile-on-ink);
        font-family: var(--profile-display);
        font-size: clamp(1.55rem, 3vw, 2.65rem);
        line-height: 1.3;
    }

    .profile-quote figcaption {
        display: grid;
        margin-top: 2rem;
        font-size: 0.78rem;
    }

    .profile-quote figcaption strong {
        color: var(--profile-on-ink);
    }

    .profile-quote figcaption span {
        color: color-mix(in srgb, var(--profile-on-ink) 65%, transparent);
    }

    .profile-faq-list {
        border-top: 1px solid var(--profile-line);
    }

    .profile-faq-item {
        border-bottom: 1px solid var(--profile-line);
    }

    .profile-faq-item summary {
        position: relative;
        padding: 1.6rem 3rem 1.6rem 0;
        cursor: pointer;
        font-family: var(--profile-display);
        font-size: clamp(1.18rem, 2vw, 1.55rem);
        font-weight: 600;
        list-style: none;
    }

    .profile-faq-item summary::-webkit-details-marker {
        display: none;
    }

    .profile-faq-item summary::after {
        position: absolute;
        right: 0.4rem;
        color: var(--profile-accent);
        content: "+";
        font-family: var(--profile-body);
        font-size: 1.5rem;
        font-weight: 350;
    }

    .profile-faq-item[open] summary::after {
        content: "−";
    }

    .profile-faq-item > p {
        max-width: 42rem;
        padding: 0 3rem 1.7rem 0;
        color: var(--profile-muted);
    }

    .profile-contact {
        background: var(--profile-accent);
        color: var(--profile-on-accent);
    }

    .profile-contact .profile-eyebrow,
    .profile-contact h2,
    .profile-contact a {
        color: var(--profile-on-accent);
    }

    .profile-contact__grid {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
        gap: clamp(3rem, 10vw, 10rem);
        align-items: end;
    }

    .profile-contact__intro > p:not(.profile-eyebrow, .profile-contact__availability) {
        max-width: 37rem;
        margin-top: 1.5rem;
        color: color-mix(in srgb, var(--profile-on-accent) 80%, transparent);
        font-size: 1.08rem;
    }

    .profile-contact__availability {
        display: inline-flex;
        gap: 0.6rem;
        align-items: center;
        margin-top: 1.5rem;
        font-size: 0.78rem;
        font-weight: 750;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .profile-contact__availability::before {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 50%;
        background: var(--profile-on-accent);
        content: "";
    }

    .profile-contact__methods {
        display: grid;
        border-top: 1px solid color-mix(in srgb, var(--profile-on-accent) 40%, transparent);
    }

    .profile-contact-method {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(6rem, 0.3fr) minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: center;
        padding-block: 1.5rem;
        border-bottom: 1px solid color-mix(in srgb, var(--profile-on-accent) 40%, transparent);
        text-decoration: none;
    }

    .profile-contact-method span {
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .profile-contact-method strong {
        overflow-wrap: anywhere;
        font-family: var(--profile-display);
        font-size: clamp(1.2rem, 2.4vw, 1.8rem);
        font-weight: 600;
    }

    .profile-contact-method i {
        font-style: normal;
    }

    .profile-demo-offer {
        overflow: hidden;
        background:
            radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--profile-accent) 58%, transparent) 0, transparent 30rem),
            linear-gradient(145deg, #211a17 0%, #3a211a 100%);
        color: var(--profile-on-ink);
    }

    .profile-demo-offer::before {
        position: absolute;
        width: 28rem;
        height: 28rem;
        border: 1px solid rgb(255 255 255 / 12%);
        border-radius: 50%;
        content: "";
        inset: auto auto -18rem -9rem;
    }

    .profile-demo-offer__inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: clamp(2rem, 5vw, 4rem);
        align-items: start;
    }

    .profile-demo-offer__intro {
        max-width: 52rem;
    }

    .profile-demo-offer__title {
        max-width: 10ch;
        margin: 0 0 clamp(1.2rem, 2vw, 1.8rem);
        color: var(--profile-on-ink);
        font-family: var(--profile-display);
        font-size: clamp(3.6rem, 7vw, 6.6rem);
        font-weight: 550;
        letter-spacing: -0.06em;
        line-height: 0.94;
    }

    .profile-demo-offer__subtitle {
        max-width: 34ch;
        margin: 0 0 1.15rem;
        color: var(--profile-on-ink);
        font-family: var(--profile-body);
        font-size: clamp(1.3rem, 2.4vw, 1.85rem);
        font-weight: 760;
        letter-spacing: -0.025em;
        line-height: 1.22;
    }

    .profile-demo-offer__body {
        max-width: 62ch;
        color: color-mix(in srgb, var(--profile-on-ink) 82%, transparent);
    }

    .profile-demo-offer__inner > .profile-button {
        border-color: var(--profile-on-ink);
        background: var(--profile-on-ink);
        color: #3a211a;
    }

    .profile-demo-offer__inner > .profile-button:hover {
        border-color: var(--profile-accent-soft);
        background: var(--profile-accent-soft);
    }

    .profile-demo-offer__examples {
        display: grid;
        grid-column: 1 / -1;
        gap: 1.5rem;
        padding-top: clamp(2rem, 4vw, 3rem);
        border-top: 1px solid rgb(255 255 255 / 20%);
    }

    .profile-demo-offer__examples > h3 {
        margin: 0;
        color: var(--profile-on-ink);
        font-family: var(--profile-display);
        font-size: clamp(1.3rem, 2.3vw, 1.8rem);
        font-weight: 600;
    }

    .profile-demo-list {
        display: grid;
        gap: 2rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .profile-demo-card {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
        overflow: hidden;
        border: 1px solid rgb(255 255 255 / 18%);
        border-radius: var(--profile-radius-lg);
        background: var(--profile-surface);
        color: var(--profile-text);
        box-shadow: 0 2rem 5rem rgb(0 0 0 / 28%);
    }

    .profile-demo-card__preview {
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        background: #d8d3cd;
    }

    .profile-demo-card__open {
        width: 100%;
        min-height: 3.75rem;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.8rem;
        padding-inline: 1.2rem;
    }

    .profile-demo-card__open > span:last-child {
        font-size: 1.15rem;
        line-height: 1;
    }

    .profile-demo-card__preview-link {
        display: flex;
        overflow: hidden;
        flex: 1;
        flex-direction: column;
        border-radius: 0.5rem;
        background: #f5f3f0;
        color: inherit;
        text-decoration: none;
        transition: box-shadow 160ms ease, transform 160ms ease;
    }

    .profile-demo-card__preview-link:hover {
        box-shadow: 0 1rem 2rem rgb(58 33 26 / 20%);
        transform: translateY(-2px);
    }

    .profile-demo-card__preview-link:hover .profile-demo-card__open {
        background: var(--profile-accent-deep);
        transform: none;
    }

    .profile-demo-card__open:hover {
        transform: none;
    }

    .profile-demo-card__preview-link:focus-visible {
        outline: 3px solid var(--profile-on-ink);
        outline-offset: 3px;
    }

    .profile-browser-bar {
        min-height: 2.4rem;
        display: grid;
        grid-template-columns: 4rem 1fr 4rem;
        align-items: center;
        padding-inline: 0.8rem;
        border-radius: 0.5rem 0.5rem 0 0;
        background: #f5f3f0;
        color: #6e6964;
        font-size: 0.68rem;
    }

    .profile-browser-bar > span {
        display: flex;
        gap: 0.3rem;
    }

    .profile-browser-bar i {
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 50%;
        background: #bdb7b1;
    }

    .profile-browser-bar b {
        overflow: hidden;
        font-weight: 600;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-demo-card__preview img {
        width: 100%;
        flex: 1;
        min-height: 28rem;
        aspect-ratio: 48 / 31;
        object-fit: cover;
        object-position: top;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .profile-demo-card__content {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        padding: clamp(2rem, 5vw, 4rem);
    }

    .profile-demo-card__number {
        margin-bottom: auto;
        color: color-mix(in srgb, var(--profile-text) 18%, transparent);
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        font-weight: 800;
        letter-spacing: -0.06em;
        line-height: 1;
    }

    .profile-demo-card__meta {
        margin: 2rem 0 0.8rem;
        color: var(--profile-accent);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .profile-demo-card__content > p:not(.profile-demo-card__meta) {
        margin-block: 1rem 1.4rem;
        color: var(--profile-muted);
    }

    .profile-demo-card h4 {
        margin: 0;
        font-family: var(--profile-display);
        font-size: clamp(1.65rem, 3vw, 2.35rem);
        font-weight: 600;
        letter-spacing: -0.025em;
        line-height: 1.08;
    }

    .profile-demo-card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 1.7rem;
    }

    .profile-demo-card__tags li {
        padding: 0.35rem 0.6rem;
        border: 1px solid var(--profile-line);
        border-radius: 99rem;
        color: var(--profile-muted);
        font-size: 0.7rem;
        font-weight: 700;
    }

    .profile-legal {
        min-height: 70vh;
    }

    .profile-legal__inner {
        max-width: 52rem;
    }

    .profile-legal h1 {
        font-size: clamp(3rem, 7vw, 5.8rem);
    }

    .profile-legal__copy {
        margin-top: 2rem;
        color: var(--profile-muted);
        font-size: 1.05rem;
    }

    .profile-legal__copy p + p {
        margin-top: 1rem;
    }

    .profile-legal__links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
        font-weight: 750;
    }

    .profile-footer {
        border-top: 1px solid var(--profile-line);
        background: var(--profile-surface);
    }

    .profile-footer__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3rem;
        padding-block: 3.8rem;
    }

    .profile-footer__identity > p {
        max-width: 34rem;
        margin-top: 1.2rem;
        color: var(--profile-muted);
        font-size: 0.9rem;
    }

    .profile-footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        font-size: 0.76rem;
        font-weight: 750;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .profile-footer__bottom {
        min-height: 4.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid var(--profile-line);
        color: var(--profile-muted);
        font-size: 0.75rem;
    }
}

@layer utilities {
    .profile-visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 62rem) {
    .profile-js .profile-nav-toggle {
        display: inline-flex;
    }

    .profile-js .profile-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 1rem var(--profile-gutter) 1.5rem;
        border-bottom: 1px solid var(--profile-line);
        background: var(--profile-bg);
        box-shadow: 0 1.2rem 2.2rem rgb(34 25 20 / 10%);
    }

    .profile-js .profile-nav[data-open] {
        display: block;
    }

    .profile-js .profile-nav__list {
        display: grid;
        gap: 0.25rem;
    }

    .profile-js .profile-nav__link {
        width: 100%;
        padding: 0.85rem;
    }

    .profile-hero {
        min-height: auto;
    }

    .profile-hero__grid,
    .profile-story,
    .profile-featured__lead,
    .profile-demo-offer__inner,
    .profile-demo-card {
        grid-template-columns: 1fr;
    }

    .profile-demo-card__number {
        margin-bottom: 0;
    }

    .profile-demo-card__meta {
        margin-top: 1rem;
    }

    .profile-hero__content h1 {
        max-width: 22ch;
    }

    .profile-hero__media {
        min-height: 28rem;
    }

    .profile-hero__media img {
        min-height: 28rem;
    }

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

    .profile-credentials__item:nth-child(odd) {
        border-left: 0;
    }

    .profile-credentials__item:nth-child(n + 3) {
        border-top: 1px solid var(--profile-line);
    }

    .profile-timeline-layout,
    .profile-faq-layout,
    .profile-contact__grid {
        grid-template-columns: 1fr;
    }

    .profile-section-heading--sticky {
        position: static;
    }

    .profile-featured__media {
        min-height: 25rem;
    }

    .profile-featured__media img {
        min-height: 25rem;
    }

    .profile-demo-card__preview img {
        min-height: 24rem;
    }
}

@media (max-width: 44rem) {
    :root {
        --profile-section-space: 4.5rem;
    }

    .profile-header__inner {
        min-height: 5rem;
    }

    .profile-brand__mark {
        width: 2.6rem;
        height: 2.6rem;
    }

    .profile-brand__copy span {
        display: none;
    }

    .profile-section-heading--split {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .profile-hero__media,
    .profile-hero__media img {
        min-height: 25rem;
    }

    .profile-hero__highlights {
        display: grid;
    }

    .profile-hero__highlights li::after {
        display: none;
    }

    .profile-credentials__list,
    .profile-quotes,
    .profile-featured__list {
        grid-template-columns: 1fr;
    }

    .profile-credentials__item + .profile-credentials__item,
    .profile-credentials__item:nth-child(n + 3),
    .profile-featured__list li + li {
        border-top: 1px solid var(--profile-line);
        border-left: 0;
    }

    .profile-expertise__item {
        grid-template-areas:
            "number meta"
            "number title"
            ". body";
        grid-template-columns: 2.6rem minmax(0, 1fr);
        gap: 0.65rem 1rem;
    }

    .profile-expertise__item h3 {
        max-width: none;
    }

    .profile-expertise__item > p:last-child {
        margin-top: 0.6rem;
    }

    .profile-story__media img {
        min-height: 22rem;
    }

    .profile-timeline__item {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .profile-featured__media,
    .profile-featured__media img {
        min-height: 18rem;
    }

    .profile-quote {
        min-height: 18rem;
    }

    .profile-contact-method {
        grid-template-columns: 1fr auto;
    }

    .profile-contact-method strong {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .profile-demo-card__preview {
        padding: 0.55rem;
    }

    .profile-demo-offer > .profile-shell > .profile-button,
    .profile-demo-card__open {
        width: 100%;
    }

    .profile-demo-card__preview img {
        min-height: 17rem;
    }

    .profile-browser-bar {
        grid-template-columns: 3rem 1fr 3rem;
    }

    .profile-footer__grid {
        grid-template-columns: 1fr;
    }

    .profile-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

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

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