:root {
    --ink: #11110f;
    --ink-soft: #1b1b18;
    --paper: #f3f1e9;
    --paper-soft: #e8e5dc;
    --line: rgba(17, 17, 15, 0.17);
    --line-dark: rgba(255, 255, 255, 0.17);
    --muted: #76756f;
    --accent: #d6ff3f;
    --accent-dark: #afda19;
    --error: #a3352b;
    --success: #355c28;
    --font-body: "Manrope", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --container: 86rem;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --section-space: clamp(5rem, 11vw, 10rem);
    --radius: 0.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
    overflow-wrap: anywhere;
}

address {
    font-style: normal;
}

::selection {
    color: var(--ink);
    background: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: var(--ink);
    background: var(--accent);
    transform: translateY(-180%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section-dark,
.section-ink {
    color: var(--paper);
    background: var(--ink);
}

.section-light {
    background: var(--paper);
}

.section-soft {
    background: var(--paper-soft);
}

.section-accent {
    color: var(--ink);
    background: var(--accent);
}

.eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.display-xl {
    max-width: 12ch;
    margin-bottom: 0;
    font-size: clamp(2.6rem, 11vw, 11rem);
}

.display-lg {
    margin-bottom: 0;
    font-size: clamp(2.35rem, 8vw, 8rem);
}

.display-md {
    margin-bottom: 0;
    font-size: clamp(2rem, 5.5vw, 5.7rem);
}

.lead {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.55;
}

.text-accent {
    color: var(--accent);
}

.text-accent-ink {
    text-decoration: underline;
    text-decoration-color: var(--accent-dark);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.12em;
}

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

.text-muted-dark {
    color: #7c7c73;
}

.button {
    display: inline-flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem 0.85rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.button svg,
.circle-link svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform 0.35s var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button:hover svg,
.circle-link:hover svg {
    transform: translateX(0.2rem);
}

.button-primary {
    color: var(--ink);
    background: var(--accent);
}

.button-primary:hover {
    background: #e2ff7b;
}

.button-outline {
    color: var(--paper);
    border-color: var(--line-dark);
}

.button-outline:hover {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0.55rem;
    border-bottom: 1px solid currentColor;
    font-size: 0.85rem;
    font-weight: 600;
}

.text-link-light {
    color: var(--paper);
}

/* Navigation */
.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--paper);
}

.site-nav {
    display: flex;
    min-height: 5.2rem;
    align-items: center;
    justify-content: space-between;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--line-dark);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 1.6rem;
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-width: 2.5;
}

.menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 3rem;
    height: 3rem;
    padding: 0.85rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    place-content: center;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 1rem;
    height: 1px;
    margin: 0.15rem 0;
    background: currentColor;
    transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(0.2rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] {
    color: var(--paper);
    border-color: var(--paper);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-0.2rem) rotate(-45deg);
}

.nav-panel {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: calc(6.5rem + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    color: var(--paper);
    background: var(--ink);
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s var(--ease);
}

.nav-panel.is-open {
    visibility: visible;
    opacity: 1;
}

.nav-links {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.55rem 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 11vw, 5rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.client-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-dark);
    color: #8d8d84;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-link small {
    padding: 0.2rem 0.35rem;
    color: var(--ink);
    background: var(--accent);
    font-size: 0.52rem;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    padding-top: clamp(6.5rem, 16vw, 8.4rem);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    flex: 1;
    align-items: end;
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-copy {
    max-width: 67rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.55rem, 11vw, 10rem);
}

.hero-title span {
    display: block;
}

.hero-lead {
    max-width: 36rem;
    margin-bottom: 2rem;
    color: #adada4;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.hero-note {
    display: none;
}

.hero-orbit {
    position: absolute;
    top: 48%;
    right: -8rem;
    width: clamp(14rem, 58vw, 48rem);
    aspect-ratio: 1;
    opacity: 0.7;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-orbit span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(214, 255, 63, 0.16);
    border-radius: 50%;
}

.hero-orbit span:nth-child(2) {
    inset: 12%;
}

.hero-orbit span:nth-child(3) {
    inset: 28%;
    background: radial-gradient(circle, rgba(214,255,63,0.13), transparent 65%);
}

.ticker {
    width: 100%;
    overflow: hidden;
    padding: 1.35rem 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    will-change: transform;
}

.ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.4vw, 1.15rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-group i {
    width: 0.4rem;
    height: 0.4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
}

.ticker-track.is-ready {
    animation: ticker-scroll var(--ticker-duration, 20s) linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .ticker-track.is-ready {
        animation: none;
    }
}

/* Shared layouts */
.split-heading {
    display: grid;
    gap: 2rem;
    margin-bottom: clamp(4rem, 9vw, 8rem);
}

.split-heading .lead {
    max-width: 40rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    gap: 1rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
}

.service-number {
    color: var(--muted);
    font-size: 0.7rem;
}

.service-row h3 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.service-row p {
    max-width: 30rem;
    margin-bottom: 0;
    color: var(--muted);
}

.circle-link {
    display: grid;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    place-items: center;
}

/* Projects */
.project-grid {
    display: grid;
    gap: 3rem 1.25rem;
}

.project-card {
    min-width: 0;
}

.project-card.is-hidden {
    display: none;
}

.project-visual {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: clamp(16rem, 70vw, 22rem);
    aspect-ratio: 4 / 5;
    margin-bottom: 1.2rem;
    place-items: center;
}

.project-card-wide .project-visual {
    aspect-ratio: 4 / 3;
}

.project-card footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-card h2,
.project-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.project-card footer p,
.project-card footer > span {
    margin-bottom: 0;
    color: #84847d;
    font-size: 0.72rem;
}

.project-card:hover .project-visual > * {
    transform: scale(1.04);
}

.visual-nord {
    color: var(--paper);
    background: #42443e;
}

.visual-nord::before,
.visual-nord::after {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 50%;
    content: "";
}

.visual-nord::after {
    width: 48%;
    height: 48%;
}

.visual-word {
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 7rem);
    letter-spacing: 0.08em;
    transition: transform 0.6s var(--ease);
}

.visual-tag {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.visual-forma {
    grid-template-columns: repeat(5, 1fr);
    color: var(--ink);
    background: #c9c5bb;
}

.visual-forma span {
    display: grid;
    width: 100%;
    height: 100%;
    border-right: 1px solid rgba(17,17,15,0.25);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 4.5rem);
    place-items: center;
    transition: transform 0.55s var(--ease);
}

.visual-forma span:nth-child(even) {
    padding-top: 25%;
}

.visual-terra {
    color: #efede5;
    background: #272720;
}

.terra-disc {
    width: 52%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 clamp(1rem, 5vw, 2.5rem) rgba(214,255,63,0.08);
    transition: transform 0.6s var(--ease);
}

.visual-terra strong {
    position: absolute;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    transition: transform 0.6s var(--ease);
}

.visual-pulse {
    color: var(--paper);
    background: #51524c;
}

.pulse-rings,
.pulse-rings i {
    position: absolute;
    display: block;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(214,255,63,0.6);
    border-radius: 50%;
}

.pulse-rings i:nth-child(1) { width: 70%; top: 15%; left: 15%; }
.pulse-rings i:nth-child(2) { width: 40%; top: 30%; left: 30%; }
.pulse-rings i:nth-child(3) { width: 10%; top: 45%; left: 45%; background: var(--accent); }
.visual-pulse strong { z-index: 1; font: 500 clamp(2.2rem, 8vw, 6rem)/1 var(--font-display); letter-spacing: 0.12em; }

.visual-loom {
    color: var(--ink);
    background: #d5d2c9;
}

.visual-loom > span { font: 500 clamp(2.6rem, 12vw, 10rem)/1 var(--font-display); letter-spacing: -0.08em; }
.visual-loom i { position: absolute; width: 42%; aspect-ratio: 1; border: clamp(0.75rem, 4vw, 2rem) solid var(--accent); border-radius: 50%; mix-blend-mode: multiply; }
.visual-loom strong { position: absolute; right: 1.5rem; bottom: 1.5rem; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }

.visual-flux {
    align-content: space-between;
    justify-items: stretch;
    padding: 1.5rem;
    color: var(--paper);
    background: linear-gradient(145deg, #252520 50%, #3c3c35 50%);
}

.visual-flux span:first-child { font: 500 clamp(2.6rem, 11vw, 7rem)/1 var(--font-display); writing-mode: vertical-rl; }
.visual-flux span:last-child { justify-self: end; font-size: 0.65rem; letter-spacing: 0.12em; }

/* Process and numbers */
.process-grid {
    display: grid;
    padding-left: 0;
    list-style: none;
}

.process-grid li {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.process-grid li > span,
.engagement-grid article > span,
.values-grid article > span {
    display: block;
    margin-bottom: 3rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.process-grid h3,
.engagement-grid h3,
.values-grid h3 {
    margin-bottom: 1rem;
    font-size: 1.65rem;
}

.process-grid p,
.engagement-grid p,
.values-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.numbers-grid {
    display: grid;
    gap: 3rem;
}

.numbers-grid article {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(17,17,15,0.3);
}

.numbers-grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.numbers-grid article span {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.demo-note,
.demo-label {
    margin-top: 2.5rem;
    margin-bottom: 0;
    font-size: 0.66rem;
    opacity: 0.65;
}

/* Page heroes */
.page-hero {
    min-height: min(80svh, 52rem);
    padding-top: clamp(6.75rem, 18vw, 14rem);
    padding-bottom: clamp(3rem, 8vw, 7rem);
}

.page-hero-bottom {
    display: grid;
    gap: 2rem;
    margin-top: clamp(4rem, 9vw, 8rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
}

.page-hero-bottom p {
    max-width: 39rem;
    margin-bottom: 0;
    color: #aaa9a1;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.page-hero-bottom > span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.7;
    text-transform: uppercase;
}

/* Services */
.service-detail {
    scroll-margin-top: 4rem;
}

.detail-grid {
    display: grid;
    gap: 3rem;
}

.detail-heading > span {
    display: block;
    margin-bottom: 4rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.detail-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 6vw, 5.3rem);
}

.detail-content .lead {
    margin-bottom: 3rem;
}

.deliverables {
    padding-left: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.deliverables li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.deliverables svg {
    width: 1rem;
    fill: none;
    stroke: var(--accent-dark);
    stroke-width: 2;
}

.engagement-grid,
.values-grid {
    display: grid;
}

.engagement-grid article,
.values-grid article {
    padding: 2rem 0;
    border-top: 1px solid var(--line-dark);
}

.values-grid article {
    border-color: var(--line);
}

/* Project catalog */
.project-filter {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 2.5rem;
    scrollbar-width: none;
}

.project-filter::-webkit-scrollbar {
    display: none;
}

.project-filter button {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-filter button.is-active,
.project-filter button:hover {
    color: var(--paper);
    background: var(--ink);
}

.catalog-grid .project-card {
    color: var(--ink);
}

.project-principle .split-heading {
    margin-bottom: 0;
}

/* About */
.manifesto-grid {
    display: grid;
    gap: 3rem;
}

.manifesto blockquote {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 6.5rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.manifesto .lead {
    max-width: 38rem;
    margin-bottom: 0;
}

.team-grid {
    display: grid;
    gap: 2.5rem 1.2rem;
}

.portrait {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 1.2rem;
    background: #c8c5bc;
    place-items: center;
}

.portrait::before,
.portrait::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.portrait::before {
    width: 48%;
    aspect-ratio: 1;
    background: #a4a198;
}

.portrait::after {
    bottom: -13%;
    width: 82%;
    height: 54%;
    background: #888880;
}

.portrait-two::before { width: 42%; background: #99978f; }
.portrait-two::after { background: #b1aea5; }
.portrait-three::before { background: #b0ada4; }
.portrait-three::after { background: #74746d; }

.portrait span {
    z-index: 2;
    color: var(--accent);
    font: 500 clamp(2.5rem, 6vw, 5rem)/1 var(--font-display);
    mix-blend-mode: difference;
}

.team-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.team-card p {
    color: var(--muted);
    font-size: 0.75rem;
}

.collaboration-grid {
    display: grid;
    gap: 3rem;
}

.collaboration-grid .lead {
    max-width: 37rem;
    color: #92928b;
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 5rem;
}

.contact-aside h2 {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.contact-aside ol {
    padding: 0;
    margin: 0 0 3rem;
    list-style: none;
}

.contact-aside li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.contact-aside li span {
    color: var(--muted);
    font-size: 0.67rem;
}

.contact-aside li p {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.contact-aside address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.85rem;
}

.contact-aside address a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border-bottom: 1px solid var(--line);
}

.contact-form fieldset {
    padding: 0;
    margin: 0 0 3rem;
    border: 0;
}

.contact-form legend {
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1.7rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.contact-form label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.73rem;
    font-weight: 600;
}

.contact-form label > span {
    color: var(--error);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.9rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 0.2s;
}

.contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--ink);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.field-error {
    display: block;
    min-height: 1rem;
    margin-top: 0.3rem;
    color: var(--error);
    font-size: 0.66rem;
}

.form-row {
    display: grid;
    gap: 0 1.5rem;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.form-footer p {
    max-width: 26rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.67rem;
}

.form-status {
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
    border-left: 3px solid;
    font-size: 0.8rem;
}

.form-status p {
    margin: 0.3rem 0 0;
}

.form-success {
    color: var(--success);
    background: rgba(53,92,40,0.08);
}

.form-error {
    color: var(--error);
    background: rgba(163,53,43,0.08);
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

/* Footer */
.site-footer {
    color: var(--paper);
    background: var(--ink-soft);
}

.footer-cta {
    padding-block: clamp(5rem, 10vw, 9rem);
    border-bottom: 1px solid var(--line-dark);
}

.footer-cta h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(2.4rem, 9vw, 8rem);
}

.footer-main {
    display: grid;
    gap: 2.5rem;
    padding-block: 3rem;
}

.brand-footer {
    align-self: start;
    font-size: 1.4rem;
}

.footer-main address,
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.78rem;
}

.footer-main address span {
    margin-top: 0.6rem;
    color: #888880;
}

.footer-nav > span {
    color: #777770;
}

.footer-nav small {
    margin-left: 0.3rem;
    color: var(--accent);
    font-size: 0.52rem;
    text-transform: uppercase;
}

.footer-main a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0.35rem;
}

.footer-main a:hover {
    color: var(--accent);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line-dark);
    color: #777770;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-meta p {
    margin-bottom: 0;
}

/* Progressive animation enhancement */
.js .hero-reveal,
.js .reveal {
    visibility: hidden;
}

@media (max-width: 43.99rem) {
    .hero-orbit {
        right: -11rem;
        opacity: 0.4;
    }

    .service-row h3 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }
}

@media (max-height: 700px) and (max-width: 63.99rem) {
    .hero,
    .page-hero {
        min-height: auto;
    }

    .nav-panel {
        justify-content: flex-start;
        padding-top: calc(5.5rem + env(safe-area-inset-top));
        overflow-y: auto;
    }

    .nav-links a {
        font-size: clamp(1.85rem, 9vh, 2.8rem);
        padding: 0.35rem 0;
    }

    .client-link {
        margin-top: 1.5rem;
    }
}

@media (min-width: 44rem) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card-wide {
        grid-column: span 2;
    }

    .project-card-wide .project-visual {
        aspect-ratio: 16 / 9;
    }

    .process-grid,
    .engagement-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid li,
    .engagement-grid article,
    .values-grid article {
        padding: 2rem;
        border-right: 1px solid var(--line);
    }

    .engagement-grid article {
        border-color: var(--line-dark);
    }

    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .numbers-grid .eyebrow {
        grid-column: 1 / -1;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 64rem) {
    .site-nav {
        min-height: 6rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-panel {
        position: static;
        display: flex;
        visibility: visible;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        color: inherit;
        background: transparent;
        opacity: 1;
    }

    .nav-links {
        display: flex;
        width: auto;
        align-items: center;
        gap: clamp(1.2rem, 2.2vw, 2.4rem);
    }

    .nav-links a {
        position: relative;
        padding: 0.4rem 0;
        font-family: var(--font-body);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.03em;
    }

    .nav-links a::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: currentColor;
        content: "";
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.35s var(--ease);
    }

    .nav-links a:hover::after,
    .nav-links a[aria-current="page"]::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .client-link {
        margin: 0 0 0 2rem;
        padding: 0.65rem 0.8rem;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) 15rem;
        gap: 5rem;
    }

    .hero-orbit {
        right: -12rem;
        width: clamp(24rem, 48vw, 48rem);
        opacity: 1;
    }

    .hero-note {
        display: block;
        padding-top: 1rem;
        border-top: 1px solid var(--line-dark);
        color: #92928b;
        font-size: 0.73rem;
    }

    .hero-note span {
        display: block;
        margin-bottom: 2rem;
        color: var(--accent);
        font-size: 0.62rem;
    }

    .split-heading {
        grid-template-columns: minmax(10rem, 0.55fr) 1.45fr;
    }

    .section-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .service-row {
        grid-template-columns: 4rem 0.85fr 1fr auto;
        align-items: center;
        padding-block: 2.3rem;
    }

    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-hero-bottom {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .page-hero-bottom > span,
    .page-hero-bottom > a {
        justify-self: end;
    }

    .detail-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 10%;
    }

    .engagement-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .manifesto-grid {
        grid-template-columns: 0.35fr 1.3fr;
    }

    .manifesto-grid .lead {
        grid-column: 2;
        margin-left: 30%;
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .collaboration-grid {
        grid-template-columns: 0.4fr 1.25fr;
    }

    .collaboration-grid .lead {
        grid-column: 2;
        margin-left: 30%;
    }

    .contact-grid {
        grid-template-columns: 0.65fr 1.35fr;
        gap: 10%;
    }
}

@media (min-width: 82rem) {
    .catalog-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .catalog-grid .project-card {
        grid-column: span 5;
    }

    .catalog-grid .project-card-wide {
        grid-column: span 7;
    }

    .catalog-grid .project-card:nth-child(4) {
        grid-column: span 5;
    }

    .catalog-grid .project-card:nth-child(5) {
        grid-column: span 7;
    }
}

/* Custom cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: none;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor-ring,
.cursor-dot,
.cursor-label {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    will-change: transform;
}

.cursor-ring {
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    translate: -50% -50%;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cursor-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 0 rgba(17, 17, 15, 0.18);
    translate: -50% -50%;
    transition: scale 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cursor-label {
    min-width: 4.5rem;
    padding: 0.35rem 0.55rem;
    border-radius: 2rem;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    translate: -50% -50%;
    scale: 0.7;
    transition: opacity 0.3s var(--ease), scale 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor.is-hover .cursor-ring {
    width: 4rem;
    height: 4rem;
    border-color: var(--ink);
    background: rgba(17, 17, 15, 0.06);
}

.cursor.is-hover .cursor-dot {
    scale: 0.35;
    box-shadow: 0 0 0 0.55rem rgba(17, 17, 15, 0.08);
}

.cursor.is-label .cursor-ring {
    width: 5.5rem;
    height: 5.5rem;
    border-color: transparent;
    background: rgba(17, 17, 15, 0.08);
}

.cursor.is-label .cursor-dot {
    opacity: 0;
}

.cursor.is-label .cursor-label {
    opacity: 1;
    scale: 1;
}

.cursor.is-pressed .cursor-ring {
    width: 1.7rem;
    height: 1.7rem;
}

.cursor.is-pressed .cursor-dot {
    scale: 1.4;
}

.cursor.is-on-dark .cursor-ring {
    border-color: var(--accent);
}

.cursor.is-on-dark .cursor-dot {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(214, 255, 63, 0.35);
}

.cursor.is-on-dark.is-hover .cursor-ring {
    border-color: var(--accent);
    background: rgba(214, 255, 63, 0.1);
}

.cursor.is-on-dark.is-hover .cursor-dot {
    box-shadow: 0 0 0 0.55rem rgba(214, 255, 63, 0.12);
}

.cursor.is-on-dark.is-label .cursor-ring {
    background: rgba(214, 255, 63, 0.12);
}

.cursor.is-on-dark .cursor-label {
    color: var(--ink);
    background: var(--accent);
}

.cursor.is-hidden {
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
    }

    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: none !important;
    }

    body.has-custom-cursor input,
    body.has-custom-cursor textarea,
    body.has-custom-cursor select {
        cursor: text !important;
    }
}

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

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

    .js .hero-reveal,
    .js .reveal {
        visibility: visible;
    }

    .cursor {
        display: none !important;
    }
}
