/* ==========================================================================
   KASTRUP DESIGN SYSTEM — LUNDEN Aviation Interiors
   Quiet luxury meets aerospace precision.
   ========================================================================== */

/* ==========================================================================
   CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Colors */
    --background: #0c0c0e;
    --surface: #161618;
    --surface-elevated: #1e1e21;
    --ink: #e8e4df;
    --ink-secondary: #a09a92;
    --ink-muted: #6b6560;
    --accent: #c9a96e;
    --accent-hover: #b8984f;
    --accent-soft: rgba(201, 169, 110, 0.1);
    --rule: #2a2a2d;
    --success: #4a7c59;
    --warning: #c4923a;
    --danger: #8b3a3a;

    /* Typography */
    --font-display: 'Cormorant', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 64px;
    --content-max-width: 1400px;
    --text-max-width: 720px;

    /* Transitions */
    --transition-slow: 400ms ease;
    --transition-medium: 300ms ease;

    /* Navigation */
    --nav-height: 72px;
    --nav-height-mobile: 60px;
}


/* ==========================================================================
   RESET
   ========================================================================== */

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

ul, ol {
    list-style: none;
}

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

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

button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}


/* ==========================================================================
   BASE
   ========================================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background-color: var(--background);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.01em;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background-color: var(--accent);
    color: var(--background);
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip link — hidden until focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.8rem 1.6rem;
    background: var(--accent);
    color: var(--background);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: top var(--transition-medium);
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Focus styles for all interactive elements */
a:focus-visible,
button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Address element reset for footer */
address {
    font-style: normal;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, .h1 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--ink);
}

h2, .h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.25rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: var(--ink);
}

h3, .h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--ink);
}

h4, .h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--ink);
}

p {
    margin-bottom: 1.5rem;
    color: var(--ink-secondary);
}

p:last-child {
    margin-bottom: 0;
}

small, .caption {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.spec-text {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-secondary);
}

.accent-text {
    color: var(--accent);
}

strong {
    font-weight: 500;
}

hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 3rem 0;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

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

.text-block {
    max-width: var(--text-max-width);
}

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

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transition: background-color var(--transition-slow), backdrop-filter var(--transition-slow);
}

.nav-header.scrolled {
    background-color: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--ink);
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-secondary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-slow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-slow);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--ink);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    margin: 3px 0;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.nav-mobile.open {
    display: flex;
    opacity: 1;
}

.nav-mobile a {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition-slow);
}

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


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.8rem 2.4rem;
    border-radius: 2px;
    transition: all var(--transition-slow);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--background);
    border: 1px solid var(--accent);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-soft);
}

.btn-ghost {
    background-color: transparent;
    color: var(--accent);
    border: none;
    padding: 0.8rem 0;
    text-decoration: none;
}

.btn-ghost:hover {
    text-decoration: underline;
}

.btn-small {
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--ink);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    opacity: 0.85;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem;
    transition: border-color var(--transition-slow);
}

.card:hover {
    border-color: var(--ink-muted);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}


/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 0.8rem 1.2rem;
    color: var(--ink);
    font-size: 1rem;
    min-height: 44px;
    transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-muted);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 0.4rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.4rem;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: var(--surface);
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: var(--nav-height);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    max-width: var(--text-max-width);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* ==========================================================================
   IMAGES
   ========================================================================== */

.image-responsive {
    width: 100%;
    height: auto;
}

.hero-image {
    width: 100%;
}

.gallery-image {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
}

.gallery-image:hover img {
    opacity: 0.85;
}

.image-placeholder {
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 0.85rem;
}


/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 800ms ease;
}

.reveal-image.visible {
    clip-path: inset(0);
}

.hero-fade {
    opacity: 0;
    animation: heroFadeIn 800ms ease 600ms forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--surface);
    padding: 80px 0 40px;
    border-top: 1px solid var(--rule);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand .nav-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-style: italic;
}

.footer-heading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-secondary);
    margin-bottom: 0.75rem;
    transition: color var(--transition-slow);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: var(--ink-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 3rem 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--ink-muted);
}


/* ==========================================================================
   ADMIN OVERRIDES
   ========================================================================== */

.admin-body {
    background-color: var(--surface-elevated);
}

.admin-body .nav-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--rule);
}

.admin-panel {
    background-color: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--ink-secondary);
}

.admin-table tr:hover td {
    background-color: var(--accent-soft);
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
}

.status-received {
    background-color: var(--accent-soft);
    color: var(--accent);
}

.status-reviewing {
    background-color: rgba(196, 146, 58, 0.1);
    color: var(--warning);
}

.status-responded {
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--success);
}

.status-archived {
    background-color: rgba(107, 101, 96, 0.1);
    color: var(--ink-muted);
}


/* ==========================================================================
   UTILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* Skeleton loading */
.skeleton {
    background-color: var(--surface);
    border-radius: 2px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* ==========================================================================
   ERROR PAGES
   ========================================================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 8rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--ink-secondary);
    margin-bottom: 3rem;
}


/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

/* Section label — reusable accent label */
.section-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

/* Portfolio header */
.portfolio-header {
    padding-top: calc(var(--nav-height) + 88px);
    padding-bottom: 3rem;
}

.portfolio-header h1 {
    margin-bottom: 1.5rem;
}

.portfolio-header p {
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Filter bar */
.filter-section {
    padding-bottom: 2rem;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
}

.filter-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition-slow);
}

.filter-link:hover {
    color: var(--ink);
}

.filter-link.active {
    color: var(--accent);
}

.filter-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
}

.filter-divider {
    width: 1px;
    height: 14px;
    background-color: var(--rule);
    flex-shrink: 0;
}

/* Portfolio grid — alternating featured/pair rhythm */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    display: block;
    text-decoration: none;
    position: relative;
}

.project-card--featured {
    grid-column: 1 / -1;
}

.project-card-image {
    overflow: hidden;
    background-color: var(--surface-elevated);
    border-radius: 2px;
    margin-bottom: 1.25rem;
    position: relative;
}

.project-card-image--wide {
    aspect-ratio: 16 / 10;
}

.project-card-image--tall {
    aspect-ratio: 3 / 4;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.02);
}

.project-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* Gold bottom border on hover */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card-info {
    padding-bottom: 1rem;
}

.project-card-model {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.project-card-meta {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-secondary);
}


/* ==========================================================================
   PROJECT DETAIL
   ========================================================================== */

/* Project hero — 70vh */
.project-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background) 0%, rgba(12, 12, 14, 0.3) 50%, rgba(12, 12, 14, 0.1) 100%);
    z-index: 1;
}

/* When there's no hero image, just use the surface bg */
.project-hero:not(:has(.project-hero-bg)) {
    background-color: var(--surface);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.project-hero-label {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.project-hero-content h1 {
    margin-bottom: 0.75rem;
}

.project-hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--ink-secondary);
    max-width: var(--text-max-width);
}

/* Project overview — two-column: text + specs sidebar */
.project-overview {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

.project-description {
    max-width: var(--text-max-width);
}

.project-description p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

/* Specs sidebar */
.project-specs {
    border-left: 1px solid var(--accent);
    padding-left: 2rem;
}

.specs-list {
    display: flex;
    flex-direction: column;
}

.specs-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.specs-item:first-child {
    padding-top: 0;
}

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

.specs-item dt {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

.specs-item dd {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
}

/* Project gallery — stacked full-width images */
.project-gallery-section {
    padding-top: 0;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-gallery-item {
    width: 100%;
}

.project-gallery-item img {
    width: 100%;
    border-radius: 2px;
    display: block;
}

.project-gallery-item figcaption {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-muted);
    margin-top: 1rem;
}

.project-gallery-placeholder {
    width: 100%;
    padding: 6rem 0;
    background-color: var(--surface);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-placeholder p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-style: italic;
}

/* Material strip — horizontal swatch row */
.material-strip {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.material-strip::-webkit-scrollbar {
    height: 2px;
}

.material-strip::-webkit-scrollbar-track {
    background: var(--surface);
}

.material-strip::-webkit-scrollbar-thumb {
    background: var(--rule);
}

.material-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition-slow);
}

.material-swatch:hover {
    opacity: 0.75;
}

.material-swatch-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--rule);
}

.material-swatch-name {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--ink-secondary);
    text-align: center;
    max-width: 100px;
}

/* Project navigation — prev/next */
.project-nav-section {
    padding: 0;
    border-top: 1px solid var(--rule);
}

.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-nav-prev {
    border-right: 1px solid var(--rule);
}

.project-nav-link {
    display: block;
    padding: 3rem 2rem;
    text-decoration: none;
    transition: background-color var(--transition-slow);
}

.project-nav-link:hover {
    background-color: var(--surface);
}

.project-nav-next .project-nav-link {
    text-align: right;
}

.project-nav-direction {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.project-nav-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    display: block;
    margin-bottom: 0.3rem;
    transition: color var(--transition-slow);
}

.project-nav-link:hover .project-nav-title {
    color: var(--accent);
}

.project-nav-model {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--ink-muted);
}


/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--rule);
    transform: translateX(-50%);
}

.timeline-phase {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.timeline-phase:last-child {
    margin-bottom: 0;
}

/* Phase node — circle on the timeline */
.phase-node {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background-color: var(--background);
    transform: translateX(-50%);
    z-index: 2;
    transition: background-color var(--transition-slow);
}

.timeline-phase.visible .phase-node {
    background-color: var(--accent);
}

/* Alternating layout — odd phases: content left, even phases: content right */
.timeline-phase:nth-child(odd) .phase-content {
    grid-column: 1;
    text-align: right;
    padding-right: 3rem;
}

.timeline-phase:nth-child(even) .phase-content {
    grid-column: 2;
    text-align: left;
    padding-left: 3rem;
}

/* Phase number */
.phase-number {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3.5rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}

/* Phase title */
.phase-content h2 {
    margin-bottom: 0.75rem;
}

/* Phase duration badge */
.phase-duration {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-muted);
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Phase description */
.phase-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-secondary);
    margin-bottom: 1.5rem;
}

/* Phase details — subtle list with thin left accent border */
.phase-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.timeline-phase:nth-child(odd) .phase-details {
    border-right: 2px solid var(--accent);
    padding-right: 1.25rem;
    align-items: flex-end;
}

.timeline-phase:nth-child(even) .phase-details {
    border-left: 2px solid var(--accent);
    padding-left: 1.25rem;
    align-items: flex-start;
}

.phase-details span {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.6;
}


/* Timeline Summary */
.timeline-summary {
    background-color: var(--surface);
    padding: var(--section-padding) 0;
}

.timeline-summary-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.timeline-summary-content h3 {
    margin-bottom: 3rem;
}

.timeline-durations {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-duration-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.timeline-duration-item:first-child {
    border-top: 1px solid var(--rule);
}

.timeline-duration-item dt {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
}

.timeline-duration-item dd {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.timeline-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-style: italic;
}


/* ==========================================================================
   ATELIER
   ========================================================================== */

/* Facility section — two-column with specs sidebar */
.facility-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

.facility-text {
    max-width: 600px;
}

.facility-text h2 {
    margin-bottom: 2rem;
}

.facility-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

.facility-specs {
    border-left: 1px solid var(--accent);
    padding-left: 2rem;
}

/* Philosophy section */
.atelier-philosophy {
    background-color: var(--surface);
}

.atelier-philosophy h2 {
    margin-bottom: 1rem;
}

/* Team grid — 4 columns */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-top: 2px solid transparent;
    padding-top: 0;
    transition: border-color var(--transition-slow);
}

.team-card:hover {
    border-top-color: var(--accent);
}

.team-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-photo .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}

.team-card-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.team-card-title {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.team-card-years {
    display: block;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* Workshop Gallery Grid */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.workshop-item {
    overflow: hidden;
    border-radius: 2px;
    margin: 0;
}

.workshop-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: opacity var(--transition-slow);
}

.workshop-item:hover img {
    opacity: 0.85;
}

.workshop-item--wide {
    grid-column: span 2;
}

.workshop-item--wide img {
    height: 320px;
}

/* Facility exterior image */
.facility-exterior {
    padding-top: 0;
}

.facility-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 2px;
}

/* Values grid — three columns with dividers */
.atelier-values {
    background-color: var(--surface);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2.5rem;
    align-items: start;
}

.values-item h3 {
    margin-bottom: 1rem;
}

.values-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-secondary);
}

.values-divider {
    width: 1px;
    height: 100%;
    background-color: var(--rule);
}

/* Member profile — two-column photo + bio */
.member-back {
    padding-top: calc(var(--nav-height) + 2rem);
}

.member-back .btn-ghost {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition-slow);
}

.member-back .btn-ghost:hover {
    opacity: 0.7;
}

.member-profile {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 4rem;
    align-items: start;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 4rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}

.member-title-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.member-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: none;
    margin-bottom: 1rem;
}

.member-credentials {
    display: block;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.member-experience {
    display: block;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--ink-secondary);
    margin-bottom: 0.5rem;
}

.member-info hr {
    margin: 2rem 0;
}

.member-specialty {
    margin-bottom: 2rem;
}

.member-specialty h3 {
    margin-bottom: 0.5rem;
}

.member-specialty p {
    color: var(--ink-secondary);
}

.member-bio p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

/* Next member navigation */
.member-next-section {
    border-top: 1px solid var(--rule);
    padding: 0;
}

.member-next-link {
    display: block;
    padding: 3rem 0;
    text-decoration: none;
    text-align: right;
    transition: background-color var(--transition-slow);
}

.member-next-link:hover {
    background-color: var(--surface);
}

.member-next-direction {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink-secondary);
    transition: color var(--transition-slow);
}

.member-next-link:hover .member-next-direction {
    color: var(--accent);
}


/* ==========================================================================
   MATERIALS LIBRARY
   ========================================================================== */

/* Category groups */
.materials-section .category-group {
    margin-bottom: 5rem;
}

.materials-section .category-group:last-child {
    margin-bottom: 0;
}

.category-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.25rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.category-intro {
    font-size: 0.95rem;
    color: var(--ink-secondary);
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    margin-left: 3px;
}

/* Material grid — 5 columns */
.material-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

/* Material card — swatch + name */
.material-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all var(--transition-slow);
}

.material-card .swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--rule);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    transition: border-color var(--transition-slow);
}

.material-card:hover .swatch {
    border-color: var(--accent);
}

.material-card-name {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--ink);
    transition: color var(--transition-slow);
}

.material-card:hover .material-card-name {
    color: var(--accent);
}

.material-card-category {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--ink-muted);
    margin-top: 0.15rem;
}

/* Material detail — two-column layout */
.material-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.swatch-large {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--rule);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.material-detail-swatch .caption {
    display: block;
    margin-top: 0.5rem;
}

.material-detail-category {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.material-detail-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: none;
    margin-bottom: 0;
}

.material-detail-info hr {
    margin: 2rem 0;
}

.material-detail-description p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

.material-detail-specs {
    margin-top: 2rem;
}

.material-detail-specs h3 {
    margin-bottom: 1rem;
}

/* Spec block — surface bg, monospace */
.spec-block {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

/* Related materials strip */
.related-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}


/* ==========================================================================
   ENQUIRY
   ========================================================================== */

.enquiry-form {
    max-width: var(--text-max-width);
    margin: 0 auto;
}

.enquiry-section {
    margin-bottom: 2rem;
}

.enquiry-section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.enquiry-divider {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 3rem 0;
}

.enquiry-submit {
    margin-top: 3rem;
    text-align: center;
}

.enquiry-btn {
    width: 100%;
    max-width: 400px;
    padding: 1rem 2.4rem;
}

.enquiry-disclaimer {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}


/* ==========================================================================
   THANK YOU
   ========================================================================== */

.thank-you {
    text-align: center;
    padding-top: calc(var(--nav-height) + 120px);
    padding-bottom: var(--section-padding);
}

.thank-you-accent {
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto 3rem;
}

.thank-you h1 {
    margin-bottom: 2rem;
}

.thank-you-body {
    max-width: 560px;
    margin: 0 auto 3rem;
}

.thank-you-body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.thank-you-body p:last-child {
    margin-bottom: 0;
}

.thank-you-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}


/* ==========================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --nav-height: var(--nav-height-mobile);
    }

    h1, .h1 {
        font-size: 2rem;
        letter-spacing: 0.06em;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.25rem;
    }

    body {
        font-size: 0.95rem;
    }

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

    .container {
        padding: 0 1.25rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Buttons — ensure adequate tap targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 2rem 1.25rem 0;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        text-align: center;
        width: 100%;
    }

    /* Error pages */
    .error-code {
        font-size: 5rem;
    }

    /* Page hero banners */
    .page-hero {
        height: 40vh;
        min-height: 240px;
        max-height: 400px;
        padding-bottom: 2rem;
    }

    .page-hero-content h1 {
        font-size: 1.75rem;
        letter-spacing: 0.06em;
    }

    /* Portfolio */
    .portfolio-header {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-column: 1;
    }

    .project-card-image--tall {
        aspect-ratio: 16 / 10;
    }

    .project-card-title {
        font-size: 1.35rem;
    }

    /* Project detail */
    .project-hero {
        height: 50vh;
        min-height: 320px;
    }

    .project-hero-content {
        padding-bottom: 2.5rem;
    }

    .project-hero-content h1 {
        font-size: 1.75rem;
        letter-spacing: 0.06em;
    }

    .project-overview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-specs {
        border-left: none;
        border-top: 1px solid var(--accent);
        padding-left: 0;
        padding-top: 2rem;
    }

    .project-gallery {
        gap: 48px;
    }

    .project-nav {
        grid-template-columns: 1fr;
    }

    .project-nav-prev {
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }

    .project-nav-next .project-nav-link {
        text-align: left;
    }

    .project-nav-title {
        font-size: 1.2rem;
    }

    .material-swatch-circle {
        width: 60px;
        height: 60px;
    }

    /* Process timeline — single column, line on left */
    .timeline-line {
        left: 6px;
        transform: none;
    }

    .timeline-phase {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 4rem;
        padding-left: 2.5rem;
    }

    .phase-node {
        left: 0;
        transform: none;
    }

    .timeline-phase:nth-child(odd) .phase-content,
    .timeline-phase:nth-child(even) .phase-content {
        grid-column: 1;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-phase:nth-child(odd) .phase-details,
    .timeline-phase:nth-child(even) .phase-details {
        border-right: none;
        border-left: 2px solid var(--accent);
        padding-right: 0;
        padding-left: 1.25rem;
        align-items: flex-start;
    }

    .phase-number {
        font-size: 2.5rem;
    }

    .timeline-summary {
        padding: var(--section-padding-mobile) 0;
    }

    .timeline-duration-item {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    /* Atelier */
    .facility-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .facility-specs {
        border-left: none;
        border-top: 1px solid var(--accent);
        padding-left: 0;
        padding-top: 2rem;
    }

    /* Workshop gallery — single column on phone */
    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .workshop-item--wide {
        grid-column: span 1;
    }

    .workshop-item img,
    .workshop-item--wide img {
        height: 220px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-card-name {
        font-size: 1.1rem;
    }

    .team-card-photo {
        aspect-ratio: 1 / 1;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-divider {
        width: 100%;
        height: 1px;
    }

    .member-profile {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .member-photo {
        max-width: 320px;
    }

    .member-name {
        font-size: 1.75rem;
        letter-spacing: 0.04em;
    }

    .member-next-link {
        text-align: left;
    }

    /* Materials */
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .material-detail {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .swatch-large {
        max-width: 100%;
    }

    .material-detail-name {
        font-size: 1.75rem;
        letter-spacing: 0.04em;
    }

    .related-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category heading */
    .category-heading {
        font-size: 1.5rem;
    }

    /* Services */
    .service-tier-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-tier-specs {
        border-left: none;
        border-top: 1px solid var(--accent);
        padding-left: 0;
        padding-top: 2rem;
    }

    .tier-number {
        font-size: 2.5rem;
    }

    .aircraft-grid {
        grid-template-columns: 1fr;
    }

    .aircraft-card--wide {
        grid-column: 1;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Enquiry — full-width submit button */
    .form-row {
        grid-template-columns: 1fr;
    }

    .enquiry-btn {
        max-width: 100%;
    }

    /* Spec block — prevent horizontal overflow */
    .spec-block {
        overflow-x: auto;
        word-break: break-word;
    }

    .thank-you {
        padding-top: calc(var(--nav-height) + 80px);
        padding-bottom: var(--section-padding-mobile);
    }

    .thank-you h1 {
        font-size: 1.75rem;
    }

    .thank-you-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Filter bar — tighter gap on mobile */
    .filter-bar {
        gap: 1rem;
    }
}

/* Small phone — iPhone SE (375px) and below */
@media (max-width: 420px) {
    h1, .h1 {
        font-size: 1.65rem;
        letter-spacing: 0.04em;
    }

    .page-hero-content h1,
    .project-hero-content h1 {
        font-size: 1.5rem;
    }

    /* Team grid — single column on very small phones */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Material grid — single column on very small phones */
    .material-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-grid {
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 2rem 1rem 0;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Navigation — switch to hamburger on tablet too */
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

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

    .project-overview {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }

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

    .facility-section {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-divider {
        width: 100%;
        height: 1px;
    }

    /* Services tablet */
    .service-tier-layout {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }

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

    /* Materials tablet */
    .material-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .material-detail {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .related-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Workshop gallery — 2-col on tablet */
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workshop-item--wide {
        grid-column: span 2;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal-image {
        clip-path: none;
    }

    .hero-fade {
        opacity: 1;
        animation: none;
    }
}


/* ==========================================================================
   PAGE HERO BANNERS
   ========================================================================== */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.page-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background) 0%, rgba(12, 12, 14, 0.6) 50%, rgba(12, 12, 14, 0.3) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-content .section-label {
    margin-bottom: 1.5rem;
}

.page-hero-content h1 {
    margin-bottom: 1.5rem;
}

.page-hero-content p {
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* When page-hero is present, reduce padding on the next section */
.page-hero + .section,
.page-hero + .filter-section {
    padding-top: 3rem;
}


/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* Hero — 100vh centered */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/static/uploads/hero-atmosphere.png');
    background-size: cover;
    background-position: center;
}

.home-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--surface) 0%, var(--background) 100%);
    z-index: 0;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    padding-top: var(--nav-height);
}

.home-hero-location {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
}

.home-hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0;
}

.home-hero-rule {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 2rem auto;
}

.home-hero-content p {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
}

/* Scroll indicator */
.home-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    animation: scrollPulse 2s ease-in-out infinite;
}

.home-scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background-color: var(--accent);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Philosophy — two-column with image */
.home-philosophy {
    background-color: var(--background);
}

.home-philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-philosophy-text {
    max-width: 600px;
}

.home-philosophy-image img {
    width: 100%;
    border-radius: 2px;
    object-fit: cover;
    max-height: 480px;
}

.home-philosophy-text h2 {
    margin-bottom: 2rem;
}

.home-philosophy-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

.home-philosophy-text .btn-ghost {
    display: inline-block;
    margin-top: 1rem;
}

/* Featured portfolio grid */
.home-portfolio {
    background-color: var(--surface);
}

.home-portfolio h2 {
    margin-bottom: 3rem;
}

.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.home-project-card {
    display: block;
    text-decoration: none;
    position: relative;
}

.home-project-image {
    aspect-ratio: 3 / 4;
    background-color: var(--surface-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: border-color var(--transition-slow);
    border-bottom: 2px solid transparent;
}

.home-project-card:hover .home-project-image {
    border-bottom-color: var(--accent);
}

.home-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-project-image .image-placeholder {
    width: 100%;
    height: 100%;
}

.home-project-model {
    display: block;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.home-project-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.home-project-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--ink-secondary);
}

.home-portfolio-more {
    text-align: center;
}

/* Services — three pillars with dividers */
.home-services {
    background-color: var(--background);
}

.home-services h2 {
    margin-bottom: 3rem;
}

.home-services-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2.5rem;
    align-items: start;
}

.home-services-divider {
    width: 1px;
    height: 100%;
    background-color: var(--rule);
}

.home-service-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.home-service-pillar h3 {
    margin-bottom: 1rem;
}

.home-service-pillar p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-secondary);
    margin-bottom: 1.5rem;
}

/* Homepage Material Strip */
.home-materials {
    padding: 80px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.home-materials-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.home-materials-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
}

.home-material-swatch {
    flex: 0 0 auto;
    width: 140px;
    text-decoration: none;
    color: var(--ink);
}

.home-material-img {
    width: 140px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    border: 1px solid var(--rule);
    transition: border-color 400ms ease;
}

.home-material-swatch:hover .home-material-img {
    border-color: var(--accent);
}

.home-material-name {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.5rem;
    color: var(--ink-secondary);
    text-align: center;
}

/* Kastrup location */
.home-kastrup {
    background-color: var(--surface);
    border-top: 1px solid var(--rule);
}

.home-kastrup-content {
    max-width: var(--text-max-width);
    margin: 0 auto;
    text-align: center;
}

.home-kastrup-content h2 {
    margin-bottom: 2rem;
}

.home-kastrup-content > p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
    margin-bottom: 2rem;
}

.home-kastrup-coords {
    margin-bottom: 2rem;
    line-height: 2;
    color: var(--ink-muted);
}

.home-kastrup-image {
    margin-top: 3rem;
}

.home-kastrup-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 2px;
}

/* Enquire CTA */
.home-cta {
    background-color: var(--background);
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    padding: 160px 0 120px;
}

.home-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.home-cta-content h2 {
    margin-bottom: 1.5rem;
}

.home-cta-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
    margin-bottom: 2.5rem;
}

/* Homepage mobile */
@media (max-width: 768px) {
    .home-hero {
        min-height: 85vh;
    }

    .home-hero-content h1 {
        font-size: 2.25rem;
        letter-spacing: 0.06em;
    }

    .home-hero-content p {
        font-size: 0.95rem;
    }

    .home-scroll-indicator {
        bottom: 1.5rem;
    }

    .home-philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-philosophy-image img {
        max-height: 320px;
    }

    .home-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-project-image {
        aspect-ratio: 4 / 3;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-services-divider {
        width: 100%;
        height: 1px;
    }

    .home-service-number {
        font-size: 2.25rem;
    }

    .home-materials {
        padding: 48px 0;
    }

    .home-materials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .home-material-swatch {
        width: 110px;
    }

    .home-material-img {
        width: 110px;
        height: 110px;
    }

    .home-kastrup-image img {
        max-height: 280px;
    }

    .home-cta {
        padding: 80px 0 64px;
    }

    .home-cta-content h2 {
        font-size: 1.5rem;
    }
}

/* Homepage tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .home-hero-content h1 {
        font-size: 3.5rem;
    }

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

    .home-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-services-divider {
        width: 100%;
        height: 1px;
    }
}


/* ==========================================================================
   SERVICES
   ========================================================================== */

/* Service tiers — alternating backgrounds */
.service-tier--alt {
    background-color: var(--surface);
}

/* Two-column layout: text left, specs right */
.service-tier-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

.service-tier-content {
    max-width: var(--text-max-width);
}

.service-tier-content h2 {
    margin-bottom: 1.5rem;
}

.service-tier-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-secondary);
}

/* Large accent number */
.tier-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Specs sidebar reuse from project-specs */
.service-tier-specs {
    border-left: 1px solid var(--accent);
    padding-left: 2rem;
}

/* Aircraft grid — 2 columns */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.aircraft-card--wide {
    grid-column: 1 / -1;
}

.aircraft-card h3 {
    margin-bottom: 0.75rem;
}

.aircraft-models {
    display: block;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.aircraft-card p {
    font-size: 0.95rem;
    color: var(--ink-secondary);
}

/* Certification grid — 4 columns */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cert-card {
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem;
}

.cert-card-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cert-card p {
    font-size: 0.95rem;
    color: var(--ink-secondary);
    line-height: 1.7;
}


/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

main {
    animation: pageIn 400ms ease;
}

@keyframes pageIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .nav-header,
    .nav-mobile,
    .site-footer,
    .btn,
    .skip-link,
    .filter-bar,
    .filter-section {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="/"]::after {
        content: none;
    }

    a[href^="#"]::after {
        content: none;
    }

    .btn::after {
        content: none;
    }

    h1, h2, h3 {
        color: #111;
    }

    .image-placeholder {
        border: 1px solid #ccc;
    }
}
