@font-face {
    font-family: 'SFMono';
    src: url('/assets/fonts/SF-Mono-Semibold.otf') format('opentype');
    font-weight: 600;
}
@font-face {
    font-family: 'Tusker Grotesk';
    src: url('/assets/fonts/TuskerGrotesk-4500Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Tusker Grotesk';
    src: url('/assets/fonts/TuskerGrotesk-7800Super.ttf') format('truetype');
    font-weight: 800;
}
@font-face {
    font-family: 'Tusker Grotesk 3';
    src: url('/assets/fonts/TuskerGrotesk-3500Medium.ttf') format('truetype');
    font-weight: 500;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-font-smoothing: antialiased; }

html, body { height: 100%; }

:root {
    --gutter: 12px;
}
@media (min-width: 768px) {
    :root { --gutter: 16px; }
}

body {
    background: #0B0B0B;
    min-height: 100svh;
    padding: var(--gutter);
}

.hero-tile {
    position: relative;
    width: 100%;
    height: calc(100svh - (var(--gutter) * 2));
    border-radius: 1.5rem;
    overflow: hidden;
    background: #000000;
}

.field, .field-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    font-family: 'SFMono', ui-monospace, Menlo, monospace;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    white-space: pre;
    user-select: none;
    overflow: hidden;
}

.field {
    color: rgba(255,255,255,0.4);
}

.field-glow {
    color: #ffffff;
    pointer-events: none;
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle var(--glow-radius, 120px) at var(--mx, -9999px) var(--my, -9999px), black 0%, transparent 100%);
    mask-image: radial-gradient(circle var(--glow-radius, 120px) at var(--mx, -9999px) var(--my, -9999px), black 0%, transparent 100%);
}

.probe {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    font-family: 'SFMono', ui-monospace, Menlo, monospace;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
}

/* ── animated centerpiece, ported from the homepage ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #fff;
}

@keyframes letter-wave {
    0%, 100% { font-variation-settings: 'wght' 800, 'wdth' 100, 'opsz' 96; }
    50%       { font-variation-settings: 'wght' 200, 'wdth' 75,  'opsz' 12; }
}
.letter-anim {
    display: inline-block;
    animation: letter-wave 6s ease-in-out infinite;
}

.hero-overlay h1 {
    font-size: clamp(5.2rem, 21vw, 13rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-align: center;
    user-select: none;
}

.hero-overlay .suffix {
    font-size: clamp(2rem, 2.2vw, 4.5rem);
    font-variation-settings: 'wght' 300, 'wdth' 75, 'opsz' 12;
    letter-spacing: 6px;
    margin-top: 0.15em;
    text-transform: uppercase;
    user-select: none;
    text-align: center;
    line-height: 90%;
    margin-bottom: 1rem;
}

.hero-overlay .suffix-sm {
    font-family: 'Tusker Grotesk 3', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 3.2rem);
    letter-spacing: 0.3em;
    word-spacing: 0.4em;
    text-transform: uppercase;
    user-select: none;
    text-align: center;
    max-width: 80%;
}

.cta {
    display: inline-block;
    margin-top: 2rem;
    pointer-events: auto;
    background: #ffffff;
    color: #000000;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1vw, 1rem);
    letter-spacing: 0.02em;
    padding: 0.9em 1.8em;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

/* ── marquee, ported from sample/index.html ── */
.marquee {
    margin-top: var(--gutter);
    background: #111111;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 84px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    font-family: 'Tusker Grotesk', sans-serif;
}

.marquee-item {
    font-size: clamp(30px, 8vw, 38px);
    font-family: 'Tusker Grotesk', sans-serif;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    padding: 0 clamp(20px, 8vw, 40px);
}

.marquee-sep {
    font-size: clamp(64px, 17vw, 80px);
    font-weight: 800;
    color: #d72929;
    padding: 0 12px;
    margin-top: 0.55%;
}

/* ── demo cards, ported from sample/index.html ── */
.bento-section {
    padding-bottom: var(--gutter);
}

.ambient-tile {
    margin-top: var(--gutter);
    height: calc(50svh - var(--gutter));
}

.panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 1.5rem;
    text-align: center;
    pointer-events: none;
}

.panel-overlay p {
    font-family: 'Tusker Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.2vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    max-width: 24ch;
    margin-top: 0;
}

.demo-grid {
    margin-top: var(--gutter);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}
@media (min-width: 768px) {
    .demo-grid { grid-template-columns: 1fr 1fr; }
}

.demo-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 1.75rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.demo-card:hover {
    transform: scale(1.015);
}

.demo-card.what-we-do {
    background: #1C1C1C;
}
.demo-card.what-we-do::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.demo-card.specialisms {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.07);
}

.demo-card .eyebrow {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
}

.what-we-do p {
    font-family: monospace;
    font-size: clamp(20px, 2vw, 24px);
    color: #ffffff;
    line-height: 1.25;
    margin-top: 1rem;
    width: 90%;
}
@media (min-width: 768px) {
    .what-we-do p { width: 80%; }
}

.specialisms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
}

.specialisms-tags span {
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── process card, ported from sample/index.html ── */
.process-card {
    margin-top: var(--gutter);
    background: #F0F0F0;
    border-radius: 1.5rem;
    padding: 2rem;
}
@media (min-width: 768px) {
    .process-card { padding: 2.5rem; }
}

.process-card .eyebrow {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0,0,0,0.3);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.75rem;
}
@media (min-width: 640px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
}

.process-steps .num {
    font-family: 'Tusker Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: rgba(0,0,0,0.07);
    letter-spacing: -0.02em;
    line-height: 1;
}

.process-steps h3 {
    font-family: 'Tusker Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-top: 0.75rem;
}

.process-steps p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0,0,0,0.45);
    margin-top: 0.4rem;
    line-height: 1.6;
}

/* ── footer ── */
.site-footer {
    padding-bottom: 0.8rem;
    text-align: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.44);
    text-align: left;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.75);
}
