:root {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --accent-color: #8c8c8c;
    --white: #ffffff;
    --alpstone-blue: rgb(67, 141, 215);
    --alpstone-blue-dark: rgb(32, 55, 93);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header */
header {
    padding: 2.5rem 0;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
}

.logo:hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    height: 80vh;
    background: url('/public/portfolio/locus-architects/images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-bottom: 6rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Projects Grid */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 8rem;
}

.project-card {
    position: relative;
}

.project-card.large {
    grid-column: span 2;
}

.project-image {
    width: 100%;
    height: 600px;
    background-color: #e0e0e0;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.contact {
    padding: 6rem 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.contact-eyebrow {
    margin-bottom: 1rem;
    color: #777;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact h2 {
    font-size: 3rem;
    line-height: 1.08;
}

.contact-intro {
    width: min(620px, 100%);
    margin: 1.5rem auto 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.25rem;
    padding: 1rem 3rem;
    border: 1px solid var(--text-color);
    background: transparent;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
    background: var(--text-color);
    color: white;
    transform: translateY(-2px);
}

.portfolio-concept-footer {
    display: grid;
    max-width: 800px;
    gap: 12px;
    margin: 0 auto;
    padding: 0 20px 2rem;
    text-align: center;
}

.portfolio-concept-footer p {
    margin: 0;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.65;
}

.portfolio-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 16px;
}

.portfolio-legal-links a {
    color: #555;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration-color: rgba(26, 26, 26, 0.28);
    text-underline-offset: 3px;
}

/* Project enquiry */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
    pointer-events: none;
    overscroll-behavior: contain;
}

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

.contact-modal.is-visible {
    pointer-events: auto;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(28, 29, 27, 0);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(0) saturate(100%);
    -webkit-backdrop-filter: blur(0) saturate(100%);
    transition: opacity 0.36s ease, background 0.36s ease, backdrop-filter 0.36s ease, -webkit-backdrop-filter 0.36s ease;
}

.contact-modal.is-visible .contact-modal-backdrop {
    background: rgba(28, 29, 27, 0.34);
    opacity: 1;
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.contact-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(90vh, 800px);
    overflow: auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 2px;
    color: var(--text-color);
    background: rgba(250, 250, 248, 0.94);
    box-shadow: 0 36px 100px rgba(18, 18, 16, 0.24);
    backdrop-filter: blur(28px) saturate(135%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.is-visible .contact-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
    background: var(--text-color);
    transform: translateY(-1px);
}

.contact-modal-close span,
.contact-modal-close span::after {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--text-color);
}

.contact-modal-close span {
    transform: rotate(45deg);
}

.contact-modal-close span::after {
    content: '';
    transform: rotate(90deg);
}

.contact-modal-close:hover span,
.contact-modal-close:hover span::after,
.contact-modal-close:focus-visible span,
.contact-modal-close:focus-visible span::after {
    background: var(--white);
}

.contact-modal-heading {
    padding-right: 54px;
}

.contact-modal-heading > p:first-child {
    margin-bottom: 12px;
    color: #777;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-modal-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 6vw, 4.35rem);
    line-height: 0.98;
}

.contact-modal-heading > p:last-child {
    max-width: 580px;
    margin-top: 18px;
    color: #686868;
    font-size: 1rem;
    line-height: 1.65;
}

.contact-form {
    display: grid;
    gap: 18px;
    margin-top: clamp(28px, 5vw, 42px);
}

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

.contact-form label {
    display: grid;
    gap: 8px;
    color: #6d6d6d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-subject-button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.24);
    border-radius: 0;
    padding: 0 4px;
    color: var(--text-color);
    background: transparent;
    font: 400 1rem/1.4 var(--font-body);
    letter-spacing: normal;
    text-transform: none;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-subject-button:focus-visible {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(80, 80, 80, 0.54);
}

.contact-subject-select {
    position: relative;
    z-index: 4;
}

.contact-subject-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.contact-subject-button span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-subject-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.22s ease;
}

.contact-subject-select.is-open .contact-subject-chevron {
    transform: translateY(2px) rotate(225deg);
}

.contact-subject-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(26, 26, 26, 0.1);
    background: rgba(250, 250, 248, 0.98);
    box-shadow: 0 22px 58px rgba(18, 18, 16, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-subject-select.is-open .contact-subject-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-subject-option {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    padding: 0 14px;
    color: var(--text-color);
    background: transparent;
    font: 700 0.94rem/1.25 var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.contact-subject-option::after {
    content: '';
    width: 7px;
    height: 12px;
    margin-left: 12px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg);
}

.contact-subject-option:hover,
.contact-subject-option:focus-visible {
    background: rgba(26, 26, 26, 0.06);
}

.contact-subject-option.is-selected {
    color: var(--white);
    background: var(--text-color);
}

.contact-subject-option.is-selected::after {
    border-color: var(--white);
}

.contact-form textarea {
    min-height: 126px;
    padding-top: 16px;
    resize: none;
}

.contact-form-note {
    margin-top: -6px;
    color: #777;
    font-size: 0.78rem;
}

.contact-form-submit {
    display: inline-flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    border: 1px solid var(--text-color);
    color: var(--white);
    background: var(--text-color);
    font: 700 0.88rem/1 var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
    color: var(--text-color);
    background: var(--white);
    transform: translateY(-2px);
}

.contact-form-submit:disabled,
.contact-form-submit[aria-disabled='true'] {
    border-color: rgba(26, 26, 26, 0.18);
    color: rgba(26, 26, 26, 0.42);
    background: rgba(26, 26, 26, 0.06);
    cursor: not-allowed;
}

.contact-form-submit:disabled:hover,
.contact-form-submit:disabled:focus-visible,
.contact-form-submit[aria-disabled='true']:hover,
.contact-form-submit[aria-disabled='true']:focus-visible {
    color: rgba(26, 26, 26, 0.42);
    background: rgba(26, 26, 26, 0.06);
    transform: none;
}

.contact-form-alert {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.contact-form-alert[hidden] {
    display: none;
}

.contact-form-alert.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.contact-form-alert-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 14, 22, 0.18);
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    cursor: pointer;
}

.contact-form-alert-card {
    position: relative;
    width: min(520px, 100%);
    overflow: hidden;
    border-radius: 30px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 32px 88px rgba(8, 9, 11, 0.22);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-body);
}

.contact-form-alert.is-visible .contact-form-alert-card {
    opacity: 1;
    transform: scale(1);
}

.contact-form-alert-card header {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    color: var(--white);
    background: var(--alpstone-blue);
    font-size: 1.08rem;
    font-weight: 900;
}

.contact-form-alert-card header img {
    width: 82px;
    height: 38px;
    object-fit: contain;
}

.contact-form-alert-card > div {
    display: grid;
    gap: 14px;
    padding: 28px 28px 8px;
}

.contact-form-alert-card h3 {
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 0.98;
}

.contact-form-alert-card p {
    color: #526071;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.contact-form-alert-card > .contact-form-alert-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 28px 28px;
}

.contact-form-alert-button,
.contact-form-alert-contact {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    font: 900 1rem/1 var(--font-body);
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-form-alert-button {
    color: var(--white);
    background: var(--alpstone-blue);
}

.contact-form-alert-contact {
    color: var(--alpstone-blue-dark);
    background: rgba(67, 141, 215, 0.1);
    box-shadow: inset 0 0 0 1px rgba(67, 141, 215, 0.24);
}

.contact-form-alert-button:hover,
.contact-form-alert-button:focus-visible,
.contact-form-alert-contact:hover,
.contact-form-alert-contact:focus-visible {
    color: var(--white);
    background: var(--alpstone-blue-dark);
    box-shadow: 0 16px 34px rgba(67, 141, 215, 0.24);
    transform: translateY(-1px);
}

body.is-contact-modal-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

html.is-contact-modal-open {
    overflow-y: scroll;
    overscroll-behavior: none;
}

/* Alpstone portfolio presentation */
.alpstone-patch {
    position: fixed;
    inset: 0;
    z-index: 160;
    pointer-events: auto;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    --patch-size: 76px;
    --patch-open-width: min(720px, calc(100vw - 44px));
    --patch-open-height: min(560px, calc(100vh - 44px));
    --patch-hover-height: min(636px, calc(100vh - 44px));
}

.alpstone-patch.is-initializing {
    visibility: hidden;
}

.alpstone-patch-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 6, 8, 0.62);
    cursor: pointer;
    opacity: 1;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: opacity 0.48s ease, background 0.48s ease, backdrop-filter 0.48s ease, -webkit-backdrop-filter 0.48s ease;
}

.alpstone-patch-card {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    grid-template-rows: 84px 1fr;
    width: var(--patch-open-width);
    height: var(--patch-open-height);
    min-height: 0;
    overflow: hidden;
    color: var(--text-color);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    isolation: isolate;
    background-clip: padding-box;
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    box-shadow: 0 34px 92px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: top 0.78s cubic-bezier(0.22, 1, 0.36, 1), left 0.78s cubic-bezier(0.22, 1, 0.36, 1), width 0.78s cubic-bezier(0.22, 1, 0.36, 1), height 0.78s cubic-bezier(0.22, 1, 0.36, 1), grid-template-rows 0.78s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.68s cubic-bezier(0.22, 1, 0.36, 1), background 0.54s ease, backdrop-filter 0.54s ease, -webkit-backdrop-filter 0.54s ease, box-shadow 0.54s ease, opacity 0.42s ease, transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.alpstone-patch.is-intro .alpstone-patch-card {
    background: var(--white);
    clip-path: inset(0 round 34px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.alpstone-patch.is-intro.is-intro-entering .alpstone-patch-backdrop {
    opacity: 0;
}

.alpstone-patch.is-intro.is-intro-entering .alpstone-patch-card {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.alpstone-patch-backdrop:focus-visible,
.alpstone-patch-card:focus,
.alpstone-patch-card:focus-visible,
.alpstone-patch-card:focus-within,
.alpstone-patch-logo:focus-visible {
    outline: none;
}

.alpstone-patch-header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 10px 122px 10px 38px;
    color: var(--white);
    background: var(--alpstone-blue);
    opacity: 1;
    transition: transform 0.24s ease;
}

.alpstone-patch-header img {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    object-fit: contain;
}

.alpstone-patch-header span {
    font-size: clamp(1rem, 2vw, 1.24rem);
    font-weight: 900;
    line-height: 1.12;
}

.alpstone-patch-body {
    position: relative;
    min-height: 0;
    padding: 48px 54px 96px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.alpstone-patch-step {
    position: absolute;
    inset: 48px 54px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.alpstone-patch-step.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.alpstone-patch-card.is-step-changing .alpstone-patch-step.is-active {
    opacity: 0;
    transform: translateY(8px);
}

.alpstone-patch-step h2 {
    max-width: 13ch;
    color: var(--text-color);
    font-family: inherit;
    font-size: clamp(2.45rem, 4.8vw, 4.35rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
}

.alpstone-patch-step p {
    max-width: 42rem;
    margin-top: 24px;
    color: #667085;
    font-size: clamp(1.04rem, 1.8vw, 1.2rem);
    font-weight: 760;
    line-height: 1.55;
}

.alpstone-patch-close {
    position: absolute;
    top: 42px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: var(--alpstone-blue);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.22s ease, color 0.18s ease, transform 0.22s ease, opacity 0.24s ease;
}

.alpstone-patch-close:hover,
.alpstone-patch-close:focus-visible {
    color: var(--white);
    background: var(--alpstone-blue-dark);
    transform: translateY(calc(-50% - 1px));
}

.alpstone-patch-nav {
    position: absolute;
    right: 34px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.alpstone-patch-arrow {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--alpstone-blue);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(67, 141, 215, 0.25);
    transition: width 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.22s ease, color 0.18s ease, box-shadow 0.22s ease, opacity 0.24s ease, transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.alpstone-patch-arrow:hover,
.alpstone-patch-arrow:focus-visible {
    color: var(--white);
    background: var(--alpstone-blue-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(67, 141, 215, 0.35);
}

.alpstone-patch-arrow:active {
    transform: translateY(-1px);
}

.alpstone-patch-arrow:disabled {
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px) scale(0.92);
}

.alpstone-patch-arrow-icon {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.alpstone-patch-arrow:first-child .alpstone-patch-arrow-icon {
    transform: translateX(2px) rotate(-135deg);
}

.alpstone-patch-arrow:last-child .alpstone-patch-arrow-icon {
    transform: translateX(-4px) rotate(45deg);
}

.alpstone-patch-next {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
}

.alpstone-patch-next .alpstone-patch-arrow-icon,
.alpstone-patch-next-label {
    position: absolute;
    top: 50%;
    left: 50%;
}

.alpstone-patch-next-label {
    display: block;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 2px)) scale(0.82);
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.alpstone-patch-arrow.alpstone-patch-next .alpstone-patch-arrow-icon {
    transform: translate(-58%, -50%) rotate(45deg);
}

.alpstone-patch.is-last-step .alpstone-patch-next {
    width: 126px;
    padding: 0 26px;
}

.alpstone-patch.is-last-step .alpstone-patch-next .alpstone-patch-arrow-icon {
    opacity: 0;
    transform: translate(-58%, -50%) rotate(45deg) scale(0.82);
}

.alpstone-patch.is-last-step .alpstone-patch-next-label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.alpstone-patch.is-nav-changing .alpstone-patch-next .alpstone-patch-arrow-icon,
.alpstone-patch.is-nav-changing .alpstone-patch-next-label,
.alpstone-patch.is-nav-changing .alpstone-patch-arrow:first-child {
    opacity: 0;
    pointer-events: none;
}

.alpstone-patch-return {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: var(--patch-size);
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--white);
    background: var(--alpstone-blue);
    font-size: 1.05rem;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, background 0.22s ease;
}

.alpstone-patch-return span {
    display: block;
    width: 13px;
    height: 13px;
    border-bottom: 3px solid currentColor;
    border-left: 3px solid currentColor;
    border-radius: 2px;
    transform: translateX(2px) rotate(45deg);
}

.alpstone-patch-return:hover,
.alpstone-patch-return:focus-visible {
    background: var(--alpstone-blue-dark);
}

.alpstone-patch-hint {
    position: fixed;
    top: calc(100vh - 22px - var(--patch-size));
    left: 22px;
    z-index: 1;
    display: flex;
    width: 0;
    max-width: calc(100vw - 42px);
    height: var(--patch-size);
    align-items: center;
    overflow: hidden;
    padding: 0;
    border-radius: 999px;
    color: #344054;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 42px rgba(8, 9, 11, 0.14);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: width 0.52s cubic-bezier(0.22, 1, 0.36, 1), padding 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, visibility 0s linear 0.52s;
}

.alpstone-patch-hint span {
    display: block;
    min-width: 340px;
    opacity: 0;
    transform: translateX(-8px);
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1;
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-contact-modal-open .alpstone-patch-hint {
    opacity: 0 !important;
    pointer-events: none !important;
}

.alpstone-patch-logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.72);
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.alpstone-patch-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.alpstone-patch.is-docking .alpstone-patch-backdrop,
.alpstone-patch.is-docked .alpstone-patch-backdrop {
    background: rgba(5, 6, 8, 0);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0) saturate(100%);
    -webkit-backdrop-filter: blur(0) saturate(100%);
}

.alpstone-patch.is-docking .alpstone-patch-card,
.alpstone-patch.is-docked .alpstone-patch-card {
    top: calc(100vh - 22px);
    left: 22px;
    grid-template-rows: 0 1fr;
    width: var(--patch-size);
    height: var(--patch-size);
    border-radius: 50%;
    background: var(--alpstone-blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 18px 42px rgba(67, 141, 215, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transform: translate(0, -100%);
}

.alpstone-patch.is-docking .alpstone-patch-header,
.alpstone-patch.is-docking .alpstone-patch-body,
.alpstone-patch.is-docking .alpstone-patch-nav,
.alpstone-patch.is-docking .alpstone-patch-return,
.alpstone-patch.is-docking .alpstone-patch-close,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-header,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-body,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-nav,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-return,
.alpstone-patch.is-docked.is-hover-open:not(.is-preview-ready) .alpstone-patch-body,
.alpstone-patch.is-docked.is-hover-open:not(.is-preview-ready) .alpstone-patch-nav,
.alpstone-patch.is-docked .alpstone-patch-close {
    opacity: 0;
    pointer-events: none;
}

.alpstone-patch.is-docking .alpstone-patch-header,
.alpstone-patch.is-docking .alpstone-patch-body,
.alpstone-patch.is-docking .alpstone-patch-nav,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-header,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-body,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-nav,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-return,
.alpstone-patch.is-docked.is-hover-open:not(.is-preview-ready) .alpstone-patch-body,
.alpstone-patch.is-docked.is-hover-open:not(.is-preview-ready) .alpstone-patch-nav {
    transform: translateY(8px);
}

.alpstone-patch.is-docking .alpstone-patch-logo,
.alpstone-patch.is-docked:not(.is-hover-open) .alpstone-patch-logo {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0.68s;
}

.alpstone-patch.is-docked.is-hint-expanded:not(.is-hover-open) .alpstone-patch-hint {
    width: min(560px, calc(100vw - 42px));
    padding: 0 30px 0 calc(var(--patch-size) + 44px);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.alpstone-patch.is-docked.is-hint-text-visible:not(.is-hover-open) .alpstone-patch-hint span {
    opacity: 1;
    transform: translateX(0);
}

.alpstone-patch.is-logo-fading .alpstone-patch-logo,
.alpstone-patch.is-hover-open .alpstone-patch-logo {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.72);
    transition-delay: 0s;
}

.alpstone-patch.is-docked {
    inset: auto;
    pointer-events: none;
}

.alpstone-patch.is-docked .alpstone-patch-card {
    pointer-events: auto;
}

.alpstone-patch.is-docked.is-hover-open .alpstone-patch-card {
    grid-template-rows: 84px 1fr var(--patch-size);
    width: var(--patch-open-width);
    height: var(--patch-hover-height);
    border-radius: 34px;
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    clip-path: inset(0 round 34px);
    box-shadow: 0 28px 72px rgba(8, 9, 11, 0.2);
}

.alpstone-patch.is-docked.is-hover-open .alpstone-patch-nav {
    bottom: calc(var(--patch-size) + 28px);
}

.alpstone-patch.is-docked.is-hover-open .alpstone-patch-return,
.alpstone-patch.is-docked.is-hover-open .alpstone-patch-header,
.alpstone-patch.is-docked.is-preview-ready .alpstone-patch-body,
.alpstone-patch.is-docked.is-preview-ready .alpstone-patch-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Page Header */
.page-header {
    padding: 6rem 0 4rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Work Page Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.project-item {
    cursor: pointer;
}

.project-thumb {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-thumb {
    opacity: 0.8;
}

.project-meta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-meta span {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Studio Page */
.studio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.studio-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.studio-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.studio-image {
    height: 500px;
}

/* Team */
.team h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 6rem;
}

.team-member {
    text-align: center;
    flex: 1;
}

.member-photo {
    height: 300px;
    background-color: #ddd;
    margin-bottom: 1.5rem;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.team-member span {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Active Link */
nav a.active {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
}

/* Placeholders styles to make them look intentional */
.placeholder-concrete {
    background: linear-gradient(135deg, #d3d3d3 0%, #a8a8a8 100%);
}

.placeholder-dark {
    background: linear-gradient(135deg, #444 0%, #222 100%);
}

.placeholder-light {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.placeholder-concrete-vertical {
    background: linear-gradient(to bottom, #ccc, #999);
}

.placeholder-portrait {
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.placeholder-portrait::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Large screens (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .projects {
        gap: 2rem;
    }

    .project-image {
        height: 450px;
    }

    .studio-content {
        gap: 2rem;
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header */
    header {
        padding: 1.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero {
        height: 70vh;
        margin-bottom: 4rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Projects Grid */
    .projects {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .project-card.large {
        grid-column: span 1;
    }

    .project-image {
        height: 350px;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    /* Page Header */
    .page-header {
        padding: 4rem 0 3rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Work Page Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-thumb {
        height: 300px;
    }

    /* Studio Page */
    .studio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .studio-text h3 {
        font-size: 1.6rem;
    }

    .studio-image {
        height: 350px;
    }

    /* Team */
    .team-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .member-photo {
        height: 250px;
    }

    /* Contact */
    .contact {
        padding: 4rem 0;
    }

    .contact h2 {
        font-size: 2rem;
    }

}

/* Intermediate (600px) */
@media (max-width: 600px) {
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .project-image {
        height: 300px;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-field-grid {
        grid-template-columns: 1fr;
    }

    .contact-modal-panel {
        max-height: 92vh;
        padding: 28px 22px;
    }

    .contact-modal-close {
        top: 16px;
        right: 16px;
    }

    .contact-form-alert-card > .contact-form-alert-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .alpstone-patch {
        --patch-size: 62px;
        --patch-open-width: min(420px, calc(100vw - 28px));
        --patch-open-height: min(520px, calc(100vh - 28px));
        --patch-hover-height: min(590px, calc(100vh - 28px));
    }

    .alpstone-patch-card,
    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-card {
        grid-template-rows: 76px 1fr;
        border-radius: 28px;
    }

    .alpstone-patch.is-intro .alpstone-patch-card,
    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-card {
        clip-path: inset(0 round 28px);
    }

    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-card {
        grid-template-rows: 76px 1fr var(--patch-size);
    }

    .alpstone-patch-header {
        gap: 14px;
        padding: 13px 68px 13px 22px;
    }

    .alpstone-patch-header img {
        width: 58px;
        height: 58px;
    }

    .alpstone-patch-body {
        padding: 34px 28px 90px;
    }

    .alpstone-patch-step {
        inset: 34px 28px 90px;
    }

    .alpstone-patch-step h2 {
        max-width: 10ch;
        font-size: clamp(2.1rem, 10vw, 3.3rem);
    }

    .alpstone-patch-step p {
        margin-top: 18px;
        font-size: clamp(1.04rem, 1.8vw, 1.2rem);
        line-height: 1.45;
    }

    .alpstone-patch-nav {
        right: 22px;
        bottom: 22px;
    }

    .alpstone-patch-arrow {
        width: 44px;
        height: 44px;
    }

    .alpstone-patch.is-docking .alpstone-patch-card,
    .alpstone-patch.is-docked .alpstone-patch-card {
        top: calc(100vh - 16px);
        left: 16px;
    }

    .alpstone-patch-hint {
        top: calc(100vh - 16px - var(--patch-size));
        left: 16px;
    }

    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-nav {
        bottom: calc(var(--patch-size) + 22px);
    }

    .alpstone-patch-logo img {
        width: 48px;
        height: 48px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        height: 55vh;
        margin-bottom: 3rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Projects */
    .projects {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .project-image {
        height: 260px;
        margin-bottom: 1rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }

    /* Page Header */
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 0.75rem;
    }

    /* Work Grid */
    .project-thumb {
        height: 250px;
    }

    .project-meta h2 {
        font-size: 1.2rem;
    }

    /* Studio */
    .studio-text h3 {
        font-size: 1.4rem;
    }

    .studio-text p {
        font-size: 1rem;
    }

    .studio-image {
        height: 280px;
    }

    /* Team */
    .team h3 {
        font-size: 1.5rem;
    }

    .member-photo {
        height: 220px;
    }

    .team-member h4 {
        font-size: 1rem;
    }

    /* Contact */
    .contact {
        padding: 3rem 0;
    }

    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .contact-btn {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .contact-form-alert-card > div {
        padding-inline: 22px;
    }

    .contact-form-alert-card > .contact-form-alert-actions {
        padding: 20px 22px 24px;
    }

    .alpstone-patch-close {
        right: 12px;
        padding: 0 15px;
        font-size: 0.94rem;
    }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .project-image {
        height: 200px;
    }

    .project-info h3 {
        font-size: 1.15rem;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .contact h2 {
        font-size: 1.3rem;
    }

    .contact-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}


/* Mobile-only full patch controls. Desktop preview and hover behavior stay unchanged. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    .alpstone-patch {
        --patch-size: 62px;
        --patch-open-width: min(430px, calc(100vw - 28px));
        --patch-open-height: min(600px, calc(100svh - 28px));
        --patch-mobile-bar-height: 68px;
    }

    .alpstone-patch-card,
    .alpstone-patch.is-intro .alpstone-patch-card,
    .alpstone-patch.is-mobile-reopened .alpstone-patch-card {
        grid-template-rows: 76px minmax(0, 1fr) var(--patch-mobile-bar-height);
        border-radius: 28px;
        clip-path: inset(0 round 28px);
    }

    .alpstone-patch-card::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        height: var(--patch-mobile-bar-height);
        border-top: 1px solid rgba(67, 141, 215, 0.14);
        background: rgba(245, 248, 252, 0.96);
        content: "";
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .alpstone-patch.is-docking .alpstone-patch-card::after,
    .alpstone-patch.is-docked .alpstone-patch-card::after {
        opacity: 0;
    }

    .alpstone-patch-header {
        gap: 14px;
        padding: 9px 22px;
    }

    .alpstone-patch-header img {
        width: 58px;
        height: 58px;
    }

    .alpstone-patch-body {
        min-height: 0;
        padding: 0;
    }

    .alpstone-patch-step {
        inset: 22px 24px 18px;
        justify-content: safe center;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .alpstone-patch-step::-webkit-scrollbar {
        display: none;
    }

    .alpstone-patch-step h2 {
        max-width: 11ch;
        font-size: clamp(2rem, 9.6vw, 3.15rem);
    }

    .alpstone-patch-step p,
    .alpstone-patch-step p:last-child {
        margin-top: 18px;
        font-size: 0.94rem;
        line-height: 1.48;
    }

    .alpstone-patch-close {
        top: auto;
        right: auto;
        bottom: 12px;
        left: 16px;
        z-index: 5;
        width: 44px;
        height: 44px;
        padding: 0;
        color: transparent;
        background: #fff;
        font-size: 0;
        box-shadow: 0 4px 16px rgba(67, 141, 215, 0.2);
        transform: none;
    }

    .alpstone-patch-close::before,
    .alpstone-patch-close::after {
        position: absolute;
        width: 16px;
        height: 2.5px;
        border-radius: 999px;
        background: var(--alpstone-blue);
        content: "";
    }

    .alpstone-patch-close::before {
        transform: rotate(45deg);
    }

    .alpstone-patch-close::after {
        transform: rotate(-45deg);
    }

    .alpstone-patch-close:hover,
    .alpstone-patch-close:focus-visible {
        color: transparent;
        background: #fff;
        transform: none;
    }

    .alpstone-patch-close:hover::before,
    .alpstone-patch-close:hover::after,
    .alpstone-patch-close:focus-visible::before,
    .alpstone-patch-close:focus-visible::after {
        background: var(--alpstone-blue-dark);
    }

    .alpstone-patch-nav,
    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-nav {
        right: 16px;
        bottom: 12px;
        z-index: 5;
        gap: 8px;
    }

    .alpstone-patch-arrow {
        width: 44px;
        height: 44px;
    }

    .alpstone-patch.is-last-step .alpstone-patch-next {
        width: 104px;
        padding-inline: 18px;
    }

    .alpstone-patch-return {
        right: auto;
        bottom: 12px;
        left: 70px;
        z-index: 5;
        width: 104px;
        height: 44px;
        gap: 7px;
        border-radius: 999px;
        font-size: 0;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transform: none;
    }

    .alpstone-patch-return span {
        width: 10px;
        height: 10px;
        border-width: 0 0 2px 2px;
    }

    .alpstone-patch-return::after {
        content: "Alpstone";
        font-size: 0.76rem;
    }

    .alpstone-patch.is-mobile-reopened .alpstone-patch-return {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .alpstone-patch:not(.is-docked):not(.is-docking) .alpstone-patch-close,
    .alpstone-patch:not(.is-docked):not(.is-docking) .alpstone-patch-nav {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .alpstone-patch-close:focus-visible,
    .alpstone-patch-arrow:focus-visible,
    .alpstone-patch-return:focus-visible {
        outline: 3px solid rgba(67, 141, 215, 0.48);
        outline-offset: 2px;
    }
}

@media (max-width: 360px) {
    .alpstone-patch {
        --patch-open-width: calc(100vw - 20px);
    }

    .alpstone-patch-close {
        bottom: 14px;
        left: 12px;
        width: 40px;
        height: 40px;
    }

    .alpstone-patch-return {
        bottom: 14px;
        left: 58px;
        width: 76px;
        height: 40px;
        gap: 5px;
        font-size: 0;
    }

    .alpstone-patch-return span {
        display: none;
    }

    .alpstone-patch-return::after {
        font-size: 0.66rem;
    }

    .alpstone-patch-nav,
    .alpstone-patch.is-docked.is-hover-open .alpstone-patch-nav {
        right: 12px;
        bottom: 14px;
        gap: 6px;
    }

    .alpstone-patch-arrow {
        width: 40px;
        height: 40px;
    }

    .alpstone-patch.is-last-step .alpstone-patch-next {
        width: 88px;
        padding-inline: 12px;
    }
}

/* Keep the mobile patch button unchanged while letting its one-time hint hug the copy. */
@media (max-width: 560px) {
    .alpstone-patch-hint span {
        min-width: 0;
        white-space: normal;
        font-size: 0.7rem;
        line-height: 1.18;
    }

    .alpstone-patch.is-docked.is-hint-expanded:not(.is-hover-open) .alpstone-patch-hint {
        width: min(250px, calc(100vw - 28px));
        max-width: min(250px, calc(100vw - 28px));
        padding-right: 10px;
        padding-left: calc(var(--patch-size) + 14px);
    }
}
