:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --bgangle: 45deg;
}

/* Suppress browser autofill background (Chrome/Edge/Safari) */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #050505 inset;
    box-shadow: 0 0 0 1000px #050505 inset;
    -webkit-text-fill-color: white;
    caret-color: white;
    transition: background-color 9999s ease-in-out 0s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

/* Allow flex children to shrink below their content size */
.title-box,
.v-container,
.h-container-main {
    min-width: 0;
}

/* Title and description shouldn't force the parent wider */
#main-title,
#title-desc {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Long unbreakable strings (email, price ranges) */
.s-cost-text-final,
.contact-form + p b {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Tooltip bubbles must not exceed viewport */
.tooltip .tooltip-text {
    width: max-content;
    max-width: min(220px, calc(100vw - 32px));
}

/* Section title shouldn't overflow either */
.section-title {
    overflow-wrap: break-word;
    text-align: center;
}

/* Submit button shouldn't be wider than its container */
.contact-form button[type="submit"] {
    max-width: 100%;
}

/* Belt-and-suspenders */
html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: 50px;
    line-height: 1.5;
    font-family: 'Stack Sans Headline', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), #ff008416 0%, transparent 120%),
        repeating-linear-gradient(var(--bgangle), #000000, #00090f 50% 16px);
}

.a-button-price {
    margin-top: 10px;
    justify-content: center;
    max-width: 150px;
}

.a-button {
    cursor: pointer;
    text-decoration: none;
    padding: 16px;
    font-family: 'Stack Sans Headline', sans-serif;
    letter-spacing: 3px;
    font-weight: 100;
    font-size: 20px;
    color: white;
    background: linear-gradient(0deg, #ffffff 50%, #000000 50%);
    background-size: 100% 200%;
    border: 2px solid white;
    ;
    transition: all 0.15s ease-in;
}

.a-button:hover {
    background-position-y: 100%;
    color: black;
    border: 2px solid black;
}

.a-button-listen {
    padding-left: 66px;
    padding-right: 64px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: bold;
    background:
        linear-gradient(black, black) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;
    transition: all 0.3s ease-in;
}

.a-button-listen span {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: -webkit-text-fill-color 0.3s ease;
}

.a-button-listen:hover {
    background:
        linear-gradient(90deg, #ff6b6b, #4ecdc4) padding-box,
        linear-gradient(black, black) border-box;
    border-color: black;
    /* covers the gradient border */
}

.a-button-listen:hover span {
    -webkit-text-fill-color: black;
}

.video-display {
    display: none;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 32px;
    direction: rtl;
    gap: 4px;
}

@media (min-aspect-ratio: 4/3) {
    .video-display {
        display: grid;
    }
}

.video-display iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.main-container {
    display: flex;
    flex-direction: column;
    max-width: calc(100vh * 16 / 9);
    margin-inline: auto;
    gap: 20px;
}

.h-container-main {
    display: flex;
    min-height: 90vh;
}

.h-container {
    display: flex;
    gap: 4px;
}

.h-container-center {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.h-container-gap {
    flex-wrap: wrap;
    display: flex;
    gap: 16px;
    min-width: 0;
}

#logo {
    flex: 1;
    width: 25%;
}

.h-container-song {
    display: flex;
    flex: 1;
    background: #05050595;
    flex-direction: column;
    padding: 25px;
    border: 1px, outset, white;
    border-radius: 4px;
    gap: 10px;
}

.h-default {
    font-family: 'Stack Sans Headline', sans-serif;
    color: white;
}

.works-container {
    column-count: 1;
    column-gap: 16px;
    background: #050505;
    border-radius: 32px;
    padding: 32px;
}

.works-container>* {
    break-inside: avoid;
    margin-bottom: 16px;
    display: block;
    /* important if children are not block-level */
}

@media (min-width: 500px) {
    .works-container {
        column-count: 2;
    }
}

@media (min-width: 800px) {
    .works-container {
        column-count: 3;
    }
}

@media (min-width: 1100px) {
    .works-container {
        column-count: 4;
    }
}

.section-divider {
    display: flex;
    /* Use a clamped, content-relative height instead of viewport height
       so narrow viewports (mobile in desktop mode) don't get huge boxes.
       Min-height keeps things proportional to the title size. */
    min-height: 120px;
    height: auto;
    padding: 40px 24px 16px;
    margin-left: clamp(16px, 6vw, 80px);
    margin-right: clamp(16px, 6vw, 80px);
    align-items: end;
    justify-content: center;
    background: #050505;
    border-radius: 32px;
}

.section-title {
    /* Was `font-size: 54` (missing unit — invalid). Use a fluid size that
       scales with viewport width so it stays readable on mobile and grows
       on desktop. */
    font-size: clamp(18px, 6vw, 32px);
    font-weight: 200;
    letter-spacing: 4px;
    color: white;
    font-family: 'Stack Sans Headline', sans-serif;
    overflow-wrap: break-word;
    text-align: center;
}


.v-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 5%;
    padding-bottom: 5%;
    padding-left: 5%;
    padding-right: 14%;

    background-blend-mode: screen;
    color: white;
    font-weight: 200;
    /* Fluid font-size: stays readable on narrow viewports, grows on desktop. */
    font-size: clamp(20px, 2.6vw, 32px);
    letter-spacing: 4px;
}

/* Trim outsized right padding on narrow screens (mobile in desktop mode) */
@media (max-width: 900px) {
    .title-box {
        padding-right: 5%;
    }
}

#main-title {
    white-space: pre-wrap;
    font-family: 'Stack Sans Headline', sans-serif;
    font-weight: 400;
}

.anchor-list {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: column;
    gap: 12px;

    padding-right: 5%;

    background: linear-gradient(90deg, transparent, #00dd5544);
}

p {
    font-family: 'Stack Sans Headline', sans-serif;
    letter-spacing: 1px;
    word-spacing: 3px;
    /* Fluid sizing — keeps body copy readable when the page is zoomed out
       in mobile-desktop view, but doesn't bloat on big screens. */
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 200;
    color: rgb(200, 200, 200);
}

.title-p {
    color: gray;

}

audio-player {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
}

audio-player .player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    background: #050505;
    font: 'Inconsolata'
}

audio-player button {
    min-width: 48px;
    border-radius: 0%;
    border: none;
    background: #333;
    color: white;
    cursor: pointer;
}

audio-player .progress {
    flex: 1;
    height: 16px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
}

audio-player .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #4400ff);
    border-radius: 2px;
    width: 0%;
}

audio-player .time {
    font-size: 20px;
    font-family: 'Inconsolata';
    color: white;
}

.nav-bar {
    position: fixed;
    padding: 20px clamp(12px, 4vw, 20px);
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0000006b;
    border-bottom: 2px dotted #4400ff36;
    backdrop-filter: blur(20px);

    gap: clamp(16px, 6vw, 10%);

    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-family: 'Stack Sans Headline', sans-serif;
    letter-spacing: 1px;
}

.nav-bar>a {
    color: #4400ff;
    font-weight: 100;
    font-size: clamp(14px, 2.5vw, 20px);
    letter-spacing: clamp(1px, 0.5vw, 4px);
    cursor: pointer;
    text-decoration: none;
    font-style: normal;
    transition: color 0.2s ease-in;
    white-space: nowrap;
}

.nav-bar>a:hover {
    color: white;
}

/* The form-container and v-container are the actual siblings inside
   .h-container-gap — give both of them a no-shrink basis so they
   wrap onto separate rows when the viewport gets too narrow.        */
.price-estimate-form-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px;
    padding-top: 32px;
    flex: 2 0 min(320px, 100%);
    min-width: 0;
    background: #050505;
    border-radius: 32px;
}

.price-estimate-v-container {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1 0 min(280px, 100%);
    min-width: 0;
}

/* The icon-container and price-estimate-container are STACKED inside
   the v-container (column flex). They don't need flex-basis sizing —
   width: auto already makes them fill the column.                    */
.price-estimate-icon-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    background: #050505;
    border-radius: 32px;
    gap: 8px;
}

.price-estimate-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #050505;
    border-radius: 32px;
}


.checkmark {
    display: inline-flex;
    gap: 16px;
    color: white;
    font-size: 20px;
}

.checkmark-icon {
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    flex-shrink: 0;
    /* prevents squishing inside flex parents */
    text-align: center;
    line-height: 1;
    /* keeps the character vertically tidy */
}

.checkmark-text {
    color: white;
    font-weight: 200;
}

.price-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.s-cost-type-text {
    justify-self: start;
    font-family: 'Inconsolata', 'Courier New', monospace;
    color: gray;
    font-weight: 300;
    font-size: 20px;
}

.s-cost-text {
    justify-self: end;
    font-family: 'Inconsolata', 'Courier New', monospace;
    color: white;
    font-weight: 300;
    font-size: 20px;
}

.s-cost-type-text-final {
    justify-self: start;
    font-family: 'Inconsolata', 'Courier New', monospace;
    color: cyan;
    font-weight: 300;
    font-size: 24px;
}

.s-cost-text-final {
    justify-self: end;
    font-family: 'Inconsolata', 'Courier New', monospace;
    color: white;
    font-weight: 300;
    font-size: 24px;
    text-wrap-mode: nowrap;
}

.price-line {
    height: 2px;
    margin-top: 12px;
    background-color: rgb(159, 159, 159);
}

/* =============================================================
   Form elements — checkboxes, dropdowns, number inputs
   Designed to match the existing dark / neon-gradient stylesheet
   (Stack Sans Headline + Inconsolata, coral→teal and magenta→indigo
   ramps, 2px gradient borders, dotted #ff00aa accents).
   ============================================================= */


/* -------------------------------------------------------------
   Checkboxes
   Usage:
     <label class='a-check'>
       <input type='checkbox' />
       <span class='a-check-box'></span>
       <span>Label text</span>
     </label>
   ------------------------------------------------------------- */

.a-check {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-family: 'Stack Sans Headline', sans-serif;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 2px;
    color: rgb(220, 220, 220);
    user-select: none;
}

/* Visually hide the native input but keep it focusable / accessible */
.a-check input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.a-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid white;
    background: #000;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease-in;
}

.a-check:hover .a-check-box {
    border: 2px solid transparent;
    background:
        linear-gradient(#000, #000) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;
}

.a-check input[type='checkbox']:checked+.a-check-box {
    border: 2px solid transparent;
    background:
        linear-gradient(90deg, #ff00ff, #4400ff) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

.a-check input[type='checkbox']:checked+.a-check-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.a-check input[type='checkbox']:focus-visible+.a-check-box {
    outline: 2px dotted #ff00aa;
    outline-offset: 3px;
}


/* -------------------------------------------------------------
   Form field wrapper (shared by selects and number inputs)
   Usage:
     <div class='a-field'>
       <label for='...'>Label</label>
       <select> ... </select>
     </div>
   ------------------------------------------------------------- */

.a-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.a-field-text {
    font-family: 'Stack Sans Headline', sans-serif;
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
}


/* -------------------------------------------------------------
   Dropdowns / selects
   Usage:
     <select class='a-select'>
       <option> ... </option>
     </select>
   ------------------------------------------------------------- */

.a-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    font-family: 'Stack Sans Headline', sans-serif;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 2px;
    color: white;

    width: 100%;
    max-width: 100%;
    border: 2px solid transparent;
    border-radius: 0;
    padding: 14px 44px 14px 16px;
    cursor: pointer;

    /* Layered backgrounds:
       1 + 2  build a two-tone chevron in the right padding
       3      paints the dark interior fill
       4      provides the coral → teal gradient border             */
    background-image:
        linear-gradient(45deg, transparent 50%, #ff6b6b 50%),
        linear-gradient(135deg, #4ecdc4 50%, transparent 50%),
        linear-gradient(#050505, #050505),
        linear-gradient(90deg, #ff6b6b, #4ecdc4);
    background-position:
        calc(100% - 22px) center,
        calc(100% - 14px) center,
        0 0,
        0 0;
    background-size:
        8px 8px,
        8px 8px,
        100% 100%,
        100% 100%;
    background-origin:
        padding-box,
        padding-box,
        padding-box,
        border-box;
    background-clip:
        padding-box,
        padding-box,
        padding-box,
        border-box;
    background-repeat: no-repeat;

    transition: color 0.2s ease-in;
}

.a-select:hover {
    color: #4ecdc4;
}

.a-select:focus {
    outline: none;
    /* Swap to the magenta → indigo ramp on focus */
    background-image:
        linear-gradient(45deg, transparent 50%, #ff00ff 50%),
        linear-gradient(135deg, #4400ff 50%, transparent 50%),
        linear-gradient(#050505, #050505),
        linear-gradient(90deg, #ff00ff, #4400ff);
}

.a-select option {
    background: #050505;
    color: white;
}


/* -------------------------------------------------------------
   Number entry
   Usage:
     <div class='a-number'>
       <button type='button' class='a-number-btn' data-step='-1'>−</button>
       <input type='number' value='120' min='0' max='240' />
       <button type='button' class='a-number-btn' data-step='1'>+</button>
     </div>

   The buttons need a small JS handler to read data-step and update
   the sibling <input>. See README at the bottom of this file.
   ------------------------------------------------------------- */

.a-number {
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border: 2px solid transparent;
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;
}

.a-number:focus-within {
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

.a-number input[type='number'] {
    appearance: textfield;
    -moz-appearance: textfield;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Inconsolata', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 4px 8px;
}

.a-number input[type='number']:focus {
    outline: none;
}

/* Hide the native spinner controls; we provide our own buttons */
.a-number input[type='number']::-webkit-outer-spin-button,
.a-number input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.a-number-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Stack Sans Headline', sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 1;
    width: 36px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease-in;
}

.a-number-btn:first-child {
    border-right: 1px dotted #ff00aa;
}

.a-number-btn:last-child {
    border-left: 1px dotted #ff00aa;
}

.a-number-btn:hover {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
    color: white;
}

/* -------------------------------------------------------------
   Range slider
   Usage:
     <div class='a-range'>
       <input type='range' min='0' max='100' value='50' />
     </div>
   ------------------------------------------------------------- */

.a-range {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;
    transition: background 0.2s ease-in;
}

.a-range:hover {
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

.a-range:focus-within {
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

/* Track — base styling shared across browsers */
.a-range input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border: 1px solid #1a1a1a;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease-in;
}

.a-range input[type='range']:hover {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
}

.a-range input[type='range']:focus {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
}

/* Thumb — Chrome, Safari, Edge */
.a-range input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #050505;
    border: 2px solid #4ecdc4;
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
    cursor: pointer;
    transition: all 0.15s ease-in;
}

.a-range input[type='range']::-webkit-slider-thumb:hover {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
    border-color: #ff00ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
    transform: scale(1.15);
}

.a-range input[type='range']::-webkit-slider-thumb:active {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
    border-color: #ff00aa;
    transform: scale(1.1);
}

.a-range input[type='range']:focus::-webkit-slider-thumb {
    border-color: #ff00ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

/* Thumb — Firefox */
.a-range input[type='range']::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #050505;
    border: 2px solid #4ecdc4;
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
    cursor: pointer;
    transition: all 0.15s ease-in;
}

.a-range input[type='range']::-moz-range-thumb:hover {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
    border-color: #ff00ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
    transform: scale(1.15);
}

.a-range input[type='range']:focus::-moz-range-thumb {
    border-color: #ff00ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

/* Track — Firefox */
.a-range input[type='range']::-moz-range-track {
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border: 1px solid #1a1a1a;
}

.a-range input[type='range']:hover::-moz-range-track {
    background: linear-gradient(90deg, #ff00ff, #4400ff);
}

/* Focus state for accessibility */
.a-range input[type='range']:focus-visible {
    outline: 2px dotted #ff00aa;
    outline-offset: 4px;
}

/* Wrapper that positions the tooltip relative to the icon */
.tooltip {
    flex-shrink: 0;
    font-family: 'Stack Sans Headline', sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: black;
    border: 1px solid white;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    cursor: help;
    user-select: none;
    transition: background 0.15s ease;
}

.tooltip:hover,
.tooltip:focus {
    background: #555;
    outline: none;
}

/* The tooltip bubble */
.tooltip .tooltip-text {
    font-family: 'Stack Sans Headline', sans-serif;
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background: #2c2c2e;
    color: #fff;
    text-align: left;
    font-size: 13px;
    font-weight: 100;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;

    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c2c2e;
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* =============================================================
   Contact form
   Targets the <form class="contact-form"> at the end of the page.
   Uses the same coral→teal / magenta→indigo ramps, dark fills,
   dotted #ff00aa accents, and Stack Sans Headline + Inconsolata
   typography as the rest of the site.
   ============================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 clamp(16px, 8vw, 160px);
    padding: clamp(20px, 4vw, 32px);

    background: #050505;
    border-radius: 32px;
}

/* Shared base for text-style fields */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;

    font-family: 'Inconsolata', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;

    border: 2px solid transparent;
    border-radius: 0;
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;

    transition: background 0.2s ease-in;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #666;
    font-family: 'Stack Sans Headline', sans-serif;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 15px;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff00ff, #4400ff) border-box;
}

.contact-form input[type="text"]:focus-visible,
.contact-form input[type="email"]:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px dotted #ff00aa;
    outline-offset: 3px;
}

/* Invalid-state highlight after the user has interacted */
.contact-form input:not(:placeholder-shown):invalid,
.contact-form textarea:not(:placeholder-shown):invalid {
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, #ff3333, #ff6b6b) border-box;
}

/* Submit button — matches .a-button-listen style */
.contact-form button[type="submit"] {
    align-self: center;
    cursor: pointer;
    padding: 16px 64px;
    margin-top: 8px;

    font-family: 'Stack Sans Headline', sans-serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    max-width: 100%;

    border: 2px solid transparent;
    background:
        linear-gradient(black, black) padding-box,
        linear-gradient(90deg, #ff6b6b, #4ecdc4) border-box;

    transition: all 0.3s ease-in;
}

.contact-form button[type="submit"] span {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: -webkit-text-fill-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background:
        linear-gradient(90deg, #ff6b6b, #4ecdc4) padding-box,
        linear-gradient(black, black) border-box;
    border-color: black;
}

.contact-form button[type="submit"]:hover span {
    -webkit-text-fill-color: black;
}

.contact-form button[type="submit"]:focus-visible {
    outline: 2px dotted #ff00aa;
    outline-offset: 4px;
}