/* ====================================================================================================================
   Martend marketing site — editorial-nautical aesthetic.
   Type: Fraunces (display serif) + Instrument Sans (grotesque body) + JetBrains Mono (coordinates / labels).
   Palette: deep navy, parchment, brass, ocean haze.
==================================================================================================================== */

:root {
    --navy:        #0B1F33;
    --navy-deep:   #061322;
    --navy-soft:   #1B3552;
    --parchment:   #F4EFE6;
    --parchment-2: #ECE5D6;
    --brass:       #B5894A;
    --brass-bright:#D4A65C;
    --ocean:       #3D6480;
    --haze:        #7A95B3;
    --ink:         #11161D;
    --rule:        rgba(11, 31, 51, 0.12);
    --rule-light:  rgba(244, 239, 230, 0.18);

    --font-display: 'Fraunces', 'Hoefler Text', Garamond, serif;
    --font-body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --font-mark:    'PT Serif', 'Hoefler Text', Georgia, serif;

    --max-w: 1240px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    font-feature-settings: 'ss01', 'ss02';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Type scale ------------------------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    display: inline-block;
}
.eyebrow-centered::after {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    display: inline-block;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 0 0 0.4em;
    line-height: 1.05;
    /* `balance` distributes words evenly across lines so short headlines don't orphan a single word on the last line
       (e.g. "Your boat has" / "history." becomes "Your boat" / "has history."). */
    text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.25; }
em { font-style: italic; font-variation-settings: 'opsz' 144; }

p { margin: 0 0 1em; }

/* ---------- Nav --------------------------------------------------------------------------------------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem var(--gutter);
    background: rgba(6, 19, 34, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(244, 239, 230, 0.08);
    color: var(--parchment);
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.nav.is-scrolled {
    background: rgba(244, 239, 230, 0.92);
    border-bottom-color: var(--rule);
    color: var(--ink);
}
.nav-brand {
    display: flex; align-items: center; gap: 0.7rem;
    color: inherit;
}
.nav-brand .mark-svg { width: 44px; height: 44px; flex-shrink: 0; }
/* The homepage nav swaps its mark between a white variant (over the dark hero) and a navy variant (over parchment
   once scrolled). Pages that always render with `is-scrolled` ship only the navy variant. */
.nav .mark-svg--dark { display: none; }
.nav.is-scrolled .mark-svg--light { display: none; }
.nav.is-scrolled .mark-svg--dark { display: block; }
.nav-brand .wordmark {
    font-family: var(--font-mark);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}
.nav-brand .wordmark b { font-weight: 700; }
.nav.is-scrolled .nav-brand .wordmark { color: var(--navy-soft); }

.nav-coords {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-left: 1.4rem;
    padding-left: 1.4rem;
    border-left: 1px solid currentColor;
}
@media (min-width: 880px) { .nav-coords { display: inline-block; } }

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
    white-space: nowrap;
}
.nav-cta::after {
    content: '→';
    font-family: var(--font-body);
    font-size: 0.95rem;
    transform: translateY(-1px);
}
.nav-cta:hover { background: currentColor; color: var(--navy); }
.nav.is-scrolled .nav-cta:hover { color: var(--parchment); }

/* "Coming soon" variant — non-interactive, no arrow, slightly muted so it reads as a label rather than a CTA. */
.nav-cta.is-disabled { opacity: 0.55; cursor: default; }
.nav-cta.is-disabled::after { content: none; }
.nav-cta.is-disabled:hover { background: transparent; color: inherit; }

/* ---------- Layout shells ---------------------------------------------------------------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 3rem; }
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 50ch; color: var(--ocean); font-size: 1.05rem; }

/* ---------- Hero -------------------------------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--parchment);
    display: flex; flex-direction: column; justify-content: center;
    padding: 7rem 0 5rem;
    isolation: isolate;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: clamp(2rem, 5vw, 5rem);
    }
}

.hero-art {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1.2s 0.8s ease-out forwards;
}
.hero-art img {
    width: 100%;
    max-width: 540px;
    height: auto;
    filter:
        drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55))
        drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
@media (max-width: 639px) {
    /* Cap mobile size so the art doesn't dwarf the headline below the fold. */
    .hero-art img { max-width: 360px; }
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(6,19,34,0.40) 0%, rgba(6,19,34,0.55) 50%, rgba(6,19,34,0.95) 100%),
        url('../img/bg.jpg') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.02);
}
.hero::after {
    /* Subtle film grain for atmosphere */
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-coord {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--brass-bright);
    margin-bottom: 1.6rem;
    display: flex; align-items: center; gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.1s ease-out forwards;
}
.hero-coord::before {
    content: '';
    width: 28px; height: 1px;
    background: currentColor;
}

.hero h1 {
    /* Override the global h1 clamp here so the headline keeps shrinking just enough to land on a single line in the
       hero's two-column layout — at the same time we tighten letter-spacing to buy back a few characters. */
    font-size: clamp(2.6rem, 5.5vw, 4.25rem);
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s 0.25s ease-out forwards;
}
.hero h1 em { color: var(--brass-bright); }

/* Subhead beneath the main tagline: smaller italic Fraunces in a muted tone so it reads as a deck line, not a second
   headline competing for attention. */
.hero-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    color: rgba(244, 239, 230, 0.6);
    margin: 0 0 1.8rem;
    line-height: 1.25;
    letter-spacing: 0.005em;
    opacity: 0;
    animation: fadeUp 1s 0.35s ease-out forwards;
}

.hero .lede {
    max-width: 50ch;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(244, 239, 230, 0.82);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    opacity: 0;
    animation: fadeUp 1s 0.5s ease-out forwards;
}

.store-row {
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
    opacity: 0;
    animation: fadeUp 1s 0.65s ease-out forwards;
}

/* Apple & Google supply their own badge artwork. Keep the official badges intact and only equalize visual height. */
.store-badge {
    display: inline-block;
    line-height: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge--google img { height: 68px; margin: -10px 0; } /* Google badge ships with built-in padding, so it needs a taller render to match Apple visually. */
.store-badge--apple img  { background: transparent; }
.store-badge--apple { background: transparent; }

/* Hero scroll cue */
.hero-cue {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, 0.55);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 1s ease-out forwards;
}
.hero-cue::after {
    content: ''; width: 1px; height: 36px;
    background: currentColor;
    animation: pulseLine 2.4s ease-in-out infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseLine {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
    50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ---------- Pitch row (free / private / offline) ----------------------------------------------------------------- */
.pitch {
    background: var(--navy);
    color: var(--parchment);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.pitch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 720px) { .pitch-grid { grid-template-columns: repeat(3, 1fr); } }
.pitch-item {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--brass);
}
.pitch-item .num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--brass-bright);
}
.pitch-item h3 { font-size: 1.5rem; color: var(--parchment); margin-bottom: 0.2rem; }
.pitch-item p { color: rgba(244, 239, 230, 0.7); font-size: 0.95rem; margin: 0; }

/* ---------- Features grid ---------------------------------------------------------------------------------------- */
.features { background: var(--parchment); }
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
@media (min-width: 720px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
    padding: 2.25rem 2rem 2.5rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 0.75rem;
    transition: background 0.3s ease;
    position: relative;
}
.feature:hover { background: var(--parchment-2); }
.feature h3 {
    font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--navy); margin: 0;
    display: flex; align-items: flex-start; gap: 0.55rem;
}
.feature-icon { width: 32px; height: 32px; flex-shrink: 0; display: block; }
.feature p  { color: var(--ocean); margin: 0; }

/* ---------- Carousel section ------------------------------------------------------------------------------------- */
.carousel-section {
    background: var(--navy);
    color: var(--parchment);
    overflow: hidden;
}
.carousel-section .section-head h2 { color: var(--parchment); }
.carousel-section .section-head .lede { color: rgba(244, 239, 230, 0.7); }

.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem var(--gutter) 2rem;
    margin: 0 calc(var(--gutter) * -1);
    list-style: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
    flex: 0 0 calc(100% - var(--gutter));
    scroll-snap-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
    margin: 0;
}
@media (min-width: 640px)  { .carousel-slide { flex-basis: calc(50% - 0.75rem); } }
@media (min-width: 1024px) { .carousel-slide { flex-basis: calc(33.333% - 1rem); } }

/* Trailing pad slides take up flex space so the real last slide can scroll to the leftmost viewport position, but
   they're invisible and the scroller never snaps to them. */
.carousel-pad { visibility: hidden; pointer-events: none; scroll-snap-align: none; }

/* The screenshots ship with their own device bezel, so the slide wrapper just sizes and lifts them on hover. */
.phone-shot {
    width: 100%;
    max-width: 280px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}
.carousel-slide:hover .phone-shot { transform: translateY(-6px); }
.phone-shot img { width: 100%; height: auto; display: block; }

.slide-caption {
    text-align: center;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.slide-caption .label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass-bright);
}
.slide-caption .title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--parchment);
    letter-spacing: -0.005em;
}

.carousel-controls {
    display: flex; align-items: center; justify-content: center; gap: 0.15rem;
    margin-top: 1rem;
}
/* The button itself is the tap target (28x28); the visible dot is the ::before pseudo so the touch zone is comfortable
   even though the dot itself stays small and editorial. */
.carousel-dot {
    width: 28px; height: 28px;
    background: transparent;
    border: 0; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.carousel-dot::before {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(244, 239, 230, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dot:hover::before, .carousel-dot:focus-visible::before { background: rgba(244, 239, 230, 0.7); }
.carousel-dot.is-active::before { background: var(--brass-bright); transform: scale(1.2); }
.carousel-dot:focus-visible { outline: none; }

/* ---------- Contact page wrapper (used when the form has its own page rather than living in a homepage section). - */
.contact-page {
    background: var(--parchment-2);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7rem);
}
.contact-page .contact-form {
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Contact section (homepage variant — currently unused, retained in case it gets reintroduced) ---------- */
.contact {
    background: var(--parchment-2);
    padding-top: clamp(4rem, 8vw, 6.5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

/* Anchored sections start below the sticky nav so the eyebrow stays visible when jumping via in-page links. */
section[id] { scroll-margin-top: 76px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 880px) {
    .contact-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: clamp(2.5rem, 6vw, 5rem);
    }
}
.contact-intro h2 { margin-top: 0.4rem; max-width: 14ch; }
.contact-intro .lede { color: var(--ocean); max-width: 36ch; margin-bottom: 0; }
.contact-intro .lede a { color: var(--navy); border-bottom: 1px solid var(--brass); }
.contact-intro .lede a:hover { color: var(--brass); }

.contact-form {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field {
    display: flex; flex-direction: column; gap: 0.45rem;
    /* Editorial-form pattern: no surrounding boxes, just a single ruled underline that brightens on focus. */
}
.field > span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
}
.field input, .field textarea {
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(11, 31, 51, 0.4);
    padding: 0.55rem 0;
    border-radius: 0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}
.field textarea {
    resize: vertical;
    min-height: 8rem;
    border: 1px solid rgba(11, 31, 51, 0.4);
    padding: 0.7rem 0.85rem;
}
.field input:focus, .field textarea:focus {
    border-color: var(--navy);
}
/* `:user-invalid` only matches after the field has been touched or submitted; using `:invalid` alone would paint the
   borders red on first paint because the required fields start empty. */
.field input:user-invalid,
.field textarea:user-invalid {
    border-color: #b54a4a;
}

.contact-form .form-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ocean);
}

/* The honeypot is hidden from users but still in the DOM so naive bots fill it. Off-screen + tab-skipped + no a11y. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
    margin-top: 0.5rem;
}
.form-submit {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--navy);
    color: var(--parchment);
    border: 0;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.form-submit:hover { background: var(--brass); color: var(--navy); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.55; cursor: progress; transform: none; }
.form-submit .arrow { transform: translateY(-1px); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; }

.form-status {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ocean);
    min-height: 1.3em;
}
.form-status[data-state="success"] { color: #2f6e4e; }
.form-status[data-state="error"]   { color: #b54a4a; }

/* ---------- Closing CTA ------------------------------------------------------------------------------------------ */
.closing {
    background: var(--parchment);
    text-align: center;
    padding-bottom: clamp(6rem, 12vw, 9rem);
}
.closing h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.closing h2 em { color: var(--brass); }
.closing .store-row { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ----------------------------------------------------------------------------------------------- */
.footer {
    background: var(--navy-deep);
    color: rgba(244, 239, 230, 0.7);
    padding: 3.5rem 0 2.5rem;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule-light);
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand .mark {
    display: inline-flex; align-items: center; gap: 0.8rem;
    color: var(--parchment);
}
.footer-brand .mark .mark-svg { width: 52px; height: 52px; }
.footer-brand .mark .wordmark {
    font-family: var(--font-mark);
    font-weight: 400;
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}
.footer-brand .mark .wordmark b { font-weight: 700; }
.footer-brand .sub {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brass);
}
.footer-brand p { max-width: 38ch; line-height: 1.55; }

.footer-col h4 {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brass-bright);
    margin: 0 0 1rem;
    font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(244, 239, 230, 0.85); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-col .is-soon { color: rgba(244, 239, 230, 0.55); }

.footer-meta {
    padding-top: 1.5rem;
    display: flex; flex-direction: column; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(244, 239, 230, 0.5);
}
@media (min-width: 780px) { .footer-meta { flex-direction: row; justify-content: space-between; } }

/* Photography-credits trigger — looks identical to the surrounding footer-meta line, gains an underline on hover/focus
   so it advertises itself as clickable without disrupting the editorial restraint of the footer. */
.credits-trigger {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    background: none; border: 0; padding: 0; margin: 0;
    cursor: pointer;
    text-transform: inherit;
}
.credits-trigger:hover, .credits-trigger:focus-visible {
    color: var(--brass-bright);
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Credits dialog --------------------------------------------------------------------------------------- */
.credits-dialog {
    max-width: 640px;
    width: calc(100vw - 2rem);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--parchment);
    color: var(--ink);
    box-shadow: 0 25px 60px rgba(6, 19, 34, 0.35), 0 8px 20px rgba(6, 19, 34, 0.18);
}
.credits-dialog::backdrop {
    background: rgba(6, 19, 34, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.credits-dialog h2 {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.4rem; color: var(--navy);
}
.credits-dialog__intro {
    color: var(--ocean); font-size: 0.95rem; margin: 0 0 1.5rem; max-width: 50ch;
}
.credits-dialog__cols {
    display: grid; grid-template-columns: 1fr; gap: 1.75rem;
}
@media (min-width: 540px) { .credits-dialog__cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.credits-dialog__cols h3 {
    font-family: var(--font-mono); font-weight: 500;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brass); margin: 0 0 0.7rem;
}
.credits-dialog__cols ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
    font-size: 0.92rem;
}
.credits-dialog__cols .name { color: var(--navy); font-weight: 500; }
.credits-dialog__cols .desc {
    color: var(--ocean);
    text-decoration: underline;
    text-decoration-color: rgba(61, 100, 128, 0.35);
    text-underline-offset: 2px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.credits-dialog__cols .desc:hover, .credits-dialog__cols .desc:focus-visible {
    color: var(--navy);
    text-decoration-color: currentColor;
    outline: none;
}
.credits-dialog__close {
    position: absolute; top: 0.6rem; right: 0.6rem;
    width: 2rem; height: 2rem;
    background: none; border: 0; cursor: pointer;
    color: var(--ocean); font-size: 1rem; line-height: 1;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.credits-dialog__close:hover, .credits-dialog__close:focus-visible {
    background: var(--rule); color: var(--navy); outline: none;
}
.credits-dialog form { margin: 0; }
.credits-dialog { position: fixed; } /* native default, asserted for clarity since .credits-dialog__close uses absolute */

/* ---------- Legal pages (prose) ---------------------------------------------------------------------------------- */
.legal-hero {
    background: var(--navy);
    color: var(--parchment);
    padding: 6rem 0 2rem;
    border-bottom: 1px solid var(--rule-light);
}
.legal-hero .eyebrow { color: var(--brass-bright); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 24ch; margin: 0.7rem 0 0.4rem; }
.legal-hero .updated {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, 0.6);
}

.prose {
    max-width: 720px;
    padding: 4rem var(--gutter) 6rem;
    margin: 0 auto;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.7;
}
.prose h1 { display: none; }
.prose h2, .prose h3, .prose h4 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 2.5rem 0 0.6rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-top: 2.5rem;
    font-weight: 500;
}
.prose strong:first-child { margin-top: 0; }
.prose em { font-style: italic; color: var(--navy); }
.prose a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brass); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose p { margin-bottom: 1.2rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
