/* ============================================
   dilemma.studio — Styles
   PCB-meets-botanical evolved-minimal design
   ============================================ */

/* --- Design Tokens --- */
:root {
    --old-growth: #1B3A26;
    --canopy: #2D5F3B;
    --new-growth: #3A7D44;
    --lichen-gold: #C8B560;
    --birch-paper: #F7F5F0;
    --aged-linen: #EBE7DF;
    --forest-floor: #2B2B28;
    --fern: #5B8A5E;

    --font-display: 'Space Grotesk', sans-serif;
    --font-nav: 'DM Sans', sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;

    --gap: 16px;
    --margin: 48px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    color: var(--forest-floor);
    background-color: var(--birch-paper);
    overflow-x: hidden;
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Noise Texture Overlay --- */
.board::before,
.hero::before,
.tile::before,
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.hero::before {
    opacity: 0.8;
}

.tile::before {
    opacity: 0.4;
}

/* Dark tiles get slightly more noise for depth */
.tile--dark::before {
    opacity: 0.55;
}

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    pointer-events: none;
    transition: background 0.4s ease;
}

.header-rule {
    height: 1px;
    background-color: var(--canopy);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--margin);
    pointer-events: auto;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: -0.03em;
    color: var(--birch-paper);
    transition: color 0.4s ease;
}

body.scrolled-past-hero .wordmark {
    color: var(--old-growth);
}

body.scrolled-past-hero #site-header {
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-circle {
    display: block;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--birch-paper);
    border-radius: 50%;
    transition: border-color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
    animation: pulse-circle 3s ease-in-out infinite;
}

body.scrolled-past-hero .menu-circle {
    border-color: var(--canopy);
}

@keyframes pulse-circle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* --- Menu Overlay --- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: var(--old-growth);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--margin);
    position: relative;
    z-index: 2;
}

.menu-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 48px;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-close:hover {
    opacity: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
}

.menu-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    color: var(--birch-paper);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.menu-item::before {
    content: attr(data-label);
    position: absolute;
    top: -8px;
    left: -4px;
    font-family: var(--font-nav);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fern);
    opacity: 0.5;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--lichen-gold);
    transition: width 0.3s ease-out;
}

.menu-item:hover {
    color: var(--lichen-gold);
}

.menu-item:hover::after {
    width: 100%;
}

/* --- Hero / Decision Gate --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: var(--old-growth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 var(--margin);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -0.03em;
    color: var(--birch-paper);
    line-height: 1.05;
    margin-bottom: 48px;
}

/* Letter-by-letter reveal: outline first, then fill */
.hero-title .letter {
    display: inline-block;
    opacity: 0;
    animation: letter-reveal 0.4s ease forwards;
}

.hero-title .letter-dot {
    margin: 0 -0.01em;
}

@keyframes letter-reveal {
    0% {
        opacity: 0;
        -webkit-text-stroke: 1.5px var(--birch-paper);
        color: transparent;
    }
    50% {
        opacity: 1;
        -webkit-text-stroke: 1.5px var(--birch-paper);
        color: transparent;
    }
    100% {
        opacity: 1;
        -webkit-text-stroke: 0px var(--birch-paper);
        color: var(--birch-paper);
    }
}

.hero-dilemma {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 16px;
}

.hero-choose,
.hero-create {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    color: var(--new-growth);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-choose.visible {
    opacity: 1;
}

.hero-create.visible {
    opacity: 1;
}

.hero-trace {
    flex: 1;
    height: 60px;
    min-width: 100px;
}

.hero-trace path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.8s ease;
}

.hero-trace.animated path {
    stroke-dashoffset: 0;
}

.hero-trace circle {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-trace.animated circle {
    opacity: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: scroll-hint-appear 1s ease 3.5s forwards;
}

@keyframes scroll-hint-appear {
    to { opacity: 0.6; }
}

.scroll-hint svg {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Boards --- */
.board {
    position: relative;
    padding: 80px var(--margin);
}

.board--light {
    background-color: var(--birch-paper);
}

.board--alt {
    background-color: var(--aged-linen);
}

.board--dark {
    background-color: var(--old-growth);
}

.board-header {
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.board-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    color: var(--old-growth);
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    /* Noise texture clipped to text for screen-printed FR4 quality */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    -webkit-background-clip: text;
    background-clip: text;
}

.board-title--light {
    color: var(--birch-paper);
}

.board-trace {
    width: 100%;
    height: 20px;
}

.board-trace path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease;
}

.board-trace.animated path {
    stroke-dashoffset: 0;
}

.board-trace circle {
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

.board-trace.animated circle {
    opacity: 0.4;
}

/* --- Masonry Grid --- */
.masonry-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    grid-auto-rows: minmax(80px, auto);
    gap: var(--gap);
}

/* --- Tile Variants & Sizing --- */
.tile {
    position: relative;
    border: 1px solid var(--aged-linen);
    border-radius: 2px;
    overflow: hidden;
    background-color: var(--birch-paper);
    transition: border-color 0.4s ease;
}

.tile--dark {
    background-color: var(--old-growth);
    border-color: rgba(58, 125, 68, 0.2);
}

.tile--portrait {
    grid-row: span 2;
}

.tile--landscape {
    grid-column: span 2;
}

.tile--square {
    aspect-ratio: 1 / 1;
}

/* Component Labels - mimics PCB silkscreen markings */
.tile-component-label {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-nav);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fern);
    opacity: 0.5;
    transform: rotate(90deg);
    transform-origin: right top;
    z-index: 5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* --- Tile Border-Trace Animation ---
   The border draws around the tile like a CNC routing machine,
   tracing top -> right -> bottom -> left in sequence */
.tile-border-trace {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.tile-border-trace::before,
.tile-border-trace::after {
    content: '';
    position: absolute;
    background-color: var(--new-growth);
}

/* Top and bottom borders */
.tile-border-trace::before {
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    transition: width 0.3s linear;
}

.tile-border-trace::after {
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
    transition: width 0.3s linear 0.2s;
}

/* Hover effect: border traces around */
.tile:hover .tile-border-trace::before {
    width: 100%;
}

.tile:hover .tile-border-trace::after {
    width: 100%;
}

.tile:hover .tile-component-label {
    opacity: 1;
    color: var(--lichen-gold);
}

/* Tile Content */
.tile-content {
    position: relative;
    z-index: 3;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tile-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: -0.03em;
    color: var(--old-growth);
    line-height: 1.2;
    margin-bottom: 12px;
}

.tile-heading--light {
    color: var(--birch-paper);
}

.tile-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.72;
    color: var(--forest-floor);
}

.tile-body--light {
    color: rgba(247, 245, 240, 0.85);
}

.tile-caption {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: var(--forest-floor);
    font-style: italic;
}

.tile-caption--light {
    color: rgba(247, 245, 240, 0.8);
}

/* Solder-pad bullet replacement for lists */
.tile-content ul {
    list-style: none;
    padding-left: 16px;
}

.tile-content ul li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--new-growth);
    margin-right: 10px;
    vertical-align: middle;
}

/* --- Tile Entrance Animation ---
   Border draws first (like soldering onto PCB),
   then content fades in */
.tile {
    opacity: 0;
    transform: translateY(12px);
}

.tile.tile-visible {
    animation: tile-enter 0.6s ease forwards;
}

@keyframes tile-enter {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    40% {
        opacity: 0.5;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tile border-draw entrance: entrance trace animates in on scroll */
.tile.border-entering .tile-border-trace::before {
    width: 100%;
    background-color: var(--aged-linen);
    transition: width 0.4s ease;
}

.tile.border-entering .tile-border-trace::after {
    width: 100%;
    background-color: var(--aged-linen);
    transition: width 0.4s ease 0.15s;
}

.tile--dark.border-entering .tile-border-trace::before,
.tile--dark.border-entering .tile-border-trace::after {
    background-color: rgba(58, 125, 68, 0.3);
}

/* Content fades in after border draws */
.tile .tile-content {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tile.tile-visible .tile-content {
    opacity: 1;
    transition-delay: 0.3s;
}

/* --- Botanical Images --- */
.tile-content--botanical {
    padding: 0;
    justify-content: stretch;
}

.botanical-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* Leaf venation pattern - resembles circuit traces */
.botanical-image--veins {
    background:
        radial-gradient(ellipse at 20% 80%, var(--canopy) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--new-growth) 0%, transparent 50%),
        linear-gradient(135deg, var(--old-growth) 0%, var(--canopy) 50%, var(--old-growth) 100%);
}

.botanical-image--veins::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Main vein */
        linear-gradient(35deg, transparent 48%, var(--lichen-gold) 48.5%, var(--lichen-gold) 49%, transparent 49.5%),
        /* Branch veins */
        linear-gradient(65deg, transparent 46%, rgba(200, 181, 96, 0.4) 46.5%, rgba(200, 181, 96, 0.4) 47%, transparent 47.5%),
        linear-gradient(15deg, transparent 52%, rgba(200, 181, 96, 0.3) 52.5%, rgba(200, 181, 96, 0.3) 53%, transparent 53.5%),
        linear-gradient(80deg, transparent 44%, rgba(200, 181, 96, 0.25) 44.5%, rgba(200, 181, 96, 0.25) 45%, transparent 45.5%),
        linear-gradient(45deg, transparent 55%, rgba(200, 181, 96, 0.2) 55.5%, rgba(200, 181, 96, 0.2) 56%, transparent 56.5%);
    opacity: 0.7;
}

/* Tree rings pattern - resembles concentric PCB ground planes */
.botanical-image--rings {
    background: radial-gradient(
        circle at 40% 55%,
        var(--lichen-gold) 0%,
        var(--canopy) 8%,
        var(--old-growth) 15%,
        var(--canopy) 22%,
        var(--old-growth) 28%,
        var(--canopy) 34%,
        var(--old-growth) 40%,
        var(--canopy) 46%,
        var(--old-growth) 52%,
        var(--canopy) 58%,
        var(--old-growth) 64%,
        var(--canopy) 70%,
        var(--old-growth) 78%,
        var(--canopy) 86%,
        var(--old-growth) 100%
    );
}

/* Aerial canopy view - resembles chaotic-yet-organized PCB component placement */
.botanical-image--canopy {
    background:
        radial-gradient(circle at 30% 30%, var(--new-growth) 0%, transparent 25%),
        radial-gradient(circle at 70% 40%, var(--canopy) 0%, transparent 30%),
        radial-gradient(circle at 50% 70%, var(--new-growth) 0%, transparent 20%),
        radial-gradient(circle at 20% 60%, var(--canopy) 0%, transparent 35%),
        radial-gradient(circle at 80% 80%, var(--new-growth) 0%, transparent 25%),
        radial-gradient(circle at 60% 20%, var(--canopy) 0%, transparent 20%),
        linear-gradient(180deg, var(--old-growth) 0%, var(--canopy) 100%);
}

.botanical-image--canopy::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

/* --- Trace Separators --- */
.trace-separator {
    padding: 0 var(--margin);
    height: 30px;
    background-color: var(--birch-paper);
    position: relative;
}

.trace-separator svg {
    width: 100%;
    height: 100%;
}

.trace-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease;
}

.trace-separator.animated .trace-path {
    stroke-dashoffset: 0;
}

.via-pad {
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

.trace-separator.animated .via-pad {
    opacity: 0.4;
}

/* Via flash on scroll - current flowing through the trace */
@keyframes via-flash {
    0% { fill: transparent; opacity: 0.4; }
    30% { fill: #C8B560; opacity: 0.8; }
    100% { fill: transparent; opacity: 0.4; }
}

.via-pad.flash {
    animation: via-flash 0.4s ease forwards;
}

/* --- Contact Section --- */
.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--birch-paper);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-body {
    font-family: var(--font-body);
    font-weight: 400;
    color: rgba(247, 245, 240, 0.75);
    margin-bottom: 24px;
    line-height: 1.72;
}

.contact-link {
    font-family: var(--font-nav);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lichen-gold);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

/* Animated underline: draws left-to-right on hover, retracts left-to-right on leave */
.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--new-growth);
    transition: width 0.3s ease-out;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-detail {
    font-family: var(--font-nav);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fern);
}

/* --- Footer --- */
#site-footer {
    position: relative;
    background-color: var(--old-growth);
    padding: 64px var(--margin) 48px;
    overflow: hidden;
}

/* Via grid pattern - mimics the via grid on a PCB */
.footer-via-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(45, 95, 59, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: -0.03em;
    color: var(--birch-paper);
}

.footer-tagline {
    font-family: var(--font-nav);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fern);
}

.footer-trace {
    width: 200px;
    margin-top: 16px;
}

.footer-trace svg {
    width: 100%;
    height: 20px;
}

/* --- Link Underline Animation --- */
a {
    position: relative;
}

/* --- Selection --- */
::selection {
    background-color: var(--canopy);
    color: var(--birch-paper);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --margin: 32px;
        --gap: 12px;
    }

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

    .tile--portrait {
        grid-row: span 2;
    }

    .tile--landscape {
        grid-column: span 2;
    }

    .contact-grid {
        gap: 40px;
    }

    .menu-grid {
        gap: 20px 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --margin: 20px;
        --gap: 12px;
    }

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

    .tile--portrait {
        grid-row: span 1;
    }

    .tile--landscape {
        grid-column: span 1;
    }

    .tile--square {
        aspect-ratio: auto;
        min-height: 240px;
    }

    .tile-content {
        padding: 24px;
    }

    .hero-dilemma {
        flex-direction: column;
        gap: 24px;
    }

    .hero-trace {
        width: 80%;
        height: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .board {
        padding: 48px var(--margin);
    }

    .header-inner {
        padding: 12px var(--margin);
    }
}
