/* ==========================================================================
   Studios Ather — landing page styles
   Brand: "Euphoria" concept — gradients, contrasting palette, fluid forms.
   Type:  Host Grotesk (headings) / Funnel Sans (body).
   Colour contrast targets WCAG 2.1 AA on the dark surfaces below.
   ========================================================================== */

:root {
    /* Brand palette, sampled from the brand deck */
    --forest: #253316;
    --rose: #dfa0a1;
    --slate: #677c80;
    --periwinkle: #a3b2de;
    --orchid: #906795;
    --lime: #c5e01c;
    --bone: #dfdddb;

    /* Interface surfaces */
    --ink: #0e1618;
    --ink-alt: #121e20;
    --surface: #1a282b;
    --surface-raised: #213236;
    --line: rgb(223 221 219 / 14%);
    --line-strong: rgb(223 221 219 / 28%);

    /* Foreground */
    --text: #ecefea;
    --text-muted: #a9b8b6;
    --text-soft: #8ba09e;

    /* States */
    --accent: #b08fb5;
    --error: #f09b96;
    --success: #7fcbb6;

    --gradient-brand: linear-gradient(135deg, var(--rose) 0%, var(--slate) 42%, var(--periwinkle) 72%, var(--orchid) 100%);
    /* Text keeps the brand sequence but skips the darkest stop so it stays AA on --ink. */
    --gradient-text: linear-gradient(100deg, #f0b6b6 0%, var(--periwinkle) 48%, #cba7d0 100%);
    --gradient-mark: linear-gradient(180deg, #a97999 0%, var(--rose) 22%, var(--slate) 45%, var(--periwinkle) 70%, var(--orchid) 100%);

    --font-display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Funnel Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shell: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-height: 4.75rem;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background-color: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.65;
    font-weight: 350;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    margin: 0;
}

ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

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

a {
    color: inherit;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration-color: currentcolor;
}

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

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background-color: var(--periwinkle);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Keeps the gradient legible if background-clip is unsupported. */
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    color: var(--lime);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgb(197 224 28 / 18%);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
    --button-bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--button-bg);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button--primary {
    background: var(--gradient-brand);
    background-size: 160% 160%;
    color: var(--ink);
    box-shadow: 0 8px 28px -14px rgb(144 103 149 / 80%);
}

.button--primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -14px rgb(163 178 222 / 70%);
}

.button--ghost {
    border-color: var(--line-strong);
    color: var(--text);
}

.button--ghost:hover {
    border-color: var(--periwinkle);
    background-color: rgb(163 178 222 / 10%);
}

.button--compact {
    padding: 0.65rem 1.2rem;
    font-size: 0.875rem;
}

.button__icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.button:active {
    transform: translateY(0);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    color: var(--periwinkle);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow:hover svg {
    transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(14 22 24 / 72%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgb(14 22 24 / 94%);
    border-bottom-color: var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex: none;
}

.logo__mark {
    width: 2.5rem;
    height: auto;
    transition: transform 0.4s var(--ease);
}

.logo:hover .logo__mark {
    transform: rotate(-4deg) scale(1.05);
}

.logo__type {
    display: grid;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.logo--footer .logo__mark {
    width: 2.25rem;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav__list a {
    position: relative;
    padding-block: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-brand);
    transition: width 0.25s var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--text);
}

.site-nav__list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(26 40 43 / 70%);
}

.lang-switch__option {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch__option:hover {
    color: var(--text);
    background: rgb(163 178 222 / 14%);
}

.lang-switch__option.is-current {
    background: var(--bone);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle__bars {
    display: grid;
    gap: 3px;
    width: 1rem;
}

.nav-toggle__bars span {
    height: 2px;
    border-radius: 2px;
    background: currentcolor;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem);
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 120%;
    background:
        radial-gradient(45% 45% at 18% 12%, rgb(223 160 161 / 22%) 0%, transparent 70%),
        radial-gradient(50% 50% at 82% 28%, rgb(163 178 222 / 20%) 0%, transparent 72%),
        radial-gradient(40% 40% at 60% 78%, rgb(144 103 149 / 22%) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.5rem, 1.6rem + 4.6vw, 4.75rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero__title .text-gradient {
    display: block;
    font-weight: 700;
}

.hero__lede {
    max-width: 54ch;
    color: var(--text-muted);
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.chip {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(26 40 43 / 60%);
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 20rem;
}

.hero__mark {
    width: min(100%, 22rem);
    height: auto;
    filter: drop-shadow(0 24px 60px rgb(144 103 149 / 45%));
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(-0.5rem);
    }

    50% {
        transform: translateY(0.75rem);
    }
}

.equalizer {
    position: absolute;
    inset: auto 0 -0.5rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 4.5rem;
    opacity: 0.7;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.equalizer__bar {
    width: 6px;
    height: 34%;
    border-radius: 999px;
    background: var(--gradient-mark);
    transform-origin: bottom;
    animation: pulse 1.6s ease-in-out infinite alternate;
    animation-delay: calc(var(--bar) * -0.11s);
}

@keyframes pulse {
    from {
        transform: scaleY(0.28);
    }

    to {
        transform: scaleY(1.6);
    }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 7rem);
    scroll-margin-top: var(--header-height);
}

.section--studio {
    background: var(--ink-alt);
    border-block: 1px solid var(--line);
}

.section--approach {
    background:
        radial-gradient(60% 60% at 85% 0%, rgb(163 178 222 / 10%) 0%, transparent 65%),
        var(--ink-alt);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__title {
    font-size: clamp(1.875rem, 1.4rem + 2.1vw, 2.875rem);
    margin-bottom: 1.25rem;
}

.section__lede {
    max-width: 62ch;
    color: var(--text-muted);
}

.section__lede + .section__lede {
    margin-top: 1rem;
}

/* Studio */

.studio {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.studio__intro {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 1.75rem;
}

.feature {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.feature__rule {
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--gradient-brand);
}

.feature__title {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
}

.feature__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Cards */

.card-grid {
    display: grid;
    gap: 1.25rem;
    /* Fixed column counts rather than auto-fit: four cards should never leave an orphan. */
    grid-template-columns: minmax(0, 1fr);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--surface) 0%, var(--ink-alt) 100%);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0.5;
    transition: opacity 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 50px -30px rgb(0 0 0 / 80%);
}

.card:hover::before {
    opacity: 1;
}

.card__index {
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.card__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.tag {
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Values */

.value-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.value__bar {
    display: block;
    width: 100%;
    height: 4px;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--bone);
}

.value:nth-child(1) .value__bar {
    background: var(--rose);
}

.value:nth-child(2) .value__bar {
    background: var(--slate);
}

.value:nth-child(3) .value__bar {
    background: var(--periwinkle);
}

.value:nth-child(4) .value__bar {
    background: var(--accent);
}

.value__title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.value__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.section--contact {
    background:
        radial-gradient(70% 55% at 12% 8%, rgb(223 160 161 / 12%) 0%, transparent 68%),
        radial-gradient(60% 50% at 88% 92%, rgb(144 103 149 / 16%) 0%, transparent 70%),
        var(--ink);
}

.contact {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

.contact-card {
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgb(26 40 43 / 70%);
}

.contact-card__title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
}

.contact-card__list {
    display: grid;
    gap: 1rem;
}

.contact-card__row {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.contact-card__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-card__row dt {
    color: var(--text-soft);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-card__row dd a {
    color: var(--text);
    font-size: 1.0625rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
}

.contact-card__row dd a:hover {
    border-bottom-color: var(--periwinkle);
    color: var(--periwinkle);
}

.contact-card__note {
    margin-top: 1.5rem;
    color: var(--text-soft);
    font-size: 0.875rem;
}

/* Form */

.contact-form {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, var(--surface) 0%, var(--ink-alt) 100%);
    box-shadow: 0 40px 80px -50px rgb(0 0 0 / 90%);
}

.contact-form__fields {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border: 0;
}

.field {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.field--full {
    grid-column: 1 / -1;
}

.field__label {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.field__required {
    color: var(--rose);
}

.field__optional {
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.field__input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgb(14 22 24 / 70%);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field__input::placeholder {
    color: var(--text-soft);
    opacity: 0.75;
}

.field__input:hover {
    border-color: var(--text-soft);
}

.field__input:focus {
    outline: none;
    border-color: var(--periwinkle);
    background: rgb(14 22 24 / 95%);
    box-shadow: 0 0 0 3px rgb(163 178 222 / 28%);
}

.field__input--textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.6;
}

.field__input[aria-invalid="true"] {
    border-color: var(--error);
}

.field__input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgb(240 155 150 / 30%);
}

.field__select {
    position: relative;
}

.field__select select {
    appearance: none;
    padding-right: 2.75rem;
    cursor: pointer;
}

.field__select-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
}

.field__hint {
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.field__hint--form {
    margin-top: 1.25rem;
}

.field__error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--error);
    font-size: 0.8125rem;
}

.field__error-icon {
    width: 0.9375rem;
    height: 0.9375rem;
    margin-top: 0.18rem;
    flex: none;
}

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.7rem;
    margin-top: 0.25rem;
}

.field--check .field__error {
    grid-column: 1 / -1;
}

.checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgb(14 22 24 / 70%);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.checkbox:checked {
    border-color: transparent;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e1618' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 0.9rem no-repeat,
        var(--gradient-brand);
}

.checkbox[aria-invalid="true"] {
    border-color: var(--error);
}

.field__label--inline {
    /* Block so the required marker stays inline with wrapped text. */
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.contact-form__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.button--submit {
    min-width: 12rem;
}

.button__spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(14 22 24 / 35%);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.is-submitting .button__spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-status {
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line-strong);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: rgb(14 22 24 / 60%);
}

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

.form-status--success {
    border-left-color: var(--success);
    background: rgb(127 203 182 / 12%);
}

.form-status--error {
    border-left-color: var(--error);
    background: rgb(240 155 150 / 12%);
}

.form-status__title {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.form-status--success .form-status__title {
    color: var(--success);
}

.form-status--error .form-status__title {
    color: var(--error);
}

.form-status__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--ink-alt);
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__brand {
    max-width: 24rem;
}

.site-footer__tagline {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.site-footer__parent {
    margin-top: 0.75rem;
    color: var(--text-soft);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 1.1rem;
}

.site-footer__list {
    display: grid;
    gap: 0.65rem;
}

.site-footer__list a,
.site-footer__list address {
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__list a[aria-current="true"] {
    color: var(--text);
    text-decoration: underline;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.site-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
}

.site-footer__top svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive enhancement only)
   -------------------------------------------------------------------------- */

html:not(.no-js) .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html:not(.no-js) .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Layout breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 40rem) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 48rem) {
    .feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 62rem) {
    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .studio__intro {
        grid-template-columns: 0.95fr 1.05fr;
        gap: clamp(2rem, 5vw, 4rem);
    }

    .contact {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

@media (min-width: 72rem) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 61.9375rem) {
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .nav-panel {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding-block: 1.25rem 1.75rem;
        border-top: 1px solid var(--line);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .site-nav__list a {
        display: block;
        padding: 0.6rem 0;
        font-size: 1.0625rem;
    }

    .header-actions {
        justify-content: space-between;
    }
}

@media (max-width: 36rem) {
    .contact-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .button--submit {
        width: 100%;
    }

    .contact-form__footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --------------------------------------------------------------------------
   Motion and contrast preferences
   -------------------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .equalizer__bar {
        transform: none;
    }

    /* A static spectrum keeps the motif without movement. */
    .equalizer__bar:nth-child(6n + 1) {
        height: 45%;
    }

    .equalizer__bar:nth-child(6n + 2) {
        height: 70%;
    }

    .equalizer__bar:nth-child(6n + 3) {
        height: 100%;
    }

    .equalizer__bar:nth-child(6n + 4) {
        height: 62%;
    }

    .equalizer__bar:nth-child(6n + 5) {
        height: 82%;
    }

    .equalizer__bar:nth-child(6n) {
        height: 38%;
    }
}

@media (prefers-contrast: more) {
    :root {
        --text-muted: #d7ded9;
        --text-soft: #c3cdc9;
        --line: rgb(223 221 219 / 40%);
        --line-strong: rgb(223 221 219 / 65%);
    }
}

@media print {
    .site-header,
    .hero__visual,
    .hero__glow,
    .nav-toggle,
    .contact-form__footer {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
