:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --surface: #ffffff;
    --surface-strong: #111111;
    --surface-alt: #f3f4f6;
    --ink: #111111;
    --muted: #6b7280;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);
    --accent: #b62c30;
    --accent-deep: #7c171c;
    --accent-soft: rgba(182, 44, 48, 0.08);
    --accent-wash: #fef2f2;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Sora", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Literata", serif;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    max-width: 28ch;
}

.hero-copy h1 {
    max-width: 18ch;
}

h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0;
    line-height: 1.72;
}

h2 + p,
h2 + .lead {
    margin-top: 24px;
}

.site-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.site-header,
.site-footer,
.hero,
.panel,
.contact-layout,
.project-hero {
    position: relative;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 200px;
    height: auto;
    flex: 0 0 auto;
}

.brand-meta {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(24, 19, 18, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--muted);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    border-color: var(--line);
    background: var(--bg-soft);
}

.hero,
.panel,
.contact-layout,
.project-hero {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero,
.page-hero,
.project-hero {
    padding: clamp(24px, 3vw, 40px);
}

.hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    background: var(--surface);
}

.hero-copy,
.hero-side,
.project-hero-copy,
.project-hero-media,
.contact-sidebar,
.contact-main,
.feature-panel {
    min-width: 0;
}

.hero-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.hero-logo {
    display: block;
    width: min(260px, 70%);
    height: auto;
}

.hero-copy p,
.lead,
.project-lede,
.hint {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-actions,
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #c73439 0%, var(--accent) 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #b7272c 0%, var(--accent-deep) 100%);
}

.btn-secondary {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section {
    margin-top: 28px;
}

.section-heading,
.project-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.section-intro {
    padding: 30px 32px;
}

.section-intro .lead,
.project-section-head .lead {
    margin: 0;
}

.home-split,
.service-grid,
.steps-grid,
.story-grid,
.project-grid,
.metric-list,
.project-detail-grid,
.project-highlight-grid {
    display: grid;
    gap: 18px;
}

.home-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-panel,
.metric-card,
.service-card,
.step-card,
.story-card,
.project-card,
.project-highlight-card,
.timeline-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.feature-panel,
.metric-card,
.service-card,
.step-card,
.story-card,
.project-highlight-card,
.timeline-card {
    padding: 24px;
}

.story-card-accent,
.feature-panel-projects {
    background: var(--bg-soft);
}

.feature-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.metric-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-list-compact {
    gap: 12px;
}

.metric-card {
    display: grid;
    gap: 6px;
    padding: 20px 18px;
    background: var(--surface);
}

.metric-card strong {
    font-family: "Literata", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-side {
    display: grid;
    align-content: start;
    gap: 14px;
}

.hero-note-stack,
.stack {
    display: grid;
    gap: 14px;
}

.mini-project-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-project {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mini-project:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: #fff;
}

.mini-project img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-project span {
    min-width: 0;
}

.mini-project strong,
.mini-project small {
    display: block;
}

.mini-project strong {
    font-size: 0.98rem;
}

.mini-project small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.callout-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 32px;
    background: var(--bg-soft);
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 19, 18, 0.16);
    box-shadow: 0 16px 32px rgba(32, 24, 21, 0.08);
}

.project-thumb {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #e5e7eb;
}

.project-card-body {
    display: grid;
    gap: 12px;
    padding: 22px 24px 24px;
}

.project-card-body > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-row span,
.project-meta-row span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
}

.stat-row-large {
    margin-top: 20px;
}

.text-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.step-card {
    display: grid;
    gap: 10px;
}

.step-number,
.highlight-number,
.timeline-step {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.page-hero {
    background: var(--surface);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.project-hero {
    background: var(--surface);
}

.project-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: 28px;
    align-items: stretch;
}

.project-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
}

.project-hero-copy h1 {
    max-width: none;
}

.project-meta-row {
    gap: 12px;
}

.project-hero-media {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #e9ecef;
}

.project-hero-media-button {
    display: block;
    width: 100%;
    min-height: 400px;
}

.project-hero-media img,
.project-hero-media-button img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.project-summary,
.project-timeline-panel {
    padding: 30px 32px 34px;
}

.project-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-highlight-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.project-highlight-card p {
    color: var(--muted);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 165px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    align-items: start;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 160px;
    top: 16px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--bg-soft);
}

.timeline-date {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.timeline-date-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-card {
    overflow: hidden;
    background: var(--surface);
}

.timeline-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.timeline-card-header p {
    margin-top: 10px;
    color: var(--muted);
}

.timeline-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.timeline-media.single {
    grid-template-columns: 1fr;
}

.timeline-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
}

.timeline-figure img,
.timeline-video-preview {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.timeline-video-preview {
    background: #120c0c;
    pointer-events: none;
}

.media-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
    overflow: hidden;
}

.media-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(20, 12, 12, 0.24) 100%);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.media-trigger:hover::after,
.media-trigger:focus-visible::after {
    opacity: 1;
}

.media-trigger:focus-visible {
    outline: 3px solid rgba(182, 44, 48, 0.24);
    outline-offset: 4px;
}

.media-trigger img,
.media-trigger video {
    transition: transform 0.24s ease;
}

.media-trigger:hover img,
.media-trigger:hover video,
.media-trigger:focus-visible img,
.media-trigger:focus-visible video {
    transform: scale(1.03);
}

.media-trigger-video {
    cursor: pointer;
}

.media-trigger-video::before {
    content: "Play";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(24, 19, 18, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.media-card-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 19, 18, 0.74);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.media-viewer-open {
    overflow: hidden;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 14, 14, 0.8);
    backdrop-filter: blur(10px);
}

.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: rgba(27, 21, 21, 0.94);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.media-lightbox-close {
    justify-self: end;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.media-lightbox-stage {
    display: grid;
    place-items: center;
    min-height: 320px;
    overflow: hidden;
    border-radius: 20px;
    background: #120c0c;
}

.media-lightbox-image,
.media-lightbox-video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
}

.media-lightbox-image[hidden],
.media-lightbox-video[hidden] {
    display: none;
}

.media-lightbox-video {
    width: 100%;
    background: #000;
}

.media-lightbox-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.contact-sidebar {
    padding: 32px;
    background: #111111;
    color: #f0f0f0;
}

.contact-sidebar .eyebrow,
.contact-sidebar h2,
.contact-sidebar .hint {
    color: inherit;
}

.contact-sidebar .eyebrow {
    color: #f4a4a6;
}

.contact-sidebar .story-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.contact-sidebar .story-card p {
    color: rgba(240, 240, 240, 0.72);
}

.contact-main {
    padding: 28px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(182, 44, 48, 0.24);
    border-color: rgba(182, 44, 48, 0.42);
}

textarea {
    min-height: 170px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.full {
    grid-column: 1 / -1;
}

.message {
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    margin-bottom: 14px;
}

.message-error {
    border-color: rgba(151, 44, 32, 0.16);
    background: #fff1ef;
    color: #8c2c1a;
}

.message-success {
    border-color: rgba(28, 106, 83, 0.16);
    background: #ebf8f2;
    color: #1c6a53;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    padding: 18px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
}

.footer-brand {
    display: grid;
    gap: 4px;
}

.footer-brand strong {
    font-family: "Literata", serif;
    font-size: 1.15rem;
}

.footer-brand span,
.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

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

/* ── Hero stats ── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat-item {
    display: grid;
    gap: 4px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.hero-stat-item strong {
    font-family: "Literata", serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1;
    color: var(--accent);
}

.hero-stat-item span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Nav CTA ── */
.site-nav a.nav-cta {
    background: linear-gradient(180deg, #c73439 0%, var(--accent) 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
    background: linear-gradient(180deg, #b7272c 0%, var(--accent-deep) 100%);
    color: #fff;
    border-color: transparent;
}

/* ── Footer logo ── */
.footer-logo {
    display: block;
    width: 140px;
    height: auto;
    margin-bottom: 4px;
}

/* ── Entry animations ── */
@keyframes site-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-visual          { animation: site-fade-up 0.5s ease both; }
    .hero-home .hero-copy { animation: site-fade-up 0.5s 0.1s ease both; }
}

/* ═══════════════════════════════════════════
   WARM PREMIUM — photo hero & layout polish
   ═══════════════════════════════════════════ */

.site-shell {
    padding-bottom: 64px;
}

.section {
    margin-top: 20px;
}

/* Richer card shadows */
.hero,
.panel,
.contact-layout,
.project-hero {
    box-shadow: 0 40px 100px rgba(32, 24, 21, 0.11);
}

/* ─── Photo-led split hero ─── */
.hero-home {
    padding: 0;
    grid-template-columns: 1fr 1.08fr;
    gap: 0;
    min-height: 440px;
    background: var(--surface);
}

.hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: var(--surface-alt);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 55%,
        rgba(255, 255, 255, 0.12) 100%
    );
    pointer-events: none;
}

.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-home .hero-copy {
    padding: clamp(28px, 4vw, 48px);
    background: var(--surface);
    align-content: center;
    gap: 16px;
}

/* ─── Hero metrics strip ─── */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.hero-metric strong {
    display: block;
    font-family: "Literata", serif;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--accent);
}

.hero-metric span {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ─── Feature panels ─── */
.feature-panel {
    padding: 28px 32px;
}

/* ─── Callout panel ─── */
.callout-panel {
    padding: 28px 36px;
}

/* ─── Mini project list: slightly larger thumbnails ─── */
.mini-project {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
}

.mini-project img {
    height: 82px;
}

/* ─── Page heroes ─── */
.page-hero {
    padding: clamp(28px, 4vw, 48px);
    background: var(--surface);
}

/* ─── Home split ─── */
.home-split {
    gap: 16px;
}

/* ─── Section panels ─── */
.section.panel:not(.callout-panel) {
    padding: 28px 32px;
}

/* ─── Lead text in feature panels: slightly larger ─── */
.feature-panel .lead {
    font-size: 1.06rem;
}

/* ─── Responsive adjustments for new hero ─── */
@media (max-width: 1120px) {
    .hero-home {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-home .hero-copy {
        padding: clamp(28px, 4vw, 52px);
    }
}

@media (max-width: 720px) {
    .hero-visual {
        min-height: 260px;
    }

    .feature-panel,
    .callout-panel,
    .section.panel:not(.callout-panel) {
        padding: 20px;
    }
}

@media (max-width: 1120px) {
    .hero-home,
    .home-split,
    .project-hero-grid,
    .contact-layout,
    .callout-panel,
    .section-heading,
    .project-section-head,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .project-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 980px) {
    .service-grid,
    .steps-grid,
    .project-grid,
    .project-highlight-grid,
    .metric-list {
        grid-template-columns: 1fr;
    }

    .project-hero-media-button,
    .project-hero-media img,
    .project-hero-media-button img {
        min-height: 320px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 42px;
    }

    .timeline-item::before {
        left: 6px;
    }

    .timeline-date {
        justify-content: flex-start;
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 20px;
    }

    .site-header {
        padding: 18px;
        border-radius: 28px;
    }

    .brand {
        flex-wrap: wrap;
    }

    .brand-logo {
        width: 170px;
    }

    .hero,
    .page-hero,
    .project-hero,
    .contact-sidebar,
    .contact-main,
    .section-intro,
    .callout-panel,
    .service-card,
    .step-card,
    .story-card,
    .feature-panel,
    .metric-card,
    .project-highlight-card,
    .timeline-card,
    .site-footer {
        padding: 20px;
    }

    .project-card-body,
    .media-lightbox-dialog {
        padding: 18px;
    }

    .project-thumb,
    .project-hero-media-button,
    .project-hero-media img,
    .project-hero-media-button img,
    .timeline-figure img,
    .timeline-video-preview {
        height: auto;
        min-height: 0;
    }

    .timeline-card-header,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .timeline-media {
        grid-template-columns: 1fr;
    }

    .media-lightbox {
        padding: 16px;
    }

    h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    /* ── Mobile nav ── */
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
        padding: 12px;
        flex-direction: column;
        gap: 4px;
        z-index: 100;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 12px;
        text-align: left;
    }

    .site-nav a.nav-cta {
        margin-top: 4px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: none;
        border: 1px solid var(--line);
        border-radius: 10px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ── Lab page ────────────────────────────────────────────────────────────────*/

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lab-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lab-card-thumb {
    position: relative;
    height: 160px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.lab-card-thumb-farm {
    background: linear-gradient(135deg, #1a3a1a 0%, #2d5a2d 100%);
}

.lab-card-thumb-farm::after {
    content: "🐔";
    font-size: 4rem;
}

.lab-card-thumb-cards {
    background: linear-gradient(135deg, #1a1a3a 0%, #2d2d5a 100%);
}

.lab-card-thumb-cards::after {
    content: "🃏";
    font-size: 4rem;
}

.lab-card-thumb-maps {
    background: linear-gradient(135deg, #1a2a3a 0%, #1d4a6a 100%);
}

.lab-card-thumb-maps::after {
    content: "🗺️";
    font-size: 3.5rem;
}

.lab-card-thumb-sculpt {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a1a5e 100%);
}

.lab-card-thumb-sculpt::after {
    content: "🗿";
    font-size: 3.5rem;
}

.lab-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.lab-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-card-body h3 {
    font-size: 1.15rem;
}

.lab-card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Bot protection helpers ──────────────────────────────────────────────────*/

/* Honeypot field: invisible to real users, enticing to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* Optional hint text on file/optional labels */
.field-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85em;
    margin-left: 4px;
}

/* ── FAQ accordion ───────────────────────────────────────────────────────────*/

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-soft);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}
