@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/work-sans-latin.woff2') format('woff2');
}

:root {
    --ink: #14122b;
    --ink-soft: #4a4860;
    --muted: #7a788c;
    --paper: #f7f6f3;
    --white: #ffffff;
    --line: #e4e2dc;
    --accent: #4b32f0;
    --accent-dark: #3721c9;
    --max: 72rem;
    --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 400; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: var(--white); }
.site-header.solid { position: sticky; background: var(--ink); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.wordmark { color: inherit; text-decoration: none; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.wordmark:hover { color: inherit; }
.wordmark span { font-weight: 300; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 0.5rem; cursor: pointer; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--white); border-bottom-color: currentColor; }

@media (max-width: 47.99rem) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 4.5rem; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 0.5rem var(--gutter) 1.25rem; }
    .nav-menu.open { display: flex; }
    .nav-menu a { display: block; padding: 0.75rem 0; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 56rem); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 43, 0.55) 0%, rgba(20, 18, 43, 0) 30%, rgba(20, 18, 43, 0.15) 55%, rgba(20, 18, 43, 0.88) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 8rem; padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { font-size: clamp(2.75rem, 9vw, 6rem); font-weight: 600; letter-spacing: -0.035em; }
.hero .tagline { margin: 1.25rem 0 2rem; font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 300; max-width: 36rem; color: rgba(255, 255, 255, 0.9); }

.button { display: inline-flex; align-items: center; gap: 0.625rem; background: var(--accent); color: var(--white); text-decoration: none; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 1.75rem; border-radius: 999px; transition: background 0.2s, transform 0.2s; }
.button:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.button svg { width: 1.125rem; height: 1.125rem; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--paper); color: var(--ink); }

/* Sections */
.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.section.paper { background: var(--paper); }
.section h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 300; color: var(--ink-soft); }

.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about figure { margin: 0; border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.about figure img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.about p { margin: 0 0 1.25rem; }
@media (min-width: 56rem) {
    .about { grid-template-columns: 5fr 6fr; }
}

/* Social cards */
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 32px -16px rgba(20, 18, 43, 0.35); }
.card .icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.card .icon svg { width: 1.25rem; height: 1.25rem; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.card .more { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Call to action band */
.cta { background: var(--ink); color: var(--white); }
.cta .container { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.cta p { margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.75); }

/* Contact page */
.page-head { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.page-head p { margin: 1rem 0 0; max-width: 36rem; font-weight: 300; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.82); }
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.contact-block { padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.contact-block h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.contact-block address, .contact-block p { font-style: normal; margin: 0; font-size: 1.1875rem; }
.contact-block .big { font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.social-links { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 500; text-decoration: none; }
.social-links svg { width: 1.125rem; height: 1.125rem; }

/* Footer */
.site-footer { background: #0c0b1c; color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-top .wordmark { color: var(--white); }
.footer-top ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.8125rem; }
.footer-bottom img { height: 1.25rem; display: inline-block; vertical-align: middle; margin-left: 0.375rem; position: relative; top: -2px; }

/* 404 */
.notfound { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem var(--gutter); background: var(--paper); }
.notfound h1 { font-size: clamp(3rem, 10vw, 5rem); margin-bottom: 1rem; }
.notfound p { color: var(--ink-soft); margin: 0 0 2rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
