:root {
    --page-bg: #07090c;
    --page-fg: #edf0f5;
    --muted: #969dab;
    --accent: #7cf03d;
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    --line: rgba(255, 255, 255, 0.104);
    --chip-border: rgba(255, 255, 255, 0.124);
    --surface: rgba(255, 255, 255, 0.032);
    --surface-strong: rgba(255, 255, 255, 0.054);
    --radius-lg: 24px;
    --radius-md: 16px;
    --pull: 940px;
}

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

html {
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--page-fg);
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1, h2, h3, h4, ol, ul, figure, blockquote {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #fdfffa;
    letter-spacing: -0.040em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
}

h3 {
    font-size: clamp(1.3rem, 1.6vw, 1.7rem);
}

p,
li,
figcaption {
    color: #aeb4c2;
    font-size: 1.02rem;
}

a,
button {
    cursor: pointer;
}

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

.centered {
    text-align: center;
}

.pill {
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: rgba(255, 255, 255, 0.036);
    color: #e9ecf2;
    padding: .54rem 1rem;
    font-size: .76rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: fit-content;
    font-family: 'IBM Plex Mono', monospace;
}

.pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.pill-ghost::before {
    display: none;
}

.footer-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    color: #050b03;
    font-weight: 800;
    font-family: 'IBM Plex Mono', monospace;
}
.footer-link {
    font-size: .9rem;
}

.main{
    flex: 1;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1.2rem 0 1.3rem;
    line-height: 1.05;
}

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

.hero-text {
    max-width: 56ch;
}

.hero-card-top {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--muted);
    font-size: .8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dot.green {
    background: #79ff83;
}

.dot.amber {
    background: #ffd876;
}

.dot.rose {
    background: #ff7d90;
}

.dot.rose {
    background: #ff7d90;
}

.hero-card-body {
    margin-top: 1.2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .82rem;
    line-height: 1.9;
}

.kline {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    margin-bottom: .7rem;
}

.kline.short {
    width: 60%;
}

.grid-tile {
    display: inline-flexbox;
    width: 60px;
    height: 6px;
    margin-right: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,.1);
}

.grid-tile.small {
    width: 34px;
}

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

.service-card p {
    margin: 0;
    line-height: 1.65;
    flex: 1;
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-art {
    height: 100%;
    background: linear-gradient(45deg, color-mix(in srgb, var(--project-accent, var(--accent)) 45%, transparent), rgba(255,255,255,.05));
    display: grid;
    place-items: center;
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(255,255,255,.3);
}

.work-index {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .55;
}

.work-body {
    padding: 1.4rem;
}

.work-card h3 {
    margin: .5rem 0 .4rem;
}

.process-card .num {
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .8rem;
    letter-spacing: .18em;
}

.process-card h3 {
    margin-top: .4rem;
}

.process-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .78rem;
    color: var(--muted);
}

.about-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* The container clip above is a paint-time effect and Android Chrome can
   skip it for lazy-loaded <img> content in an auto-height box, so round the
   image itself too. Same radius, no reliance on container clipping. */
.about-visual img {
    border-radius: inherit;
}

.testimonial-card blockquote {
    font-size: 1rem;
    color: #dfe4ec;
    line-height: 1.65;
}

.testimonial-card figcaption {
    margin-top: 1.2rem;
    color: var(--muted);
    margin-top: 1.3rem;
    font-size: .78rem;
}

.contact-card h3 {
    margin-bottom: .4rem;
}

.contact-card p {
    margin-bottom: 1.2rem;
    font-size: .86rem;
    color: var(--muted);
}

.contact-form .field{
    margin-bottom: .95rem;
}

textarea {
    resize: vertical;
}

.footer-text {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.footer-copyright {
    color: var(--muted);
    font-size: .72rem;
    margin: 0;
}

@media (max-width: 860px) {
}

@media (max-width: 560px) {
}

/* ------------------------------------------------------------------ *
 * Accessibility + legal page
 * ------------------------------------------------------------------ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--accent);
    color: #051003;
    font-weight: 700;
    padding: .7rem 1.2rem;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.legal-body p {
    color: #b9c0cb;
    margin: 0 0 1.1rem;
    line-height: 1.75;
}

.legal-updated {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Home: scrolling focus ticker ---------------------------------------- */

.ticker {
    overflow: hidden;
    padding-block: 3rem;
}

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll 32s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-inline: 1.5rem;
}

.state-text {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ticker-group[aria-hidden="true"] {
        display: none;
    }
}

/* ---- Writing: homepage list --------------------------------------------- */

.post-list {
    list-style: none;
    margin: 2.2rem 0 0;
    padding: 0;
}

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

.post-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.post-list a {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: .2rem 1.6rem;
    padding: 1.3rem 0;
    align-items: baseline;
}

.post-list .post-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.post-list .post-title {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--page-fg);
    transition: color .18s ease;
}

.post-list a:hover .post-title {
    color: var(--accent);
}

.post-list .post-summary {
    grid-column: 2;
    color: var(--muted);
    font-size: .9rem;
    margin: .25rem 0 0;
    max-width: 64ch;
}

.post-list--full {
    margin-top: 3rem;
}

.post-list--full li {
    border: 0;
}

.post-list--full li:last-child {
    border: 0;
}

.post {
    padding-block: 2.4rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: 5rem;
}

.post h2 {
    margin: .4rem 0 0;
    font-size: 1.5rem;
}

.post .post-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.post .post-summary {
    margin: .8rem 0 0;
    color: #c3cbd6;
    max-width: 68ch;
    line-height: 1.65;
}

.post-body {
    margin-top: 1.1rem;
}

.post-body p {
    color: #b9c0cb;
    margin: 0 0 1.1rem;
    line-height: 1.75;
    max-width: 72ch;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    font-weight: 600;
    color: var(--page-fg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform .18s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 1.2rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 74ch;
}

@media (max-width: 700px) {
    .post-list a {
        grid-template-columns: 1fr;
    }

    .post-list .post-summary {
        grid-column: 1;
    }
}
