@font-face
{
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}
@font-face
{
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face
{
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
}

.enterprise
{
    /* Dutchy Design System tokens (dutchy.design): warm neutrals, Dutch orange, zero radius, borders instead of shadows.
          Layout: utility strip + main bar, one 88rem column, tight 2px grids, full colour blocks.
          Colour code: orange = business layer and primary action, dark block = technical layer.
          Primary uses the Dutchy 1.0.0 swatch with dark text for contrast. */
    --background: hsl(40 30% 97%);
    --foreground: hsl(25 20% 6%);
    --primary: #f97316;
    --muted: hsl(40 20% 94%);
    --muted-foreground: hsl(25 10% 40%);
    --border: hsl(25 20% 88%);
    --on-dark-muted: hsl(40 30% 97% / 0.7);
    --on-dark-line: hsl(40 30% 97% / 0.2);
    --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --gutter: clamp(1rem, 3vw, 2rem);
    --band: clamp(3rem, 6vw, 5rem);
    --max: 88rem;
    --control-height: 3rem;
    --util-h: 2.25rem;
    --bar-h: 4.5rem;
    --bar-border: 4px;
    --shell-h: calc(var(--util-h) + var(--bar-h) + var(--bar-border));
    color-scheme: light;
    --headerColor: var(--foreground);
    --bodyTextColor: var(--foreground);
    --bodyTextColorLight: var(--muted-foreground);
}

.enterprise *, .enterprise *::before, .enterprise *::after
{
    box-sizing: border-box;
    border-radius: 0;
}

.enterprise
{
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.enterprise [id]
{
    scroll-margin-top: calc(var(--bar-h) + 1.5rem);
}
[hidden]
{
    display: none !important;
}
a
{
    color: inherit;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}
a:hover
{
    text-decoration-thickness: 4px;
}
:focus-visible
{
    outline: 2px solid var(--foreground);
    outline-offset: 2px;
}
.band--primary :focus-visible, .path--primary:focus-visible, .shell__cta:focus-visible
{
    outline-color: var(--foreground);
}
p
{
    margin: 0 0 1em;
}
p:last-child
{
    margin-bottom: 0;
}

/* Type: Space Grotesk bold uppercase for structure, Inter for reading, JetBrains Mono for labels and code */
.enterprise :is(.head, .lead, .strip-band, .band) :is(h1, h2, h3)
{
    font-family: var(--font-display);
    font-weight: 700 !important;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.enterprise :where(.band) h2:where(:not(.row__title))
{
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
}
.enterprise :where(.band) h2:where(:not(.row__title))::after
{
    content: "";
    display: block;
    width: 6rem;
    height: 0.5rem;
    margin-top: 1rem;
    background: var(--primary);
}
.split h2
{
    font-size: clamp(1.625rem, 2.6vw, 2.25rem);
}
/* Proper names keep the case their owners gave them */
.enterprise :is(.head, .band) .keep,
.enterprise :is(.tile--product, .tile--link, .row--work) :is(h2, h3)
{
    text-transform: none;
}

.wrap
{
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.sr
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.muted
{
    color: var(--muted-foreground);
}
.small
{
    font-size: 0.875rem;
}
.label, .minor
{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}
.label
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.label::before
{
    content: "";
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    background: var(--primary);
}
.minor
{
    margin: 0 0 0.625rem;
    color: var(--muted-foreground);
}
.plain
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}
.ic
{
    width: 1.25em;
    height: 1.25em;
    flex: none;
}
.link
{
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.link .ic
{
    width: 1em;
    height: 1em;
}
.dot
{
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.1em;
    background: var(--primary);
}

/* Shell: dark utility strip (by audience) above the main bar (by topic) */
.shell
{
    position: sticky;
    flex: none;
    top: calc(-1 * var(--util-h));
    z-index: 20;
    background: var(--background);
}
.util
{
    height: var(--util-h);
    background: var(--foreground);
    color: var(--background);
}
.util .wrap
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}
.util__note, .util__link
{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.util__note
{
    color: var(--on-dark-muted);
}
.util__links
{
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}
.util__link
{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}
.util__link .ic
{
    width: 1.1em;
    height: 1.1em;
}
.util__link:hover, .util__link[aria-current="page"]
{
    color: var(--primary);
}
.shell__main
{
    border-bottom: var(--bar-border) solid var(--primary);
}
.shell__bar
{
    display: flex;
    align-items: stretch;
    height: var(--bar-h);
}
.shell__name
{
    display: flex;
    align-items: baseline;
    align-self: center;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
}
.shell__nav
{
    display: flex;
    align-items: stretch;
}
.shell__link
{
    display: flex; align-items: center; gap: 0.375rem; padding: 0 1rem;
    border: 0; background: none; color: var(--muted-foreground); cursor: pointer;
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap;
}
.shell__link .ic
{
    width: 1em;
    height: 1em;
}
.shell__link:hover
{
    color: var(--foreground);
}
.shell__link[aria-current="page"]
{
    color: var(--foreground);
    box-shadow: inset 0 -4px 0 var(--foreground);
}
.shell__link[aria-expanded="true"]
{
    background: var(--muted);
    color: var(--foreground);
}
.shell__cta
{
    align-self: center;
    margin-left: 1rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: var(--foreground);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
}
.shell__cta:hover
{
    background: var(--foreground);
    color: var(--background);
}
.shell__menu
{
    display: none;
    align-items: center;
    margin-left: auto;
    padding: 0 0.5rem;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}
.mega
{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--background);
    border-bottom: 4px solid var(--foreground);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.mega .wrap
{
    padding-block: 2.5rem 2rem;
}
.mega__cols
{
    display: grid;
    gap: 2rem;
}
.mega__cols--fit
{
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
/* Two-line headings must not push their rule out of line with the neighbours */
.mega__cols--fit h3
{
    display: flex;
    align-items: flex-end;
    min-height: 3.5rem;
}
.mega__cols--3
{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mega h3
{
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--foreground);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.mega h3 a, .mega li a
{
    text-decoration: none;
}
.mega h3 a:hover, .mega li a:hover
{
    text-decoration: underline;
}
.mega ul
{
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-weight: 500;
    color: var(--muted-foreground);
}
.mega li a:hover
{
    color: var(--foreground);
}
.mega__foot
{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Page head */
.head
{
    padding: 1.5rem 0 clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--border);
}
.head h1
{
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
}
.lede
{
    margin: 1.5rem 0 0;
    max-width: 52ch;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted-foreground);
}
.head__meta
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 2.5rem;
}
.head__actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Bands */
.band
{
    padding: var(--band) 0;
    border-top: 1px solid var(--border);
}
.band--first
{
    border-top: 0;
}
.band--muted
{
    background: var(--muted);
}
.band--primary
{
    background: var(--primary);
    border-top: 0;
}
.sec-head
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.5rem;
}
.sec-head--stack
{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.sec-head p
{
    margin: 0;
    max-width: 60ch;
}
.sec-head > .link
{
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--foreground);
    text-decoration: none;
}
.sec-head > .link:hover
{
    background: var(--foreground);
    color: var(--background);
}
.split
{
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 2rem;
    align-items: start;
}
.split > div:first-child > h2 + p
{
    margin-top: 1.25rem;
}
.cols-2
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.prose
{
    max-width: 62ch;
}
.statement, .terms__rule
{
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary);
    max-width: 26ch;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.stack
{
    display: grid;
    gap: 2px;
}

/* Home: split hero with two colour blocks, one per audience */
.lead
{
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    border-bottom: 1px solid var(--border);
}
.lead__copy
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.lead h1
{
    margin: 0;
    font-size: clamp(3rem, 7.6vw, 7.25rem);
    letter-spacing: -0.05em;
    line-height: 0.86;
}
.hl
{
    display: inline-block;
    margin: 0.12em 0 0 -0.1em;
    padding: 0.02em 0.1em 0;
    background: var(--primary);
    line-height: 0.92;
}
.lead__text
{
    margin: 0;
    max-width: 34rem;
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted-foreground);
}
.paths
{
    display: grid;
    grid-template-rows: 1fr 1fr;
}
.path
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    padding: clamp(1.5rem, 3vw, 3rem);
    text-decoration: none;
}
.path--primary
{
    background: var(--primary);
    color: var(--foreground);
}
.path--dark
{
    background: var(--foreground);
    color: var(--background);
}
.path__top
{
    display: flex;
    justify-content: space-between;
    font-size: 1.75rem;
}
.path__body
{
    display: grid;
    gap: 0.625rem;
}
.path__who
{
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
}
.path__what
{
    max-width: 32ch;
    font-size: 1.0625rem;
    font-weight: 500;
}
.path__detail
{
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.path--dark .path__detail
{
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--on-dark-muted);
}
.path--dark .path__detail::before
{
    content: "$ ";
    color: var(--primary);
}
.path:hover .path__who
{
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 0.12em;
    text-decoration-color: currentColor;
}
.strip-band
{
    padding: 0;
    border-bottom: 1px solid var(--border);
}
.strip
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.strip__col
{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    border-left: 1px solid var(--border);
}
.strip__col:first-child
{
    padding-left: 0;
    border-left: 0;
}
.strip__col:last-child
{
    padding-right: 0;
}
.strip__col h2
{
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.strip__col h2::before
{
    content: "";
    flex: none;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary);
}
.strip__col:nth-child(2) h3::before
{
    background: var(--foreground);
}
.strip__col:nth-child(3) h3::before
{
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--foreground);
}
.strip__col h2 a
{
    text-decoration: none;
}
.strip__col h2 a:hover
{
    text-decoration: underline;
}
.strip__col p
{
    margin: 0;
    color: var(--muted-foreground);
}
.strip__col .plain
{
    margin-top: 0.75rem;
}

/* Tight grid of tiles */
.tiles
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 2px;
}
.tile
{
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 12rem;
    padding: 1.5rem;
    background: var(--background);
    box-shadow: 0 0 0 2px var(--border);
    color: inherit;
    text-decoration: none;
}
.tile h3
{
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.tile p
{
    margin: 0;
    max-width: 46ch;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}
.tile__top
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    color: var(--muted-foreground);
}
.tile__top .label
{
    color: var(--foreground);
}
.tile--link:hover
{
    background: #fff;
    box-shadow: 0 0 0 2px var(--foreground);
    position: relative;
}
.tile--link:hover .tile__top
{
    color: var(--foreground);
}
.tile__foot
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.tile--product .tile__foot
{
    flex-direction: column;
    align-items: flex-start;
}
.tile .tile__tech
{
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
}
.tile .tile__mods
{
    font-size: 0.875rem;
    color: var(--foreground);
}
.tile__links
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
}
.tile__links .link
{
    color: var(--foreground);
    text-decoration: underline var(--primary) 2px;
    font-weight: 700;
}
.tile:target
{
    box-shadow: 0 0 0 2px var(--foreground), inset 0 6px 0 var(--primary);
    position: relative;
}

/* Status tags */
.tag
{
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.625rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
:where(.band--muted) .tag
{
    background: var(--border);
}
.tag--open
{
    background: transparent;
    color: var(--foreground);
    box-shadow: inset 0 0 0 2px var(--foreground);
}

/* Rows */
.rows
{
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--foreground);
}
.row
{
    display: grid;
    gap: 0.5rem 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.row h3, .row__title
{
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}
.row__title::after, .enterprise .topic h2::after, .enterprise .closing h2::after
{
    content: none;
}
.row h3 a
{
    text-decoration: none;
}
.row h3 a:hover
{
    text-decoration: underline;
}
.row p
{
    margin: 0;
}
.row--3
{
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
}
.row--2
{
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}
.row--work
{
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
}
.rows--tight .row
{
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 0;
    font-weight: 600;
}
.rows--tight .small
{
    font-weight: 400;
}
.rows--tight a
{
    text-decoration: none;
}
.rows--tight a:hover
{
    text-decoration: underline;
}
.rows--numbered
{
    counter-reset: stage;
}
.row--stage
{
    counter-increment: stage;
    grid-template-columns: 2rem minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
    align-items: start;
}
.row--stage::before
{
    content: counter(stage);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
}

/* Buttons */
.btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: var(--control-height);
    padding: 0.625rem 2rem;
    border: 2px solid var(--foreground);
    background: var(--foreground);
    color: var(--background);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover
{
    background: transparent;
    color: var(--foreground);
}
.btn--outline
{
    background: transparent;
    color: var(--foreground);
}
.btn--outline:hover
{
    background: var(--foreground);
    color: var(--background);
}
.closing
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}
.closing h2
{
    max-width: 12ch;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.9;
}
.closing__actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Services: one line of work shown as a business layer and a technical layer */
.svc
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}
.svc__name h2
{
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}
.outcome
{
    margin: 1.5rem 0 1rem;
    max-width: 30ch;
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.4;
}
.layer
{
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-left: 4px solid var(--primary);
    background: var(--background);
}
.layer--tech
{
    border-color: var(--foreground);
    background: var(--foreground);
    color: var(--background);
}
.layer__title
{
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.layer--tech .layer__title
{
    border-color: var(--on-dark-line);
    color: var(--primary);
}
.layer--tech .minor
{
    margin-top: 1.5rem;
    color: var(--on-dark-muted);
}
.caps
{
    display: grid;
    gap: 0.875rem;
    margin: 0;
}
.caps dt
{
    font-weight: 700;
}
.caps dd
{
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}
.caps--3
{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}
.caps--2
{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}
.steps
{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 2px;
    counter-reset: step;
}
.steps li
{
    counter-increment: step;
    padding: 1.5rem;
    background: var(--background);
    box-shadow: 0 0 0 2px var(--border);
}
.steps li::before
{
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 2rem;
    background: var(--primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}
.steps h3
{
    margin: 0 0 0.625rem;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.steps p
{
    margin: 0 0 0.5rem;
}
.terms
{
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: start;
    margin-top: 3rem;
}
.terms__rule
{
    margin-bottom: 0;
}
.chips
{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}
.chips li
{
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Product filter and tabs */
.filter
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.filter__btn
{
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
}
.filter__btn:hover
{
    border-color: var(--foreground);
    color: var(--foreground);
}
.filter__btn[aria-pressed="true"]
{
    border-color: var(--foreground);
    background: var(--foreground);
    color: var(--background);
}
.filter__count
{
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}
.tabbar
{
    border-bottom: 2px solid var(--border);
}
.tabs
{
    display: flex;
}
.tab
{
    margin-bottom: -2px;
    padding: 1rem 1.5rem;
    border: 0;
    border-bottom: 4px solid transparent;
    background: none;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
}
.tab:hover
{
    color: var(--foreground);
}
.tab[aria-selected="true"]
{
    border-bottom-color: var(--primary);
    color: var(--foreground);
}

/* Tables and code */
.table-wrap
{
    padding: 0;
    overflow-x: auto;
    border: 2px solid var(--border);
}
.table-wrap table
{
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.table-wrap :is(th, td)
{
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.table-wrap tr:last-child > *
{
    border-bottom: 0;
}
.table-wrap thead th
{
    background: var(--muted);
    border-bottom: 2px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table-wrap tbody th
{
    font-weight: 700;
    white-space: nowrap;
}
.table-wrap tbody tr:hover
{
    background: var(--muted);
}
.code
{
    position: relative;
    background: var(--foreground);
    color: var(--background);
}
.code pre
{
    margin: 0;
    padding: 1.5rem 7rem 1.5rem 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.65;
}
.code code
{
    font-family: inherit;
}
.code__copy
{
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.625rem;
    border: 2px solid var(--on-dark-line);
    background: transparent;
    color: var(--background);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.code__copy:hover
{
    border-color: var(--primary);
    color: var(--primary);
}
.code__copy .ic
{
    width: 1em;
    height: 1em;
}

/* Research */
.topics
{
    border-top: 2px solid var(--foreground);
}
.topics__head, .topic
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 2rem;
}
.topics__head
{
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}
.topic
{
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}
.topic h2
{
    margin: 0 0 0.625rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.topic p
{
    margin: 0;
}
.topic:target
{
    box-shadow: inset 6px 0 0 var(--primary);
    padding-left: 1.5rem;
}
.outputs
{
    list-style: none;
    display: grid;
    gap: 0.625rem;
    align-content: start;
    margin: 0;
    padding: 0;
}
.outputs li
{
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
}
.outputs__kind
{
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

/* Company facts */
.kv
{
    margin: 0;
    border-top: 2px solid var(--foreground);
}
.kv div
{
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 0.25rem 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.kv dt
{
    padding-top: 0.2em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}
.kv dd
{
    margin: 0;
    font-weight: 500;
}

/* Footer */
.foot
{
    border-top: 8px solid var(--primary);
    background: var(--foreground);
    color: var(--background);
}
.foot__cols
{
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr));
    gap: 2.5rem 2rem;
    padding-block: 4.5rem 3.5rem;
}
.foot__name
{
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
}
.foot__brand > p:last-child
{
    max-width: 34ch;
    color: var(--on-dark-muted);
}
.foot h2
{
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}
.foot ul
{
    list-style: none;
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    font-weight: 500;
}
.foot a
{
    color: var(--on-dark-muted);
    text-decoration: none;
}
.foot a:hover
{
    color: var(--background);
    text-decoration: underline;
}
.foot__legal
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid var(--on-dark-line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-dark-muted);
}

/* Narrower screens */
@media (width < 64rem)
{
    .shell__menu
    {
        display: flex;
    }
    .shell[data-enhanced] .shell__nav
    {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1.5rem;
        background: var(--background);
        border-bottom: 4px solid var(--foreground);
    }
    .shell[data-enhanced] .shell__nav.is-open
    {
        display: flex;
    }
    .shell__link
    {
        min-height: 3rem;
        padding: 0 var(--gutter);
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    .shell__link[aria-current="page"]
    {
        box-shadow: inset 6px 0 0 var(--primary);
    }
    .shell__cta
    {
        align-self: stretch;
        margin: 1rem var(--gutter) 0;
        text-align: center;
    }
    .lead
    {
        grid-template-columns: minmax(0, 1fr);
    }
    .lead__copy
    {
        padding-inline: var(--gutter);
    }
    .paths
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .tiles
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .svc
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .svc__name
    {
        grid-column: 1 / -1;
    }
    .foot__cols
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .foot__brand
    {
        grid-column: 1 / -1;
    }
}
@media (width < 48rem)
{
    .util__note
    {
        display: none;
    }
    .util__links
    {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        gap: 0.375rem;
    }
    .split, .paths, .cols-2, .terms, .svc, .strip,
    .row--3, .row--2, .row--work, .topic, .kv div, .caps--3, .caps--2
    {
        grid-template-columns: minmax(0, 1fr);
    }
    .strip__col, .strip__col:first-child, .strip__col:last-child
    {
        padding: 2rem 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
    .strip__col:first-child
    {
        border-top: 0;
    }
    .row--stage
    {
        grid-template-columns: 2rem minmax(0, 1fr);
    }
    .row--stage > p
    {
        grid-column: 2;
    }
    .topics__head
    {
        display: none;
    }
    .tiles, .steps
    {
        grid-template-columns: minmax(0, 1fr);
    }
    .tile
    {
        min-height: 0;
    }
    .filter__count
    {
        margin-left: 0;
        width: 100%;
        padding-top: 0.5rem;
    }
    .btn
    {
        padding-inline: 1.25rem;
    }
    .closing__actions, .closing__actions .btn
    {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce)
{
    *
    {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Public shell and legacy page adapters. Management keeps its own styles. */
html:has(.enterprise)
{
    scroll-padding-top: 0;
}

.enterprise
{
    min-height: 100vh;
    height: auto;
    font-weight: 400;
}

.enterprise .shell:not([data-enhanced])
{
    position: relative;
    top: auto;
}

.shell__item
{
    display: flex;
    align-items: stretch;
}

.shell__item > .shell__link
{
    padding-right: 0.375rem;
}

.shell__item > .shell__link:has(+ [hidden])
{
    padding-right: 1rem;
}

.shell__disclosure
{
    display: grid;
    place-items: center;
    width: 2rem;
    margin-right: 0.375rem;
    border: 0;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
}

.shell__disclosure[aria-expanded="true"]
{
    background: var(--muted);
}

.shell__link[data-active], .shell__link[aria-current="page"]
{
    color: var(--foreground);
    box-shadow: inset 0 -4px 0 var(--foreground);
}

.shell__link:focus-visible, .shell__disclosure:focus-visible
{
    outline-offset: -3px;
}

.mega
{
    max-height: calc(100dvh - var(--shell-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
}

.util :focus-visible, .path--dark:focus-visible, .foot :focus-visible,
.layer--tech :focus-visible, .why-section :focus-visible, .code :focus-visible
{
    outline-color: var(--background);
}

.path:focus-visible
{
    outline-offset: -5px;
}

.util__link:hover, .util__link[aria-current="page"]
{
    color: var(--primary);
    text-decoration: underline;
}

.foot .foot__name a
{
    color: var(--background);
}

.enterprise .enterprise-crumbs
{
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.enterprise .breadcrumb-list
{
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 700;
}

.enterprise .breadcrumb-link
{
    color: inherit;
}

.enterprise .breadcrumb-current
{
    color: var(--foreground);
}

.enterprise .services-hero
{
    padding: 1.5rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.enterprise :is(.services-hero, .content-block, .service-section, .cta-section) > .cs-container
{
    max-width: calc(var(--max) - 2 * var(--gutter));
}

.enterprise :is(.services-hero, .articles-container, .article-header, #article) h1
{
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.enterprise :is(.services-hero, .articles-container, .article-header, #article) p
{
    color: var(--muted-foreground);
}

.enterprise .services-hero-topper span
{
    color: var(--muted-foreground);
}

.enterprise :is(.service-section, .content-block)
{
    padding: var(--band) var(--gutter);
    border-top: 1px solid var(--border);
}

.enterprise :is(.service-section, .content-block):nth-of-type(even)
{
    background: var(--muted);
}

.enterprise :is(.service-section, .content-block):nth-of-type(odd)
{
    background: var(--background);
}

.enterprise :is(.content-block, .service-section, .article-body, .article-card) h2
{
    font-family: var(--font-display);
    font-weight: 700 !important;
}

.enterprise .content-block > .cs-container > h2
{
    color: var(--foreground);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.enterprise :is(.content-card, .service-card, .service-icon, .article-card, .automation-faq-item)
{
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--background);
}

.enterprise :is(.content-card, .service-card) p
{
    color: var(--muted-foreground);
}

.enterprise .cs-button-solid
{
    border-radius: 0;
    background: var(--primary);
    color: var(--foreground);
    font-family: var(--font-body);
    font-weight: 700;
}

.enterprise .cs-button-solid:hover
{
    background: var(--foreground);
    color: var(--background);
}

.enterprise .cs-button-solid::before
{
    content: none;
}

.enterprise .articles-index
{
    padding-top: var(--band);
}

.enterprise :is(.article-card-link, .articles-pagination a, .automation-faq-indicator, .tile-link-arrow)
{
    color: var(--foreground);
}

.enterprise :is(.article-card, .article-header) time
{
    color: var(--muted-foreground);
}

.enterprise .article-body a, .enterprise #article a
{
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.enterprise #article .cs-container
{
    height: auto;
    background: var(--background);
}

.enterprise #article .cs-content
{
    flex: initial;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.enterprise .tab
{
    text-decoration: none;
}

.tabbar ~ :is(#overview, #technical)
{
    scroll-margin-top: calc(var(--bar-h) + var(--bar-border) + 4.5rem);
}

[role="tabpanel"]:focus-visible
{
    outline-offset: -2px;
}

.enterprise .table-wrap
{
    min-width: 0;
}

.enterprise .code
{
    min-width: 0;
}

.enterprise .code :focus-visible
{
    outline-offset: -2px;
}

@media (width < 64rem)
{
    .shell:not([data-enhanced]) .shell__bar
    {
        flex-wrap: wrap;
        height: auto;
    }

    .shell:not([data-enhanced]) .shell__name
    {
        padding-block: 1rem;
    }

    .shell:not([data-enhanced]) .shell__nav
    {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .shell[data-enhanced] .shell__nav
    {
        max-height: calc(100dvh - var(--shell-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .shell__item, .shell__item > .shell__link
    {
        width: 100%;
    }
}

@media (width < 48rem)
{
    .head h1
    {
        font-size: clamp(2.375rem, 9vw, 3rem);
    }

    .lead h1
    {
        font-size: clamp(2.5rem, 9.5vw, 3.5rem);
    }

    .path__detail
    {
        overflow-wrap: anywhere;
    }

    .code pre
    {
        padding: 3.25rem 1rem 1rem;
    }
}

.filter
{
    min-inline-size: 0;
    padding: 0;
    border: 0;
}

.code__scroll
{
    padding: 0;
    overflow-x: auto;
}

.code__scroll pre
{
    overflow: visible;
    width: max-content;
    min-width: 100%;
}

.enterprise .cta-section
{
    background: var(--primary);
    color: var(--foreground);
}

.enterprise .cta-section :is(h2, p)
{
    color: var(--foreground);
}

.enterprise .cta-section .cs-button-solid
{
    background: var(--foreground);
    color: var(--background);
}

.enterprise .cta-section .cs-button-solid:hover
{
    outline: 2px solid var(--foreground);
    background: transparent;
    color: var(--foreground);
}

.foot__preferences
{
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.analytics-preferences
{
    position: fixed;
    z-index: 20;
    inset: auto var(--gutter) max(1rem, env(safe-area-inset-bottom)) auto;
    width: min(30rem, calc(100% - 2 * var(--gutter)));
    max-height: calc(100dvh - var(--shell-h) - 2rem);
    overflow: auto;
    padding: 1rem 1.25rem;
    border: 2px solid var(--foreground);
    border-top: 4px solid var(--primary);
    background: var(--background);
    color: var(--foreground);
}

.analytics-preferences h2
{
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700 !important;
}

.analytics-preferences p
{
    font-size: 0.875rem;
}

.analytics-preferences__actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-preferences__actions .btn
{
    flex: 1 0 auto;
    padding-inline: 0.75rem;
    font-size: 0.8125rem;
}
