/* ============================================
   Insights Media — Creative Studio Design System
   Light base, bold accents, editorial layouts
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Base — light / neutral */
    --bg: #f8f6f3;
    --bg2: #efebe6;
    --bg-warm: #f5f2ed;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.7);

    /* Text */
    --text: #1a1917;
    --text-soft: #3d3a36;
    --muted: #6b6560;
    --muted2: #9a948d;

    /* Accents — bold */
    --accent: #c44d2a;
    --accent2: #2a7c6f;
    --accent3: #1a1a2e;
    --accent-light: #e8a090;
    --accent2-light: #8fc9c1;

    /* UI */
    --border: rgba(26, 25, 23, 0.12);
    --border-strong: rgba(26, 25, 23, 0.2);
    --shadow: 0 20px 60px rgba(26, 25, 23, 0.08);
    --shadow-strong: 0 24px 80px rgba(26, 25, 23, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 32px;

    /* Layout */
    --max: 1280px;
    --pad: clamp(20px, 5vw, 48px);
    --section-gap: clamp(80px, 12vw, 140px);
    --block-gap: clamp(24px, 4vw, 48px);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;

    /* Motion-friendly (for future animation) */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration: 0.5s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body), serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: var(--pad);
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    z-index: 1000;
    color: var(--text);
    font-weight: 600;
}

/* ========== Layout primitives ========== */

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.container--wide {
    max-width: 1600px;
}

.container--narrow {
    max-width: 720px;
}

/* ========== Header ========== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--surface-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.topbar.is-scrolled {
    background: rgba(248, 246, 243, 0.95);
    box-shadow: var(--shadow);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(196, 77, 42, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: var(--font-display), serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-y: auto;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--bg2);
}

.nav a[aria-current="true"] {
    color: var(--accent);
    background: rgba(196, 77, 42, 0.08);
    border-color: rgba(196, 77, 42, 0.2);
}

/* ========== Typography scale ========== */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.display-title {
    font-family: var(--font-display), serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    font-weight: 400;
}

.display-title--large {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.98;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: var(--text-soft);
    max-width: 42ch;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted2);
    margin-bottom: 12px;
}

.statement {
    font-family: var(--font-display), serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s var(--ease-out),
    background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
    background: var(--bg2);
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn.primary:hover {
    background: #a83f20;
    border-color: #a83f20;
    color: #fff;
}

/* ========== Contact form (Mautic) ========== */

.contact-form {
    max-width: 480px;
    margin-top: 2rem;
}

.contact-form .mauticform-row {
    margin-bottom: 1.25rem;
}

.contact-form .mauticform-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-form .mauticform-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body), serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .mauticform-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 77, 42, 0.15);
}

.contact-form .mauticform-button-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.contact-form .mauticform-error,
.contact-form .mauticform-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-form .mauticform-error {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.contact-form .mauticform-message {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contact-form .mauticform-errormsg {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* ========== Section spacing (long-scroll) ========== */

.section {
    padding: var(--section-gap) 0;
}

.section--tight {
    padding: calc(var(--section-gap) * 0.6) 0;
}

.section--hero {
    padding-top: calc(80px + var(--section-gap));
    padding-bottom: var(--section-gap);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* ========== Hero ========== */

.hero {
    position: relative;
}

.hero .container {
    position: relative;
}

.hero__content {
    max-width: 900px;
}

.hero__title {
    margin: 24px 0 20px;
}

.hero__lead {
    margin: 0 0 32px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 560px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg2) 0%, var(--accent-light) 50%, var(--accent2-light) 100%);
    box-shadow: var(--shadow-strong);
}

@media (max-width: 900px) {
    .hero__visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin-top: 48px;
        aspect-ratio: 16/10;
    }
}

/* ========== Section variant: emphasis (accent block, manifesto-style) ========== */
/* .section-manifesto kept as alias for legacy static HTML */

.section--emphasis,
.section-manifesto {
    background: var(--accent3);
    color: #fff;
    padding: var(--section-gap) 0;
}

.section--emphasis .container,
.section-manifesto .container {
    max-width: 900px;
}

.section--emphasis .statement,
.section-manifesto .statement {
    font-family: var(--font-display), serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

/* Body copy: only the second <p> (first p is .section-label) */
.section--emphasis .container p:nth-of-type(2),
.section-manifesto .container p:nth-of-type(2) {
    font-family: var(--font-display), serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.25;
}

.section--emphasis .section-label,
.section-manifesto .section-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Section variant: mood (statement + list block) ========== */

.section--mood .mood-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.section--mood .mood-block__visual {
    background: linear-gradient(160deg, var(--accent3) 0%, #2d2d44 100%);
    padding: 48px;
    display: flex;
    align-items: flex-end;
}

.section--mood .mood-block__visual .statement {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 0;
}

.section--mood .mood-block__list {
    background: var(--surface);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.section--mood .mood-block__list span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
    .section--mood .mood-block {
        grid-template-columns: 1fr;
    }
}

/* ========== Full-width image block ========== */

.block-full-img {
    width: 100%;
    margin: 0;
    padding: 0;
}

.block-full-img__inner {
    width: 100%;
    aspect-ratio: 21/9;
    min-height: 320px;
    background: linear-gradient(135deg, var(--bg2), var(--accent-light));
    overflow: hidden;
}

@media (max-width: 768px) {
    .block-full-img__inner {
        aspect-ratio: 16/10;
    }
}

/* ========== Alternating text-image storytelling ========== */

/* Sections with story-row use reduced padding to avoid excess spacing when several rows are consecutive */
.section--story {
    padding: calc(var(--section-gap) * 0.45) 0;
}

/* When story sections are consecutive, collapse the gap between them */
.section--story + .section--story {
    padding-top: var(--block-gap);
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
    padding: calc(var(--block-gap) * 0.7) 0;
}

/* Every second story: picture left, text right (1st = text left/image right, 2nd = image left/text right) */
.section--story-alt .story-row__text {
    order: 2;
}

.section--story-alt .story-row__media {
    order: 1;
}

/* Multiple story-rows in one section (if ever used) */
.story-row:nth-child(even) .story-row__text {
    order: 2;
}

.story-row:nth-child(even) .story-row__media {
    order: 1;
}

.story-row__text .section-label {
    margin-bottom: 8px;
}

.story-row__text .statement,
.story-row__text h2 {
    margin: 0 0 16px;
    font-family: var(--font-display), serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.story-row__text p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

.story-row__media {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg2);
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .story-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section--story-alt .story-row__text,
    .section--story-alt .story-row__media,
    .story-row:nth-child(even) .story-row__text,
    .story-row:nth-child(even) .story-row__media {
        order: unset;
    }
}

/* ========== Horizontal scroll section ========== */

.section-h-scroll {
    padding: var(--section-gap) 0;
    overflow: hidden;
}

.section-h-scroll .section-label {
    margin-bottom: 20px;
}

.section-h-scroll .h-scroll__title {
    margin: 0 0 24px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.h-scroll__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0 24px;
}

.h-scroll__track::-webkit-scrollbar {
    display: none;
}

.h-scroll__card {
    flex: 0 0 min(380px, 85vw);
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--duration) var(--ease-out);
}

.h-scroll__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.h-scroll__card-img {
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, var(--bg2), var(--accent2-light));
    overflow: hidden;
}

.h-scroll__card-body {
    padding: 24px;
}

.h-scroll__card-body h3 {
    margin: 0 0 8px;
    font-family: var(--font-display), serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.h-scroll__card-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== Feature strip (tile row) ========== */

.feature-strip {
    padding: var(--section-gap) 0;
    background: var(--surface);
}

.feature-strip__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 6vw, 64px);
}

.feature-strip__title {
    font-family: var(--font-display), serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text);
    margin: 0;
}

.feature-strip__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.feature-strip__tile {
    padding: 0;
}

.feature-strip__tile-title {
    margin: 0 0 12px;
    font-family: var(--font-body), serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.feature-strip__tile-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.feature-strip__tile-desc p {
    margin: 0 0 8px;
}

.feature-strip__tile-desc p:last-child {
    margin-bottom: 0;
}

/* ========== Masonry / grid gallery ========== */

.section-gallery {
    padding: var(--section-gap) 0;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.masonry__item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
    box-shadow: var(--shadow);
}

.masonry__item--span-4 {
    grid-column: span 4;
}

.masonry__item--span-5 {
    grid-column: span 5;
}

.masonry__item--span-6 {
    grid-column: span 6;
}

.masonry__item--span-8 {
    grid-column: span 8;
}

.masonry__item--tall {
    grid-row: span 2;
}

.masonry__item--placeholder {
    min-height: 260px;
    background: linear-gradient(145deg, var(--bg2) 0%, var(--accent-light) 30%, var(--accent2-light) 100%);
}

.masonry__caption {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .masonry__item--span-4,
    .masonry__item--span-5,
    .masonry__item--span-6,
    .masonry__item--span-8 {
        grid-column: span 12;
    }

    .masonry__item--tall {
        grid-row: span 1;
    }
}

/* ========== Cards grid (services, focus areas) ========== */

.section .section-header {
    margin-bottom: 32px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-creative {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 25, 23, 0.04);
    transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color 0.2s;
}

.card-creative:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.card-creative__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--border);
    overflow: hidden;
}

.card-creative__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-creative__body {
    padding: 32px;
}

.card-creative__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.card-creative__body h3 {
    margin: 0 0 12px;
    font-family: var(--font-display), serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
}

.card-creative__body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.55;
}

/* ========== Quote section ========== */

.section-quote {
    padding: var(--section-gap) 0;
    background: var(--bg2);
}

.quote-block {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.quote-block__mark {
    font-family: var(--font-display), serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
}

.quote-block__text {
    font-family: var(--font-display), serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    line-height: 1.35;
    color: var(--text);
    margin: -1.5rem 0 20px;
}

.quote-block__cite {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ========== Mood block / experimental layout ========== */

.mood-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.mood-block__visual {
    background: linear-gradient(160deg, var(--accent3) 0%, #2d2d44 100%);
    padding: 48px;
    display: flex;
    align-items: flex-end;
}

.mood-block__visual .statement {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin: 0;
}

.mood-block__list {
    background: var(--surface);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.mood-block__list span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
    .mood-block {
        grid-template-columns: 1fr;
    }
}

/* ========== Brands / logo strip ========== */

.section-brands {
    padding: var(--section-gap) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brands-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 6vw, 64px);
    flex-wrap: wrap;
}

.brands-strip__item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.brands-strip__item:hover {
    color: var(--text);
}

/* ========== CTA section ========== */

.section-cta {
    padding: var(--section-gap) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.section-cta .statement {
    max-width: 600px;
    margin: 0 auto 32px;
}

.section-cta .lead {
    max-width: 480px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Contact cards ========== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted2);
}

.contact-card p,
.contact-card a {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
}

.contact-card a:hover {
    color: var(--accent);
}

/* ========== Footer ========== */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text);
}

/* ========== Legal pages (privacy, terms) ========== */

.legal-hero {
    padding-top: calc(80px + var(--section-gap));
    padding-bottom: var(--block-gap);
}

.legal-hero h1 {
    font-family: var(--font-display), serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin: 16px 0 8px;
}

.legal-hero .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 32px;
}

.legal-content {
    max-width: 720px;
    padding-bottom: var(--section-gap);
}

.legal-content .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 24px rgba(26, 25, 23, 0.04);
}

.legal-content p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.65;
}

.legal-content h2 {
    font-family: var(--font-display), serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin: 28px 0 12px;
    padding-top: 4px;
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.legal-content ul {
    margin: 0 0 16px;
    padding-left: 1.5rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--accent-dark, var(--accent));
}

/* ========== Images (responsive & optimized) ========== */

.hero__visual img,
.block-full-img__inner img,
.story-row__media img,
.h-scroll__card-img img,
.masonry__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.masonry__img {
    min-height: 220px;
}

/* ========== Placeholder visuals (fallback) ========== */

.placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--bg2) 0%, var(--accent-light) 40%, var(--accent2-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* ========== Responsive tweaks ========== */

@media (max-width: 640px) {
    .brand-text {
        display: none;
    }

    .topbar-inner {
        padding: 14px 10px;
    }

    .nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .section--hero {
        min-height: auto;
        padding-top: calc(70px + 48px);
    }
}
