/* Public site - Framer-faithful design with editable content. */

@import url("/_assets/framer-fonts.css");

:root {
    --bg: #ffffff;
    --fg: #000000;
    --fg-muted: #999999;
    --line: #ececec;
    --accent: #0099ff;

    --font-mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-sans: 'Switzer', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --max-w: 1440px;
    --pad-x: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Top navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 0;
}
.site-header .nav {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    padding: 16px var(--pad-x);
    gap: 16px;
    font-size: 14px;
}
.site-header .brand {
    font-weight: 500;
}
.site-header .nav-link {
    padding: 4px 0;
    font-size: 14px;
}
.site-header .nav-link.active { color: var(--fg-muted); }
.site-header .clock {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--fg);
    grid-column: 2 / 3;
    justify-self: center;
}

@media (max-width: 720px) {
    .site-header .nav {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    .site-header .clock { display: none; }
    .site-header .nav-link { font-size: 13px; }
}

/* Main wrapper */
main.site {
    min-height: calc(100vh - 200px);
    padding: 0 var(--pad-x);
}

/* Hero */
.hero {
    padding: 120px 0 96px;
    max-width: 720px;
}
.hero p {
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.005em;
}
@media (max-width: 720px) {
    .hero { padding: 64px 0 48px; }
    .hero p { font-size: 18px; }
}

/* Trusted-by ticker */
.brands {
    padding: 48px 0 96px;
}
.brands .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-align: center;
    color: var(--fg-muted);
    margin-bottom: 32px;
    text-transform: uppercase;
}
.brands .marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands .row {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.brands .row img {
    height: 32px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(1);
    transition: opacity 0.2s ease;
}
.brands .row img:hover { opacity: 1; }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Projects */
.project {
    padding: 24px 0 96px;
}
.project header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.project header h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.project header .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-muted);
}
.project .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 980px) { .project .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .project .grid { grid-template-columns: 1fr; } }

.project .grid .item {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #f7f7f7;
    overflow: hidden;
}
.project .grid .item img,
.project .grid .item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project .grid .item .filename {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
}
.project .item-wrap .filename {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 48px var(--pad-x) 32px;
    margin-top: 96px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-muted);
}
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer .right { text-align: right; }

/* Contact page */
.contact-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 80px 0;
    align-items: end;
    min-height: 70vh;
}
@media (max-width: 720px) {
    .contact-shell { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
}
.contact-form .field { margin-bottom: 20px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--fg);
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--fg); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form button {
    background: transparent;
    color: var(--fg);
    border: none;
    padding: 12px 0;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.contact-form button:hover { color: var(--accent); }

.contact-side h3 {
    font-size: 14px;
    color: var(--fg-muted);
    font-weight: 400;
    margin: 0 0 12px;
}
.contact-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-side li { margin-bottom: 6px; }

/* Info / Imprint / Playground (markdown content) */
.prose {
    max-width: 720px;
    padding: 80px 0;
    font-size: 16px;
    line-height: 1.6;
}
.prose h1 { font-size: 32px; font-weight: 500; margin: 0 0 32px; letter-spacing: -0.01em; }
.prose h2 { font-size: 20px; font-weight: 500; margin: 32px 0 12px; }
.prose h3 { font-size: 16px; font-weight: 500; margin: 24px 0 8px; }
.prose p  { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose blockquote {
    border-left: 2px solid var(--fg);
    padding-left: 16px;
    margin: 24px 0;
    color: var(--fg-muted);
}
.prose a { color: var(--accent); }
.prose img { margin: 24px 0; }
.prose code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: #f7f7f7;
    padding: 2px 6px;
}
.prose pre {
    font-family: var(--font-mono);
    font-size: 13px;
    background: #f7f7f7;
    padding: 16px;
    overflow-x: auto;
}

/* Blog index */
.blog-list {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 880px;
}
.blog-list .post-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .blog-list .post-row { grid-template-columns: 1fr; } }
.blog-list .post-row .cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}
.blog-list .post-row .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-list .meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.blog-list h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 8px 0 8px;
}
.blog-list .excerpt {
    color: var(--fg-muted);
    margin: 0 0 12px;
    font-size: 14px;
}

/* Blog post */
.post-shell {
    max-width: 720px;
    padding: 80px 0;
}
.post-shell .meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.post-shell h1 {
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}
.post-shell .cover {
    margin: 32px -16px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-shell .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Helpers */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
}
.text-mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }
