@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

/* Archidoxe: shared visual rules for Home, About and the error view. */
:root {
    --bg: #06070b;
    --surface: #0c0f17;
    --text: #f4f6ff;
    --muted: #adb4d0;
    --accent: #6d8cff;
    --line: #2c3348;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Public Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p { margin: 0; color: var(--muted); max-width: 65ch; }
h1, h2, h3 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    text-wrap: balance;
}
h1 {
    font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid #8eb0ff; outline-offset: 5px; }
main:focus { outline: none; }
.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 30;
    inset: 0 auto auto 1rem;
    padding: .75rem 1rem;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(.5rem); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); z-index: 20; }
.nav-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-block: 1rem; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand-full-logo { width: 160px; height: 53px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .8rem;
    color: var(--muted);
    font-size: .9375rem;
    transition: color 150ms ease-out, background-color 150ms ease-out;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: #141925; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--accent); }
.site-nav .lang-switch { margin-inline-start: .5rem; border-inline-start: 1px solid var(--line); }
.nav-toggle {
    display: none;
    width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin-block: 5px; background: currentColor; transition: transform 150ms ease-out; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.hero-section { padding-block: clamp(3rem, 6vw, 6rem); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy, .hero-art, .work-layout > *, .process-layout > *, .about-layout > *, .principles-layout > * { min-width: 0; }
.hero-copy h1 { max-width: 16ch; }
.hero-kicker { margin-bottom: 1.25rem; color: var(--muted); font-size: .8125rem; letter-spacing: .06em; }
.hero-lede { margin-top: 1.5rem; max-width: 53ch; font-size: 1.125rem; line-height: 1.65; text-wrap: pretty; }
.hero-art { background: #080b13; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    margin-top: 1.75rem;
    padding: .75rem 1.15rem;
    border: 1px solid #667ba9;
    border-radius: 4px;
    font-size: .9375rem;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    touch-action: manipulation;
    transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.button:hover { background: #141925; border-color: #8eb0ff; }
.content-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-title { margin-bottom: 2.25rem; }
.work-section { border-top: 1px solid var(--line); }
.work-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 8vw, 8rem); }
.product-work { padding-top: 1.75rem; border-top: 1px solid var(--accent); }
.product-work h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: 1rem; }
.product-work p { max-width: 47ch; font-size: 1.0625rem; }
.secondary-work { display: grid; gap: 1.75rem; }
.secondary-work article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.secondary-work h3 { margin-bottom: .7rem; }
.process-section { background: var(--surface); scroll-margin-top: 7rem; }
.process-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 6rem); }
.section-heading h2 { max-width: 14ch; }
.section-heading p { margin-top: 1rem; }
.process-list { margin: 0; padding: 0; list-style: none; counter-reset: process; }
.process-list li { position: relative; padding: 1.5rem 0 1.5rem 3rem; border-top: 1px solid var(--line); counter-increment: process; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li::before { content: counter(process, decimal-leading-zero); position: absolute; inset: 1.5rem auto auto 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.process-list h3 { margin-bottom: .65rem; }
.page-hero { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.page-hero h1 { max-width: 22ch; }
.page-hero .hero-lede { max-width: 62ch; }
.about-section { padding-block: 0; }
.about-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 7vw, 6rem); border-top: 1px solid var(--line); padding-block: 2.75rem; }
.about-layout h2 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); max-width: 19ch; }
.about-layout p { font-size: 1.0625rem; }
.standards-section { margin-top: 2.5rem; background: var(--surface); }
.principles-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.principles-layout h3 { margin-bottom: .85rem; }
.site-footer { padding-block: 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; font-size: .875rem; }
.footer-location { display: block; margin-top: .2rem; }
.error-page { min-height: 65vh; }
.error-code { color: var(--accent); margin-bottom: 1.25rem; font-size: 1.125rem; }

@media (min-width: 761px) {
    .site-header { position: sticky; top: 0; }
}
@media (max-width: 960px) {
    .hero-layout { gap: 2rem; }
    .hero-copy h1 { font-size: clamp(2.5rem, 1.2rem + 3.5vw, 3.5rem); }
    .principles-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .principles-layout article { max-width: 65ch; }
}
@media (max-width: 760px) {
    .nav-row { padding-block: .75rem; }
    .brand-full-logo { width: 145px; height: 48px; }
    .site-nav { width: 100%; flex-wrap: wrap; }
    .nav-ready .nav-toggle { display: block; }
    .nav-ready .site-nav { display: none; flex-direction: column; align-items: stretch; padding-bottom: .5rem; }
    .nav-ready .site-nav.is-open { display: flex; }
    .nav-ready .site-nav .lang-switch { margin-inline-start: 0; border-inline-start: 0; }
    .hero-layout, .work-layout, .process-layout, .about-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-copy h1 { max-width: 18ch; }
    .hero-art img { aspect-ratio: 16 / 9; }
    .hero-kicker { font-size: .8125rem; }
    .hero-lede { font-size: 1.0625rem; }
    .work-layout { gap: 2rem; }
    .section-title { margin-bottom: 1.75rem; }
    .section-heading h2 { max-width: 100%; }
    .about-layout h2 { max-width: 100%; }
    .about-layout { padding-block: 2rem; }
    .standards-section { margin-top: 1.5rem; }
    .process-section { scroll-margin-top: 1rem; }
}
@media (max-width: 380px) {
    .container { width: calc(100% - 2rem); }
    .hero-copy h1, .page-hero h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
    .site-nav a[aria-current="page"] { text-decoration-color: LinkText; }
    .nav-toggle span { background: ButtonText; }
}
