/* ==========================================================================
   Dexterity Security LLC
   Visual system: "engineering dossier" — ruled documents, measured type,
   graphite ground, raised panels for depth. No gradients-as-decoration.
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
    /* Ground — warm graphite, deliberately not blue-black */
    --ink-900: #0c0e11;
    --ink-850: #101317;
    --ink-800: #14181d;
    --ink-750: #191e24;
    --ink-700: #1f252c;

    /* Accent — blueprint steel. Not a framework default. */
    --steel: #5b8fc4;
    --steel-bright: #7cabdd;
    --steel-deep: #35618f;
    --steel-wash: rgba(91, 143, 196, 0.10);

    /* Brass — verification, seals, marks. Used sparingly. */
    --brass: #b8944a;
    --brass-bright: #d4ae62;

    /* Crimson — from the mark. Reserved for critical severity ONLY. */
    --crimson: #c04a35;

    /* Severity ramp — only ever used on findings */
    --sev-critical: #c04a35;
    --sev-high: #cc7a3f;
    --sev-medium: #b8944a;
    --sev-low: #6f8f7a;

    /* Text */
    --text-primary: #e6e3dc;
    --text-secondary: #9ba3ad;
    --text-muted: #6b737d;

    /* Rules — hairlines carry the whole system */
    --rule: rgba(230, 227, 220, 0.10);
    --rule-strong: rgba(230, 227, 220, 0.20);
    --rule-accent: rgba(91, 143, 196, 0.45);

    /* Type */
    --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Metrics */
    --container: 1160px;
    --measure: 66ch;
    --gutter: 2rem;
    --band-pad: 8.5rem;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --fast: 0.22s var(--ease);
    --slow: 0.7s var(--ease);
}

/* ==========================================================================
   2. 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-sans);
    font-weight: 400;
    background: var(--ink-900);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 1rem;
    counter-reset: sect;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--steel-deep);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--steel-bright);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Tabular figures wherever numbers carry meaning */
.doc__meta dd,
.ledger__value,
.proc__num,
.fnd__n,
.svc__num,
.cert__code {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   3. Atmosphere — grain + a single low horizon glow
   ========================================================================== */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(120% 62% at 50% -12%, rgba(91, 143, 196, 0.13) 0%, transparent 62%),
        linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 34%);
}

/* Fine print grain — kills the flat-digital feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   4. Typographic Primitives
   ========================================================================== */
.mono-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Hairline that draws itself in on reveal */
.rule {
    height: 1px;
    background: var(--rule);
    transform-origin: left;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem var(--gutter);
    background: rgba(12, 14, 17, 0.78);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-bottom: 1px solid var(--rule);
}

.nav__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__icon {
    width: 34px;
    height: 34px;
    display: flex;
}

.logo__icon img {
    width: 100%;
    height: 100%;
}

.logo__text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.14rem;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo__text span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 450;
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color var(--fast), border-color var(--fast);
}

.nav__links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--rule-accent);
}

.nav__links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--steel);
}

.nav__cta {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--rule-strong);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.nav__cta:hover {
    background: var(--steel);
    border-color: var(--steel);
    color: #0c0e11;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
    background: none;
    border: none;
    margin-left: auto;
}

.nav__toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform var(--fast), opacity var(--fast);
}

.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 1px;
    transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.btn--primary {
    background: var(--steel);
    color: #0a0c0f;
    border-color: var(--steel);
}

.btn--primary:hover:not(:disabled) {
    background: var(--steel-bright);
    border-color: var(--steel-bright);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--rule-strong);
}

.btn--secondary:hover {
    border-color: var(--steel);
    color: var(--steel-bright);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 9rem var(--gutter) 5rem;
    position: relative;
    border-bottom: 1px solid var(--rule);
}

.hero__container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4.5rem;
    align-items: center;
}

/* --- Specimen panel absent (commented out in index.html) ---------------
   Collapse to one measured column, still anchored to the container's left
   edge so the hero stays aligned with every section below. Restoring the
   markup restores the two-column layout with no CSS change. */
.hero:not(:has(.hero__visual)) {
    min-height: 76svh;
}

.hero__container:not(:has(.hero__visual)) {
    grid-template-columns: minmax(0, 1fr);
}

.hero__container:not(:has(.hero__visual)) .hero__content {
    max-width: 46rem;
}

.hero__container:not(:has(.hero__visual)) .hero__title {
    font-size: clamp(2.5rem, 5.6vw, 4.25rem);
}

.hero__container:not(:has(.hero__visual)) .hero__description {
    font-size: 1.12rem;
    max-width: 56ch;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.7rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--rule-accent);
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--steel-bright);
}

.hero__badge svg {
    width: 13px;
    height: 13px;
    stroke-width: 1.6;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.9rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: #f2efe8;
    margin-bottom: 1.6rem;
    text-wrap: balance;
}

/* Emphasis: italic serif over a drawn rule — not a gradient */
.hero__title .highlight {
    font-style: italic;
    font-weight: 500;
    color: #fff;
    background-image: linear-gradient(var(--steel), var(--steel));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% 2px;
    padding-bottom: 0.06em;
}

.hero__description {
    font-size: 1.06rem;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: 2.4rem;
}

.hero__cta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* --- Hero document panel — the memorable object ------------------------- */
.hero__visual {
    position: relative;
}

.doc {
    position: relative;
    background:
        linear-gradient(150deg, var(--ink-750) 0%, var(--ink-850) 100%);
    border: 1px solid var(--rule-strong);
    padding: 1.9rem 1.9rem 1.6rem;
    box-shadow:
        0 30px 70px -30px rgba(0, 0, 0, 0.85),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Stacked-sheets illusion behind the panel */
.doc::before,
.doc::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--rule);
    background: var(--ink-850);
    z-index: -1;
}

.doc::before { transform: translate(8px, 8px); opacity: 0.6; }
.doc::after  { transform: translate(16px, 16px); opacity: 0.3; }

.doc__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.doc__id { color: var(--text-muted); }

.doc__cls {
    color: var(--brass-bright);
    border: 1px solid rgba(184, 148, 74, 0.4);
    padding: 0.15rem 0.45rem;
}

.doc__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #f2efe8;
    margin-top: 1.25rem;
    line-height: 1.2;
}

.doc__sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.doc__meta {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
    display: grid;
    gap: 0.62rem;
}

.doc__meta > div {
    display: grid;
    grid-template-columns: 6.4rem 1fr;
    align-items: baseline;
    gap: 0.75rem;
}

.doc__meta dt {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.doc__meta dd {
    font-size: 0.86rem;
    color: var(--text-primary);
}

/* Findings strip — the only place severity colour is allowed */
.doc__findings {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.fnd {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.55rem;
    border-top: 2px solid currentColor;
}

.fnd__n {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: currentColor;
}

.fnd__l {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fnd--critical { color: var(--sev-critical); }
.fnd--high     { color: var(--sev-high); }
.fnd--medium   { color: var(--sev-medium); }
.fnd--low      { color: var(--sev-low); }

/* Verification stamp */
.doc__stamp {
    position: absolute;
    right: -14px;
    bottom: -20px;
    width: 96px;
    height: 96px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1.5px solid rgba(184, 148, 74, 0.55);
    border-radius: 50%;
    transform: rotate(-13deg);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    line-height: 1.45;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--brass-bright);
    background: rgba(12, 14, 17, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 0 0 4px rgba(12, 14, 17, 0.82);
}

.doc__stamp::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(184, 148, 74, 0.3);
    border-radius: 50%;
}

/* ==========================================================================
   8. Ledger strip (assessment drivers)
   ========================================================================== */
.trust {
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--rule);
    background: var(--ink-850);
}

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

.trust__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.7rem;
}

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

.trust__item {
    padding: 0 1.6rem;
    border-left: 1px solid var(--rule);
}

.trust__item:first-child {
    padding-left: 0;
    border-left: none;
}

.trust__value {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.trust__item-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ==========================================================================
   9. Section chrome
   ========================================================================== */
.section {
    padding: var(--band-pad) var(--gutter);
}

.section__container {
    max-width: var(--container);
    margin: 0 auto;
}

/* Left-aligned header with a numbered reference and a rule to the edge */
.section__header {
    margin-bottom: 4rem;
}

.section__tag {
    counter-increment: sect;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 500;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1.5rem;
}

.section__tag::before {
    content: '\00a7 ' counter(sect, decimal-leading-zero);
    color: var(--text-muted);
}

.section__tag::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: #f2efe8;
    max-width: 22ch;
    text-wrap: balance;
}

.section__subtitle {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 58ch;
    margin-top: 1.05rem;
}

/* ==========================================================================
   10. Principles (why)
   ========================================================================== */
.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
}

.why-card {
    padding: 2.2rem 2rem 0.5rem;
    border-left: 1px solid var(--rule);
    position: relative;
}

.why-card:first-child {
    padding-left: 0;
    border-left: none;
}

.why-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 46px;
    height: 2px;
    background: var(--steel);
    transition: width var(--slow);
}

.why-card:first-child::before { left: 0; }

.why-card:hover::before { width: 100%; }

.why-card__icon {
    width: 26px;
    height: 26px;
    margin-bottom: 1.4rem;
}

.why-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--steel);
    stroke-width: 1.4;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin-bottom: 0.7rem;
    color: #f2efe8;
}

.why-card p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: var(--text-secondary);
}

/* ==========================================================================
   11. Services — ruled index, not a card grid
   ========================================================================== */
.services {
    background: var(--ink-850);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    counter-reset: svc;
}

.service-card {
    counter-increment: svc;
    position: relative;
    padding: 2rem 0 2rem 3.4rem;
    border-top: 1px solid var(--rule);
    transition: border-color var(--fast);
}

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

/* Entry number in the margin */
.service-card::before {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color var(--fast);
}

.service-card:hover::before {
    color: var(--steel-bright);
}

.service-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.service-card__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0.32rem;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--steel);
    stroke-width: 1.4;
    opacity: 0.85;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.25;
    color: #f2efe8;
}

.service-card__subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.service-card__description {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

/* Feature list as ruled tags — no repeated green checkmarks */
.service-card__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-card__features li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--rule);
    font-size: 0.775rem;
    line-height: 1.4;
    color: var(--text-secondary);
    transition: border-color var(--fast), color var(--fast);
}

.service-card:hover .service-card__features li {
    border-color: var(--rule-strong);
}

.service-card__features li svg {
    width: 10px;
    height: 10px;
    stroke: var(--steel);
    stroke-width: 2.4;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ==========================================================================
   12. Process — raised panel
   ========================================================================== */
.process {
    background: var(--ink-900);
}

/* The timeline is a raised panel on the section ground — an object, not a
   colour break. Stays inside the palette; depth comes from edge and shadow. */
.process__timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    position: relative;
    padding: 2.5rem 2.4rem 2.4rem;
    background: linear-gradient(168deg, var(--ink-750) 0%, var(--ink-800) 100%);
    border: 1px solid var(--rule-strong);
    box-shadow:
        0 26px 60px -30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Light catching the top edge, falling off toward the lower right */
.process__timeline::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 26%),
        radial-gradient(130% 80% at 100% 100%, rgba(0, 0, 0, 0.22) 0%, transparent 62%);
}

.process-step {
    padding: 1.4rem 1.15rem 0 0;
    border-top: 1px solid var(--rule-strong);
    border-right: 1px solid var(--rule);
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    border-right: none;
    padding-right: 0;
}

/* Measurement tick below the rule */
.process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 1.5px;
    height: 11px;
    background: var(--steel);
}

.process-step__number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    color: var(--steel-bright);
    margin-bottom: 0.85rem;
}

/* Presentational leading zero — steps are single digits */
.process-step__number::before {
    content: 'STEP 0';
    color: var(--text-muted);
    margin-right: 0.1em;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.008em;
    line-height: 1.25;
    margin-bottom: 0.45rem;
    color: #f2efe8;
}

.process-step p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   13. Credentials — a register, not cards
   ========================================================================== */
.credentials {
    background: var(--ink-900);
}

.credentials__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4.5rem;
    align-items: start;
}

.credentials__intro h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
    color: #f2efe8;
}

.credentials__intro p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule-strong);
}

.cert-item {
    display: grid;
    grid-template-columns: 4.6rem 1fr auto;
    align-items: baseline;
    gap: 1.2rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--rule);
    transition: background var(--fast);
}

.cert-item:hover {
    background: rgba(91, 143, 196, 0.045);
}

.cert-item__badge {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    color: var(--text-muted);
}

.cert-item:first-child .cert-item__badge {
    color: var(--brass-bright);
}

.cert-item__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.008em;
    color: var(--text-primary);
}

.cert-item:first-child .cert-item__name {
    font-size: 1.1rem;
}

.cert-item__org {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
}

.expertise {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--rule);
}

.expertise__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.expertise__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.expertise__tag {
    padding: 0.32rem 0.72rem;
    border: 1px solid var(--rule);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: border-color var(--fast), color var(--fast);
}

.expertise__tag:hover {
    border-color: var(--rule-accent);
    color: var(--steel-bright);
}

/* ==========================================================================
   14. Experience
   ========================================================================== */
.experience {
    background: var(--ink-850);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.experience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
}

.exp-card {
    padding: 2rem 0;
    border-top: 1px solid var(--rule);
    position: relative;
}

.exp-card--highlight {
    border-top-color: var(--brass);
}

.exp-card--highlight::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brass);
    opacity: 0.5;
}

.exp-card__icon {
    width: 22px;
    height: 22px;
    margin-bottom: 1.1rem;
}

.exp-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
    stroke-width: 1.4;
}

.exp-card--highlight .exp-card__icon svg {
    stroke: var(--brass-bright);
}

.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin-bottom: 0.7rem;
    color: #f2efe8;
}

.exp-card p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 46ch;
}

/* ==========================================================================
   15. FAQ — hairline rows
   ========================================================================== */
.faq {
    background: var(--ink-900);
}

.faq__grid {
    max-width: 820px;
    border-top: 1px solid var(--rule-strong);
}

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

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: -0.008em;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: color var(--fast);
}

.faq-item__question:hover,
.faq-item.active .faq-item__question {
    color: #f2efe8;
}

.faq-item__question span {
    flex: 1;
}

.faq-item__chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 0.35rem;
    stroke-width: 1.6;
    color: var(--text-muted);
    transition: transform var(--fast), color var(--fast);
}

.faq-item.active .faq-item__chevron {
    transform: rotate(180deg);
    color: var(--steel);
}

.faq-item__answer {
    overflow: hidden;
    transition: height 0.32s var(--ease);
    height: 0;
}

.faq-item__answer p {
    padding: 0 3rem 1.5rem 0;
    border-left: 1px solid var(--rule-accent);
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.75;
    max-width: 62ch;
}

/* ==========================================================================
   16. Contact
   ========================================================================== */
.contact {
    background: var(--ink-850);
    border-top: 1px solid var(--rule);
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4.5rem;
    align-items: start;
}

.contact__info h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
    color: #f2efe8;
}

.contact__info > p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    max-width: 46ch;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule-strong);
}

.contact-method {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
}

.contact-method__icon {
    width: 18px;
    height: 18px;
}

.contact-method__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
    stroke-width: 1.4;
}

.contact-method__label {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-method__value {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 0.1rem;
}

.contact-method__value a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--rule-accent);
    padding-bottom: 1px;
    transition: color var(--fast), border-color var(--fast);
}

.contact-method__value a:hover {
    color: var(--steel-bright);
    border-bottom-color: var(--steel-bright);
}

/* --- Form: underline fields, no boxes ---------------------------------- */
.contact-form {
    padding: 2.4rem 2.3rem 2.2rem;
    background: var(--ink-800);
    border: 1px solid var(--rule-strong);
    position: relative;
}

/* Corner ticks — a drafting detail */
.contact-form::before,
.contact-form::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--steel);
    opacity: 0.55;
}

.contact-form::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.contact-form::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin-bottom: 0.35rem;
    color: #f2efe8;
}

.contact-form > p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.55rem 0 0.55rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-strong);
    border-radius: 0;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--steel);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #4d545d;
}

.form-group textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.6;
}

/* Custom select chevron */
.form-group select {
    cursor: pointer;
    padding-right: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b737d' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    background-size: 14px;
}

.form-group select option {
    background: var(--ink-800);
    color: var(--text-primary);
}

.form-submit {
    width: 100%;
    margin-top: 0.6rem;
    min-height: 48px;
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.form-group--honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.turnstile-container {
    min-height: 65px;
    margin: 0.5rem 0 1.1rem;
}

.turnstile-container--compact {
    min-height: 140px;
}

.form-note {
    margin: 0 0 0.9rem;
    padding-left: 0.8rem;
    border-left: 1px solid var(--rule-strong);
    color: var(--text-muted);
    font-size: 0.755rem;
    line-height: 1.55;
}

.form-status {
    min-height: 1.5rem;
    margin: 0 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
}

.form-status:empty {
    min-height: 0;
    margin: 0;
}

.form-status--success { color: var(--sev-low); }
.form-status--error   { color: var(--crimson); }

/* ==========================================================================
   17. Footer
   ========================================================================== */
.footer {
    background: var(--ink-900);
    padding: 3rem var(--gutter);
    border-top: 1px solid var(--rule);
}

.footer__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer__logo span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.footer__text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.footer__links a {
    font-size: 0.83rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--fast);
}

.footer__links a:hover {
    color: var(--steel-bright);
}

/* ==========================================================================
   18. Legal pages
   ========================================================================== */
.legal-content {
    max-width: 72ch;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin-top: 2.6rem;
    margin-bottom: 0.7rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
    color: #f2efe8;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.6rem;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.legal-content ul li {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.3rem;
    line-height: 1.75;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 1px;
    background: var(--steel);
}

.legal-page .section__header {
    max-width: 72ch;
}

/* ==========================================================================
   19. Reveal animation
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--slow), transform var(--slow);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Orchestrated hero entrance */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@keyframes settle {
    from { opacity: 0; transform: translateY(26px) rotate(-0.6deg); }
    to   { opacity: 1; transform: none; }
}

.hero__badge,
.hero__title,
.hero__description,
.hero__cta {
    animation: rise 0.85s var(--ease) backwards;
}

.hero__badge       { animation-delay: 0.05s; }
.hero__title       { animation-delay: 0.15s; }
.hero__description { animation-delay: 0.27s; }
.hero__cta         { animation-delay: 0.39s; }

.hero__visual {
    animation: settle 1.05s var(--ease) 0.3s backwards;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   20. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    :root { --band-pad: 6.5rem; }

    .process__timeline {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 1.9rem;
        padding: 2.1rem 2rem;
    }

    .process-step:nth-child(4n),
    .process-step:last-child {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 968px) {
    .hero {
        padding-top: 7.5rem;
        min-height: 0;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero__description { max-width: none; }

    .doc__stamp {
        right: 4px;
        bottom: -26px;
    }

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

    .why-card {
        padding: 1.8rem 0 1.6rem;
        border-left: none;
        border-top: 1px solid var(--rule);
    }

    .why-card:first-child { border-top: none; }

    .why__grid { border-top: none; }

    .why-card::before { display: none; }

    .credentials__layout,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services__grid,
    .experience__grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 1.35rem;
        --band-pad: 5rem;
    }

    .nav__toggle { display: flex; }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(12, 14, 17, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid var(--rule);
        margin-left: 0;
    }

    .nav__links.active { display: flex; }

    .nav__links a {
        display: block;
        padding: 0.9rem var(--gutter);
        border-bottom: none;
    }

    .nav__cta { display: none; }

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

    .trust__item {
        padding: 0 1rem;
    }

    .trust__item:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }

    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.6rem 1.4rem;
        row-gap: 1.6rem;
    }

    .process-step:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .doc {
        padding: 1.5rem 1.4rem 1.3rem;
    }

    .doc::before,
    .doc::after { display: none; }

    .doc__findings {
        gap: 0.35rem;
    }

    .doc__stamp {
        width: 78px;
        height: 78px;
        font-size: 0.53rem;
        right: -4px;
    }

    .contact-form {
        padding: 1.8rem 1.5rem;
    }

    .faq-item__answer p {
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .hero__title { font-size: 2.15rem; }

    .cert-item {
        grid-template-columns: 4.2rem 1fr;
        row-gap: 0.15rem;
    }

    .cert-item__org {
        grid-column: 2;
        text-align: left;
    }

    .doc__meta > div {
        grid-template-columns: 5.4rem 1fr;
    }

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

    .process-step {
        border-right: none;
        padding-right: 0;
    }

    .footer__container {
        justify-content: flex-start;
    }

    .footer__links { gap: 1rem 1.4rem; }
}
