/* A compact desktop rhythm; readable text and touch targets keep their own floor. */
:root {
    --ui-scale: 0.8;
    --shell: calc(1248px * var(--ui-scale));
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html {
    scroll-padding-top: 86px;
}
h2 {
    font-size: clamp(34px, calc(4.7vw * var(--ui-scale)), calc(68px * var(--ui-scale)));
}
.site-header {
    height: 72px;
}
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}
.brand-mark img {
    transform: scale(0.1171875);
}
.brand-name {
    font-size: 10px;
}
.main-nav {
    font-size: 12px;
    gap: 24px;
}
.hero {
    height: 100svh;
    min-height: 608px;
    max-height: 896px;
}
.hero-content {
    width: min(900px, calc(100% - 40px));
    padding: 104px 0 120px;
}
.hero h1 {
    font-size: clamp(51px, 6.64vw, 100px);
}
.hero-eyebrow {
    margin-bottom: 24px;
}
.hero-description {
    font-size: 15px;
    max-width: 440px;
    margin-block: 24px 26px;
}
.hero-cta {
    min-width: 224px;
    min-height: 47px;
    font-size: 13px;
}
.hero-footer {
    bottom: 30px;
}
.compatibility-strip {
    padding-block: 18px;
}
.features {
    padding-block: 90px 96px;
}
.section-heading {
    gap: 64px;
    margin-bottom: 38px;
}
.section-intro {
    font-size: 14px;
    max-width: 320px;
}
.section-kicker {
    margin-bottom: 20px;
}
.features-grid {
    gap: 22px;
}
.feature-info {
    padding: 21px 24px 26px;
    min-height: 172px;
}
.feature-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.feature-info > p {
    font-size: 13px;
}
.feature-arrow {
    right: 22px;
    bottom: 25px;
    width: 32px;
    height: 32px;
}
.atmosphere {
    padding-block: 84px 51px;
}
.showcase {
    padding-block: 90px 96px;
}
.showcase-grid {
    gap: 22px;
}
.showcase-card h3 {
    font-size: 18px;
}
.about-layout {
    padding-block: 80px;
    gap: 80px;
}
.about-description {
    font-size: 13px;
}
.installation {
    padding-block: 90px 64px;
}
.install-panel {
    min-height: 382px;
}
.install-panel-copy {
    padding: 42px 48px;
}
.install-panel h2 {
    font-size: clamp(42px, 4.56vw, 66px);
}
.install-brand-art {
    min-height: 352px;
}
.install-brand-art > span {
    width: 152px;
    height: 152px;
    font-size: 82px;
    border-radius: 29px;
}
.orbit-one {
    width: 240px;
    height: 240px;
}
.orbit-two {
    width: 320px;
    height: 320px;
}
.orbit-three {
    width: 400px;
    height: 400px;
}
.install-steps {
    padding-top: 30px;
    gap: 36px;
}
.faq {
    padding-block: 56px 88px;
    gap: 64px;
}
.footer-wordmark {
    font-size: clamp(45px, 10.24vw, 148px);
    margin-block: 36px 27px;
}
.project-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
}
.source-note {
    font-size: 11px;
    line-height: 1.8;
    color: #92928a;
    max-width: 360px;
    margin-top: 18px;
    text-wrap: pretty;
}
.footer-links {
    gap: 18px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Explicit language choice with the same surface treatment as the site. */
.language-picker {
    position: relative;
}
.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 400 10px var(--mono);
    transition:
        background 0.2s,
        border-color 0.2s;
}
.language-button:hover,
.language-button[aria-expanded="true"] {
    background: #ffffff0a;
    border-color: #ffffff26;
}
.language-button .language-globe {
    width: 14px;
    height: 14px;
    color: #aaa;
}
.language-button .language-chevron {
    width: 10px;
    height: 10px;
    transform: rotate(90deg);
    transition: transform 0.25s var(--ease-out);
}
.language-button[aria-expanded="true"] .language-chevron {
    transform: rotate(-90deg);
}
.language-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 224px;
    max-width: calc(100vw - 32px);
    padding: 10px;
    background: #191919;
    border: 1px solid #3b3b38;
    border-radius: 12px;
    box-shadow: 0 18px 50px #0007;
    transform-origin: top right;
}
.language-menu > p {
    font-size: 9px;
    color: #898982;
    padding: 7px 10px 11px;
}
.language-menu > button {
    display: grid;
    grid-template-columns: 1fr auto 17px;
    align-items: center;
    gap: 13px;
    text-align: left;
    width: 100%;
    min-height: 44px;
    padding: 11px 10px;
    border-radius: 7px;
    font-size: 13px;
    transition: background 0.2s;
}
.language-menu > button:hover,
.language-menu > button:focus-visible {
    background: #ffffff09;
}
.language-menu > button[aria-checked="true"] {
    background: #ffffff0e;
}
.language-menu .language-code {
    font: 10px var(--mono);
    color: #99998f;
}
.language-menu > button > svg {
    width: 15px;
    height: 15px;
    opacity: 0;
}
.language-menu > button[aria-checked="true"] > svg {
    opacity: 1;
}
.language-menu[inert] {
    pointer-events: none;
}
.language-button:focus-visible,
.language-menu > button:focus-visible {
    outline: 1px solid #d9d9d3;
    outline-offset: 2px;
}

/* Shared motion stays on opacity/transform except deliberate content resizing. */
.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        background 0.25s,
        transform 0.35s var(--ease-out),
        box-shadow 0.3s;
}
.button:before {
    content: "";
    position: absolute;
    inset: -70% -30%;
    z-index: -1;
    background: linear-gradient(100deg, transparent 38%, #fff9 50%, transparent 62%);
    transform: translateX(-110%) skewX(-15deg);
    pointer-events: none;
    transition: transform 0.65s var(--ease-out);
}
.button:hover:before,
.button:focus-visible:before {
    transform: translateX(110%) skewX(-15deg);
}
.button:hover {
    box-shadow: 0 8px 25px #ffffff0c;
}
.main-nav a {
    position: relative;
    padding-block: 8px;
}
.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover:after,
.main-nav a[aria-current="location"]:after {
    transform: scaleX(1);
}
.reading-progress {
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: #ffffff80;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
.feature-card {
    transition:
        border-color 0.3s,
        transform 0.5s var(--ease-out),
        box-shadow 0.4s;
}
.feature-card:hover,
.feature-card:focus-visible {
    box-shadow: 0 16px 40px #0003;
    transform: translateY(-5px);
}
.feature-card:focus-visible .feature-arrow {
    background: var(--white);
    color: var(--black);
}
.feature-arrow {
    transition:
        background 0.25s,
        color 0.25s,
        transform 0.4s var(--ease-out);
}
.feature-card:hover .feature-arrow {
    transform: rotate(5deg);
}
.feature-visual,
.showcase-visual,
.weather-media,
.dialog-media {
    position: relative;
}
.media-slot > .media-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
        transform 0.85s var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.features-grid.is-resizing {
    overflow: clip;
    align-content: start;
}
.faq-list details.is-toggling {
    overflow: clip;
}
.motion-ready .hero-eyebrow {
    animation: ki-enter 0.65s 0.05s var(--ease-out) backwards;
}
.motion-ready #hero-title {
    animation: ki-enter 0.85s 0.12s var(--ease-out) backwards;
}
.motion-ready .hero-description {
    animation: ki-enter 0.8s 0.24s var(--ease-out) backwards;
}
.motion-ready .hero-cta {
    animation: ki-enter 0.8s 0.34s var(--ease-out) backwards;
}
.motion-ready .hero-compatibility {
    animation: ki-enter 0.8s 0.4s var(--ease-out) backwards;
}
.motion-ready .hero-footer {
    animation: ki-enter 0.8s 0.5s var(--ease-out) backwards;
}
.motion-ready .hero-visual > img {
    animation: ki-camera 24s ease-in-out infinite alternate;
}
.hero.is-offscreen .hero-visual > img {
    animation-play-state: paused;
}
.motion-ready .install-brand-art > span {
    animation: ki-float 6s ease-in-out infinite;
}
.install-panel.is-offscreen .install-brand-art > span {
    animation-play-state: paused;
}
.feature-dialog[open]::backdrop {
    animation: ki-backdrop 0.3s ease-out both;
}
::view-transition-old(root) {
    animation: ki-page-out 0.18s ease-out both;
}
::view-transition-new(root) {
    animation: ki-page-in 0.28s ease-out both;
}
@keyframes ki-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes ki-camera {
    from {
        transform: scale(1.16);
    }
    to {
        transform: scale(1.22);
    }
}
@keyframes ki-float {
    0%,
    100% {
        transform: translateY(0) rotate(-9deg);
    }
    50% {
        transform: translateY(-9px) rotate(-6deg);
    }
}
@keyframes ki-backdrop {
    from {
        background: #0000;
        backdrop-filter: blur(0);
    }
    to {
        background: #000b;
        backdrop-filter: blur(9px);
    }
}
@keyframes ki-page-out {
    to {
        opacity: 0;
    }
}
@keyframes ki-page-in {
    from {
        opacity: 0;
    }
}

@media (min-width: 1600px) {
    .hero-content {
        width: 1000px;
    }
    .hero h1 {
        font-size: 106px;
    }
}
@media (min-width: 581px) and (max-width: 800px) {
    .hero {
        min-height: 580px;
    }
    .hero h1 {
        font-size: clamp(46px, 7.2vw, 68px);
    }
    .section-heading {
        gap: 28px;
    }
    .section-intro {
        font-size: 12px;
    }
    .about-layout {
        gap: 30px;
    }
    .install-panel-copy {
        padding: 32px;
    }
    .install-panel h2 {
        font-size: 49px;
    }
    .feature-info {
        padding: 21px;
        min-height: 172px;
    }
    .feature-info h3 {
        font-size: 19px;
    }
    .feature-info > p {
        font-size: 12px;
    }
    .install-steps {
        gap: 22px;
    }
    .install-steps p {
        font-size: 11px;
    }
    .faq {
        gap: 35px;
    }
    .footer-links {
        gap: 12px;
    }
}
@media (max-width: 580px) {
    :root {
        --gutter: 20px;
    }
    html {
        scroll-padding-top: 78px;
    }
    .site-header {
        height: 64px;
        padding-inline: 18px;
        gap: 10px;
    }
    .brand-mark {
        width: 30px;
        height: 30px;
    }
    .brand-mark img {
        transform: scale(0.1171875);
    }
    .brand-name {
        font-size: 8.5px;
    }
    .header-actions {
        gap: 8px;
    }
    .header-actions .button-small {
        padding: 9px 11px;
        font-size: 10px;
        min-height: 36px;
        gap: 7px;
    }
    .language-button {
        min-width: 44px;
        gap: 6px;
        padding: 9px 6px;
        font-size: 10px;
    }
    .language-button .language-globe {
        display: none;
    }
    .language-menu {
        top: calc(100% + 10px);
        width: 218px;
    }
    .hero {
        height: 84svh;
        min-height: 600px;
        max-height: 740px;
    }
    .hero-content {
        width: calc(100% - 32px);
        padding: 100px 0 125px;
    }
    .hero h1 {
        font-size: clamp(38px, 9vw, 51px);
    }
    .hero-eyebrow {
        margin-bottom: 23px;
    }
    .hero-description {
        font-size: 13px;
        max-width: 300px;
        margin-block: 21px 24px;
    }
    .hero-cta {
        min-height: 47px;
        min-width: 220px;
        font-size: 12px;
    }
    .hero-footer {
        bottom: 23px;
    }
    h2 {
        font-size: 36px;
    }
    .features {
        padding-block: 54px;
    }
    .section-heading {
        gap: 20px;
        margin-bottom: 27px;
    }
    .section-intro {
        font-size: 13px;
    }
    .section-kicker {
        margin-bottom: 18px;
    }
    .features-grid {
        gap: 20px;
    }
    .feature-info {
        padding: 21px;
        min-height: 174px;
    }
    .feature-info h3 {
        font-size: 21px;
    }
    .feature-info > p {
        font-size: 12px;
    }
    .feature-arrow {
        right: 20px;
        bottom: 24px;
    }
    .atmosphere {
        padding-block: 54px 30px;
    }
    .showcase {
        padding-block: 54px;
    }
    .showcase-grid {
        gap: 28px;
    }
    .showcase-card h3 {
        font-size: 20px;
    }
    .about-layout {
        padding-block: 54px;
        gap: 33px;
    }
    .about-description {
        font-size: 13px;
    }
    .project-links {
        gap: 13px 20px;
    }
    .source-note {
        font-size: 11px;
    }
    .principles article {
        padding-block: 22px;
    }
    .installation {
        padding-block: 54px 42px;
    }
    .install-panel {
        min-height: unset;
    }
    .install-panel-copy {
        padding: 33px 26px;
    }
    .install-panel h2 {
        font-size: 53px;
    }
    .install-brand-art {
        min-height: 150px;
    }
    .install-brand-art > span {
        width: 132px;
        height: 132px;
        font-size: 72px;
        border-radius: 25px;
    }
    .install-steps {
        gap: 20px;
        padding-top: 27px;
    }
    .install-steps p {
        font-size: 12px;
    }
    .faq {
        padding-block: 24px 54px;
        gap: 24px;
    }
    .faq h2 {
        font-size: 36px;
    }
    .footer-wordmark {
        font-size: 11.7vw;
        margin-block: 30px 24px;
    }
    .footer-links {
        gap: 11px;
    }
    .footer-top {
        gap: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .button:before {
        display: none;
    }
    .feature-card:hover,
    .feature-card:focus-visible,
    .feature-arrow {
        transform: none !important;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}
