:root {
    /* surfaces */
    --bg: #ffffff;
    --bg-2: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f1f4f9;
    --border: #e3e8ef;
    --border-strong: #cfd8e3;
    /* text */
    --text: #0b1324;
    --text-2: #334155;
    --muted: #5a6577;
    /* brand: one steady blue, one calm teal */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-ink: #1e3a8a;
    --primary-soft: #eef3ff;
    --primary-line: #d6e0fb;
    --teal: #0e7490;
    --teal-soft: #ebf8fb;
    --success: #047857;
    --grad: linear-gradient(115deg, #1d4ed8 0%, #0e7490 100%);
    /* ink panels (product mock-ups) */
    --ink: #0b1324;
    --ink-2: #111b31;
    --ink-border: rgba(255, 255, 255, 0.09);
    --ink-text: #e2e8f0;
    --ink-muted: #94a3b8;

    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px -14px rgba(15, 23, 42, 0.16);
    --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 30px 70px -30px rgba(15, 23, 42, 0.28);
    --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* language switching */
html[lang="tr"] [data-l="en"],
html[lang="en"] [data-l="tr"] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.02em; color: var(--text); }
::selection { background: var(--primary-soft); color: var(--primary-ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* ---------- scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--primary); z-index: 200; transition: width .1s linear;
}

/* ---------- nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s, border-color .3s, box-shadow .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { color: var(--text); }
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta { color: #fff; background: var(--primary); margin-left: 8px; }
.nav-links .nav-cta:hover { color: #fff; background: var(--primary-hover); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
    display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; font: 600 12px var(--font-body);
}
.lang-opt { padding: 5px 10px; border-radius: 999px; color: var(--muted); transition: all .2s; }
html[lang="tr"] .lang-opt[data-opt="tr"],
html[lang="en"] .lang-opt[data-opt="en"] { background: var(--text); color: #fff; }
.menu-btn {
    display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text);
    width: 40px; height: 40px; border-radius: 10px; font-size: 22px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px;
    font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s, color .2s; font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .25), 0 8px 20px -10px rgba(29, 78, 216, .55); }
.btn-primary:hover { color: #fff; background: var(--primary-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-2); }
.btn i { transition: transform .2s; }
.btn:hover i { transform: translateX(2px); }

/* ---------- hero ---------- */
.hero {
    position: relative; min-height: 100vh; padding: 130px 0 56px; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
    background:
        radial-gradient(900px 520px at 85% 10%, rgba(29, 78, 216, .07), transparent 60%),
        radial-gradient(700px 480px at 0% 100%, rgba(14, 116, 144, .06), transparent 60%),
        var(--bg);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px; opacity: .45;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--text-2); margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(4, 120, 87, .15); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 600; margin-bottom: 24px; }
.typed-line { display: block; min-height: 1.15em; }
#typed, #typedEn { display: inline-block; min-width: 1ch; border-right: 3px solid var(--primary); padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 640px; margin: 0 0 34px; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.hero-social a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 17px;
    color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: all .2s;
}
.hero-social a:hover { color: var(--primary); border-color: var(--primary-line); background: var(--primary-soft); }

.hero-card {
    position: relative; padding: 28px; border-radius: 20px; text-align: center;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.portrait { position: relative; width: 148px; height: 148px; margin: 0 auto 18px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; position: relative; z-index: 1; border: 4px solid #fff; }
.ring { position: absolute; inset: -4px; border-radius: 50%; background: var(--grad); }
.hero-card-body { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.hero-card-body strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; }
.hero-card-body span { font-size: 14px; color: var(--text-2); }
.hero-card-body .muted { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat .num { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; color: var(--primary-ink); }
.stat .label { color: var(--muted); font-size: 14px; }

/* ---------- trusted strip ---------- */
.trusted { position: relative; z-index: 2; margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.trusted-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trusted-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.trusted-list li { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #8a94a6; letter-spacing: -0.01em; transition: color .2s; }
.trusted-list li:hover { color: var(--text); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 1rem; color: var(--text-2); white-space: nowrap; font-weight: 500; }
.marquee-track span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-right: 40px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
    display: inline-block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
    color: var(--primary); margin-bottom: 14px;
}
.section-head h2, .about h2, .contact h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }

/* ---------- cards: shared ---------- */
.service, .step, .project, .tool-group, .edu, .awards, .grants {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { position: relative; padding: 28px 24px; transition: border-color .25s, box-shadow .25s; }
.service:hover { border-color: var(--primary-line); box-shadow: var(--shadow); }
.service-icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 21px; margin-bottom: 20px;
    background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line);
}
.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.service-highlight { border-color: var(--primary-line); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- process ---------- */
.process { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 24px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -18px; width: 18px; height: 1px; background: var(--border-strong); }
.step-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; color: var(--primary); }
.step h3 { font-size: 1.15rem; margin: 8px 0; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.format { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: 14.5px; background: var(--surface); }
.format i { color: var(--teal); font-size: 19px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font: 500 14px var(--font-body); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--border-strong); color: var(--text); }
.filter.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; padding: 26px; transition: border-color .25s, box-shadow .25s; }
.project:hover { border-color: var(--primary-line); box-shadow: var(--shadow); }
.project.hide { display: none; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.project-top > i { font-size: 22px; color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 5px; line-height: 1.4; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-oss { color: #065f46; border-color: #bfe8d6; background: #effaf5; }
.badge-conf { color: #8a4b08; border-color: #f3dcae; background: #fff8eb; }
.badge-phd { color: var(--primary-ink); border-color: var(--primary-line); background: var(--primary-soft); }
.badge-social { color: #9b1c4b; border-color: #f6cfdd; background: #fdf2f6; }
.badge-product { color: #fff; background: var(--primary); border: 0; padding: 5px 12px; font-size: 12px; }
.project h3 { font-size: 1.18rem; margin-bottom: 10px; }
.project p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.project p strong { color: var(--text); font-weight: 600; }
.project-links { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.project-links a { color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.project-links a:hover { color: var(--primary); }

.project-feature { grid-column: span 2; padding: 32px; border-color: var(--primary-line); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 55%); }
.project-feature h3 { font-size: 1.5rem; }
.project-feature p { font-size: 15.5px; color: var(--text-2); }
.project-feature .project-top > i { font-size: 28px; }
.impact { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.impact li { font-size: 13.5px; color: var(--text); display: flex; gap: 6px; align-items: center; font-weight: 500; }
.impact i { color: var(--success); }
.projects.collapsed .project.extra { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.more-wrap.hidden { display: none; }
.more-count { color: var(--muted); font-weight: 500; }

/* ---------- spotlights (CodeBody, NUYA) ---------- */
.spotlight { background: var(--bg-2); border-block: 1px solid var(--border); }
.spotlight-alt { background: var(--bg); border-block: 0; }
.spot {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; padding: 48px;
    border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg);
}
.spot-reverse { grid-template-columns: .9fr 1.1fr; }
.spot h2 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); margin: 18px 0 14px; }
.spot-sub { display: block; font-size: clamp(1.08rem, 1.9vw, 1.35rem); font-weight: 500; color: var(--primary-ink); margin-top: 8px; letter-spacing: -0.01em; }
.spot-lead { color: var(--text-2); font-size: 1.05rem; margin: 0 0 24px; }
.spot-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.spot-features li { display: flex; gap: 12px; align-items: flex-start; }
.spot-features i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 16px; border: 1px solid var(--primary-line); }
.spot-features strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.spot-features span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* product mock-up (dark, like a screenshot) */
.mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--ink-border); background: var(--ink); box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ink-border); background: var(--ink-2); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-bar .dot:nth-child(2) { background: #fbbf24; }
.mock-bar .dot:nth-child(3) { background: #34d399; }
.mock-bar em { font-style: normal; font-size: 12px; color: var(--ink-muted); margin-left: 8px; }
.mock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.pose { width: 100%; height: auto; background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, .14), transparent 70%); border-radius: 12px; }
.mock-side { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.metric { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-border); font-size: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.metric span { color: var(--ink-muted); }
.metric b { font-family: var(--font-head); color: #fcd34d; }
.metric i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.metric i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius: 4px; }
.note { font-size: 12px; color: #cfe0ff; padding: 10px 12px; border-radius: 10px; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .25); line-height: 1.5; }
.note i { color: #60a5fa; }

/* NUYA architecture diagram */
.arch { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); }
.arch-title { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.arch-layer { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.arch-items { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-items span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.arch-arrow { text-align: center; font-size: 12px; color: var(--muted); }
.arch-arrow i { color: var(--teal); }
.arch-core { padding: 16px; border-radius: 14px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.arch-core .arch-title { color: var(--primary-ink); }
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arch-grid span { font-size: 12.5px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--primary-line); color: var(--text); display: flex; gap: 7px; align-items: center; }
.arch-grid i { color: var(--primary); }

/* ---------- toolbox ---------- */
.toolbox { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-group { padding: 24px; }
.tool-group h3 { font-size: 1.02rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.tool-group h3 i { color: var(--teal); }

/* ---------- demo ---------- */
.demo-frame {
    position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
    height: 720px; background: radial-gradient(circle at 30% 20%, var(--primary-soft), transparent 55%), radial-gradient(circle at 70% 80%, var(--teal-soft), transparent 55%), var(--bg-2);
    display: grid; place-items: center;
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.demo-load {
    display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; color: var(--text);
    font: 600 1.1rem var(--font-head); cursor: pointer;
}
.demo-load i { font-size: 68px; color: var(--primary); transition: transform .3s; }
.demo-load:hover i { transform: scale(1.06); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--text-2); font-size: 1.05rem; }
.about-side { display: flex; flex-direction: column; gap: 18px; }
.edu, .awards { padding: 24px; }
.edu { display: flex; flex-direction: column; gap: 16px; }
.edu-item { display: flex; gap: 14px; align-items: flex-start; }
.edu-item i { font-size: 20px; color: var(--primary); margin-top: 2px; }
.edu-item strong { display: block; font-size: 15px; }
.edu-item span { color: var(--muted); font-size: 13.5px; }
.awards h3 { font-size: 1.02rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.awards h3 i { color: #b45309; }
.awards ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.awards li { margin-bottom: 6px; }
.awards li strong { color: var(--text); }
.langs { display: flex; gap: 10px; flex-wrap: wrap; }
.langs > span { font-size: 13.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 34px; margin-bottom: 56px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--teal) 60%, transparent); opacity: .5; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
    content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--primary);
}
.tl-item:first-child::before { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.tl-date { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .04em; }
.tl-item h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.tl-item p { color: var(--muted); margin: 0; max-width: 780px; }

.grants { padding: 30px; border-radius: 20px; }
.grants h3 { font-size: 1.25rem; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.grants h3 i { color: var(--success); }
.grant-list { list-style: none; padding: 0; margin: 0; }
.grant-list li { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.grant-list li strong { color: var(--text); }
.g-year { font-family: var(--font-head); color: var(--text); font-weight: 600; }
.g-tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; color: #065f46; background: #effaf5; border: 1px solid #bfe8d6; white-space: nowrap; }

/* ---------- publications ---------- */
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.pub.hide { display: none; }
.pub-year { font-family: var(--font-head); font-weight: 600; color: var(--teal); padding-top: 1px; }
.pub-title { display: block; color: var(--text); font-weight: 500; font-size: 1.02rem; margin-bottom: 4px; }
a.pub-title:hover { color: var(--primary); }
a.pub-title::after { content: " ↗"; color: var(--primary); font-size: .85em; }
.pub-meta { display: block; color: var(--muted); font-size: 14px; }
.pub-meta em { color: var(--text-2); }
.pub[data-type~="phd"] .pub-year::after { content: "PhD"; display: block; font-size: 10.5px; color: var(--primary-ink); letter-spacing: .08em; margin-top: 2px; }

/* ---------- contact ---------- */
.contact-section { padding-bottom: 120px; }
.contact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px; border-radius: 24px;
    background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); border: 1px solid var(--primary-line); box-shadow: var(--shadow);
}
.contact-copy p { color: var(--text-2); font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 15px; }
.contact-points li { display: flex; gap: 10px; align-items: flex-start; }
.contact-points i { color: var(--success); margin-top: 3px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.contact-list i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); }
.contact-list a { color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
    font: 15px var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.contact-form .btn { justify-content: center; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; font-size: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .services, .projects { grid-template-columns: repeat(2, 1fr); }
    .process, .formats, .toolbox { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .spot, .spot-reverse { grid-template-columns: 1fr; padding: 36px; }
    .spot-reverse .spot-visual { order: 2; }
}

@media (max-width: 920px) {
    .menu-btn { display: grid; place-items: center; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px 16px 20px; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .3s, visibility .3s; z-index: -1; visibility: hidden;
    }
    .nav-links.open { transform: none; visibility: visible; }
    .nav-links a { padding: 12px 14px; font-size: 16px; }
    .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { max-width: 380px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
    .about, .contact { grid-template-columns: 1fr; }
    .contact { padding: 32px 24px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 76px 0; }
    .services, .projects, .process, .formats, .toolbox { grid-template-columns: 1fr; }
    .brand-text { display: none; }
    .stat .num { font-size: 1.9rem; }
    .grant-list li { grid-template-columns: 1fr; gap: 6px; }
    .g-tag { justify-self: start; }
    .pub { grid-template-columns: 1fr; gap: 4px; }
    .pub[data-type~="phd"] .pub-year::after { display: inline; margin-left: 8px; }
    .demo-frame { height: 640px; }
    .spot { padding: 24px 18px; }
    .spot-features { grid-template-columns: 1fr; }
    .mock-body { grid-template-columns: 1fr; }
    .pose { max-height: 260px; }
    .project-feature { grid-column: auto; padding: 26px; }
    .contact-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- product logos ---------- */
.arch-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.arch-logos img { height: 22px; width: auto; }
.spot-wordmark { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.spot-title { display: inline-flex; align-items: center; gap: 14px; }
.spot-icon { width: 48px; height: 48px; border-radius: 12px; }
.app-icons { display: inline-flex; gap: 8px; }
.app-icons img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
@media (max-width: 640px) {
    .arch-logos img { height: 18px; }
    .spot-wordmark { height: 32px; }
    .spot-icon { width: 40px; height: 40px; }
}
.contact > * { min-width: 0; }
.contact-form select { width: 100%; min-width: 0; text-overflow: ellipsis; }

/* ---------- references ---------- */
.trusted-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.trusted-logos a, .trusted-logos .ref { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-family: var(--font-head); font-weight: 600; font-size: 1rem; opacity: .82; transition: opacity .2s; }
.trusted-logos a:hover { opacity: 1; color: var(--text); }
.trusted-logos img { height: 26px; width: auto; }
.trusted-logos img.sq { height: 30px; width: 30px; border-radius: 8px; object-fit: cover; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); }
.wordmark-tbros { letter-spacing: .04em; }
.wordmark-froyz { font-style: italic; }

.live-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.live-links a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.live-links a:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); color: var(--primary); }
.live-links img { height: 20px; width: auto; }
.live-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
@media (max-width: 640px) { .trusted-logos { gap: 12px 22px; } .trusted-logos img { height: 22px; } }

/* ---------- publications collapse ---------- */
.pubs.collapsed .pub.extra { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--primary-line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--primary); transition: transform .2s; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 920px) { .faq { grid-template-columns: 1fr; } }

/* ---------- real product screenshots ---------- */
.shot-frame { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--ink-border); background: var(--ink); box-shadow: var(--shadow-lg); }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-offset { width: 82%; margin: -40px 0 0 auto; position: relative; }
@media (max-width: 640px) { .shot-offset { width: 100%; margin: 14px 0 0; } }

/* ---------- stacked spotlight with full-width screenshots ---------- */
.spot-stack { grid-template-columns: 1fr; gap: 36px; }
.spot-stack .spot-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.spot-stack .spot-copy > .badge, .spot-stack .spot-copy > h2, .spot-stack .spot-copy > .spot-lead { grid-column: 1; }
.spot-stack .spot-copy > .spot-features { grid-column: 2; grid-row: 1 / span 4; margin-top: 4px; }
.spot-stack .spot-copy > .tags, .spot-stack .spot-copy > .spot-actions { grid-column: 1; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.shot-thumb { margin: 0; }
.shot-thumb .zoomable { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--ink); box-shadow: var(--shadow-sm); }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-thumb:first-child .zoomable { background: #fff; }
.shot-thumb:first-child img { object-fit: contain; }
.shot-thumb figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.zoomable { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.zoomable img { transition: transform .3s; }
.zoomable:hover img { transform: scale(1.015); }
.zoom-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(11, 19, 36, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }

@media (max-width: 1080px) {
    .spot-stack .spot-copy { display: block; }
}
@media (max-width: 640px) {
    .shot-row { grid-template-columns: 1fr 1fr; }
    .shot-row .shot-thumb:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1081px) {
    .spot-stack .spot-copy { grid-template-rows: repeat(5, auto) 1fr; }
    .spot-stack .spot-copy > .badge { justify-self: start; grid-row: 1; }
    .spot-stack .spot-copy > h2 { grid-row: 2; }
    .spot-stack .spot-copy > .spot-lead { grid-row: 3; }
    .spot-stack .spot-copy > .tags { grid-row: 4; }
    .spot-stack .spot-copy > .spot-actions { grid-row: 5; }
    .spot-stack .spot-copy > .spot-features { grid-row: 1 / -1; }
}

/* ---------- footer contact ---------- */
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--primary); }

/* ---------- contact drafts ---------- */
.drafts { display: flex; flex-direction: column; gap: 8px; }
.drafts-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.draft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.draft-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
    font: 500 13px var(--font-body); cursor: pointer; transition: all .2s;
}
.draft-chip i { color: var(--primary); }
.draft-chip:hover { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary-ink); }
.draft-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.send-row .btn { justify-content: center; }
@media (max-width: 640px) { .send-row { grid-template-columns: 1fr; } }
.badge-award { color: #7c4a03; border-color: #f1d9a6; background: #fff7e6; }

/* ---------- video thumbnails ---------- */
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--ink); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: .9; }
.video-thumb:hover img { transform: scale(1.02); opacity: 1; }
.video-thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--primary); display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.video-thumb:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video-thumb .video-label { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.lightbox .video-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
