/* ==========================================================================
   Aeris Spatial shared design system
   Direction: drafting sheet. Coordinate grids, hairline rules, title blocks.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
    --ink:        #0E1E29;   /* headings, primary text */
    --blue:       #14456B;   /* brand */
    --blue-deep:  #0B2E4A;   /* dark surfaces */
    --cyan:       #2F8CB4;   /* interactive accent */
    --mark:       #A8412F;   /* annotation red, used sparingly */
    --sheet:      #F5F7F6;   /* paper */
    --sheet-alt:  #ECEFEF;   /* alternate band */
    --white:      #FFFFFF;
    --rule:       #CDD5D9;   /* hairline */
    --rule-soft:  #E2E7E9;
    --muted:      #5E6E79;

    --wrap: 1180px;
    --gut: 1.5rem;

    --f-display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
    --f-body:    'IBM Plex Sans', system-ui, sans-serif;
    --f-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    background: var(--sheet);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Utility: monospaced label, used for eyebrows and data annotations */
.label {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

/* --- Navigation ----------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 900;
    background: var(--sheet);
    border-bottom: 1px solid var(--rule);
}
/* backdrop-filter creates a containing block for position:fixed children, which
   breaks the mobile drawer. Only apply it above the drawer breakpoint. */
@media (min-width: 941px) {
    .nav {
        background: rgba(245,247,246,0.94);
        backdrop-filter: blur(10px);
    }
}
.nav-inner {
    max-width: var(--wrap); margin: 0 auto;
    padding: 0.35rem var(--gut);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 78px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    font-family: var(--f-display);
    font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
    color: var(--ink); text-decoration: none;
    padding: 0.5rem 0; display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--mark); }

.nav-quote {
    font-family: var(--f-display);
    background: var(--blue); color: var(--white) !important;
    padding: 0.55rem 1.15rem !important;
    border-radius: 2px; font-weight: 600;
    border-bottom: 2px solid var(--blue-deep) !important;
    text-decoration: none; white-space: nowrap;
    transition: background 0.18s ease;
}
.nav-quote:hover { background: var(--blue-deep); color: var(--white) !important; }

/* Dropdown */
.nav-drop > button {
    font-family: var(--f-display); font-size: 0.95rem; font-weight: 500;
    color: var(--ink); background: none; border: none; cursor: pointer;
    padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem;
    border-bottom: 2px solid transparent; line-height: inherit;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-drop > button:hover { color: var(--blue); border-bottom-color: var(--mark); }
.nav-drop > button::after {
    content: ''; width: 5px; height: 5px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.2s ease;
}
.nav-drop[data-open="true"] > button::after { transform: rotate(-135deg) translate(-2px,-2px); }

.nav-drop-panel {
    position: absolute; top: calc(100% + 0.55rem); left: -0.9rem;
    min-width: 310px; background: var(--white);
    border: 1px solid var(--rule); border-radius: 2px;
    box-shadow: 0 12px 32px rgba(14,30,41,0.10);
    padding: 0.4rem 0;
    opacity: 0; visibility: hidden; transform: translateY(-5px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-drop[data-open="true"] .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-panel a {
    display: block; padding: 0.65rem 1.1rem; text-decoration: none;
    color: var(--ink); font-size: 0.92rem; font-weight: 500;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-drop-panel a:hover { background: var(--sheet-alt); border-left-color: var(--mark); color: var(--blue); }
.nav-drop-panel a span {
    display: block; font-family: var(--f-mono); font-size: 0.7rem;
    color: var(--muted); font-weight: 400; margin-top: 0.15rem; letter-spacing: 0.02em;
}

/* Mobile toggle */
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 12px; margin: -12px -8px -12px 0;
    position: relative; z-index: 20;
}
.nav-burger span {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-scrim {
    position: fixed; inset: 0; background: rgba(14,30,41,0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 880;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 940px) {
    .nav-burger { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(86vw, 340px);
        background: var(--white); border-left: 1px solid var(--rule);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 7.5rem 1.5rem 2.5rem;
        max-width: 100vw;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        z-index: 895;
    }
    .nav-menu.is-open { transform: translateX(0); }
    .nav-menu > li { border-bottom: 1px solid var(--rule-soft); }
    .nav-menu > li > a,
    .nav-drop > button {
        display: block; width: 100%; padding: 0.95rem 0;
        font-size: 1.05rem; border-bottom: none; text-align: left;
    }
    .nav-drop > button { justify-content: space-between; }
    .nav-drop-panel {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: none; box-shadow: none; min-width: 0;
        max-height: 0; overflow: hidden; padding: 0;
        background: var(--sheet);
        transition: max-height 0.28s ease;
    }
    .nav-drop[data-open="true"] .nav-drop-panel { max-height: 30rem; padding: 0.3rem 0 0.6rem; }
    .nav-quote { display: block; text-align: center; margin-top: 1.25rem; padding: 0.85rem !important; }
    .nav-logo img { height: 68px; }
}

/* --- Hero ----------------------------------------------------------------- */
/* Signature: faint coordinate grid + corner survey ticks + title block */
.hero {
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 78%);
}
.hero-inner {
    position: relative;
    max-width: var(--wrap); margin: 0 auto;
    padding: 4.25rem var(--gut) 0;
}
.hero-eyebrow {
    font-family: var(--f-mono); font-size: 0.71rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--mark); font-weight: 500;
    display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.1rem;
}
.hero-eyebrow::before {
    content: ''; width: 26px; height: 1px; background: var(--mark); flex-shrink: 0;
}
.hero h1 {
    font-family: var(--f-display);
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    font-weight: 600; line-height: 1.08; letter-spacing: -0.015em;
    color: var(--ink); max-width: 20ch;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead {
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    color: var(--muted); max-width: 60ch; margin-top: 1.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

/* Title block: real sheet metadata, varies per page */
.titleblock {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    margin-top: 3.25rem;
}
.titleblock > div {
    padding: 0.9rem 1.1rem 1rem 0;
    border-right: 1px solid var(--rule-soft);
}
.titleblock > div:last-child { border-right: none; }
.titleblock dt {
    font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}
.titleblock dd {
    font-family: var(--f-display); font-size: 1.02rem; font-weight: 600;
    color: var(--ink); line-height: 1.3;
}
@media (max-width: 720px) {
    .titleblock { grid-template-columns: 1fr 1fr; }
    .titleblock > div:nth-child(2n) { border-right: none; }
    .titleblock > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
    .hero-inner { padding-top: 2.75rem; }
}

/* Compact hero for utility pages */
.hero--slim .hero-inner { padding-bottom: 3rem; }
.hero--slim h1 { max-width: 24ch; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--f-display); font-size: 0.97rem; font-weight: 600;
    padding: 0.8rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; min-height: 44px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn::after { content: '→'; font-family: var(--f-body); transition: transform 0.18s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--blue); background: var(--white); color: var(--blue); }
.btn-light { background: var(--white); color: var(--blue-deep); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 4.25rem 0; border-bottom: 1px solid var(--rule-soft); }
.section:last-of-type { border-bottom: none; }
.section--alt { background: var(--sheet-alt); }
.section--tight { padding: 3rem 0; }

.section-head { margin-bottom: 2rem; }
.section-head h2 {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink);
    max-width: 26ch;
}
.section-head p { color: var(--muted); max-width: 68ch; margin-top: 0.85rem; }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; color: #2C3E4A; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 600; line-height: 1.18; letter-spacing: -0.01em;
    color: var(--ink); margin-bottom: 1.1rem;
}
.prose h3 {
    font-family: var(--f-display); font-size: 1.2rem; font-weight: 600;
    margin: 2rem 0 0.7rem; color: var(--ink);
}
.prose ul { margin: 0 0 1.1rem 1.1rem; }
.prose li { margin-bottom: 0.45rem; color: #2C3E4A; }
.prose strong { font-weight: 600; color: var(--ink); }

/* --- Spec list (replaces "what we deliver" cards) ------------------------- */
/* Numbered only where sequence is real; otherwise plain hairline rows. */
.specs { border-top: 1px solid var(--rule); }
.specs > div {
    display: grid; grid-template-columns: minmax(190px, 250px) 1fr;
    gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.specs dt {
    font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
    color: var(--ink); line-height: 1.35;
}
.specs dd { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
    .specs > div { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0; }
}

/* --- Process steps (sequence is real, so numbering is warranted) ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.steps > li {
    list-style: none; counter-increment: step;
    display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.25rem;
    padding: 1.3rem 0; border-bottom: 1px solid var(--rule-soft);
}
.steps > li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500;
    color: var(--mark); padding-top: 0.15rem;
}
.steps h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
    .steps > li { grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
}

/* --- Tag rows (industries, formats, regions, councils) -------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.02em;
    padding: 0.4rem 0.75rem; border: 1px solid var(--rule);
    background: var(--white); color: #33454F; border-radius: 2px;
}
.section--alt .tag { background: var(--white); }

/* --- Callout -------------------------------------------------------------- */
.callout {
    border-left: 2px solid var(--mark);
    background: var(--white);
    padding: 1.25rem 1.4rem;
    margin: 1.75rem 0;
    max-width: 72ch;
}
.callout .label { margin-bottom: 0.45rem; display: block; color: var(--mark); }
.callout p { color: #2C3E4A; font-size: 0.96rem; }

/* --- Two-column layout ---------------------------------------------------- */
.cols {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: start;
}
@media (max-width: 880px) { .cols { grid-template-columns: 1fr; gap: 2.25rem; } }

/* --- Pricing -------------------------------------------------------------- */
.pricing {
    border: 1px solid var(--rule); background: var(--white);
    padding: 1.75rem; border-radius: 2px;
}
.pricing .label { display: block; margin-bottom: 0.5rem; }
.pricing-figure {
    font-family: var(--f-display); font-size: 2.5rem; font-weight: 600;
    color: var(--blue); line-height: 1; letter-spacing: -0.02em;
}
.pricing-figure span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.pricing p { font-size: 0.93rem; color: var(--muted); margin: 0.85rem 0 1.35rem; }

/* --- Cards (used sparingly, only for genuinely card-like content) -------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.5rem; }

.card {
    background: var(--white); border: 1px solid var(--rule); border-radius: 2px;
    padding: 1.5rem; text-decoration: none; color: inherit; display: block;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.card p { font-size: 0.93rem; color: var(--muted); }
.card .label { display: block; margin-bottom: 0.6rem; }

/* --- Case studies --------------------------------------------------------- */
.cases { border-top: 1px solid var(--rule); }
.cases > article {
    display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem;
    padding: 2rem 0; border-bottom: 1px solid var(--rule-soft);
}
.case-meta {
    font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); line-height: 1.9;
}
.case-meta strong { display: block; color: var(--mark); font-weight: 500; }
.cases h3 {
    font-family: var(--f-display); font-size: 1.22rem; font-weight: 600;
    line-height: 1.3; margin-bottom: 0.65rem; color: var(--ink);
}
.cases p { color: #2C3E4A; font-size: 0.96rem; max-width: 68ch; }
@media (max-width: 780px) {
    .cases > article { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.6rem 0; }
}


/* --- Project tiles -------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.tile { border: 1px solid var(--rule); background: var(--white); border-radius: 2px; overflow: hidden; }
.tile img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--rule); background: var(--sheet-alt); }
.tile-body { padding: 1.15rem 1.25rem 1.35rem; }
.tile h3 { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.tile p { font-size: 0.92rem; color: var(--muted); }

/* --- Audience index (homepage services) ----------------------------------- */
.audience { border-top: 1px solid var(--rule); }
.audience > a {
    display: grid; grid-template-columns: 240px 1fr auto; gap: 2rem; align-items: start;
    padding: 1.6rem 0; border-bottom: 1px solid var(--rule-soft);
    text-decoration: none; color: inherit;
    transition: background 0.15s ease;
}
.audience > a:hover { background: var(--white); }
.audience h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.audience li { font-size: 0.93rem; color: var(--muted); position: relative; padding-left: 0.85rem; }
.audience li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 4px; height: 1px; background: var(--rule); }
.audience-go { font-family: var(--f-mono); font-size: 0.75rem; color: var(--blue); letter-spacing: 0.08em; padding-top: 0.25rem; white-space: nowrap; }
.audience > a:hover .audience-go { color: var(--cyan); }
@media (max-width: 820px) {
    .audience > a { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.35rem 0; }
    .audience-go { display: none; }
}

/* --- FAQ (accordion) ------------------------------------------------------ */
.faq { border-top: 1px solid var(--rule); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
    font-family: var(--f-display); font-size: 1.03rem; font-weight: 600;
    padding: 1.1rem 2.5rem 1.1rem 0; cursor: pointer; position: relative;
    list-style: none; color: var(--ink); min-height: 44px;
    display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 0.4rem; top: 50%;
    width: 9px; height: 9px; margin-top: -6px;
    border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--blue); }
.faq-body { padding: 0 2.5rem 1.3rem 0; color: var(--muted); font-size: 0.96rem; }

/* --- CTA band ------------------------------------------------------------- */
.cta {
    background: var(--blue-deep); color: var(--white);
    padding: 3.75rem 0; position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
}
.cta .wrap { position: relative; }
.cta h2 {
    font-family: var(--f-display); font-size: clamp(1.5rem, 3.4vw, 2.15rem);
    font-weight: 600; line-height: 1.2; max-width: 22ch; margin-bottom: 0.85rem;
}
.cta p { color: rgba(255,255,255,0.72); max-width: 56ch; margin-bottom: 1.9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Forms ---------------------------------------------------------------- */
.form { max-width: 560px; }
.form .field { margin-bottom: 1.15rem; }
.form label {
    display: block; font-family: var(--f-mono); font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 0.4rem;
}
.form input, .form select, .form textarea {
    width: 100%; padding: 0.8rem 0.9rem;
    font-family: var(--f-body); font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--rule); border-radius: 2px;
    transition: border-color 0.15s ease;
    min-height: 46px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,69,107,0.09);
}
.form input::placeholder, .form textarea::placeholder { color: #9AA7AF; }
.form button[type="submit"] { width: 100%; justify-content: center; }
.form button[type="submit"]::after { content: none; }
.hidden-field { position: absolute; left: -9999px; }

.contact-lines { list-style: none; border-top: 1px solid var(--rule); }
.contact-lines li { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.contact-lines .label { display: block; margin-bottom: 0.2rem; }
.contact-lines a, .contact-lines span {
    font-family: var(--f-display); font-size: 1.08rem; font-weight: 600;
    color: var(--ink); text-decoration: none;
}
.contact-lines a:hover { color: var(--cyan); }

/* --- Footer --------------------------------------------------------------- */
.footer {
    background: var(--ink); color: rgba(255,255,255,0.62);
    padding: 3rem 0 2rem; font-size: 0.9rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
    padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,0.13);
}
.footer h4 {
    font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.42);
    margin-bottom: 0.9rem; font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-blurb { color: rgba(255,255,255,0.55); max-width: 34ch; font-size: 0.9rem; }
.footer-blurb strong {
    display: block; font-family: var(--f-display); font-size: 1.15rem;
    color: var(--white); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.01em;
}
.footer-base {
    padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
    justify-content: space-between; font-family: var(--f-mono);
    font-size: 0.73rem; color: rgba(255,255,255,0.4);
}
@media (max-width: 780px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .footer-blurb { grid-column: 1 / -1; }
}

/* --- Article (blog) ------------------------------------------------------- */
.article { max-width: 68ch; margin: 0 auto; padding: 3.5rem var(--gut) 4rem; }
.article h2 {
    font-family: var(--f-display); font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600; margin: 2.5rem 0 0.85rem; line-height: 1.25; color: var(--ink);
}
.article h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin: 1.85rem 0 0.6rem; }
.article p { margin-bottom: 1.15rem; color: #2C3E4A; }
.article ul, .article ol { margin: 0 0 1.25rem 1.2rem; }
.article li { margin-bottom: 0.5rem; color: #2C3E4A; }
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.article th, .article td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule-soft); }
.article th {
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); border-bottom-color: var(--rule);
}
.article blockquote {
    border-left: 2px solid var(--mark); padding: 0.4rem 0 0.4rem 1.2rem;
    margin: 1.5rem 0; color: var(--muted); font-size: 1.02rem;
}
.article-meta {
    font-family: var(--f-mono); font-size: 0.73rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 1.25rem;
}

/* --- Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Home hero: aerial capture ------------------------------------------- */
/* Aerial photo underneath, a scan sweep passing across, leaving traced
   cadastral boundaries, contours and survey marks behind it. */

.hero--home .hero-inner { padding-bottom: 3.5rem; }

.hero-split {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 3.5rem;
    align-items: center;
}
.hero-split .hero h1, .hero-copy h1 { max-width: 16ch; }

.capture {
    position: relative;
    aspect-ratio: 5 / 4;
    border: 1px solid var(--rule);
    background: #0B1F2E;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11,31,46,0.18);
}

/* Aerial base, drifting slowly so the frame never sits still. */
.capture-photo {
    position: absolute; inset: -6%;
    background-image: url('/Sydney.png');
    background-size: cover;
    background-position: 50% 45%;
    background-color: #16394F;
    filter: saturate(0.72) contrast(1.05) brightness(0.92);
    animation: capture-drift 42s ease-in-out infinite alternate;
}
@keyframes capture-drift {
    from { transform: scale(1.04) translate(0, 0); }
    to   { transform: scale(1.13) translate(-2.2%, -1.6%); }
}

/* Cools the photo toward the brand blue so it sits with the rest of the page. */
.capture-tint {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11,46,74,0.32), rgba(11,31,46,0.58)),
        radial-gradient(ellipse 70% 60% at 42% 40%, rgba(47,140,180,0.20), transparent 70%);
}

/* The traced linework, revealed by the sweep. */
.capture-vectors {
    position: absolute; inset: 0;
    animation: capture-reveal 11s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}
@keyframes capture-reveal {
    0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
    2%   { opacity: 1; }
    30%  { clip-path: inset(0 0 0 0); }
    88%  { clip-path: inset(0 0 0 0); opacity: 1; }
    97%  { clip-path: inset(0 0 0 0); opacity: 0; }
    100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
.capture-vectors svg { width: 100%; height: 100%; display: block; }

.v-grid line       { stroke: rgba(198,222,234,0.34); stroke-width: 0.7; }
.v-grid-major line { stroke: rgba(214,236,246,0.62); stroke-width: 1.1; }

/* The sweep itself. */
/* Full-width element with a narrow band inside it, so the travel distance
   scales with the frame instead of relying on a fixed pixel figure. */
.capture-sweep {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        transparent 0 30%,
        rgba(111,200,232,0.08) 42%,
        rgba(160,220,245,0.30) 48%,
        rgba(226,244,253,0.92) 50%,
        rgba(160,220,245,0.16) 52%,
        transparent 58% 100%);
    animation: capture-sweep 11s cubic-bezier(0.33, 0, 0.2, 1) infinite;
    will-change: transform;
}
@keyframes capture-sweep {
    0%   { transform: translateX(-50%); opacity: 0; }
    3%   { opacity: 1; }
    30%  { transform: translateX(50%);  opacity: 1; }
    35%  { transform: translateX(50%);  opacity: 0; }
    100% { transform: translateX(-50%); opacity: 0; }
}

/* Registration ticks in the corners: drafting sheet furniture. */
.capture-ticks span {
    position: absolute; width: 14px; height: 14px;
    border: 0 solid rgba(226,238,244,0.55);
}
.capture-ticks span:nth-child(1) { top: 10px; left: 10px;  border-top-width: 1px; border-left-width: 1px; }
.capture-ticks span:nth-child(2) { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.capture-ticks span:nth-child(3) { bottom: 10px; left: 10px;  border-bottom-width: 1px; border-left-width: 1px; }
.capture-ticks span:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.capture-hud {
    position: absolute; top: 14px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; gap: 1rem;
    font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em;
    color: rgba(226,238,244,0.72); text-transform: uppercase;
    pointer-events: none;
}
.capture-foot {
    position: absolute; bottom: 14px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; align-items: flex-end;
    font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em;
    color: rgba(226,238,244,0.66);
    pointer-events: none;
}
.capture-bar { display: flex; flex-direction: column; gap: 4px; }
.capture-bar i {
    display: block; width: 76px; height: 5px;
    background: linear-gradient(90deg,
        rgba(226,238,244,0.8) 0 25%, transparent 25% 50%,
        rgba(226,238,244,0.8) 50% 75%, transparent 75% 100%);
    border: 1px solid rgba(226,238,244,0.55);
}

@media (max-width: 940px) {
    .hero-split { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero-copy h1 { max-width: 20ch; }
    .capture { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
    .capture { aspect-ratio: 4 / 3; }
    .capture-hud, .capture-foot { font-size: 0.56rem; }
    .capture-bar i { width: 58px; }
}

/* Motion is decoration here: hold the finished state if it is not wanted. */
@media (prefers-reduced-motion: reduce) {
    .capture-photo { animation: none; transform: scale(1.06); }
    .capture-vectors { animation: none; clip-path: none; opacity: 1; }
    .capture-sweep { animation: none; display: none; }
}

.contact-note {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    color: var(--muted);
}
