:root {
    --bg-color: #FEFCF8;
    --text-primary: #1A1208;
    --text-secondary: #6B5F4A;
    --accent: #D4580A;        /* warm burnt orange — used sparingly */
    --accent-light: #F5A623;  /* amber */
    --border-color: #E7DFCE;
    --rule: #D8CEB8;
    --surface: #F4F0E7;
    --accent-ink: #9D430D;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
}

/* Editorial column: narrow measure, generous margins both sides */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 9vw, 7rem);
}

/* Typography — serif display, sans body */
h1, h2, .casestudy-label {
    font-family: 'Fraunces', Georgia, serif;
}

h1 {
    font-size: clamp(2.125rem, 6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 560;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 550;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* Section kicker — numbered, small caps, replaces colored chips */
.kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.kicker::after {
    content: '';
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--accent);
    margin-top: 0.75rem;
}

/* Links as editorial underlines, not pill buttons */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.2rem;
    transition: color 0.2s, border-color 0.2s;
}

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

.btn-primary::after,
.btn-secondary::after {
    content: ' \2192';
}

/* Navbar — quiet text row */
.navbar {
    padding: 1.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-color);
    /* Keep the fixed header on its own compositing layer during Safari scrolling. */
    transform: translateZ(0);
    isolation: isolate;
    border-bottom: 0;
    transition: padding 0.25s ease;
}

.navbar.scrolled {
    padding: 0.7rem 0;
}

.navbar .logo {
    transition: font-size 0.25s ease;
}

.navbar.scrolled .logo {
    font-size: 1.125rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.nowrap { white-space: nowrap; }

/* mark stays inside the wordmark's cap-height band — it may not break the nav's text line */
.logo-hex {
    width: 1.45em;
    height: 1.45em;
    align-self: center;
    transform: translateY(0.05em);
}


.footer-hex {
    width: 20px;
    height: 20px;
}


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

.nav-links {
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    border: none;
    position: relative;
    padding-bottom: 0.55rem;
}

/* the brand's period, under each link — appears on hover, stays on the active section */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-links a.active {
    color: var(--text-primary);
}

/* amber rule — marks the page's three beats: open, pivot to proof, close */
.rule-accent {
    width: 3.5rem;
    height: 2px;
    background: var(--accent-light);
    margin-bottom: 1.75rem;
}

/* ghost hexagon — ambient brand echo, whisper-grade */
.ghost-hex {
    position: absolute;
    z-index: -1;
    color: #EFE9DB;
    opacity: 0.6;
}

.snippets-section,
.contact-section {
    position: relative;
    overflow: hidden;
}

.ghost-work {
    right: -130px;
    top: 60px;
    width: 400px;
    height: 400px;
}

.ghost-contact {
    right: -90px;
    bottom: 10px;
    width: 300px;
    height: 300px;
}

/* Hero */
.hero {
    padding: 7.5rem 0 4rem;
    position: relative;
}

.badge {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 34em;
}

.hero-actions {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

/* Sections share one editorial rhythm */
section {
    padding: 3.5rem 0;
}

.about-section,
.services-section,
.process-section,
.contact-section {
    padding-top: 0;
}

/* hairline rules drawn at text-column width, not screen width */
.about-section > .container,
.services-section > .container,
.process-section > .container {
    background-image: linear-gradient(var(--rule), var(--rule));
    background-repeat: no-repeat;
    background-position: top center;
    background-size: calc(100% - 2 * clamp(1.5rem, 9vw, 7rem)) 1px;
    padding-top: 3.5rem;
}

.contact-section > .container {
    padding-top: 1.5rem;
}

/* About */
.about-section {
    scroll-margin-top: 6rem;
}

.about-section > .container {
    padding-top: 2.5rem;
}

.about-layout {
    min-width: 0;
}

.about-layout h2 {
    margin-bottom: 0;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.about-portrait {
    min-width: 0;
    mix-blend-mode: darken;
    overflow: hidden;
}

.about-photo {
    width: 100%;
    height: auto;
    /* Trim empty headroom without enlarging or clipping the shoulders. */
    margin-top: -9%;
    filter: brightness(1.015);
    display: block;
}

.about-content {
    min-width: 0;
}

.about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-lead {
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Services — numbered list, hanging numbers */
.services-header {
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 34em;
}

.service-row {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.service-number {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    padding-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.service-details {
    flex: 1;
}

.service-details h3 {
    margin-bottom: 0.375rem;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.service-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex: none;
}

.service-details p {
    font-size: 1rem;
}

/* How It Works — three-step arc */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    position: relative;
}

.process-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.process-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex: none;
}

.process-step p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.process-note {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.8;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-light);
}

/* Logos — quiet inline row, sits directly above Selected Work */
.logos-section {
    padding: 0 0 2.5rem;
}

.logos-section > .container {
    background-image: linear-gradient(var(--rule), var(--rule));
    background-repeat: no-repeat;
    background-position: top center;
    background-size: calc(100% - 2 * clamp(1.5rem, 9vw, 7rem)) 1px;
    padding-top: 3rem;
}

.section-subtitle {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.logo-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
}

.logo-item {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single-color logo treatment: inline SVGs painted via currentColor */
.logo-svg {
    width: auto;
    display: block;
    color: var(--text-secondary);
}

/* heights tuned per mark: h ~ 1/aspect^0.35, corrected for ink weight */
.lg-f5     { height: 30px; }   /* round emblem — compact, needs most height */
.lg-cisco  { height: 31px; }   /* stacked bars + text */
.lg-regus  { height: 33px; }   /* stacked crown + text, heavy sans: -10% */
.lg-un     { height: 28px; }   /* emblem + 2-line lockup */
.lg-att    { height: 26px; }
.lg-paypal { height: 25px; }
.lg-threatstack { height: 26px; }  /* light dot-work: +10% */
.lg-lh     { height: 22px; }   /* 9:1 one-liner — widest, needs least */
.lg-lh-stacked { display: none; }
.lg-nginx  { height: 19px; }   /* heavy caps: -10% */
.lg-sita   { height: 17px; }   /* heaviest mark in the row */

.logo-text {
    font-size: 1.0625rem;
    font-weight: 600;
}


/* Selected Work — numbered editorial entries */
.snippets-section {
    border-top: none;
    padding-top: 2rem;
    padding-bottom: 0;
}

.casestudy-label {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 550;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.snippet-grid {
    display: flex;
    flex-direction: column;
    counter-reset: work;
    position: relative;
}


.snippet {
    counter-increment: work;
    position: relative;
    padding: 1.75rem 0 1.75rem 4.25rem;
    border-top: 1px solid var(--border-color);
}

.snippet::before {
    content: counter(work, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.snippet-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.snippet h3 {
    margin: 0;
}

.snippet p {
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 0.875rem;
    max-width: 38em;
}

.snippet-bridge {
    color: var(--text-primary);
    font-style: italic;
    padding-left: 1.25rem;
    border-left: 1px solid var(--accent-light);
}

/* Contact — flat, no colored box */
.contact-box {
    max-width: 34em;
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box p {
    margin-bottom: 1.75rem;
}

.snippet-head h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.snippet-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    opacity: 0.85;
    flex: none;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 2rem;
}

.contact-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
}

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

.meta-icon {
    width: 17px;
    height: 17px;
    flex: none;
}

.contact-email {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    border-bottom-width: 2px;
    padding-bottom: 0.1rem;
}


/* Footer */
footer {
    padding: 0 0 2.5rem;
}

footer > .container {
    background-image: linear-gradient(var(--rule), var(--rule));
    background-repeat: no-repeat;
    background-position: top center;
    background-size: calc(100% - 2 * clamp(1.5rem, 9vw, 7rem)) 1px;
    padding-top: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.125rem;
}

.footer-left p {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.fine-print {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Contact form — revealed on demand, styled like the rest of the page */
[hidden] { display: none !important; }

button.btn {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-primary);
    border-radius: 0;
    padding: 0 0 0.2rem;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
}

.contact-toggle {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    border-bottom-width: 2px;
    padding-bottom: 0.1rem;
}

.contact-form {
    margin-top: 1.75rem;
    max-width: 34em;
}

.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 0.45rem 0;
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s;
}

.field textarea {
    resize: vertical;
    line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--accent);
}

.field ::placeholder {
    color: var(--text-secondary);
    opacity: 0.55;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-widget {
    margin: 0.25rem 0 1rem;
    min-height: 0;
}

.form-actions {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-top: 0.5rem;
}


.form-actions button[disabled] {
    opacity: 0.5;
    cursor: default;
}

.form-status {
    font-size: 0.9375rem;
    color: var(--accent);
}

.contact-done {
    margin-top: 1.5rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .about-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        border-bottom: 0;
    }
    .about-portrait {
        width: min(320px, 100%);
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-outline):not(:last-child) {
        display: none;
    }
    .hero {
        padding: 6.5rem 0 3.5rem;
    }
    .rule-accent {
        margin-bottom: 1.25rem;
    }
    .ghost-work {
        right: -80px;
        top: 30px;
        width: 220px;
        height: 220px;
    }
    .ghost-contact {
        right: -60px;
        bottom: 8px;
        width: 180px;
        height: 180px;
    }
    section {
        padding: 3.5rem 0;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* logos: dissolve the desktop rows into one tidy 2-col grid */
    .logo-row {
        display: contents;
    }
    .logo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1rem;
        justify-items: center;
        align-items: center;
    }
    .lg-nginx  { height: 16px; }
    .lg-cisco  { height: 26px; }
    .lg-paypal { height: 21px; }
    .lg-f5     { height: 25px; }
    .lg-att    { height: 22px; }
    .lg-threatstack { height: 20px; }
    .lg-sita   { height: 14px; }
    .lg-regus  { height: 27px; }
    .lg-lh { display: none; }
    .lg-lh-stacked { display: block; height: 40px; }
    .lg-un     { height: 26px; }
    .snippet {
        padding-left: 0;
        padding-top: 3.25rem;
    }
    .snippet::before {
        top: 1.5rem;
    }
    .footer-container {
        flex-direction: column;
    }
}

/* Business-context proposal: shared editorial width and section rhythm. */
.container {
    max-width: 1040px;
    padding-inline: 2rem;
}
section { scroll-margin-top: 6rem; padding: 0 0 4rem; }
section > .container {
    position: relative;
    padding-top: 4rem;
    background-image: none !important;
}
section > .container::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 2rem;
    height: 1px;
    background: var(--rule);
}
.nav-container { align-items: center; }
.nav-links { align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
.nav-links a::after { bottom: 0; }
.hero { padding: 8rem 0 2.5rem; }
.hero-content .hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    max-width: none;
}
.hero h1 { font-size: 3.75rem; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-content .hero-description { max-width: 44em; font-size: 1.1875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-bottom: 1.25rem; }
.service-nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--text-primary); text-decoration: none; font-size: 0.875rem;
    border: 0; transition: color 0.2s;
}
.service-nav a:hover { color: var(--accent); }
.service-nav a + a::before { content: "·"; color: var(--rule); margin-right: 1.5rem; }
.hero-actions .btn { display: inline-flex; align-items: center; min-height: 48px; padding-block: 0.5rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.logos-section { padding-bottom: 2.5rem; }
.logos-section > .container { padding-top: 1.5rem; }
.section-subtitle { text-align: left; margin-bottom: 1.5rem; font-size: 0.6875rem; letter-spacing: 0.12em; }
.featured-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem 2rem; align-items: center; }
.featured-logos .logo-item { justify-content: center; min-height: 36px; }
.featured-logos .logo-item > * { max-width: 100%; object-fit: contain; }
.featured-logos .lg-lh { display: none; }
.featured-logos .lg-lh-stacked { display: block; height: 36px; }
.section-heading h2 { margin-bottom: 1.25rem; }
.section-heading > p { max-width: 44em; line-height: 1.8; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.benefit-grid > div { padding-left: 1.25rem; border-left: 2px solid var(--accent-light); }
.benefit-grid dt { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.benefit-grid dd { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 2.5rem; align-items: start; }
.service-row { padding: 1.75rem 0; gap: 0; scroll-margin-top: 7rem; }
.service-details { min-width: 0; }
.service-title { align-items: flex-start; line-height: 1.5; }
.service-icon { margin-top: 0.15rem; color: var(--accent); }
.service-details .service-benefit { margin-top: 0.75rem; font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.service-scope { margin-top: 1rem; }
.service-scope summary { cursor: pointer; color: var(--text-primary); font-size: 0.875rem; padding: 0.5rem 0; }
.service-scope p { margin-top: 0.75rem; line-height: 1.8; }
.process-grid { gap: 3rem; margin-top: 2rem; }
.process-step p { font-size: 1rem; line-height: 1.8; }
.featured-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.work-example { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.work-example h3 { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.5; }
.work-example .snippet-icon { flex: none; margin-top: 0.2rem; }
.work-example p { margin-top: 1rem; font-size: 1rem; line-height: 1.8; }
.additional-experience { margin-top: 2.5rem; }
.secondary-logos { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.snippets-section { padding-bottom: 4rem; }
.biography-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.biography-copy h2 { margin-bottom: 1.5rem; }
.biography-copy p { margin-bottom: 1.25rem; line-height: 1.8; font-size: 1rem; }
.biography-copy p:last-child { margin-bottom: 0; }
.about-portrait { align-self: start; }
.contact-section > .container { padding-top: 4rem; }
.contact-box { max-width: 42em; }
.footer-container { max-width: 1040px; }
@media (max-width: 900px) {
    .hero h1 { font-size: 3.15rem; }
    .hero-break { display: none; }
    .hero h1 { max-width: 19ch; }
    .biography-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; }
    .process-grid { gap: 2rem; }
    .featured-logos { gap: 1.75rem 1rem; }
}
@media (max-width: 600px) {
    .container { padding-inline: 1.5rem; }
    section > .container::before { inset-inline: 1.5rem; }
    .hero { padding-top: 7rem; padding-bottom: 2rem; }
    .hero h1 { font-size: 2.5rem; max-width: 18ch; }
    .hero-content .hero-eyebrow { font-size: 0.6875rem; letter-spacing: 0.07em; }
    .hero-content .hero-description { font-size: 1.0625rem; }
    .service-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
    .service-nav a + a::before { content: none; }
    .hero-actions { gap: 1.5rem; }
    .hero-actions .btn { font-size: 0.9375rem; }
    .featured-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .featured-logos .logo-item { justify-content: center; }
    .featured-logos .logo-item:first-child, .featured-logos .logo-item:last-child { justify-content: center; }
    section { padding-bottom: 3rem; }
    section > .container, .contact-section > .container { padding-top: 3rem; }
    .logos-section > .container { padding-top: 1.5rem; }
    .benefit-grid, .services-list, .featured-work, .process-grid, .biography-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .services-list { gap: 0; }
    .section-heading h2 { font-size: 1.875rem; }
    .biography-layout .about-portrait { grid-row: 2; width: min(280px, 100%); }
    .secondary-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .secondary-logos .logo-item { justify-content: flex-start; }
    .additional-experience .section-subtitle { line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
    .hl-out, .hl-fill, .hl-amb { animation: none; stroke-dashoffset: 0; opacity: 1; transform: none; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== Captivation pass: anchor, contrast, proof, motion ===== */

/* Hero — portrait on the right, text on the left */
.hero { padding-bottom: 0; }
.hero-container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: end; }
.hero-content { padding-bottom: 3.5rem; }
.hero-portrait { position: relative; margin: 0; align-self: end; overflow: hidden; }
.hero-portrait img { display: block; width: 100%; height: auto; margin-top: -8%; mix-blend-mode: darken; }
.hero h1 { font-size: clamp(2.25rem, 3.8vw, 2.9rem); line-height: 1.12; text-wrap: balance; max-width: none; }

/* Large mark above the headline; the nav mark stays hidden until this one scrolls away */
.hero-logo { display: block; width: 84px; height: 84px; margin-bottom: 1.5rem; }
.hl-out { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hl-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
.hl-fill { fill: var(--accent); opacity: 0; animation: hl-fade 0.5s ease 1.3s forwards; }
.hl-amb { fill: var(--accent-light); opacity: 0; transform: translate(-6px, -6px); animation: hl-drop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards; }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-fade { to { opacity: 1; } }
@keyframes hl-drop { to { opacity: 1; transform: none; } }

.navbar .logo-hex { transition: width 0.35s ease, opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), margin 0.35s ease; }
.js-dock .navbar:not(.docked) .logo-hex { width: 0; opacity: 0; transform: scale(0.4); margin-right: -0.5rem; }

/* Services named inside the intro sentence */
.inline-service { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent-light); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.inline-service:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Contrast band — deep navy, picks up the portrait's jacket against the orange */
.band-dark { --band-bg: #13213A; --band-fg: #F6F3EC; --band-muted: #AEB9CB; background: var(--band-bg); color: var(--band-fg); padding: 5.5rem 0; margin-bottom: 4rem; }
.band-dark > .container { padding-top: 0; }
.band-dark > .container::before { content: none; }
.band-dark h2, .band-dark dt { color: var(--band-fg); }
.band-dark p, .band-dark dd { color: var(--band-muted); }
.band-dark .dot { color: var(--accent-light); }
.band-dark .benefit-grid > div { border-left-color: var(--accent); }
.band-dark + section > .container::before { content: none; }
.band-dark + section > .container { padding-top: 0; }
.logos-section { padding-bottom: 4rem; }

/* About — portrait moved to the hero, copy runs as one column */
.biography-layout { grid-template-columns: minmax(0, 1fr); }
.biography-copy { max-width: 44em; }

/* Process — numbered steps joined by a line */
.process-grid { counter-reset: step; position: relative; }
.process-step { counter-increment: step; padding-top: 3.5rem; }
.process-step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--bg-color); border: 1px solid var(--accent); color: var(--accent); font-family: 'Fraunces', Georgia, serif; font-size: 1.125rem; z-index: 1; }
.process-grid::before { content: ''; position: absolute; top: 1.25rem; left: 1.25rem; right: 0; height: 1px; background: var(--rule); }
.process-icon { display: none; }
.process-title { font-size: 1.25rem; }

/* Work cards — lift on hover */
.work-example { transition: border-color 0.25s; }
.work-example:hover { border-top-color: var(--accent); }

/* Contact — ghost hex actually visible */
.ghost-hex { color: #E9DDC4; opacity: 1; }

/* Scroll reveal (only when JS is running and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-container { grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; }
    .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 600px) {
    .hero-container { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hero-portrait { order: 0; width: min(280px, 85%); justify-self: center; margin: 0; }
    .hero-logo { width: 60px; height: 60px; margin-bottom: 1.25rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-content { padding-bottom: 2.5rem; }
    .band-dark { padding: 4rem 0; margin-bottom: 3rem; }
    .process-grid::before { top: 0; bottom: 0; left: 1.25rem; right: auto; width: 1px; height: auto; }
    .process-step { padding-top: 0; padding-left: 3.75rem; }
}


/* ===== Tighter rhythm: one gap between sections, shorter hero, all work in one grid ===== */
section { padding-bottom: 2.75rem; }
section > .container, .contact-section > .container { padding-top: 2.75rem; }
.hero { padding-top: 6.5rem; }
.hero-logo { width: 72px; height: 72px; margin-bottom: 1.25rem; }
.hero-content .hero-eyebrow { margin-bottom: 1rem; }
.hero-content { padding-bottom: 2.5rem; }
.logos-section { padding-bottom: 2.75rem; }
.band-dark { padding: 4rem 0; margin-bottom: 2.75rem; }
.snippets-section { padding-bottom: 2.75rem; }
.section-heading h2 { margin-bottom: 1rem; }
.benefit-grid, .services-list, .featured-work { margin-top: 2rem; }
.process-grid { margin-top: 1.75rem; }

.featured-work { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.work-example p { line-height: 1.7; }
.contact-section .rule-accent { display: none; }

@media (max-width: 900px) {
    .featured-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    section { padding-bottom: 2.25rem; }
    section > .container, .contact-section > .container { padding-top: 2.25rem; }
    .hero { padding-top: 5.5rem; }
    .band-dark { padding: 3rem 0; margin-bottom: 2.25rem; }
    .featured-work { grid-template-columns: minmax(0, 1fr); }
}

/* Selected work: orange icons, like the rest of the page */
.work-example .snippet-icon { color: var(--accent); opacity: 1; }

/* Process steps: same hover language as services and work */
.process-step::before { transition: background-color 0.25s, color 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.process-step .process-title { transition: color 0.2s; }
.process-step:hover::before { background: var(--accent); color: var(--bg-color); transform: scale(1.08); }
.process-step:hover .process-title { color: var(--accent); }

/* Tighter still: less air between sections and in running text */
section { padding-bottom: 2rem; }
section > .container, .contact-section > .container { padding-top: 2.5rem; }
.snippets-section, .logos-section { padding-bottom: 2rem; }
.band-dark { margin-bottom: 2rem; }
.section-heading > p, .benefit-grid dd, .process-step p, .service-scope p, .biography-copy p { line-height: 1.65; }
.process-grid { margin-top: 1.5rem; }

/* Selected work: topic label, shorter cards */
.work-tag { font-size: 0.6875rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 0.5rem !important; line-height: 1.4 !important; }
.work-example { padding-top: 1.25rem; }
.work-example p:not(.work-tag) { margin-top: 0.625rem; line-height: 1.6; }
.featured-work { gap: 1.75rem 2.5rem; }

@media (max-width: 600px) {
    section { padding-bottom: 1.75rem; }
    section > .container, .contact-section > .container { padding-top: 2rem; }
}

/* Selected work: icon sits with the topic label; label, title and text line up across each row */
.featured-work { grid-auto-rows: auto; }
.work-example { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.5rem; align-content: start; }
.work-example .work-tag { display: flex; align-items: center; gap: 0.5rem; margin: 0 !important; }
.work-example .work-tag .snippet-icon { width: 16px; height: 16px; margin: 0; }
.work-example h3 { display: block; margin: 0; }
.work-example p:not(.work-tag) { margin-top: 0.25rem; }

/* ===== Adapted from website-preview ===== */

/* Accessibility: skip link, main landmark */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: var(--bg-color); color: var(--text-primary); border: 1px solid var(--rule); }
.skip-link:focus { top: 16px; }
#main-content:focus { outline: none; }

/* Hero: one filled call to action */
.hero-actions .btn.hero-cta { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.625rem 1.25rem; border: 1px solid var(--text-primary); border-radius: 2px; background: var(--text-primary); color: var(--bg-color); font-weight: 500; transition: background-color 0.16s, border-color 0.16s; }
.hero-actions .btn.hero-cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg-color); }

/* Logos: the label reads as a small heading */
.logos-section .section-subtitle { font: 500 1.3125rem/1.3 'Fraunces', Georgia, serif; letter-spacing: -0.01em; text-transform: none; color: var(--text-primary); }

/* How we work: a tinted band breaks it from Services */
.process-section { background: var(--surface); padding-bottom: 3rem; }
.process-section > .container::before { content: none; }
.process-section + section > .container::before { content: none; }
.process-section > .container { padding-top: 3rem; }

/* About: lead paragraph, then three scannable facts */
.biography-copy { max-width: none; }
.biography-copy p { max-width: 65ch; }
.biography-copy p + p { margin-top: 1rem; }
.biography-lead { color: var(--text-primary) !important; font-size: 1.125rem; line-height: 1.7 !important; }
.biography-facts { display: grid; grid-template-columns: 2fr 1.25fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.biography-facts dt { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.biography-facts dd { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }

/* Contact form: boxed fields with plain labels */
.field label { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-primary); margin-bottom: 0.5rem; }
.field input, .field textarea { border: 1px solid var(--rule); border-radius: 2px; padding: 0.75rem; background: transparent; caret-color: var(--accent-ink); }
.field textarea { min-height: 144px; }
.field input:focus, .field textarea:focus { border-color: var(--accent-ink); outline: 2px solid var(--accent-ink); outline-offset: 0; }
.field ::placeholder { opacity: 0.8; }

@media (max-width: 900px) {
    .biography-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .biography-facts { grid-template-columns: 1fr; gap: 1.25rem; }
}
.biography-layout { gap: 1.5rem; }
.biography-facts { margin-top: 0; }

/* ===== Ways to work together: card layout (restored) ===== */
/* Services — large numerals replace small grey icons; accent rule on hover */
.services-list { counter-reset: svc; }
.service-row { counter-increment: svc; position: relative; display: block; transition: border-color 0.25s; }
.service-row::before { content: counter(svc, decimal-leading-zero); display: block; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 144; font-size: 2rem; font-weight: 450; line-height: 1; color: var(--accent); margin-bottom: 0.875rem; }
.service-row::after { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1); }
.service-row:hover::after { width: 100%; }
.services-list .service-icon { display: none; }
.service-title { font-size: 1.1875rem; }
.service-row { padding: 1.5rem 0; }
/* Services: one small +/× control per card instead of a repeated text link; the whole card toggles */
.service-row { position: relative; cursor: pointer; }
.service-scope { margin-top: 0; }
.service-scope summary { position: absolute; top: 1.5rem; right: 0; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; list-style: none; border: 1px solid var(--rule); border-radius: 50%; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.service-scope summary::-webkit-details-marker { display: none; }
.scope-toggle { position: relative; width: 12px; height: 12px; transition: transform 0.25s ease; }
.scope-toggle::before, .scope-toggle::after { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1.5px; margin-top: -0.75px; background: var(--accent); }
.scope-toggle::after { transform: rotate(90deg); }
.service-scope[open] .scope-toggle { transform: rotate(45deg); }
.service-row:hover .service-scope summary, .service-scope summary:focus-visible { border-color: var(--accent); background: var(--surface); }
.service-scope[open] > p:first-of-type { margin-top: 1rem; }
.service-title { padding-right: 2.75rem; }
.service-row { padding: 1.25rem 0; }
.service-row::before { margin-bottom: 0.5rem; }
.service-details .service-benefit { margin-top: 0.5rem; }

/* Opening: linked services followed by the business and technical remit. */
.hero-content .hero-description { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1rem; }
.contact-box .form-note { font-size: 0.875rem; margin-bottom: 1rem; }
@media (max-width: 600px) {
    .hero-content .hero-description { font-size: 1rem; }
}

/* About on navy: same band as "Know what matters", large faint mark, facts with amber icons */
.about-band { position: relative; overflow: hidden; background: #13213A; padding: 4.5rem 0; }
.about-band > .container { position: relative; padding-top: 0; }
.about-band > .container::before { content: none; }
.about-band + section > .container::before { content: none; }
.about-mark { position: absolute; right: -60px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%); opacity: 0.16; pointer-events: none; }
.about-mark path { fill: var(--accent); }
.about-mark .about-mark-amber { fill: var(--accent-light); }
.about-band h2 { color: #F6F3EC; }
.about-band .dot { color: var(--accent-light); }
.about-band .biography-copy { max-width: 46em; }
.about-band .biography-lead { font: 450 1.3125rem/1.55 'Fraunces', Georgia, serif !important; color: #F6F3EC !important; letter-spacing: -0.005em; }
.about-band .biography-copy p:not(.biography-lead) { color: #AEB9CB; }
.about-band .biography-facts { gap: 2.5rem; margin-top: 1.25rem; padding-top: 2rem; border-top: 1px solid rgba(246, 243, 236, 0.18); }
.about-band .biography-facts dt { color: #F6F3EC; }
.about-band .biography-facts dd { color: #AEB9CB; line-height: 1.6; }
.about-band .fact-icon { display: block; width: 22px; height: 22px; margin-bottom: 0.75rem; color: var(--accent-light); }
.about-band a:focus-visible { outline-color: var(--accent-light); }
@media (max-width: 900px) {
    .about-mark { width: 260px; height: 260px; right: -80px; }
}
@media (max-width: 600px) {
    .about-band { padding: 3.5rem 0; }
    .about-band .biography-lead { font-size: 1.1875rem !important; }
    .about-mark { width: 200px; height: 200px; right: -70px; top: 3rem; transform: none; }
    .about-band .biography-facts { gap: 1.5rem; }
}

/* Compact mobile navigation with persistent Hexent wordmark. */
.mobile-label { display: none; }
@media (max-width: 768px) {
 .navbar, .navbar.scrolled { padding: 8px 0; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: var(--bg-color); transition: none; }
 .navbar .logo, .navbar.scrolled .logo { font-size: 1.375rem; min-height: 44px; flex-shrink: 0; }

 .navbar .nav-links a { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 0 5px; white-space: nowrap; font-size: .875rem; }
 .navbar .nav-links a::after { bottom: 3px; }
 .navbar .desktop-label { display: none; }
 .navbar .mobile-label { display: inline; }
 .navbar .nav-container { padding-inline: 20px; }
 .hero { padding-top: calc(var(--mobile-header-height) + 24px + env(safe-area-inset-top, 0px)); }
 main section, .service-row { scroll-margin-top: calc(var(--mobile-header-height) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
 .hl-out, .hl-fill, .hl-amb { animation: none; stroke-dashoffset: 0; opacity: 1; transform: none; }
}

@media (max-width: 768px) {
 :root { --mobile-header-height: 60px; }
 .navbar .nav-container { display: flex; gap: 12px; padding-inline: 16px; }
 .navbar .logo, .navbar.scrolled .logo { width: auto; justify-content: flex-start; gap: 5px; font-size: 1.25rem; }
 .navbar .logo .wm { display: inline; }
 .navbar .logo .logo-hex { width: 22px; height: 22px; flex: 0 0 22px; opacity: 1; transform: none; margin: 0; transition: width 250ms ease-out, flex-basis 250ms ease-out, margin 250ms ease-out, opacity 250ms ease-out, transform 250ms ease-out; }
 .js-dock .navbar:not(.docked) .logo .logo-hex { width: 0; flex-basis: 0; opacity: 0; transform: scale(.4); margin-right: -5px; }
 .navbar .nav-links { display: flex; flex: 1; justify-content: space-between; gap: 4px; }
 .navbar .nav-links a { font-size: .8125rem; }
}

@media (max-width: 360px) {
 .navbar .nav-container { padding-inline: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
 .navbar .logo .logo-hex { transition: none; }
}

/* Compact contact form; preserve comfortable input sizes and visible labels. */
.contact-form { margin-top: 1.25rem; }
.contact-form .field { margin-bottom: .875rem; }
.contact-form .field label { margin-bottom: .375rem; }
.contact-form .field input, .contact-form .field textarea { padding: .625rem .75rem; font-size: 1rem; }
.contact-form .field input { min-height: 44px; }
.contact-form .field textarea { min-height: 104px; }
.contact-box .form-note { margin-bottom: .75rem; }
.contact-identity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.contact-form .cf-widget { margin: 0; }
.contact-form .cf-widget:has(iframe) { margin-bottom: .5rem; }
.contact-form .form-actions { flex-wrap: wrap; gap: .625rem 1rem; margin-top: .25rem; }
.form-status:empty { display: none; }
@media (max-width: 480px) {
 .contact-identity { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Scannable scope summaries inside the existing service disclosure. */
.service-scope-list { margin: 1rem 0 0; padding-left: 1.125rem; list-style: disc; color: var(--text-secondary); }
.service-scope-list li { padding-left: .125rem; }
.service-scope-list li + li { margin-top: .5rem; }
.service-details .service-benefit,
.service-scope-list li { font-size: 1.125rem; line-height: 1.6; }
@media (max-width: 600px) {
 .service-details .service-benefit,
 .service-scope-list li { font-size: 1.0625rem; }
}
