/* ==========================================================================
   Greymont Partners UK — static site styles
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #ffffff;
    color: #0a0a0a;
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: inherit;
}

/* ---------- Typography helpers ---------- */
.font-heading,
h1,
h2,
h3,
h4 {
    font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin: 0;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
}

.overline {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b7280;
}

.num-display {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

.section {
    padding: 96px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 128px 0;
    }
}

.section-alt {
    background: #f9fafb;
}

.section-dark {
    background: #0a0a0a;
    color: #ffffff;
}

.section-border-top {
    border-top: 1px solid #e5e7eb;
}

/* Grid helpers */
.grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid {
        gap: 48px;
    }
}

.grid-12 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-12 {
        grid-template-columns: repeat(12, 1fr);
    }
}

.grid-2 {
    grid-template-columns: 1fr;
}
.grid-3 {
    grid-template-columns: 1fr;
}
.grid-4 {
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Column span helpers for the 12-col grid — use longhand so start+end can combine */
@media (min-width: 768px) {
    .col-4 {
        grid-column-end: span 4;
    }
    .col-5 {
        grid-column-end: span 5;
    }
    .col-6 {
        grid-column-end: span 6;
    }
    .col-7 {
        grid-column-end: span 7;
    }
    .col-8 {
        grid-column-end: span 8;
    }
    .col-3 {
        grid-column-end: span 3;
    }
    .col-start-6 {
        grid-column-start: 6;
    }
    .col-start-7 {
        grid-column-start: 7;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid #0a0a0a;
    transition:
        background-color 250ms ease-out,
        color 250ms ease-out,
        transform 250ms ease-out,
        box-shadow 250ms ease-out;
}

.btn-primary {
    background: #0a0a0a;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #0a0a0a;
}

.btn-ghost {
    background: transparent;
    color: #0a0a0a;
}
.btn-ghost:hover {
    background: #0a0a0a;
    color: #ffffff;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.arrow {
    display: inline-block;
    transform: translateY(-1px);
}

/* ---------- Link underline ---------- */
.link-underline {
    position: relative;
    display: inline-block;
}
.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 300ms ease-out;
}
.link-underline:hover::after {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition:
        background-color 300ms ease,
        backdrop-filter 300ms ease,
        border-color 300ms ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: rgba(229, 231, 235, 0.7);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.logo .mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #0a0a0a;
    transition: transform 500ms ease;
}
.logo:hover .mark {
    transform: rotate(45deg);
}
.logo .tag {
    margin-left: 4px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 0.9rem;
    color: #374151;
}
.nav-links a:hover {
    color: #0a0a0a;
}

.nav-cta {
    display: none;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #0a0a0a;
}

@media (min-width: 900px) {
    .nav-links,
    .nav-cta {
        display: inline-flex;
    }
    .nav-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}
.mobile-menu a {
    font-size: 1rem;
    color: #111827;
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 144px;
    padding-bottom: 96px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 176px;
        padding-bottom: 128px;
    }
}

.hero-inner {
    align-items: end;
}

.eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.eyebrow-line .bar {
    width: 40px;
    height: 1px;
    background: #0a0a0a;
}

.hero h1 .muted {
    color: #9ca3af;
}

.hero-copy {
    margin-top: 28px;
    max-width: 560px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}
@media (min-width: 768px) {
    .hero-copy {
        font-size: 1.1rem;
    }
}

.hero-cta {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.hero-cta .secondary {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.hero-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 48px;
}
@media (min-width: 768px) {
    .hero-image {
        margin-top: 0;
    }
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
}
.coord-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 14px 18px;
    display: none;
}
@media (min-width: 768px) {
    .coord-card {
        display: block;
    }
}
.coord-card p {
    margin: 0;
}
.coord-card .value {
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 28%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(229, 231, 235, 1),
        transparent
    );
    pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee {
    background: #0a0a0a;
    color: #ffffff;
    padding: 22px 0;
    overflow: hidden;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-slide 48s linear infinite;
    gap: 0;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #9ca3af;
}
.marquee-item .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}

@keyframes marquee-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---------- About ---------- */
.about-note {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .about-note {
        padding: 40px;
    }
}
.about-note ul {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: #374151;
}
.about-note li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.about-note li::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 1px;
    background: #0a0a0a;
    margin-top: 10px;
}
.about-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ---------- Tech grid (services, cases, insights, clients) ---------- */
.tech-grid {
    display: grid;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}
.tech-grid > * {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    transition: background-color 300ms ease-out;
}
.tech-grid > *:hover {
    background: #f9fafb;
}

.tg-2 {
    grid-template-columns: 1fr;
}
.tg-3 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .tg-2 {
        grid-template-columns: 1fr 1fr;
    }
    .tg-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.card {
    padding: 32px;
}
@media (min-width: 768px) {
    .card {
        padding: 48px;
    }
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.card h3 {
    margin-bottom: 18px;
}
.card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 34rem;
}
.card ul {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
}
.card ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.card ul li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 1px;
    background: #0a0a0a;
    margin-top: 10px;
    flex: none;
}

/* ---------- Process (staggered) ---------- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.process-card {
    background: #ffffff;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .process-card {
        padding: 40px;
    }
    .process-card.step-2 {
        transform: translateY(40px);
    }
    .process-card.step-3 {
        transform: translateY(80px);
    }
}
.process-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.process-num .n {
    font-family: "Outfit", sans-serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    color: #0a0a0a;
}
.process-num .line {
    width: 40px;
    height: 1px;
    background: #0a0a0a;
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.process-card p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---------- Stats strip ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    margin-top: 96px;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-top: 128px;
    }
}
.stat {
    background: #ffffff;
    padding: 32px;
}
@media (min-width: 768px) {
    .stat {
        padding: 40px;
    }
}
.stat .num {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #0a0a0a;
}
.stat .label {
    margin-top: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #6b7280;
}

/* ---------- Case studies specific ---------- */
.case-body p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.65;
}
.case-meta {
    margin-bottom: 24px;
}
.case-meta .sector {
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    color: #0a0a0a;
}
.case-meta .region {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 4px;
}
.case-block {
    margin-bottom: 22px;
}
.case-block.outcome {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0;
}

/* ---------- Insights ---------- */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.insight {
    background: #ffffff;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 768px) {
    .insight {
        padding: 48px;
    }
}
.insight .meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6b7280;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
}
.insight h3 {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0a0a0a;
}
.insight p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}
.insight .signoff {
    font-size: 0.78rem;
    color: #6b7280;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Legal (dark) ---------- */
.section-dark .overline {
    color: #9ca3af;
}
.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
    .legal-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.legal-item {
    background: #0a0a0a;
    padding: 32px;
}
@media (min-width: 768px) {
    .legal-item {
        padding: 40px;
    }
}
.legal-item .head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #9ca3af;
    font-family: "Outfit", sans-serif;
    font-size: 0.85rem;
}
.legal-item .head .line {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}
.legal-item h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.legal-item p {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.65;
}
.legal-note {
    margin-top: 36px;
    color: #6b7280;
    font-size: 0.78rem;
    max-width: 56rem;
    line-height: 1.65;
}
.legal-note a {
    text-decoration: underline;
}
.legal-note a:hover {
    color: #fff;
}

/* ---------- Contact ---------- */
.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-details .block .head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.contact-details .value {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    color: #0a0a0a;
}
.contact-details .note {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #6b7280;
}

.contact-form {
    border: 1px solid #e5e7eb;
    padding: 32px;
    background: #f9fafb;
}
@media (min-width: 768px) {
    .contact-form {
        padding: 40px;
    }
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}
.form-field {
    margin-top: 24px;
}
.form-field:first-child {
    margin-top: 0;
}
.form-field label {
    display: block;
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d1d5db;
    padding: 12px 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0a0a0a;
    resize: none;
    outline: none;
    transition: border-color 200ms ease-out;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}
.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: #0a0a0a;
}
.form-footer {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.form-footer .disclaimer {
    font-size: 0.72rem;
    color: #6b7280;
    max-width: 20rem;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 80px;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer {
        padding-top: 112px;
    }
}
.footer .col h3 {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #0a0a0a;
}
.footer .col p.lede {
    margin-top: 22px;
    color: #4b5563;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.65;
}
.footer .company-details {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.9rem;
}
.footer .company-details .overline {
    font-size: 0.62rem;
    margin-bottom: 4px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: #374151;
}

.mark-wordmark {
    margin-top: 80px;
    overflow: hidden;
    line-height: 0.85;
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    letter-spacing: -0.04em;
    font-size: 18vw;
    color: #0a0a0a;
    user-select: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #6b7280;
    font-size: 0.75rem;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ---------- Cookie banner ---------- */
.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #0a0a0a;
    box-shadow: 6px 6px 0 #0a0a0a;
    z-index: 60;
    display: none;
    padding: 24px;
}
.cookie.show {
    display: block;
}
@media (min-width: 768px) {
    .cookie {
        left: auto;
        right: 24px;
        bottom: 24px;
    }
}
.cookie-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.cookie-close {
    color: #6b7280;
    transition: color 200ms;
}
.cookie-close:hover {
    color: #0a0a0a;
}
.cookie p {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.65;
}
.cookie p a {
    text-decoration: underline;
}
.cookie p a:hover {
    color: #0a0a0a;
}
.cookie-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cookie-actions button {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 16px;
    transition: all 200ms;
}
.cookie-accept {
    background: #0a0a0a;
    color: #ffffff;
}
.cookie-accept:hover {
    background: #374151;
}
.cookie-decline {
    border: 1px solid #0a0a0a;
    color: #0a0a0a;
}
.cookie-decline:hover {
    background: #0a0a0a;
    color: #ffffff;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 70;
    pointer-events: none;
}
.toast {
    background: #0a0a0a;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 0.88rem;
    border-left: 3px solid #ffffff;
    min-width: 260px;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.3s ease-out;
    pointer-events: auto;
}
.toast.error {
    border-left-color: #ef4444;
}
.toast.success {
    border-left-color: #10b981;
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Legal pages ---------- */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
}
.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
}
.legal-page .article {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-page h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    margin-bottom: 12px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.back-link:hover {
    color: #0a0a0a;
}

/* ---------- Utilities ---------- */
.mt-0 {
    margin-top: 0;
}
.mt-6 {
    margin-top: 24px;
}
.mt-8 {
    margin-top: 32px;
}
.text-muted {
    color: #6b7280;
}
.text-sm {
    font-size: 0.88rem;
}
.text-xs {
    font-size: 0.75rem;
}
.max-prose {
    max-width: 44rem;
}
.disclaimer {
    margin-top: 40px;
    font-size: 0.72rem;
    color: #9ca3af;
    max-width: 48rem;
    line-height: 1.6;
}
/* ==================================================
   Basic copy deterrence
   Note: this does not fully prevent copying.
   ================================================== */

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow users to select text inside forms */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}