.design-studio-page {
    --studio-red: #c1272d;
    --studio-line: #292929;
    --studio-muted: #f5f3ef;
    --studio-nav-top: 80px;
    color: #171717;
    padding-top: clamp(145px, 16vh, 185px);
    font-weight: 600;
}

.studio-container {
    width: min(88%, 1440px);
    margin-inline: auto;
}
.design-studio-page p { margin: 0 0 1.05em; }
.design-studio-page img { display: block; width: 100%; height: auto; }
.design-studio-page figure { margin: 0; }
.design-studio-page [data-studio-section] { scroll-margin-top: 160px; outline: none; }
.design-studio-page a:focus-visible,
.studio-viewer button:focus-visible { outline: 3px solid var(--studio-red, #c1272d); outline-offset: 5px; }

.studio-hero {
    display: grid;
    grid-template-columns: 0.98fr 1.02fr;
    align-items: center;
    gap: 4%;
    padding-bottom: clamp(36px, 4vw, 64px);
}
.studio-hero__rule {
    display: block;
    width: 64px;
    height: 7px;
    background: var(--studio-red);
    margin-bottom: 20px;
}
.studio-hero__title {
    font-family: "Integral CF Extra", sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 6.2vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.studio-title-mask { display: block; overflow: clip; padding-bottom: 0.05em; }
.studio-title-line { display: block; }
.studio-hero__title > .studio-title-mask:last-child { color: var(--studio-red); }
.studio-hero__intro { font-family: "Integral CF", sans-serif; font-size: clamp(17px, 1.3vw, 22px); font-weight: 400; line-height: 1.4; max-width: 29em; letter-spacing: -0.015em; }
.studio-hero__copy .studio-hero__intro { margin-bottom: 0; }
.studio-hero__media { overflow: hidden; background: var(--studio-muted); }
.studio-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; }

.studio-nav {
    position: sticky;
    top: var(--studio-nav-top);
    z-index: 20;
    background: #fff;
    border-block: 2px solid var(--studio-line);
}
.studio-nav__links { display: flex; gap: 0; }
.studio-nav a {
    position: relative;
    display: block;
    flex: 1 0 auto;
    padding: 17px 18px;
    border-left: 1px solid var(--studio-line);
    color: #171717;
    font-family: "Integral CF Extra", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.studio-nav a:last-child { border-right: 1px solid var(--studio-line); }
.studio-nav a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline: 0;
    height: 4px;
    background: var(--studio-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}
.studio-nav a[aria-current] { background: #171717; color: #fff; }
.studio-nav a:hover { background: var(--studio-red); color: #fff; }
.studio-nav a:hover::after,
.studio-nav a[aria-current]::after { transform: scaleX(1); }

.studio-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    padding-block: clamp(40px, 4.5vw, 72px);
    border-bottom: 2px solid var(--studio-line);
    line-height: 1.6;
}
.studio-intro__lead { font-size: clamp(17px, 1.25vw, 20px); font-weight: 700; }
.studio-intro__body { font-size: 16px; color: #303030; }
.studio-intro .studio-intro__statement { font-family: "Integral CF Extra", sans-serif; font-size: clamp(18px, 1.4vw, 23px); line-height: 1.3; color: #171717; border-left: 5px solid var(--studio-red); padding-left: 20px; margin-block: 22px; }
.studio-intro p:last-child { margin-bottom: 0; }

.studio-heading {
    font-family: "Integral CF Extra", sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.studio-heading span { display: block; color: var(--studio-red); }
.studio-room { padding-block: clamp(48px, 5vw, 80px); border-bottom: 2px solid var(--studio-line); }
.studio-room__main { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 5%; }
.studio-room--reverse .studio-room__main { grid-template-columns: 1.2fr 0.8fr; }
.studio-room--reverse .studio-room__image { grid-column: 1; grid-row: 1; }
.studio-room--reverse .studio-room__copy { grid-column: 2; }
.studio-room__image { overflow: hidden; background: var(--studio-muted); }
.studio-room__image img { aspect-ratio: 1.2 / 1; object-fit: cover; }
.studio-picks { list-style: none; padding: 0; margin: 0; }
.studio-picks li { border-bottom: 1px solid var(--studio-line); padding: 12px 0 12px 22px; position: relative; font-family: "Integral CF Extra", sans-serif; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.35; letter-spacing: -0.01em; }
.studio-picks li:first-child { border-top: 1px solid var(--studio-line); }
.studio-picks li::before { content: ""; width: 7px; height: 7px; background: var(--studio-red); position: absolute; left: 0; top: 19px; }
.studio-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 79%; margin-top: 32px; margin-left: auto; }
.studio-room--reverse .studio-details { margin-left: 0; }
.studio-details__image { overflow: hidden; }
.studio-details img { aspect-ratio: 1.9 / 1; object-fit: cover; }
.design-studio-page figcaption { font-family: "Integral CF", sans-serif; font-size: 12px; line-height: 1.4; font-weight: 400; padding-top: 10px; color: #171717; }

.studio-misc { padding-block: clamp(48px, 5vw, 80px); }
.studio-misc__header { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: start; margin-bottom: 32px; }
.studio-misc__header .studio-heading { font-size: clamp(28px, 3.5vw, 56px); margin: 0; }
.studio-misc__images { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: start; }
.studio-misc__images figure:last-child { margin-top: 40px; }
.studio-misc__images img { aspect-ratio: 1.22 / 1; object-fit: cover; }

.studio-packages { background: var(--studio-muted); padding-block: clamp(48px, 5vw, 80px); border-block: 2px solid var(--studio-line); }
.studio-packages__intro { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 8%; align-items: start; }
.studio-packages__intro p { line-height: 1.6; font-size: 16px; }
.studio-packages__selection { border-top: 1px solid var(--studio-line); padding-top: 24px; margin-block: 24px 32px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 8%; }
.studio-packages__selection h3 { font-family: "Integral CF Extra", sans-serif; font-size: 19px; line-height: 1.25; margin: 0; }
.studio-packages__selection p { font-size: 15px; line-height: 1.6; margin-bottom: 0; color: #303030; }
.studio-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; max-width: 1100px; margin-inline: auto; }
.studio-package { color: #171717; text-decoration: none; min-width: 0; transition: transform 280ms ease; }
.studio-package__image { padding: 16px; background: #e6e2dc; border: 1px solid #171717; border-bottom: 0; overflow: hidden; transition: background 250ms ease; }
.studio-board { position: relative; overflow: hidden; aspect-ratio: 177 / 260; }
.studio-board img {
    position: absolute;
    width: calc(617 / 177 * 100%);
    max-width: none;
    height: auto;
    left: calc(var(--board-x) / 177 * -100%);
    top: calc(var(--board-y) / 260 * -100%);
}
.studio-package__label { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 16px; background: #171717; color: #fff; transition: background 250ms ease; }
.studio-package__label h4 { font-family: "Integral CF Extra", sans-serif; font-size: 24px; margin: 0; }
.studio-enlarge { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; flex-shrink: 0; font-size: 24px; line-height: 1; color: #fff; transition: transform 250ms ease; }
.studio-package:hover { color: #fff; }
.studio-package:hover .studio-package__label,
.studio-package:focus-visible .studio-package__label { background: var(--studio-red); }
.studio-package:hover .studio-package__image { background: #dcd5cc; }
.studio-package:hover .studio-enlarge { transform: translate(2px, -2px); }

.studio-showroom { padding-block: clamp(48px, 5vw, 80px); }
.studio-showroom > .studio-heading { margin-bottom: 32px; }
.studio-showroom__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; border: 2px solid #171717; }
.studio-showroom__image { min-width: 0; overflow: hidden; background: var(--studio-muted); }
.studio-showroom__image img { height: 100%; min-height: 420px; object-fit: cover; }
.studio-showroom__copy { padding: clamp(28px, 3vw, 48px); color: #fff; background: #171717; font-size: 15px; line-height: 1.65; }
.studio-showroom__copy > p:first-child { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; line-height: 1.5; }
.studio-showroom__copy > p:last-of-type { margin-bottom: 0; }
.studio-contact { font-style: normal; margin: 28px 0 0; }
.studio-contact a { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; font-family: "Integral CF Extra", sans-serif; font-weight: 700; font-size: clamp(16px, 1.3vw, 21px); padding: 15px 0; border-bottom: 1px solid #666; text-decoration: none; transition: color 200ms ease; }
.studio-contact a:first-child { border-top: 1px solid #666; }
.studio-contact a span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; background: var(--studio-red); color: #fff; transition: transform 200ms ease; }
.studio-contact a:hover { color: #fff; }
.studio-contact a:hover span { transform: translate(2px, -2px); }
.studio-contact a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.studio-location { border: 2px solid #171717; border-top: 6px solid var(--studio-red); margin-top: -2px; }
.studio-location__map { position: relative; isolation: isolate; background: #e7e5e1; }
.studio-map { height: clamp(320px, 28vw, 410px); width: 100%; background: #e7e5e1; font-family: "Open Sans", sans-serif; }
/* Tint the basemap only, so the red marker and accessible controls stay clear. */
.studio-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.1); }
.studio-map img { width: auto; height: auto; max-width: none; }
.studio-map .leaflet-control-zoom { border: 2px solid #171717; border-radius: 0; box-shadow: none; }
.studio-map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; color: #fff; background: #171717; border-radius: 0; border-color: #666; }
.studio-map .leaflet-control-zoom a:hover,
.studio-map .leaflet-control-zoom a:focus { background: var(--studio-red); color: #fff; }
.studio-map .leaflet-control-zoom a.leaflet-disabled { color: #aaa; background: #333; }
.studio-map .leaflet-control-attribution { padding: 4px 8px; background: #fff; color: #171717; font: 11px/1.4 "Open Sans", sans-serif; white-space: nowrap; }
.studio-map .leaflet-control-attribution a { color: #171717; text-decoration: underline; }
.studio-map .leaflet-control a:focus-visible,
.studio-map .leaflet-marker-icon:focus-visible { outline: 3px solid var(--studio-red); outline-offset: 3px; }
.studio-map-pin { background: transparent; border: 0; }
.studio-map-pin__badge { position: relative; display: grid; place-items: center; width: 96px; height: 48px; border: 3px solid #fff; background: var(--studio-red); box-shadow: 4px 4px 0 #171717; color: #fff; font: 17px/1 "Integral CF Extra", sans-serif; animation: studio-pin-enter 450ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.studio-map-pin__badge::after { content: ""; position: absolute; top: 100%; left: calc(50% - 10px); border-inline: 10px solid transparent; border-top: 17px solid var(--studio-red); }
.studio-map .leaflet-popup-content-wrapper { border: 2px solid #171717; border-radius: 0; box-shadow: 4px 4px 0 var(--studio-red); }
.studio-map .leaflet-popup-content { font: 14px/1.6 "Open Sans", sans-serif; color: #171717; }
.studio-map .leaflet-popup-content strong { font-family: "Integral CF Extra", sans-serif; }
.studio-map .leaflet-popup-close-button { color: #171717; }
.studio-map__fallback { position: absolute; z-index: 800; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 20px; width: max-content; max-width: calc(100% - 32px); padding: 16px 20px; background: #171717; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.studio-map__fallback:hover { background: var(--studio-red); color: #fff; }
.studio-location[data-map-ready] .studio-map__fallback { display: none; }
.studio-map__reset { position: absolute; z-index: 1000; top: 10px; left: 10px; display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px 14px; border: 2px solid #171717; background: #fff; color: #171717; font: 700 12px/1.4 "Open Sans", sans-serif; cursor: pointer; }
.studio-map__reset[hidden] { display: none; }
.studio-map__reset span { color: var(--studio-red); font-size: 23px; line-height: 1; }
.studio-map__reset:hover { background: #171717; color: #fff; }
.studio-location__bar { display: flex; align-items: stretch; justify-content: space-between; background: var(--studio-red); color: #fff; }
.studio-location__bar address { align-self: center; margin: 0; padding: 22px 28px; font: 700 clamp(16px, 1.6vw, 24px)/1.3 "Integral CF Extra", sans-serif; }
.studio-location__directions { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-shrink: 0; padding: 20px 28px; background: #171717; color: #fff; font: 700 14px/1.4 "Integral CF Extra", sans-serif; text-decoration: none; transition: background 200ms ease; }
.studio-location__directions span { font: 28px/1 "Open Sans", sans-serif; }
.studio-location__directions:hover { background: #333; color: #fff; }
.studio-map__reset:focus-visible,
.studio-map__fallback:focus-visible,
.studio-location__directions:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 2px #171717; }
@keyframes studio-pin-enter {
    from { opacity: 0; transform: translateY(-12px) scale(0.85); }
    to { opacity: 1; transform: none; }
}

.studio-viewer { border: 2px solid #171717; padding: 24px; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: #171717; }
.studio-viewer:not([open]) { display: none; }
.studio-viewer[open] { animation: studio-preview-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.studio-viewer::backdrop { background: rgb(0 0 0 / 75%); }
.studio-viewer[open]::backdrop { animation: studio-backdrop-enter 220ms ease-out both; }
.studio-viewer__header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 18px; }
.studio-viewer__header h2 { font-family: "Integral CF Extra", sans-serif; font-size: 28px; margin: 0; }
.studio-viewer__close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #c1272d; background: #fff; color: #c1272d; font-size: 32px; line-height: 1; }
.studio-viewer__close:hover { background: #c1272d; color: #fff; }
.studio-viewer__board { width: min(100%, calc((100dvh - 150px) * 177 / 260)); margin-inline: auto; }
.studio-viewer__board .studio-board img { display: block; }
html.studio-preview-open { overflow: hidden; }

@keyframes studio-preview-enter {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes studio-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
    .studio-package:hover { transform: translateY(-5px); }
}

/* Keep the site's mobile header legible above this page's white hero. */
body[data-nav="design-studio"] .mobile-navigation.hide { padding-bottom: 0; }
body[data-nav="design-studio"] .mobile-navigation.hide .logo-toggle-wrapper {
    background: #fff;
    border-block: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}
body[data-nav="design-studio"] .mobile-navigation.hide .logo-image {
    max-width: 200px;
    transform: none;
    opacity: 1;
}
body[data-nav="design-studio"] .mobile-navigation.hide .navbar-toggler {
    position: relative;
    right: 0;
}

@media (min-width: 1800px) {
    .design-studio-page { --studio-nav-top: 90px; }
}
@media (max-width: 1100px) {
    .studio-container { width: 90%; }
    .studio-hero { gap: 4%; }
    .studio-hero__title { font-size: clamp(46px, 6vw, 66px); }
    .studio-room__main,
    .studio-room--reverse .studio-room__main { grid-template-columns: 1fr 1fr; gap: 5%; }
    .studio-picks li { font-size: 15px; padding-block: 12px; }
    .studio-picks li::before { top: 18px; }
    .studio-package__image { padding: 16px; }
    .studio-showroom__layout { grid-template-columns: 1fr 1fr; }
    .studio-showroom__copy { padding: 28px; }
}
@media (max-width: 767px) {
    .design-studio-page { padding-top: 116px; --studio-nav-top: 81px; }
    .studio-container { width: calc(100% - 40px); }
    .studio-hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
    .studio-hero__rule { margin-bottom: 16px; width: 44px; height: 6px; }
    .studio-hero__title { font-size: clamp(40px, 10.5vw, 64px); max-width: 12ch; margin-bottom: 18px; }
    .studio-hero__intro { font-size: 17px; max-width: 28em; }
    .studio-hero__media img { aspect-ratio: 4 / 3; }
    .studio-nav__links { overflow-x: auto; width: 100%; scrollbar-width: thin; }
    .studio-nav a { font-size: 11px; padding: 15px 17px; }
    .design-studio-page [data-studio-section] { scroll-margin-top: 148px; }
    .studio-intro { grid-template-columns: 1fr; gap: 22px; padding-block: 32px 40px; }
    .studio-intro__lead { font-size: 18px; }
    .studio-intro__body { font-size: 15px; }
    .studio-intro .studio-intro__statement { font-size: 19px; padding-left: 16px; }
    .studio-heading { font-size: clamp(34px, 8vw, 44px); margin-bottom: 22px; }
    .studio-room { padding-block: 40px; }
    .studio-room__main,
    .studio-room--reverse .studio-room__main { grid-template-columns: 1fr; gap: 24px; }
    .studio-room--reverse .studio-room__copy,
    .studio-room--reverse .studio-room__image { grid-column: auto; grid-row: auto; }
    .studio-room__image img { aspect-ratio: 1.15 / 1; }
    .studio-picks li { font-size: 14px; padding-block: 11px; }
    .studio-picks li::before { top: 17px; }
    .studio-details { width: 100%; gap: 14px; margin-top: 20px; }
    .studio-details img { aspect-ratio: 1.1 / 1; }
    .design-studio-page figcaption { font-size: 11px; line-height: 1.5; padding-top: 10px; }
    .studio-misc { padding-block: 40px; }
    .studio-misc__header { grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
    .studio-misc__header .studio-heading { font-size: clamp(26px, 6.5vw, 42px); }
    .studio-misc__images { grid-template-columns: 1fr; gap: 24px; }
    .studio-misc__images figure:last-child { margin-top: 0; }
    .studio-misc__images img { aspect-ratio: 1.35 / 1; }
    .studio-packages { padding-block: 40px; }
    .studio-packages__intro,
    .studio-packages__selection { grid-template-columns: 1fr; gap: 24px; }
    .studio-packages__intro .studio-heading { margin-bottom: 0; }
    .studio-packages__intro p { font-size: 15px; margin-bottom: 0; }
    .studio-packages__selection { margin-block: 24px; padding-top: 22px; gap: 14px; }
    .studio-packages__selection h3 { font-size: 17px; }
    .studio-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .studio-package__image { padding: 8px; }
    .studio-package__label { padding: 10px; gap: 8px; }
    .studio-package__label h4 { font-size: clamp(14px, 4.2vw, 17px); }
    .studio-enlarge { width: 24px; height: 24px; font-size: 19px; }
    .studio-showroom { padding-block: 40px 48px; }
    .studio-showroom > .studio-heading { margin-bottom: 24px; }
    .studio-showroom__layout { grid-template-columns: 1fr; }
    .studio-showroom__image img { height: auto; min-height: 0; aspect-ratio: 1.4 / 1; }
    .studio-showroom__copy { padding: 24px 20px; font-size: 14px; }
    .studio-showroom__copy > p:first-child { font-size: 18px; }
    .studio-contact { margin-top: 24px; }
    .studio-contact a { font-size: clamp(14px, 4.3vw, 18px); padding-block: 13px; gap: 10px; }
    .studio-contact a span { width: 26px; height: 26px; }
    .studio-map { height: 340px; }
    .studio-location__bar { flex-direction: column; }
    .studio-location__bar address { align-self: stretch; padding: 20px; font-size: 17px; }
    .studio-location__directions { padding: 17px 20px; font-size: 13px; }
    /* Keep the shared footer within the viewport on small phones. */
    body[data-nav="design-studio"] .footer-mobile .title-text { font-size: clamp(32px, 10vw, 45px); }
    body[data-nav="design-studio"] .footer-mobile .content .info .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    body[data-nav="design-studio"] .footer-mobile .content .info .logos img { width: 100%; max-width: 164px; min-width: 0; }
    body[data-nav="design-studio"] .footer-mobile .bottom-links { flex-wrap: wrap; gap: 12px 20px; }
    body[data-nav="design-studio"] .footer-mobile .bottom-links .ps-4 { padding-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    .design-studio-page *, .design-studio-page *::after { transition: none !important; }
    .studio-viewer, .studio-viewer::backdrop { animation: none !important; }
    .studio-map-pin__badge { animation: none; }
}
