@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

/* =========================
   Tokens
   "Built in motion": a blue-black night stage, cool white type, one electric cobalt accent.
   Light mode flips the stage to cool paper and deepens the same cobalt.
   ========================= */

:root {
    color-scheme: dark light;

    --bg: #070a14;
    --bg-2: #0c1120;
    --surface: #111729;
    --ink: #eef1fb;
    --muted: #a5acc4;
    --placeholder: #8a92ad;

    --accent: #3a62ff;
    --accent-text: #7d97ff;
    --on-accent: #ffffff;

    --line: rgba(238, 241, 251, 0.12);
    --line-strong: rgba(238, 241, 251, 0.26);
    --glow: rgba(58, 98, 255, 0.26);
    --ring: rgba(238, 241, 251, 0.9);
    --nav-bg: rgba(7, 10, 20, 0.72);

    --ok-bg: rgba(58, 98, 255, 0.14);
    --ok-fg: #cdd8ff;
    --ok-line: #7d97ff;
    --err-bg: rgba(229, 72, 77, 0.14);
    --err-fg: #fecaca;
    --err-line: #e5484d;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --gutter: clamp(1.25rem, 5vw, 2.5rem);
    --container: 80rem;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f2f4fa;
        --bg-2: #e7ebf6;
        --surface: #fbfcff;
        --ink: #0b1020;
        --muted: #545b72;
        --placeholder: #6a7188;

        --accent: #2a52f0;
        --accent-text: #2a52f0;
        --on-accent: #ffffff;

        --line: rgba(11, 16, 32, 0.12);
        --line-strong: rgba(11, 16, 32, 0.3);
        --glow: rgba(42, 82, 240, 0.16);
        --ring: rgba(11, 16, 32, 0.85);
        --nav-bg: rgba(242, 244, 250, 0.8);

        --ok-bg: rgba(42, 82, 240, 0.1);
        --ok-fg: #1a2f8f;
        --ok-line: #2a52f0;
        --err-bg: #fde8e8;
        --err-fg: #7a1b1b;
    }
}

/* =========================
   Base
   ========================= */

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

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

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

ul {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

[id] {
    scroll-margin-top: 5rem;
}

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

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

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

.skip-link {
    background: var(--ink);
    border-radius: 999px;
    color: var(--bg);
    font-weight: 700;
    left: 1rem;
    padding: 0.6rem 1.1rem;
    position: absolute;
    top: -4rem;
    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
}

/* Scroll progress and a soft glow that trails the cursor (the native cursor stays). */
.progress {
    background: var(--accent);
    height: 3px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 60;
}

.cursor-glow {
    background: radial-gradient(closest-side, var(--glow), transparent);
    border-radius: 50%;
    height: 34rem;
    left: 0;
    margin: -17rem 0 0 -17rem;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: opacity 0.6s;
    width: 34rem;
    z-index: -1;
}

.cursor-glow.on {
    opacity: 1;
}

/* =========================
   Header / Nav
   ========================= */

.site-header {
    margin-top: 0.75rem;
    padding-inline: var(--gutter);
    position: sticky;
    top: 0.75rem;
    z-index: 50;
}

.site-nav {
    align-items: center;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 0.25rem;
    margin-inline: auto;
    max-width: 100%;
    padding: 0.35rem;
    width: fit-content;
}

.nav-links {
    display: flex;
    gap: 0.1rem;
}

.nav-links a {
    border-radius: 999px;
    color: var(--muted);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.nav-links a:hover {
    background: var(--line);
    color: var(--ink);
}

.nav-cta {
    background: var(--accent);
    border-radius: 999px;
    color: var(--on-accent);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    transition: transform 0.3s var(--ease);
}

.nav-cta:hover {
    transform: scale(1.05);
}

.nav-cta:active {
    transform: scale(0.97);
}

/* =========================
   Buttons: a color wipe rises from below on hover
   ========================= */

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 0.6rem;
    isolation: isolate;
    justify-content: center;
    line-height: 1.2;
    overflow: hidden;
    padding: 0.95rem 1.5rem;
    position: relative;
    transition:
        color 0.35s var(--ease),
        border-color 0.35s var(--ease),
        transform 0.35s var(--ease);
}

.btn::before {
    background: var(--ink);
    border-radius: inherit;
    content: "";
    inset: 0;
    position: absolute;
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
    z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    color: var(--bg);
}

.btn-soft {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-soft::before {
    background: var(--accent);
}

.btn-soft:hover {
    border-color: var(--accent);
    color: var(--on-accent);
}

.btn-link {
    color: var(--ink);
    padding-inline: 0.5rem;
}

.btn-link::before {
    display: none;
}

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

.btn-arrow {
    background: currentColor;
    display: inline-block;
    height: 1.05em;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E")
        center / contain no-repeat;
    transition: transform 0.4s var(--ease);
    width: 1.05em;
}

.btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

/* Orange (primary) and outline (soft) buttons keep their arrow still on hover. */
.btn-primary:hover .btn-arrow,
.btn-soft:hover .btn-arrow {
    transform: none;
}

/* Sections focused by a long in-page jump should not show a focus ring. */
[tabindex="-1"]:focus {
    outline: none;
}

/* =========================
   Split text: letters rise out of a mask, then lean toward the pointer
   ========================= */

.js [data-split] .word {
    display: inline-block;
    margin-block: -0.12em;
    overflow: hidden;
    padding-block: 0.12em;
    vertical-align: top;
}

.js [data-split] .ch {
    --base: var(--ink);
    color: color-mix(in srgb, var(--accent) calc(var(--p, 0) * 100%), var(--base));
    display: inline-block;
    opacity: 0;
    scale: calc(1 + var(--p, 0) * 0.07);
    transform: translateY(112%) rotate(7deg);
    transform-origin: 0 100%;
    transition:
        transform 1s var(--ease) calc(var(--ci, 0) * 28ms + 120ms),
        opacity 0.5s linear calc(var(--ci, 0) * 28ms + 120ms),
        translate 0.25s var(--ease),
        scale 0.25s var(--ease),
        color 0.2s linear;
    translate: 0 calc(var(--p, 0) * -0.06em);
}

.js [data-split] .hl .ch {
    --base: var(--accent-text);
}

.js [data-split].is-in .ch {
    opacity: 1;
    transform: none;
}

/* Failsafe: if a script ever fails, nothing stays hidden. */
.js [data-split]:not(.is-in) .ch,
.js .reveal:not(.is-visible) {
    animation: show-anyway 0.01s 4s forwards;
}

@keyframes show-anyway {
    to {
        opacity: 1;
        transform: none;
    }
}

.js .reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition:
        opacity 0.9s var(--ease) calc(var(--i, 0) * 90ms),
        transform 0.9s var(--ease) calc(var(--i, 0) * 90ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================
   Hero
   ========================= */

.hero {
    align-items: flex-start;
    display: flex;
    min-height: min(calc(100vh - 4.5rem), 44rem);
    min-height: min(calc(100dvh - 4.5rem), 44rem);
    overflow: hidden;
    padding-block: clamp(2rem, 6vw, 4.5rem) 4rem;
    position: relative;
}

.hero::before {
    background: radial-gradient(56rem 30rem at 82% 32%, var(--glow), transparent 62%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.net {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* The greeting is a terminal line. */
.pill {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0.5rem;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.85rem;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    padding: 0.5rem 0.9rem;
}

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

.pill-cursor {
    animation: blink 1.1s steps(1) infinite;
    background: var(--accent);
    height: 1.05em;
    margin-left: -0.25rem;
    width: 0.5rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

h1 {
    font-size: clamp(3.4rem, 13.5vw, 10.5rem);
    letter-spacing: -0.045em;
    line-height: 0.92;
}

.hero-title .line {
    display: block;
}

.hero-foot {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 3rem;
    justify-content: space-between;
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.hero-lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.55;
    max-width: 26rem;
}

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

/* =========================
   Tech marquee: speed and direction follow your scroll velocity
   ========================= */

.vm {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.vm-row {
    overflow: hidden;
    white-space: nowrap;
}

.vm-row + .vm-row {
    margin-top: clamp(0.75rem, 2vw, 1.75rem);
}

.vm-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.vm-group {
    display: flex;
}

.vm-group li {
    -webkit-text-stroke: 1px var(--line-strong);
    align-items: center;
    color: transparent;
    display: flex;
    font-size: clamp(1.7rem, 4vw, 3.4rem);
    font-weight: 800;
    gap: clamp(1.1rem, 3vw, 2.5rem);
    letter-spacing: -0.035em;
    line-height: 1.35;
    padding-right: clamp(1.1rem, 3vw, 2.5rem);
}

.vm-group li::after {
    background: var(--accent);
    border-radius: 50%;
    content: "";
    flex: none;
    height: 0.26em;
    width: 0.26em;
}

.vm-row:nth-child(even) .vm-group li {
    -webkit-text-stroke: 0;
    color: var(--ink);
}

/* =========================
   Sections
   ========================= */

.section {
    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 52rem;
}

.kicker {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.8rem;
    gap: 0.6rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.kicker::before {
    background: var(--accent);
    border-radius: 50%;
    content: "";
    height: 0.5rem;
    width: 0.5rem;
}

h2 {
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.section-lead {
    color: var(--muted);
    font-size: 1.15rem;
    margin-top: 1.1rem;
    max-width: 38rem;
}

/* =========================
   Services: a typographic list, rows fill with color and open on hover
   ========================= */

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

.svc {
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    isolation: isolate;
    outline-offset: -3px;
    overflow: hidden;
    position: relative;
}

.svc::before {
    background: var(--accent);
    content: "";
    inset: 0;
    position: absolute;
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.6s var(--ease);
    z-index: -1;
}

.svc-row {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
}

.svc-icon {
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    flex: none;
    height: 3rem;
    place-items: center;
    transition:
        border-color 0.4s var(--ease),
        transform 0.6s var(--ease);
    width: 3rem;
}

.svc-glyph {
    background: var(--ink);
    height: 1.4rem;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    transition: background-color 0.3s;
    width: 1.4rem;
}

.svc h3 {
    flex: 1;
    font-size: clamp(1.7rem, 4.8vw, 3.8rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
    transition:
        color 0.3s,
        transform 0.6s var(--ease);
}

.svc-arrow {
    background: var(--ink);
    flex: none;
    height: 1.8rem;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E")
        center / contain no-repeat;
    transition:
        background-color 0.3s,
        transform 0.6s var(--ease);
    width: 1.8rem;
}

/* The arrow is a real link to the contact form, with a comfortable tap target. */
.svc-go {
    border-radius: 50%;
    display: grid;
    flex: none;
    height: 2.75rem;
    place-items: center;
    width: 2.75rem;
}

.svc-go:hover .svc-arrow {
    transform: rotate(45deg) scale(1.2);
}

/* Stretched link: an invisible layer makes the whole row clickable. */
.svc-go::after {
    content: "";
    inset: 0;
    position: absolute;
}

.svc-go:focus-visible {
    outline: none;
}

.svc-go:focus-visible::after {
    outline: 3px solid var(--ring);
    outline-offset: -3px;
}

.svc-text-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease);
}

.svc-text {
    min-height: 0;
    overflow: hidden;
    padding-inline: calc(1rem + 3rem + 1.25rem) 3rem;
}

.svc-text p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 38rem;
    padding-bottom: 1.5rem;
    transition: color 0.3s;
}

.svc:hover::before,
.svc:focus-within::before,
.svc.open::before {
    transform: scaleY(1);
}

.svc:hover .svc-text-wrap,
.svc:focus-within .svc-text-wrap,
.svc.open .svc-text-wrap {
    grid-template-rows: 1fr;
}

.svc:hover h3,
.svc:focus-within h3,
.svc.open h3 {
    color: var(--on-accent);
    transform: translateX(0.75rem);
}

.svc:hover .svc-text p,
.svc:focus-within .svc-text p,
.svc.open .svc-text p {
    color: var(--on-accent);
}

.svc:hover .svc-glyph,
.svc:focus-within .svc-glyph,
.svc.open .svc-glyph,
.svc:hover .svc-arrow,
.svc:focus-within .svc-arrow,
.svc.open .svc-arrow {
    background: var(--on-accent);
}

.svc:hover .svc-icon,
.svc:focus-within .svc-icon,
.svc.open .svc-icon {
    border-color: var(--on-accent);
    transform: rotate(-12deg) scale(1.08);
}

.svc:hover .svc-arrow,
.svc:focus-within .svc-arrow,
.svc.open .svc-arrow {
    transform: rotate(45deg);
}

.services-cta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.services-cta p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================
   Projects: vertical scroll pans a horizontal track
   ========================= */

.hscroll {
    position: relative;
}

.hs-sticky {
    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hs-head {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hs-track {
    display: grid;
    gap: 2.5rem;
    padding-inline: var(--gutter);
}

.hs-bar {
    display: none;
}

.hs-on .hs-sticky {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    justify-content: center;
    overflow: hidden;
    padding-block: 5.5rem 2rem;
    position: sticky;
    top: 0;
}

.hs-on .hs-head {
    margin-bottom: 1.5rem;
}

.hs-on .hs-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hs-on .hs-track {
    display: flex;
    gap: 2.25rem;
    padding-inline: var(--gutter);
    transform: translate3d(calc(var(--p, 0) * var(--dist, 0) * -1px), 0, 0);
    width: max-content;
    will-change: transform;
}

.hs-on .hs-bar {
    background: var(--line);
    display: block;
    height: 3px;
    margin: 1.5rem var(--gutter) 0;
}

.hs-bar span {
    background: var(--accent);
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.proj {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hs-on .proj {
    flex: none;
    width: max(20rem, min(58vw, 46rem, calc(2 * (100dvh - 27rem))));
}

.proj-image {
    aspect-ratio: 2 / 1;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 1.1rem;
    display: block;
    overflow: hidden;
    position: relative;
}

.proj-image img {
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transition: transform 1s var(--ease);
    width: 100%;
}

.proj:hover .proj-image img {
    transform: scale(1.06);
}

.proj-body {
    align-items: flex-end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.proj h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.proj p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 30rem;
}

/* =========================
   FAQ: panels grow smoothly
   ========================= */

.faq-grid {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.faq-intro {
    position: sticky;
    top: 6rem;
}

.faq-intro .btn {
    margin-top: 1.75rem;
}

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

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item h3 {
    font-size: inherit;
    font-weight: inherit;
}

.faq-q {
    align-items: center;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    gap: 1.5rem;
    justify-content: space-between;
    letter-spacing: -0.02em;
    line-height: 1.3;
    padding: 1.5rem 0;
    text-align: left;
    transition: color 0.3s;
    width: 100%;
}

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

.faq-ic {
    background:
        linear-gradient(currentColor, currentColor) center / 1.1rem 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 1.1rem no-repeat;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    flex: none;
    height: 2.4rem;
    transition:
        background-color 0.4s var(--ease),
        border-color 0.4s var(--ease),
        color 0.4s var(--ease),
        transform 0.6s var(--ease);
    width: 2.4rem;
}

.faq-item.open .faq-ic {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    transform: rotate(135deg);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s var(--ease);
}

.faq-a > div {
    min-height: 0;
    overflow: hidden;
}

.faq-a p {
    color: var(--muted);
    max-width: 40rem;
    padding: 0 3.5rem 1.6rem 0;
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

html:not(.js) .faq-a {
    grid-template-rows: 1fr;
}

/* =========================
   Contact
   ========================= */

.contact {
    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: clamp(2.5rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.contact-sub {
    color: var(--muted);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    max-width: 26rem;
}

.contact-tray {
    background:
        radial-gradient(420px circle at var(--mx, 75%) var(--my, 0%), var(--glow), transparent 60%),
        var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 1.4rem;
}

.contact-core {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.form-messages {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.form-message {
    border-left: 3px solid;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    padding: 0.85rem 1.1rem;
}

.form-message-success {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok-fg);
}

.form-message-error {
    background: var(--err-bg);
    border-color: var(--err-line);
    color: var(--err-fg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-form-fields {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr 1fr;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0.8rem;
    color: var(--ink);
    font: inherit;
    padding: 0.85rem 1rem;
    transition:
        border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--placeholder);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--glow);
    outline: none;
}

.contact-form-message {
    min-height: 9rem;
    resize: vertical;
}

.contact-form-submit {
    align-self: flex-start;
}

.contact-form-submit:disabled,
.contact-form-submit:disabled:hover {
    cursor: progress;
    opacity: 0.65;
    transform: none;
}

.hp-field {
    height: 1px;
    left: -9999px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

/* =========================
   404
   ========================= */

.notfound {
    min-height: 70vh;
    padding-block: clamp(6rem, 14vw, 9rem);
}

.notfound h1 {
    font-size: clamp(2.6rem, 8vw, 6rem);
}

.notfound .hero-lead {
    margin-top: 1.5rem;
}

.notfound .hero-actions {
    margin-top: 2rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 60rem) {
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-intro {
        position: static;
    }

    .faq-a p {
        padding-right: 0;
    }
}

/* Touch screens have no hover, so service descriptions are always visible. */
@media (max-width: 48rem), (hover: none) {
    .svc-text-wrap {
        grid-template-rows: 1fr;
    }

    .svc::before {
        display: none;
    }

    .svc:hover h3 {
        color: inherit;
        transform: none;
    }

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

    .svc:hover .svc-glyph,
    .svc:hover .svc-arrow {
        background: var(--ink);
    }

    .svc:hover .svc-icon {
        border-color: var(--line-strong);
        transform: none;
    }

    .svc:hover .svc-arrow {
        transform: none;
    }
}

@media (max-width: 48rem) {
    .hero {
        min-height: 0;
        padding-block: 2.5rem 4rem;
    }

    .svc-text {
        padding-inline: 1rem;
    }

    .svc-go {
        height: 2.5rem;
        width: 2.5rem;
    }

    .proj-body {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 35rem) {
    .contact-form-fields {
        grid-template-columns: 1fr;
    }

    .contact-form-submit {
        align-self: stretch;
    }

    .svc-icon {
        height: 2.4rem;
        width: 2.4rem;
    }

    .svc-glyph {
        height: 1.1rem;
        width: 1.1rem;
    }
}

@media (max-width: 30rem) {
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.45rem 0.55rem;
    }

    .nav-cta {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }
}

/* =========================
   Reduced motion: everything is visible and still
   ========================= */

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

    .js [data-split] .ch,
    .js .reveal {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pill-cursor {
        animation: none;
    }

    .cursor-glow {
        display: none;
    }

    .vm-row {
        overflow-x: auto;
    }

    .btn::before,
    .svc::before {
        transition: none;
    }
}
