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

:root {
    --azure: #005f6f;
    --dark-azure: #004553;
    --turquoise: #163732;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.6);
    --white-subtle: rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--azure);
    color: var(--white);
    min-height: 100vh;
    min-height: 100svh;
}

/* ── Dark section (photo hero) ───────────── */

.dark-section {
    position: relative;
    background: var(--azure);
    overflow: hidden;
    min-height: 100vh;
    min-height: max(680px, 100svh);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.home-hero {
    min-height: 90vh;
    min-height: max(612px, 90svh);
}
.photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.photo-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.58) saturate(1.08);
}

.city-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    line-height: 0;
    z-index: 0;
}

.city-bg img {
    width: 100%;
    display: block;
}

.section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.dark-section.photo-mode .section-overlay {
    background:
        linear-gradient(to right, rgba(0, 30, 36, 0.72) 0%, rgba(0, 30, 36, 0.42) 48%, rgba(0, 30, 36, 0.18) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, transparent 45%, rgba(0, 0, 0, 0.3) 100%);
}

.dark-section.illustrated-mode .city-bg img {
    opacity: 0.9;
    filter: brightness(0.55) saturate(1.4);
    mask-image: linear-gradient(to top, black 35%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, black 35%, transparent 80%);
}

.dark-section.day-mode .photo-bg img {
    filter: brightness(1.08) saturate(0.95);
}

.dark-section.day-mode .section-overlay {
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.58) 48%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.34) 0%, transparent 48%, rgba(255, 255, 255, 0.24) 100%);
}

.dark-section.day-mode .hero h1,
.dark-section.day-mode .question,
.dark-section.day-mode .text-cta {
    color: var(--turquoise);
}

.dark-section.day-mode .text-cta {
    border-bottom-color: rgba(22, 55, 50, 0.45);
}

.dark-section.day-mode .logo {
    filter: none;
}

.tone-toggle {
    position: absolute;
    right: 4rem;
    bottom: 2rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.15s, background 0.15s;
}

.home-hero .tone-toggle {
    bottom: 1.5rem;
}

.tone-toggle:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.tone-svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dark-section.day-mode .tone-toggle {
    border-color: var(--turquoise);
}

.dark-section.day-mode .tone-toggle:hover {
    border-color: var(--turquoise);
    background: rgba(22, 55, 50, 0.08);
}

.tone-svg--moon {
    display: none;
}

.dark-section.day-mode .tone-svg {
    stroke: var(--turquoise);
    stroke-width: 2.1;
}

.dark-section.day-mode .tone-svg--sun {
    display: none;
}

.dark-section.day-mode .tone-svg--moon {
    display: block;
}

/* ── Header ─────────────────────────────── */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 4rem 1.25rem;
}

.dark-section header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo {
    height: 137px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo--nav {
    height: 112px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--white-muted);
    transition: border-color 0.15s;
}

nav a:hover {
    border-color: var(--white);
}

.logo-link,
.logo-link:hover {
    border-bottom: none;
    padding-bottom: 0;
}

.header-spacer {
    width: 1px;
    height: 1px;
}

/* ── Hero ────────────────────────────────── */

.hero {
    position: relative;
    z-index: 1;
    padding: 9rem 4rem 7rem;
    max-width: 860px;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.18;
    color: var(--white);
    margin-bottom: 3.5rem;
}

.submit-intro {
    max-width: 520px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1.75rem;
    overflow-wrap: break-word;
}

.question-block {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--white-subtle);
}

body:not(.page-submit) .question-block {
    padding-left: 0;
    border-left: none;
}

.question {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
}

/* ── CTA ─────────────────────────────────── */

.text-cta {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    transition: border-color 0.15s, color 0.15s;
}

.text-cta:hover {
    border-color: var(--white);
}

/* ── About ───────────────────────────────── */

.about {
    background: var(--white);
    padding: 5rem 4rem;
}

.about-inner {
    max-width: 1030px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.about-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--turquoise);
    margin-bottom: 1.25rem;
}

.about-text a {
    color: var(--turquoise);
}

.about-text a:hover {
    color: var(--azure);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.inline-logo {
    height: 1.7em;
    width: auto;
    object-fit: contain;
    vertical-align: -0.42em;
    margin: 0 0.08em;
    filter: brightness(0) saturate(100%) invert(17%) sepia(24%) saturate(870%) hue-rotate(122deg) brightness(92%) contrast(89%);
}

.question-link {
    color: var(--turquoise);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35em;
    font-style: italic;
    line-height: 1.25;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 55, 50, 0.36);
    transition: color 0.15s, border-color 0.15s;
}

.question-link:hover {
    color: var(--azure);
    border-color: var(--azure);
}

.about-action {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.about-photo {
    display: block;
    width: min(360px, 32vw);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

/* ── Submit page ─────────────────────────── */

/* Textarea sits inside .question-block replacing the italic question */
.question-block textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    padding: 0.25rem 0 0.5rem;
    outline: none;
    resize: none;
    overflow: hidden;
    display: block;
    min-height: 80px;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.question-block textarea::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.question-block textarea:focus {
    border-bottom-color: transparent;
}

.page-submit .hero {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
}

.page-submit .submit-intro {
    margin-bottom: 1rem;
}

.page-submit .hero h1 {
    margin-bottom: 2rem;
}

.page-submit .question-block {
    margin-bottom: 2rem;
}

/* Overlay for submit page */
.page-submit .dark-section .section-overlay {
    background: linear-gradient(to bottom, rgba(0, 20, 30, 0.55) 0%, transparent 60%);
}

.page-submit .dark-section.photo-mode .section-overlay {
    background:
        linear-gradient(to right, rgba(0, 30, 36, 0.72) 0%, rgba(0, 30, 36, 0.42) 48%, rgba(0, 30, 36, 0.18) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, transparent 45%, rgba(0, 0, 0, 0.3) 100%);
}

.gallery-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 9rem 4rem 6rem;
}

.gallery-hero {
    position: relative;
    z-index: 2;
    max-width: 880px;
    text-align: center;
}

.gallery-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 2rem;
}

.gallery-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.gallery-quote.is-visible {
    opacity: 1;
    transform: translateY(0);
}

textarea,
input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

textarea {
    min-height: 130px;
    display: block;
    resize: none;
    overflow: hidden;
}

textarea::placeholder,
input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

textarea:focus,
input[type="text"]:focus {
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

.page-submit .question-block textarea {
    border-bottom: none;
}

.field-error {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 200, 180, 0.9);
}

.context-intro {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.submit-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.15s;
}

.submit-link:hover {
    border-color: var(--white);
}

.submit-link.is-disabled,
.secondary-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.secondary-link {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.secondary-link:hover {
    color: var(--white);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    .dark-section {
        height: auto;
        min-height: 100svh;
    }

    .home-hero {
        min-height: 92svh;
    }

    .dark-section.photo-mode .section-overlay,
    .page-submit .dark-section.photo-mode .section-overlay {
        background:
            linear-gradient(to bottom, rgba(0, 22, 28, 0.74) 0%, rgba(0, 22, 28, 0.48) 52%, rgba(0, 0, 0, 0.42) 100%),
            linear-gradient(to right, rgba(0, 30, 36, 0.76) 0%, rgba(0, 30, 36, 0.36) 100%);
    }

    .dark-section.day-mode.photo-mode .section-overlay {
        background:
            linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.66) 52%, rgba(255, 255, 255, 0.42) 100%),
            linear-gradient(to right, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 100%);
    }

    .dark-section.day-mode .submit-intro,
    .dark-section.day-mode .context-intro,
    .dark-section.day-mode .question-block textarea,
    .dark-section.day-mode textarea,
    .dark-section.day-mode input[type="text"],
    .dark-section.day-mode .submit-link,
    .dark-section.day-mode .secondary-link,
    .dark-section.day-mode .gallery-label,
    .dark-section.day-mode .gallery-quote,
    .dark-section.day-mode .eyebrow {
        color: var(--turquoise);
    }

    .dark-section.day-mode .question-block {
        border-left-color: rgba(22, 55, 50, 0.26);
    }

    .dark-section.day-mode .question-block textarea::placeholder,
    .dark-section.day-mode textarea::placeholder,
    .dark-section.day-mode input[type="text"]::placeholder {
        color: rgba(22, 55, 50, 0.5);
    }

    .dark-section.day-mode .submit-link,
    .dark-section.day-mode .secondary-link {
        border-bottom-color: rgba(22, 55, 50, 0.45);
    }

    .dark-section.day-mode .tone-toggle {
        border-color: var(--turquoise);
    }

    .dark-section.day-mode .tone-toggle:hover {
        background: rgba(22, 55, 50, 0.08);
    }

    .dark-section.day-mode .tone-svg {
        stroke: var(--turquoise);
    }

    header {
        padding: 1rem 1.5rem;
        align-items: flex-start;
    }

    .dark-section header {
        right: 0;
    }

    .logo {
        height: 78px;
    }

    .logo--nav {
        height: 70px;
    }

    .hero {
        width: 100%;
        max-width: 680px;
        padding: 8.25rem 1.5rem 4.75rem;
        text-align: center;
        margin-inline: auto;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 8.2vw, 3.1rem);
        line-height: 1.12;
        margin-bottom: 2.25rem;
    }

    .question {
        font-size: clamp(1.28rem, 5.8vw, 1.9rem);
    }

    .question-block {
        margin-bottom: 2.25rem;
    }

    body:not(.page-submit) .question-block {
        max-width: 34rem;
        margin-inline: auto;
    }

    .page-submit .hero {
        padding-top: 6.4rem;
        padding-bottom: 2.75rem;
    }

    .page-submit .submit-intro {
        max-width: min(100%, 32rem);
        font-size: 0.88rem;
        line-height: 1.62;
        margin-bottom: 0.9rem;
        margin-inline: auto;
        color: rgba(255, 255, 255, 0.76);
    }

    .page-submit .hero h1 {
        font-size: clamp(2.35rem, 9vw, 3.25rem);
        margin-bottom: 1.45rem;
    }

    .page-submit .question-block {
        padding-left: 0;
        border-left: none;
        margin-bottom: 1.55rem;
        max-width: 32rem;
        margin-inline: auto;
    }

    .question-block textarea,
    textarea,
    input[type="text"] {
        font-size: 1rem;
        line-height: 1.58;
    }

    .question-block textarea {
        min-height: 92px;
        text-align: center;
        border-top: 1px solid var(--white-subtle);
        border-bottom: 1px solid var(--white-subtle);
        padding: 1rem 0;
    }

    .question-block textarea::placeholder,
    textarea::placeholder,
    input[type="text"]::placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .submit-link,
    .secondary-link,
    .text-cta {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .form-actions {
        justify-content: center;
        gap: 1.15rem;
        flex-wrap: wrap;
    }

    .tone-toggle {
        right: 1.5rem;
        bottom: 1.5rem;
        width: 38px;
        height: 38px;
        z-index: 4;
    }

    .home-hero .tone-toggle {
        bottom: 1rem;
    }

    .about {
        padding: 3.5rem 1.5rem;
    }

    .about-inner {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.45rem;
        margin-bottom: 1.2rem;
        overflow-wrap: anywhere;
    }

    .about-text p {
        font-size: 0.97rem;
        line-height: 1.72;
        margin-bottom: 1rem;
    }

    .about-photo {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 4 / 3;
        object-position: center top;
    }

    .gallery-main {
        min-height: 100svh;
        padding: 8.25rem 1.5rem 4.5rem;
    }

    .gallery-label {
        margin-bottom: 1.5rem;
    }

    .gallery-quote {
        font-size: clamp(1.9rem, 9vw, 3.35rem);
        line-height: 1.08;
        margin-bottom: 2.5rem;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.85rem 1.15rem;
    }

    .logo {
        height: 66px;
    }

    .logo--nav {
        height: 58px;
    }

    .hero {
        padding: 7.45rem 1.15rem 4.25rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        margin-bottom: 2rem;
    }

    .question {
        font-size: clamp(1.22rem, 6.2vw, 1.65rem);
        line-height: 1.18;
    }

    .question-block {
        margin-bottom: 2.15rem;
    }

    .text-cta {
        font-size: 0.92rem;
    }

    .tone-toggle {
        right: 1.15rem;
        bottom: 1.15rem;
    }

    .home-hero {
        min-height: 94svh;
    }

    .page-submit .hero {
        padding-top: 6.35rem;
        padding-bottom: 4.25rem;
    }

    .page-submit .submit-intro {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 1.15rem;
    }

    .page-submit .hero h1 {
        font-size: clamp(2.18rem, 11vw, 2.95rem);
        margin-bottom: 1.45rem;
    }

    .page-submit .question-block {
        margin-bottom: 1.65rem;
    }

    .question-block textarea {
        min-height: 86px;
    }

    .context-intro {
        font-size: 0.88rem;
        line-height: 1.58;
    }

    .gallery-main {
        padding: 7.5rem 1.15rem 4.25rem;
    }

    .gallery-label {
        margin-bottom: 1.25rem;
    }

    .gallery-quote {
        font-size: clamp(1.62rem, 8.7vw, 2.6rem);
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    .about {
        padding: 3rem 1.15rem;
    }

    .about-photo {
        max-width: none;
    }
}

@media (max-width: 380px) {
    .logo {
        height: 58px;
    }

    .logo--nav {
        height: 50px;
    }

    .hero {
        padding-top: 6.65rem;
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.08;
        margin-bottom: 1.7rem;
    }

    .question {
        font-size: 1.18rem;
    }

    .page-submit .hero {
        padding-top: 5.65rem;
        padding-bottom: 3.8rem;
    }

    .page-submit .submit-intro {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .page-submit .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 1.25rem;
    }

    .page-submit .question-block {
        padding-left: 0;
        margin-bottom: 1.55rem;
    }

    .gallery-main {
        padding-top: 6.9rem;
    }

    .gallery-quote {
        font-size: 1.52rem;
    }
}
